<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Will Abson on Alfresco</title>
	<atom:link href="http://blogs.alfresco.com/wp/wabson/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.alfresco.com/wp/wabson</link>
	<description>Alfresco development, customisation and related themes</description>
	<lastBuildDate>Sat, 13 Apr 2013 14:22:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>Media Viewers 2.5 Released!</title>
		<link>http://blogs.alfresco.com/wp/wabson/2013/02/01/media-viewers-2-5-released/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2013/02/01/media-viewers-2-5-released/#comments</comments>
		<pubDate>Fri, 01 Feb 2013 12:58:13 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[Share Extras]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=599</guid>
		<description><![CDATA[If you&#8217;ve been following the recent activity on Share Extras you&#8217;ll notice that most of the work for the last few weeks has been going into the Media Viewers project and in particular the &#8216;PdfJs&#8217; based viewer which it supplies. If you&#8217;re not familiar with the underlying pdf.js project then you should know that it [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been following the recent activity on <a href="http://code.google.com/p/share-extras/">Share Extras</a> you&#8217;ll notice that most of the work for the last few weeks has been going into the <a href="http://code.google.com/p/share-extras/wiki/MediaViewers">Media Viewers</a> project and in particular the &#8216;PdfJs&#8217; based viewer which it supplies.</p>
<p>If you&#8217;re not familiar with the underlying <a href="http://mozilla.github.com/pdf.js/">pdf.js</a> project then you should know that it provides a means of direct rendering of PDF content items using HTML5 and JavaScript in the web browser, with no requirement from additional client-side plugins such as Flash.</p>
<p>Combined with the ability of the Alfresco repository to <a href="http://wiki.alfresco.com/wiki/Content_Transformations">transform</a> just about any standard document into PDF format, we think this provides a compelling reason to try the Media Viewer add-on if you have not done so before.</p>
<p>An initial version of the PdfJs viewer shipped in the Media Viewers 2.0 release for Alfresco 4, and version 2.5 which we&#8217;re releasing today builds on that with support for Alfresco 4.2 while also maintaining backwards compatible with the 4.0 and 4.1 Alfresco product lines.</p>
<p>There&#8217;s so much in this release that it felt like much more than a v2.1 release and 2.5 seemed much more appropriate. You can read on for more details of these exciting new capabilities, or go straight to the <a href="http://code.google.com/p/share-extras/wiki/MediaViewers#Download">download, installation and configuration</a> instructions to try it out today.</p>
<h3>Easy Configuration</h3>
<p>The first thing you&#8217;ll notice when enabling the add-on using Share&#8217;s Module Deployment console is that additional modules have been added, which provide the configuration needed to bind the viewer into the document details page.</p>
<p>Unless you want a specific custom configuration, you can just enable the new <em>PdfJs Configuration</em> module (in addition to the existing <em>PdfJs Viewer</em> module), click <em>Apply Changes</em> and you should see PDF documents will now use the new viewer. You no longer need to edit your <tt>web-preview.get.config.xml</tt> file although if you&#8217;ve made changes there they will continue to be respected.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.51.30.png"><img class="alignnone size-full wp-image-610" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.51.30.png" alt="" width="898" height="268" /></a></p>
<h3>Persistent View Settings</h3>
<p>Can&#8217;t see the text clearly? You can use the zoom controls in the viewer to zoom in, our out if you want to see more. Or pick a preset from the drop-down and the zoom will be auto-calculated.</p>
<p>The next time you come back to the document, these settings &#8211; plus the page number you were on &#8211; will be remembered.</p>
<h3>Powerful Search</h3>
<p>Use the Search button in the toolbar or Ctrl+F (Cmd+F on MacOS) to search through the document contents for a particular item of text. You can easily step through the matches one by one, or highlight all matches found.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-11.57.44.png"><img class="alignnone size-full wp-image-603" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-11.57.44.png" alt="" width="876" height="550" /></a></p>
<p>When you&#8217;ve found what you&#8217;re after, you can copy the relevant text to the clipboard in order to include it somewhere else, for example in an e-mail.</p>
<p>The feature I like the most will make you wonder how you lived without it before, if you&#8217;ve ever searched for a document in Alfresco and then struggled to find the reference to that term in the document itself.</p>
<p>Now, the viewer detects that you have clicked through from the search page, and automatically searches for and highlights the first match of that term. Just hit Enter to continue through any further matches, or Escape to close the search dialog.</p>
<h3>Link to Document</h3>
<p>The Link button in the toolbar generates a link to the document, or even to a specific page in the document, that you can send to co-workers. If you want them to review Slide 24 in your presentation then simply send them straight there.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.36.34.png"><img class="alignnone size-full wp-image-605" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.36.34.png" alt="" width="559" height="206" /></a></p>
<h3>Improved Sidebar</h3>
<p>You can click the button on the left of the toolbar to toggle the side bar on and off. The side bar shows a thumbnail view of all pages in the document by default and can also show an outline of the document structure if available in the file.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.33.45.png"><img class="alignnone size-full wp-image-607" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.33.45.png" alt="" width="1036" height="566" /></a></p>
<h3>Presentation Mode</h3>
<p>At DevCon last November <a href="http://ottleys.net/">Jared</a> neatly <a href="https://devcon.alfresco.com/sanjose/sessions/alfresco-integrations-what-weve-learned-so-far">showed</a> how you can use the the new <a href="http://www.youtube.com/watch?v=LbTuCekDHI8">Google Docs integration</a> to deliver a presentation directly from your web browser using Google Drive&#8217;s presentation mode, but with the PdfJs viewer you can now do the same thing directly from the Document Details page.</p>
<p>Just click Ctrl+Enter (or Cmd+Enter on MacOS) to go full-screen, then use the left and right arrow keys to move between your slides (the arrow keys will also work in the normal Document Details view).</p>
<h3>Document Viewer Dashlet</h3>
<p>Just like Site Admins can use the Wiki dashlet to add a selected page to a site dashboard, the Document View dashlet supplied with the add-on allows you to display any chosen document on the dashboard.</p>
<p>The dashlet works well with the PdfJs viewer, but will also work with the others supplied by the add-on or the base viewers supplied with Share (yes, that includes the Flash document viewer, if you really want).</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-01-29-at-13.16.22.png"><img class="alignnone size-full wp-image-608" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-01-29-at-13.16.22.png" alt="" width="1131" height="454" /></a></p>
<h3>Password-protected PDFs</h3>
<p>Viewing password-protected PDFs is no longer a problem with the PdfJs viewer. You will be promoted for the password required to open the file and once supplied the viewer will work as normal.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.47.24.png"><img class="alignnone size-full wp-image-609" src="http://blogs.alfresco.com/wp/wabson/files/2013/02/Screen-Shot-2013-02-01-at-12.47.24.png" alt="" width="438" height="164" /></a></p>
<h3>Lots More</h3>
<p>Of course there are many other improvements that you can&#8217;t see directly, but that you will benefit from. Peter has been working tirelessly to keep the version of the pdf.js library up-to-date, ensuring that we stay up to date with the improvements in performance and compatibility that the latest versions now provide. We have also improved the performance of page rendering within the dashlet code itself, with improved lazy rendering of all page and thumbnail content.</p>
<p>And of course PdfJs is not the only viewer in the add-on. The Flash-based audio and video players are still supplied, the <em>Embed</em> viewer offers a compelling Flash-free alternative for IE users not on IE 10 who have the Adobe Reader or another PDF plugin installed and the <em>Prettify</em> viewer is great at syntax highlighting any code stored in Alfresco.</p>
<h3>Feedback</h3>
<p>Like all Share Extras add-ons, we welcome constructive feedback to help us to deliver the next version of Media Viewers. Please use the <a href="http://code.google.com/p/share-extras/issues/list">Issues section</a> on the project to report specific technical issues or ideas for enhancements, or general feedback can be left as comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2013/02/01/media-viewers-2-5-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Media Viewers and Quick Share</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/12/04/media-viewers-and-quick-share/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/12/04/media-viewers-and-quick-share/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 11:42:37 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=591</guid>
		<description><![CDATA[Peter helpfully put together a summary of a couple of the many different content viewers that are now provided by the Media Viewers project. His blog post is well worth checking out if you&#8217;re not familiar with the Embed and PdfJs viewers, or if you have content types that you have problems previewing in Share [...]]]></description>
			<content:encoded><![CDATA[<p>Peter helpfully put together a summary of a couple of the many different content viewers that are now provided by the Media Viewers project. His <a href="http://loftux.com/2012/11/30/media-viewers-extending-alfresco-viewer-capability/">blog post</a> is well worth checking out if you&#8217;re not familiar with the <em>Embed</em> and <em>PdfJs</em> viewers, or if you have content types that you have problems previewing in Share today.</p>
<p>He also pointed out something that may be obvious to some of you, but it had not occurred to me! When you add a new plugin to Alfresco&#8217;s web preview component &#8211; as this add-on does &#8211; then that is also available on the Quick Share page.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/12/Screen-Shot-2012-12-04-at-11.32.07.png"><img class="alignnone size-full wp-image-592" src="http://blogs.alfresco.com/wp/wabson/files/2012/12/Screen-Shot-2012-12-04-at-11.32.07.png" alt="" width="1547" height="1018" /></a></p>
<p><em>If you&#8217;re not familiar with Quick Share it is a great new feature originally in Cloud and now in Community 4.2, providing public sharing of documents via a short URL, which can be easily used by clicking the Share action directly above the document preview.</em></p>
<p>The result is pretty powerful, since using an iFrame you can easily add those embedded documents to an intranet page or public web page &#8211; or just link to the items direct as Peter has done in his post. In fact Sergio Buitrago and I worked on this implementing this very thing as a <a href="https://gist.github.com/4052901">WordPress plugin</a> at the Berlin DevCon <a href="http://devcon.alfresco.com/hackathon">Hackathon</a> last month!</p>
<h3>Latest Changes in PdfJs Viewer</h3>
<p>It&#8217;s worth mentioning that you can try out the features Peter mentions by grabbing the <a href="http://code.google.com/p/share-extras/wiki/MediaViewers">project&#8217;s</a> latest source from trunk. In particular, here are two new features that are hot off the press in the PdfJs viewer:</p>
<ul>
<li>Perform a search in Share and click through to a PDF file or office document. You should see that the search function is automatically invoked for the term you searched for in the previous page, and highlights the first match.</li>
<li>If you are using the latest available Firefox or Chrome browsers, you can enter full-screen mode by pressing Ctrl+F on the keyboard. Now you can deliver PowerPoint presentations directly from Share itself!</li>
</ul>
<p>We are still in the process of finalising the 2.1 release of the Media Viewers add-on, so if you have feedback please file an issue on the Share Extras <a href="http://code.google.com/p/share-extras/">project site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/12/04/media-viewers-and-quick-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DevCon Berlin rocked, now to San Jose</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/11/14/devcon-berlin-rocked-now-to-san-jose/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/11/14/devcon-berlin-rocked-now-to-san-jose/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 08:45:50 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[DevCon]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=582</guid>
		<description><![CDATA[So with last week&#8217;s DevCon event in Berlin over and the second event in San Jose about to kick off, I wanted to share a few of my highlights so far, in addition to what Jeff already posted. Last week kicked off with a full-day hackathon building on top of Alfresco, facilitated by Nathan McMinn, [...]]]></description>
			<content:encoded><![CDATA[<p>So with last week&#8217;s <a href="https://devcon.alfresco.com/">DevCon</a> event in Berlin over and the second event in San Jose about to kick off, I wanted to share a few of my highlights so far, in addition to what Jeff <a href="http://blogs.alfresco.com/wp/devcon/2012/11/12/what-a-week-in-berlin/">already posted</a>.</p>
<p><a title="Tor Brandenburg by wabson, on Flickr" href="http://www.flickr.com/photos/wabson/8166731384/"><img src="http://farm9.staticflickr.com/8064/8166731384_fe496d484f.jpg" alt="Tor Brandenburg" width="500" height="333" /></a></p>
<p>Last week kicked off with a full-day <a href="https://devcon.alfresco.com/hackathon">hackathon</a> building on top of Alfresco, facilitated by <a href="http://nathanmcminn.com/">Nathan McMinn</a>, which I would recommend to anyone who has worked with Alfresco before and is interested in expanding  their horizons. This was about people coming together to work collectively on building something in a day, and the format worked fantastically well. I believe Nathan will be posting soon on what was produced in the session.</p>
<p>As always <a href="https://devcon.alfresco.com/speakers/john-newton">John</a> and <a href="https://devcon.alfresco.com/speakers/john-powell">John</a> kicked off the main sessions with the high-level view of Alfresco, seamlessly mixing open source content management with tales from the wider IT industry and a satirical take on current global politics. If you&#8217;re interested in any of those things, it&#8217;s a must see.</p>
<p>I didn&#8217;t get to see as many technical sessions as I have done in previous years, but the quality of those I did see really stood out. In particular:</p>
<ul>
<li>The public API live coding (<a href="https://devcon.alfresco.com/berlin/sessions/alfresco-cloud-api-part-one">part 1</a>, <a href="https://devcon.alfresco.com/berlin/sessions/alfresco-cloud-api-part-two">part 2</a>) session by Peter, Gethin and Steve was a great opportunity to get to grips with Alfresco Cloud&#8217;s new public API, and like the hackathon it felt great to have some working code at the end, much aided by the sample project provided on the USB sticks.</li>
<li>Expanding on the idea of developing your own projects, Gab Columbro&#8217;s talk on the long-awaited and brand-new <a href="https://devcon.alfresco.com/berlin/sessions/alfresco-maven-happy-ending-or-just-beginning">Maven SDK</a> was a highlight as much for the content as for Gab&#8217;s style, although you&#8217;ll want to do some background reading on Maven and how it differs from more traditional build tools before you use it for real.</li>
<li>On the second day I attended Dave and Erik&#8217;s <a href="https://devcon.alfresco.com/berlin/sessions/share-customizations-live">Share Customizations Live</a> session where they demonstrated, through the use of site presets and extensibility modules, some concrete examples which showed them taking a vanilla Share and hacking away until it was barely recognisable. What was interesting was how the mechanisms for doing this have improved over the last year, and the point that often it is just as useful to remove non-required OOTB functions as it is to add new ones, which the framework makes easy.</li>
<li>Jared&#8217;s talk on our own <a href="https://devcon.alfresco.com/berlin/sessions/alfresco-integrations-what-weve-learned-so-far">Integrations team</a> and what we&#8217;ve been up to over the last year (or six months in my case), and Nathan&#8217;s <a href="https://devcon.alfresco.com/berlin/sessions/pdf-toolkit-update-new-features-functionality">overview of PDF Toolkit</a> and the latest new features, based on the work he&#8217;s done recently building on Jared&#8217;s earlier work. If you&#8217;re interested in integrating Share with external systems and working with PDF content you&#8217;ll find both sessions really useful.</li>
</ul>
<p>Overall what stood out this year for me was the diversity of sessions available, not only in terms of topics but in their formats as well. There were less of the traditional-style PowerPoint-only type of sessions and more richer interactive sessions.</p>
<p>I experimented with a local Git repo in my own <a href="https://devcon.alfresco.com/berlin/sessions/develop-great-dashlets">Developing Great Dashlets talk</a>, switching between eight different branches of my example project to show progressively adding more features to an at-first-basic dashlet. It was great to see others experimenting in even more ways and adding more diversity to the two days.</p>
<p><em>If you&#8217;re attending the event in San Jose you&#8217;re I&#8217;ll be presenting the same dashlets &#8220;Zero to Hero&#8221; talk on <a href="https://devcon.alfresco.com/sanjose/sessions/develop-great-dashlets">Day 1</a> and <a href="https://devcon.alfresco.com/sanjose/sessions/develop-great-dashlets-repeat">Day 2</a>, plus a topic on <a href="https://devcon.alfresco.com/sanjose/sessions/configuring-and-extending-share-document-previews">pimping the Document Details screen</a> with your own document viewers and a <a href="https://devcon.alfresco.com/sanjose/sessions/lightning-talks-session-2">lightning talk</a> on the fantastic <a href="http://leafletjs.com/">Leaflet</a>. Do join if you can!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/11/14/devcon-berlin-rocked-now-to-san-jose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMIS support in LibreOffice Experimental Features</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/11/01/cmis-support-in-libreoffice-experimental-features/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/11/01/cmis-support-in-libreoffice-experimental-features/#comments</comments>
		<pubDate>Thu, 01 Nov 2012 11:29:54 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[atompub]]></category>
		<category><![CDATA[cmis]]></category>
		<category><![CDATA[libreoffice]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=555</guid>
		<description><![CDATA[Since I upgraded the LibreOffice installation on my Macbook to version 3.6, I&#8217;ve been playing around with the CMIS integration built into this version. This is currently an experimental LibreOffice feature, which means you should not use this against a production server. The integration allows LibreOffice to connect to a remote Alfresco server in order [...]]]></description>
			<content:encoded><![CDATA[<p>Since I upgraded the <a href="https://www.libreoffice.org/">LibreOffice</a> installation on my Macbook to version 3.6, I&#8217;ve been playing around with the <a href="http://en.wikipedia.org/wiki/Content_Management_Interoperability_Services">CMIS</a> integration built into this version. This is currently an experimental LibreOffice feature, which means you should not use this against a production server.</p>
<p>The integration allows LibreOffice to connect to a remote Alfresco server in order to open and save documents. This is a feature Microsoft Office has had for a long time, although limited to SharePoint-compatible servers (including Alfresco, via our <a href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fgs-spp-intro.html">SharePoint protocol support</a>!). Now you can do the same thing with LibreOffice, via the magic of CMIS.</p>
<p>The first thing to do is to enable LibreOffice&#8217;s experimental features within the Preferences dialogue.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.12.58_hl.png"><img class="alignnone size-full wp-image-556" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.12.58_hl.png" alt="" width="1285" height="763" /></a></p>
<p>After you&#8217;ve confirmed that change, you can open a file stored in Alfresco using the standard Open menu. When the file browser loads, you should notice a small button next to the location drop-down menu labelled with an ellipsis (&#8230;).</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.15.30_hl.png"><img class="alignnone size-full wp-image-557" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.15.30_hl.png" alt="" width="1590" height="763" /></a></p>
<p>Clicking that button allows you to add a server. LibreOffice supports a range of server types, including the CMIS AtomPub service provided by Alfresco.</p>
<p>First you must enter a name for the server &#8211; I entered &#8216;Alfresco&#8217; &#8211; and select the server type. If you do not see CMIS (Atom Binding) in the list then check to ensure that you have LibreOffice 3.6+ and that you have enabled Experimental Features.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.15.53_crop.png"><img class="alignnone  wp-image-558" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.15.53_crop.png" alt="" width="357" height="228" /></a></p>
<p>The binding URL for Alfresco 4.2 will be something like <tt>http://localhost:8080/alfresco/cmisatom</tt> if you are running a local instance. I found that if I used the legacy CMIS URL below <tt>/alfresco/service</tt> (or the short form <tt>/alfresco/s</tt>) then document saves did not work, but the newer URL worked great.</p>
<p>Next is the slightly tricky part, entering the CMIS repository ID. Your Alfresco instance will only expose one repository, but other CMIS providers provide others, and so you need to enter this.</p>
<p>Hitting the repository binding URL directly will give you the ID, but unfortunately the non-standard document MIME type returned means it does not open directly in a web browser. You could save the response to disk and then use a text editor to view its contents, but I found it easier to use curl at the command line, together with less.</p>
<pre>curl -u admin:admin http://localhost:8080/alfresco/cmisatom | less</pre>
<p>In the response, do a search for the string <tt>repositoryId</tt> and within that element you should see a GUID value which you can copy and paste into the dialogue in LibreOffice.</p>
<p>The last item you need to enter is the username that will be used to access Alfresco (you will enter the password later).</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-11-01-at-09.30.23.png"><img class="alignnone  wp-image-559" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-11-01-at-09.30.23.png" alt="" width="347" height="203" /></a></p>
<p>You should now have the full set of information needed to add the server. Click OK, and it should be added to the side panel on the left of the Open dialogue.</p>
<p>You can navigate through the folders below the repository&#8217;s Company Home space, and open any compatible document. I used the Word documents located under Sites &gt; swsdp &gt; documentLibrary &gt; Meeting Notes, which opened perfectly.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.25.16.png"><img class="alignnone size-full wp-image-560" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.25.16.png" alt="" width="1590" height="763" /></a></p>
<p>You can make any modifications, hit Save and the content will be automatically saved back into Alfresco.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.40.28.png"><img class="alignnone size-full wp-image-561" src="http://blogs.alfresco.com/wp/wabson/files/2012/11/Screen-Shot-2012-10-18-at-18.40.28.png" alt="" width="1650" height="1004" /></a></p>
<p>I also tried creating a new document from the New menu, and was able to save the document back to a folder Alfresco via the Save As dialogue. I found I needed to set the correct MIME type for new documents back in Alfresco Share to get previews to work, but this could easily be done using a rule.</p>
<p>All in all not bad for an experimental feature, and it will be interesting to see if this makes it into LibreOffice 3.7 for real.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/11/01/cmis-support-in-libreoffice-experimental-features/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>New Notice Dashlet and Improvements for Developers</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/10/25/new-notice-dashlet-and-improvements-for-developers/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/10/25/new-notice-dashlet-and-improvements-for-developers/#comments</comments>
		<pubDate>Thu, 25 Oct 2012 16:00:41 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=531</guid>
		<description><![CDATA[Following hot on the heels of the 4.2.a release from last week, it&#8217;s great to see 4.2.b going out this week with another bunch of improvements before DevCon. I&#8217;ve been able to help get a few more changes into the this release, which provide a new dashlet and several improvements for developers. Notice Dashlet This [...]]]></description>
			<content:encoded><![CDATA[<p>Following hot on the heels of the 4.2.a release from last week, it&#8217;s great to see 4.2.b going out this week with another bunch of improvements before <a href="http://devcon.alfresco.com/">DevCon</a>. I&#8217;ve been able to help get a few more changes into the this release, which provide a new dashlet and several improvements for developers.</p>
<h3>Notice Dashlet</h3>
<p>This dashlet may already be familiar to some of you who have used the add-ons available from Share Extras.</p>
<p>The Notice Dashlet allows site managers to add a custom notice that will be displayed to all site members, and allows this to be done directly from the dashlet itself. Now you no longer need to create a wiki page just to display some basic text on the dashboard!</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/10/notice-dashlet.png"><img class="alignnone size-full wp-image-538" src="http://blogs.alfresco.com/wp/wabson/files/2012/10/notice-dashlet.png" alt="" width="660" height="262" /></a></p>
<h3>New Bubbling event for dashlet resize notifications</h3>
<p>If you&#8217;ve developed any complex dashlets to render maps or other graphics, you&#8217;ll appreciate that it&#8217;s important to know the vertical height of the dashlet when you render your content. That is easy to get via the Dom or using YUI2&#8242;s <tt>YAHOO.util.Dom.getRegion()</tt> function, but what if the user resizes the dashlet?</p>
<p>Now the resizer module can notify your listeners via the new Bubbling event <tt>dashletResizeEnd</tt>. This is fired when the resizing has been completed and passes a number of parameters in the event arguments, including the new height of the dashlet, the dashlet element and component IDs and the Dom element representing the dashlet. To subscribe to the event, simply define a new custom function in your dashlet class prototype and bind it to the event in the dashlet class constructor, e.g.</p>
<pre>YAHOO.Bubbling.on("dashletResizeEnd", this.onDashletResize, this);</pre>
<p>In your custom function you can then take any further action which is necessary, e.g. informing a map instance that the element bounds have changed.</p>
<h3>More options for Data List actions</h3>
<p>The ability to add custom UI actions to Share&#8217;s Document Library is well documented and the add-ons site has a number of extensions which utilize this capability. But did you know the same thing can be done for data list items?</p>
<p>Until now the number of actions that can be displayed in the UI has been effectively capped at three. But now you can easily add new actions of your own there too. Thanks to the work done by <a href="http://blogs.alfresco.com/wp/ddraper/">Dave Draper</a> these definitions can easily be inserted into the application by using an extensibility module to customize the <tt>datagrid.get</tt> and <tt>actions-common.get</tt> components.</p>
<p><a href="http://blogs.alfresco.com/wp/wabson/files/2012/10/Screen-Shot-2012-10-25-at-16.52.21.png"><img class="alignnone  wp-image-546" src="http://blogs.alfresco.com/wp/wabson/files/2012/10/Screen-Shot-2012-10-25-at-16.52.21.png" alt="" width="243" height="136" /></a></p>
<p>As an example, the following code could be used to add the <a href="http://code.google.com/p/share-extras/source/browse/trunk/SDK/Datalist%20Sample%20Action/README.txt">Sample Datalist Action</a> provided by Share Extras to your datalist items, as part of an extensibility module.</p>
<pre>if (model.widgets)
{
   for (var i = 0; i &lt; model.widgets.length; i++)
   {
      var widget = model.widgets[i];
      if (widget.id == "DataGrid")
      {
         // These two lines only needed if you want to show the action in the 'actions' cell,
         // otherwise a 'More actions' menu will be created to display it.
         //widget.options.splitActionsAt = 4;
         //widget.options.actionsColumnWidth = 105; // splitActionsAt * 25 + 5
         // Add the action definition - this will be action-specific
         model.actionSet.push({
            id: "onActionSample", // Change to match your handler function name
            type: "action-link",
            permission: "",
            href: "",
            label: "actions.datalist.mycustom" // Change to match your custom label in datagrid.get.properties
         });
      }
   }
}</pre>
<p>If you have attempted to customize the existing Edit and Create data list actions with your own custom form configuration, then you may also appreciate the ability to increase the width of the modal dialogs used here, which previously were fixed-width.</p>
<h3>Better handling of missing custom previewers</h3>
<p>This will mainly be of interest to developers and administrators working with custom viewers in the web preview component, such as the pdf.js viewer in Share Extras&#8217;s <a href="http://code.google.com/p/share-extras/wiki/MediaViewers">Media Viewers add-on</a>, and is a topic which I&#8217;ll be talking about in San Jose next month.</p>
<p>Previously, if the files implementing the viewer were unavailable for some reason then an error would be thrown in the client-side component. With this change the component now logs that the viewer class could not be found, and this will also be printed on the screen if no other viewers can be found.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/10/25/new-notice-dashlet-and-improvements-for-developers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating self-signed SSL certificates for Solr</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/08/31/creating-self-signed-ssl-certificates-for-solr/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/08/31/creating-self-signed-ssl-certificates-for-solr/#comments</comments>
		<pubDate>Fri, 31 Aug 2012 15:35:25 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=503</guid>
		<description><![CDATA[Since the default SSL certificates that ship with Alfresco&#8217;s Solr integration expired the other week I&#8217;ve been having to fix up my local development installs that I&#8217;d previously configured with Solr. The instructions on the wiki are pretty comprehensive, and together with the text file provided in the Solr integration package provide all the info [...]]]></description>
			<content:encoded><![CDATA[<p>Since the default SSL certificates that ship with Alfresco&#8217;s Solr integration expired the other week I&#8217;ve been having to fix up my local development installs that I&#8217;d previously configured with Solr.</p>
<p>The <a href="https://wiki.alfresco.com/wiki/Alfresco_And_SOLR">instructions</a> on the wiki are pretty comprehensive, and together with the <a href="http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/solr/source/solr/instance/CreateSSLKeystores.txt">text file</a> provided in the Solr integration package provide all the info you need to understand the process of creating your own keys and certificates for local testing.</p>
<p>After I stepped through the complete procedure documented there, with some slight modifications to avoid the interactive prompting, I found I had a set of commands which I could use in order to repeatedly re-generate a set of keys inside each installation directory on my system.</p>
<p>The first section in the following listing could be placed inside your <tt>.bash_profile</tt> file, and this is recommended to ensure that the password values you choose to use are not captured in your command history or in your terminal. The commands after that should be used repeatedly against each Alfresco installation you wish to generate keys and certificates for.</p>
<pre># The subject name of the key used to sign the certificates
REPO_SUBJECT_NAME="/C=GB/ST=UK/L=Maidenhead/O=Alfresco Software Ltd./OU=Unknown/CN=Alfresco Repository"
# The repository server certificate subject name, as specified in tomcat/conf/tomcat-users.xml with roles="repository"
REPO_CERT_DNAME="CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB"
# The SOLR client certificate subject name, as specified in tomcat/conf/tomcat-users.xml with roles="repoclient"
SOLR_CLIENT_CERT_DNAME="CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB"
# The number of days before the certificate expires
CERTIFICATE_VALIDITY=36525
# Keystore password
KEYSTORE_PASSWORD=custompassword
BROWSER_KEYSTORE_PASSWORD=alfresco

openssl genrsa -des3 -passout pass:$KEYSTORE_PASSWORD -out ca.key 1024
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -passin pass:$KEYSTORE_PASSWORD -subj "$REPO_SUBJECT_NAME" -passout pass:$KEYSTORE_PASSWORD

# Generate Alfresco Repository SSL keystores
keytool -genkey -alias 'ssl.repo' -keyalg RSA -keystore ssl.keystore -storetype JCEKS -dname "$REPO_CERT_DNAME" -storepass "$KEYSTORE_PASSWORD" -keypass "$KEYSTORE_PASSWORD"
keytool -keystore ssl.keystore -alias 'ssl.repo' -certreq -file repo.csr -storetype JCEKS -storepass "$KEYSTORE_PASSWORD"
openssl x509 -CA ca.crt -CAkey ca.key -CAcreateserial -req -in repo.csr -out repo.crt -days "$CERTIFICATE_VALIDITY" -passin pass:$KEYSTORE_PASSWORD
keytool -import -alias 'alfresco.ca' -file ca.crt -keystore ssl.keystore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt
keytool -import -alias 'ssl.repo' -file repo.crt -keystore ssl.keystore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt
keytool -importkeystore -srckeystore ssl.keystore -srcstorepass $KEYSTORE_PASSWORD -srcstoretype JCEKS -srcalias 'ssl.repo' -srckeypass $KEYSTORE_PASSWORD -destkeystore browser.p12 -deststoretype pkcs12 -deststorepass $BROWSER_KEYSTORE_PASSWORD -destalias repo -destkeypass $BROWSER_KEYSTORE_PASSWORD
keytool -import -alias alfresco.ca -file ca.crt -keystore ssl.truststore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt

# Generate Alfresco Solr SSL keystores
keytool -genkey -alias 'ssl.repo.client' -keyalg RSA -keystore ssl.repo.client.keystore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -keypass "$KEYSTORE_PASSWORD" -dname "$SOLR_CLIENT_CERT_DNAME"
keytool -keystore ssl.repo.client.keystore -alias 'ssl.repo.client' -certreq -file ssl.repo.client.csr -storetype JCEKS -storepass $KEYSTORE_PASSWORD
openssl x509 -CA ca.crt -CAkey ca.key -CAcreateserial -req -in ssl.repo.client.csr -out ssl.repo.client.crt -days "$CERTIFICATE_VALIDITY" -passin pass:$KEYSTORE_PASSWORD
keytool -import -alias 'alfresco.ca' -file ca.crt -keystore ssl.repo.client.keystore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt
keytool -import -alias 'ssl.repo.client' -file ssl.repo.client.crt -keystore ssl.repo.client.keystore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt
keytool -import -alias 'alfresco.ca' -file ca.crt -keystore ssl.repo.client.truststore -storetype JCEKS -storepass $KEYSTORE_PASSWORD -noprompt

# Copy files
cp ssl.keystore ssl.truststore browser.p12 data/keystore/
cp ssl.repo.client.keystore ssl.repo.client.truststore solr/workspace-SpacesStore/conf
cp ssl.repo.client.keystore ssl.repo.client.truststore solr/archive-SpacesStore/conf

# Remove temporary files
rm repo.csr ca.key ca.crt repo.crt ssl.keystore browser.p12 ssl.truststore ssl.repo.client.csr ssl.repo.client.crt ssl.repo.client.keystore ssl.repo.client.truststore</pre>
<p>Note that this will not update the Alfresco and Solr configuration with the password you choose for the keystores &#8211; you must do this separately in your <tt>alfresco-global.properties</tt> and in the properties file associated with each Solr core, as detailed in the Solr installation guide.</p>
<p>Lastly, this procedure should not be used in any public-facing or production instances, it is intended to be used in development environments only.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/08/31/creating-self-signed-ssl-certificates-for-solr/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Alfresco and ImageMagick on OSX</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/08/02/alfresco-and-imagemagick-on-osx/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/08/02/alfresco-and-imagemagick-on-osx/#comments</comments>
		<pubDate>Thu, 02 Aug 2012 10:57:45 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=499</guid>
		<description><![CDATA[Since I migrated away from Windows on my development machine a couple of months back, I&#8217;ve not looked back. One of the main benefits I&#8217;ve found is being able to build software packages locally, and Homebrew makes that easy. Now I can easily grab the latest version of various dependencies such as MySQL and ImageMagick [...]]]></description>
			<content:encoded><![CDATA[<p>Since I migrated away from Windows on my development machine a couple of months back, I&#8217;ve not looked back. One of the main benefits I&#8217;ve found is being able to build software packages locally, and <a href="http://mxcl.github.com/homebrew/">Homebrew</a> makes that easy. Now I can easily grab the latest version of various dependencies such as MySQL and ImageMagick and install them in seconds, just as if I was using <tt>yum</tt> or <tt>apt-get</tt>.</p>
<p>However, one problem has plagued me since I started using the Homebrew-installed version of ImageMagick in conjunction with my local Alfresco installs, with errors such as this in the logs</p>
<pre> 2012-08-02 10:20:10,547  DEBUG [transform.magick.AbstractImageMagickContentTransformerWorker] [main] org.alfresco.service.cmr.repository.ContentIOException: 07020000 Failed to perform ImageMagick transformation: 
Execution result: 
   os:         Mac OS X
   command:    [/usr/local/bin/convert, /Users/wabson/Development/projects/share-extras-2/software/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_4067880520213204197.gif[0], /Users/wabson/Development/projects/share-extras-2/software/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_7684811633126657147.png]
   succeeded:  true
   exit code:  133
   out:        
   err:        dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libjpeg.8.dylib
 in /System/Libra</pre>
<p>This frustrated me for a while. It happened every time Alfresco tried to call convert in order to effect an image transform &#8211; for instance generating doclib thumbnails &#8211; but running the exact same command at a bash prompt worked fine.</p>
<p>Various internet posts all pointed to the environment in which ImageMagick is run as being the cause for such problems. It seemed the environment variable <tt>DYLD_LIBRARY_PATH</tt> in particular was known to cause problems on OS X, but checking <tt>/etc/profile</tt>, <tt>/etc/bashrc</tt> and the custom <tt>alfresco.sh</tt> script I use to start up Alfresco (included in my <a href="http://blogs.alfresco.com/wp/wabson/alfresco-tomcat-bundles/">Tomcat packages</a>) did not yield any trace of such a variable.</p>
<p>Finally I found a comment in <a href="https://issues.alfresco.com/jira/browse/ALF-13452">ALF-13452</a>, which led me to check the Spring config within the <tt>thirdparty</tt> <a href="https://wiki.alfresco.com/wiki/Alfresco_Subsystems">subsystem</a>, responsible for starting up ImageMagick.</p>
<pre>   &lt;bean id="transformer.worker.ImageMagick"&gt;
      &lt;property name="mimetypeService"&gt;
         &lt;ref bean="mimetypeService" /&gt;
      &lt;/property&gt;
      &lt;property name="executer"&gt;
         &lt;bean name="transformer.ImageMagick.Command"&gt;
            &lt;property name="commandsAndArguments"&gt;
               &lt;map&gt;
                  &lt;entry key=".*"&gt;
                     &lt;list&gt;
                        &lt;value&gt;${img.exe}&lt;/value&gt;
                        &lt;value&gt;${source}&lt;/value&gt;
                        &lt;value&gt;SPLIT:${options}&lt;/value&gt;
                        &lt;value&gt;${target}&lt;/value&gt;
                     &lt;/list&gt;
                  &lt;/entry&gt;
               &lt;/map&gt;
            &lt;/property&gt;
            &lt;property name="processProperties"&gt;
               &lt;map&gt;
                  &lt;entry key="MAGICK_HOME"&gt;
                     &lt;value&gt;${img.root}&lt;/value&gt;
                  &lt;/entry&gt;
                  &lt;entry key="DYLD_LIBRARY_PATH"&gt;
                     &lt;value&gt;${img.dyn}&lt;/value&gt;
                  &lt;/entry&gt;
                  &lt;entry key="LD_LIBRARY_PATH"&gt;
                     &lt;value&gt;${img.dyn}&lt;/value&gt;
                  &lt;/entry&gt;
               &lt;/map&gt;
            &lt;/property&gt;
            &lt;property name="defaultProperties"&gt;
               &lt;props&gt;
                  &lt;prop key="options"&gt;&lt;/prop&gt;
               &lt;/props&gt;
            &lt;/property&gt;
         &lt;/bean&gt;
      &lt;/property&gt;
     ...</pre>
<p>There it was. The subsystem itself was setting up a few environment variables before firing up the external process, and these were defined in <tt>processProperties</tt>. One was the <tt>DYLD_LIBRARY_PATH</tt> variable.</p>
<p>The solution was trivial. I copied the Spring config in <tt>tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform-context.xml</tt> into <tt>tomcat/shared/classes/alfresco/extension/subsystems/thirdparty/default/default/imagemagick-transform-context.xml</tt> as per the subsystems docs on <a href="https://wiki.alfresco.com/wiki/Alfresco_Subsystems#Spring_Beans">overriding beans</a>, and commented out the offending <tt>&lt;entry&gt;</tt> element.</p>
<pre>mkdir -p tomcat/shared/classes/alfresco/extension/subsystems/thirdparty/default/default/
cp tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform-context.xml tomcat/shared/classes/alfresco/extension/subsystems/thirdparty/default/default/
vim tomcat/shared/classes/alfresco/extension/subsystems/thirdparty/default/default/imagemagick-transform-context.xml</pre>
<p>The result &#8211; image conversions now work perfectly in my local dev environment using the Homebrew-installed version of ImageMagick.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/08/02/alfresco-and-imagemagick-on-osx/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Share Extras moving to GitHub</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/07/20/share-extras-moving-to-github/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/07/20/share-extras-moving-to-github/#comments</comments>
		<pubDate>Fri, 20 Jul 2012 15:03:16 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[Share Extras]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=495</guid>
		<description><![CDATA[Cross-posted to the Share Extras Development Group today. Share Extras will be moving to a new platform in the next few weeks. The new platform will be GitHub, with the version control obviously provided by Git instead of Subversion, which is used at present. There are many reasons for moving to Git from Subversion. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><em>Cross-posted to the <a href="http://groups.google.com/group/share-extras-devel">Share Extras Development Group</a> today.</em></p>
<p>Share Extras will be moving to a new platform in the next few weeks. The new platform will be <a href="https://github.com/">GitHub</a>, with the version control obviously provided by Git instead of Subversion, which is used at present.</p>
<p>There are many reasons for moving to Git from Subversion. I&#8217;ve spent a while reviewing the <a href="http://code.google.com/p/share-extras/issues/list">project issue list</a> this week and it&#8217;s clear to me that there are many enhancement requests which may not be appropriate to make in the main Extras code base, or are simply not achievable within the project due to people&#8217;s time constraints.</p>
<p>Git will enable the wider community to fork individual any add-on as they feel the need to. I hope this will lead to more contributions back to the main project and foster greater collaboration (and perhaps a bit of competition?) with others.</p>
<p>Specifically, there is also the need to improve on the localisation of add-ons in a consistent manner, and there are some <a href="http://weblate.org/">great tools</a> available for doing that based on Git.</p>
<p>Whilst I had originally intended to simply migrate to a new Git VCS within Google Code, the frequent downtime and increasingly poor feature set and user interface when compared to other providers has led me to conclude that it is not a viable platform for future development.</p>
<p>In contrast, GitHub supports the notion of projects within an overall organisation much better (I have already registered Share Extras as an <a href="https://github.com/organizations/share-extras">organisation</a>) and has some great options for improving our documentation using cool standards such as <a href="http://daringfireball.net/projects/markdown/">Markdown</a>.</p>
<p>I propose to migrate the current trunk codeline (and perhaps the 1.0 branch should time allow) at the end of August. There are several things that committers need to do before then, in order to help make it a success, such as ensuring that they have a README.md file in all their projects (this will become the main source of documentation, rather than the <a href="http://code.google.com/p/share-extras/wiki/AddOns?tm=6">wiki</a>), and helping to close down any issues that remain open on Google Code (issues will not be migrated over).</p>
<p>As always, if you have any feedback, please let me know. Otherwise I will be in touch with the main committers separately in the coming week or so.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/07/20/share-extras-moving-to-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media Previews is dead, long live Media Viewers</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/07/04/media-previews-is-dead-long-live-media-viewers/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/07/04/media-previews-is-dead-long-live-media-viewers/#comments</comments>
		<pubDate>Wed, 04 Jul 2012 15:04:55 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[share-extras]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=488</guid>
		<description><![CDATA[A while ago I wrote about the newly-extensible Document Preview component in Alfresco Share and how you can use it to customize the out-of-the-box viewers and add your own custom implementations. I mentioned at the end of that post that there were some new examples of custom viewers coming in Share Extras and I&#8217;m excited [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I <a href="http://blogs.alfresco.com/wp/wabson/2012/04/11/share-document-previews-in-alfresco-4/">wrote about</a> the newly-extensible Document Preview component in Alfresco Share and how you can use it to customize the out-of-the-box viewers and add your own custom implementations.</p>
<p>I mentioned at the end of that post that there were some new examples of custom viewers coming in Share Extras and I&#8217;m excited that we&#8217;re now ready to release them on the site.</p>
<p>Peter Löfgren had the great idea of using the pdf.js project to perform direct rendering of document content in the web browser using HTML5. I&#8217;d already started work on some simpler examples of custom viewers, and on refining the Flash audio/video players that Share Extras previously provided for Alfresco 3.3/3.4.</p>
<p>The result is what we&#8217;re calling the <a href="http://code.google.com/p/share-extras/wiki/MediaViewers">Media Viewers add-on</a>. This bundles up a total of six viewer implementations designed to show different ways of implementing custom document views, both with and without Flash.</p>
<ul>
<li><strong>PdfJs</strong> displays documents, presentations and any other file capable of being  transformed to PDF in-line in the web browser using the excellent <a href="http://mozilla.github.com/pdf.js/">pdf.js</a> viewer, which uses the power of HTML5 to remove Share&#8217;s Flash dependency for  document viewing.
<p>The viewer supports a number of features not directly supported by the Flash document previewer, such as a sidebar with thumbnail, outline and search views,  bookmarking of individual pages of a document, and will remember the page  number and zoom level of previous documents that you have viewed.</p>
<p><img src="http://sharextras.org/trunk/Media%20Preview/screenshots/pdfjs-doc.png" alt="PdfJs Viewer" /></li>
<li><strong>FLVPlayer</strong> and <strong>MP3Player</strong> display compatible audio and video files respectively, within the web-browser using the  open source <a href="http://flv-player.net/">FLV Player</a> and <a href="http://flash-mp3-player.net/">MP3 Player</a> media players by <a href="http://www.neolao.com/">neolao</a>. Based on the  content&#8217;s MIME type, the updated component automatically chooses the appropriate  previewer to use.
<p>While similar to the Flash players provided by Share out-of-the-box, these  implementations allow advanced customization of the player via configuration and if <a href="http://ffmpeg.org/">FFmpeg</a> is installed, will fire up a transformation to allow viewing  of non-H264/FLV video and non-MP3 audio. The user is informed when conversion is in progress and the screen automatically updates when the content can be viewed.</li>
<li><strong>Embed</strong> uses an in-line iFrame to embed the content itself directly inside the web page. It is suitable for use with content types that can be viewed  directly within the web browser such as plain text and PDF, with the Chrome or Acrobat plugins installed. Again, this can be used to avoid the use of  the Flash previewer for some clients.</li>
<li><strong>Prettify</strong> allows formatted code, mark-up and other supported text formats to be displayed in directly in the document and uses the <a href="https://code.google.com/p/google-code-prettify/">google-code-prettify</a> project to provide an in-line browser-based view with syntax highlighting.
<p><img src="http://sharextras.org/trunk/Media%20Preview/screenshots/prettify-js.png" alt="Prettify Viewer" /></li>
<li><strong>WebODF</strong> is an EXPERIMENTAL viewer which uses the AGPL-licensed <a href="http://www.webodf.org/">WebODF</a> project to display ODF content directly in the web browser.
<p>WebODF cannot be distributed with the add-in itself, so in order to use it you must also download the latest JAR file from the supporting <a href="https://github.com/wabson/webodf-share/downloads">share-webodf project</a> and install it in the same way as the main media-viewers JAR file.</li>
</ul>
<p>What&#8217;s most exciting is that we&#8217;re building on top of some great projects such as google-code-prettify, WebODF and pdf.js, that are evolving at a fast pace and changing the way that documents are viewed in a browser environment.</p>
<p>There is plenty more information including download links on the main <a href="http://code.google.com/p/share-extras/wiki/MediaViewers">Media Viewers project page</a> on Share Extras. Please try it out, let us know what you think and help us to improve this collection.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/07/04/media-previews-is-dead-long-live-media-viewers/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Share Document Previews in Alfresco 4</title>
		<link>http://blogs.alfresco.com/wp/wabson/2012/04/11/share-document-previews-in-alfresco-4/</link>
		<comments>http://blogs.alfresco.com/wp/wabson/2012/04/11/share-document-previews-in-alfresco-4/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 11:37:57 +0000</pubDate>
		<dc:creator>Will Abson</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[customisation]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://blogs.alfresco.com/wp/wabson/?p=470</guid>
		<description><![CDATA[One of the improvements introduced in Share&#8217;s Document Library as part of Alfresco 4 was the refactoring of the web-preview component, which is responsible for rendering the in-line document views in the Document Details page. These preview capabilities are one of the core strengths of Share, and now these changes allow developers and administrators to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the improvements introduced in Share&#8217;s Document Library as part of Alfresco 4 was the refactoring of the web-preview component, which is responsible for rendering the in-line document views in the Document Details page.</p>
<p>These preview capabilities are one of the core strengths of Share, and now these changes allow developers and administrators to tweak the capability as they need.</p>
<div id="attachment_480" class="wp-caption alignnone" style="width: 638px"><img class="size-full wp-image-480" src="http://blogs.alfresco.com/wp/wabson/files/2012/04/document-details-flash.png" alt="Flash Document Previewer" width="628" height="369" /><p class="wp-caption-text">Web preview component in Alfresco 4 for a PowerPoint Presentation</p></div>
<h3>The Basics</h3>
<p>Let&#8217;s start with a quick overview.</p>
<p>The web-preview component is similar to most other Share components. The page component itself is rendered by a web script, which is responsible for loading some basic information about the document being requested, and outputting this into the markup that then forms part of the overall page.</p>
<p>The output does not render HTML directly, but rather instantiates a client-side component <a href="http://sharextras.org/jsdoc/share/community-4.0.d/symbols/Alfresco.WebPreview.html"><tt>Alfresco.WebPreview</tt></a>, passing over the document metadata as an object literal.</p>
<p>Previously, that was it. The logic to set up the Flash previewer was contained within <tt>Alfresco.WebPreview</tt>, and that was what you got for all documents and images. Anything else that couldn&#8217;t be transformed by the repository to a SWF file would not be previewed.</p>
<h3>What&#8217;s Changed?</h3>
<p>Alfresco 4 changes that. Now, the rendering of content items is separated from <tt>Alfresco.WebPreview</tt> and instead performs the work via a series of plug-ins. The component still takes care of loading the document metadata, setting up the basic screen layout and working out which plug-ins can be used to render the content on-screen. This has several benefits -</p>
<ul>
<li>System administrators can decide which plug-ins should be used under which circumstances, via configuration.</li>
<li>Plug-ins are chained together in the configuration. If one fails, then the other available ones are tried in turn, until one succeeds.</li>
<li>The implementation of the plug-ins by developers does not need to touch any core files. They are tied into the component via configuration alone.</li>
</ul>
<p>What&#8217;s more, Share comes with a number of different plug-ins already present. It&#8217;s likely that you will still see the Flash document previewer for most of the content you look at, but you should notice that by default images are now rendered as real images within the page, and will be automatically resized if they are too big. That&#8217;s because images are now handled by a different plug-in, but you can still use the Flash previewer if you reconfigure the component.</p>
<div id="attachment_482" class="wp-caption alignnone" style="width: 356px"><a href="http://blogs.alfresco.com/wp/wabson/files/2012/04/document-details-image.png"><img class="size-full wp-image-482" src="http://blogs.alfresco.com/wp/wabson/files/2012/04/document-details-image.png" alt="Image Viewer" width="346" height="200" /></a><p class="wp-caption-text">Web preview component in Alfresco 4 for a JPEG image</p></div>
<p>Other previewers are provided for displaying audio and video content using <a href="http://www.osmf.org/strobe_mediaplayback.html">Strobe Media Player</a> or <a href="http://code.google.com/p/flashfox/">FlashFox</a>, plus direct playback of supported formats using the HTML5 <tt>&lt;video&gt;</tt> and <tt>&lt;audio&gt;</tt> tags. Take a look in the directory <tt>components/preview</tt> within the Share webapp and you will see them there. It&#8217;s worth looking at the source code if you&#8217;re thinking of implementing your own custom previewers, as many of them are surprisingly simple.</p>
<h3>Configuring Plug-ins</h3>
<p>The configuration that dictates which plug-ins are used under what circumstances is contained in the web script configuration file <tt>web-preview.get.config.xml</tt>. You can find this in the Share webapp in the directory <tt>WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview</tt> and view it there, <strong>but</strong> if you&#8217;re planning on making any changes you should first copy it into <tt>tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/preview</tt> (you may need to create the directories below <tt>web-extension</tt>).</p>
<p>You should see that the config is expressed as a series of conditions, each of which contains a list of plug-ins to attempt to use. For each condition that matches, each of the plug-ins within it is then added to the list to try to use.</p>
<p>Here&#8217;s an example for MPEG-4 video files</p>
<pre>&lt;condition mimeType="video/mp4" thumbnail="imgpreview"&gt;
    &lt;plugin poster="imgpreview" posterFileSuffix=".png"&gt;StrobeMediaPlayback&lt;/plugin&gt;
    &lt;plugin poster="imgpreview" posterFileSuffix=".png"&gt;FlashFox&lt;/plugin&gt;
    &lt;plugin poster="imgpreview" posterFileSuffix=".png"&gt;Video&lt;/plugin&gt;
 &lt;/condition&gt;</pre>
<p>The <tt>&lt;condition&gt;</tt> element&#8217;s attributes form sub-conditions, which are AND-ed together to give the overall result. In this case, the condition will match when the content being viewed has the MIME type <tt>video/mp4</tt> and the thumbnail with the name <tt>imgpreview</tt> can be generated (note, it may not yet have been generated) via the thumbnail service. Other conditions will only test one of these sub-conditions, but here we test both.</p>
<p>Each of the <tt>&lt;plugin&gt;</tt> elements then provides the name of the plug-in in the element body and any configuration attributes required as element attributes. In this case, each of the plug-ins is being configured to use the <tt>imgpreview</tt> thumbnail as the static &#8216;poster&#8217; image to display in the player before the play button is pressed, and to assume this image is in PNG format. Note, these attributes will be different for each plug-in since they are mapped to the options object on the plug-in implementation.</p>
<p>As an administrator, within this file you can add, remove and re-order plug-ins or conditions as you need, change the conditions or change the configuration that is passed to the plug-ins at instantiation time.</p>
<h3>Implementing Your Own</h3>
<p>It&#8217;s easy to create your own plug-ins to render content in interesting and different ways. A plug-in is implemented as a single JavaScript class, which must meet the following simple criteria</p>
<ul>
<li>The name of  its constructor must be the same as the value used in the <tt>&lt;plugin&gt;</tt> configuration element to tie it into the component, and must be defined as a child property of <tt>Alfresco.WebPreview.prototype.Plugin</tt>. By convention CamelCase is used for the name, e.g. <tt>WebPreviewer</tt>, <tt>FlashFox</tt>, <tt>Image</tt>.</li>
<li>The object prototype must define an object literal named <tt>options</tt> and two functions <tt>report()</tt> and <tt>display()</tt>. See the in-line JSDoc of the out-of-the-box plug-ins for full details of the method signatures and return types required.</li>
</ul>
<p>You will also need to ensure that the client-side file where you define the plug-in object is included in the <tt>&lt;head&gt;</tt> section of the Document Details page, you can do this as an administrator by overriding the <tt>web-preview.get.head.ftl</tt> template, or (better) as a developer by extending the <tt>.head.ftl</tt> template using a customization module applied to the <tt>web-preview.get</tt> web script.</p>
<h3>New Viewers on Share Extras</h3>
<p>Keep an eye out for the upcoming release of the (to-be-renamed) <a href="http://code.google.com/p/share-extras/wiki/MediaPreviews">Media Previews</a> add-on in Share Extras. <a href="http://loftux.se/">Peter</a> has been instrumental in helping to build up some new plug-ins for viewing different types of content that we hope can be used to remove the Flash dependency that still remains in Share for viewing document-based content. They should also provide some further examples of how you can define your own, custom, plug-ins.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.alfresco.com/wp/wabson/2012/04/11/share-document-previews-in-alfresco-4/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
