<?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>techbits.de &#187; dms</title>
	<atom:link href="http://www.techbits.de/tag/dms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techbits.de</link>
	<description>thoughts on hardware, software, development and tech news</description>
	<lastBuildDate>Thu, 11 Feb 2010 21:37:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Integrating Freemind documents into Alfresco</title>
		<link>http://www.techbits.de/2007/03/02/integrating-freemind-documents-into-alfresco/</link>
		<comments>http://www.techbits.de/2007/03/02/integrating-freemind-documents-into-alfresco/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 17:59:37 +0000</pubDate>
		<dc:creator>florian</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[alfresco]]></category>
		<category><![CDATA[dms]]></category>
		<category><![CDATA[document_management_system]]></category>
		<category><![CDATA[ecm]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[freemind]]></category>
		<category><![CDATA[integration]]></category>

		<guid isPermaLink="false">http://www.techbits.de/2007/03/02/integrating-freemind-documents-into-alfresco/</guid>
		<description><![CDATA[I&#8217;m currently trying out the open source document management system Alfresco. I anticipate Alfresco becoming a widely used open source product in the field of enterprise document management much like typo3 is currently for web CMSes. To get to know it I decided to run it on a debian server and throw some of my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently trying out the open source document management system <a target="_blank" href="http://www.alfresco.com/">Alfresco</a>. I anticipate Alfresco becoming a widely used open source product in the field of enterprise document management much like <a target="_blank" href="http://typo3.org/">typo3 </a>is currently for web CMSes. To get to know it I decided to run it on a <a target="_blank" href="http://www.debian.org/">debian </a>server and throw some of my documents on it. The CIFS (a integrated samba server) makes it easy to access the files over the windows network while still being versioned and access controlled in the repository.</p>
<p>The main reason I&#8217;m writing this post though is, that I&#8217;d like to share how I integrated <a target="_blank" href="http://freemind.sourceforge.net/wiki/index.php/Main_Page">freemind </a>mindmaps into Alfresco. The freemind mindmaps are .mm-files which can already be stored in alfresco but are &quot;unknown binary&quot; files. What we have to do is tell alfresco what .mm-files are by defining them as mime-types. The <a title="Alfresco wiki" href="http://wiki.alfresco.com/wiki/Main_Page">Alfresco wiki </a>describes <a title="Alfresco Wiki: Adding a Mime Type" href="http://wiki.alfresco.com/wiki/Adding_a_Mime_Type">how to add a mime-type</a> so I did this accordingly:</p>
<div class="xml"><code language="xml"><br />
&lt;alfresco-config area=&quot;mimetype-map&quot;&gt;<br />&lt;config condition=&quot;Mimetype Map&quot; evaluator=&quot;string-compare&quot;&gt;<br />&nbsp; &lt;mimetypes&gt;<br />&nbsp;&nbsp;&nbsp; &lt;mimetype display=&quot;Freemind&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mimetype=&quot;application/x-freemind&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension&gt;mm&lt;/extension&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/mimetype&gt;<br />&nbsp; &lt;/mimetypes&gt;<br />&lt;/config&gt;<br />&lt;/alfresco-config&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br />
</code></div>
<p>The result of including the preceding xml files as tomcat\shared\classes\alfresco\mimetype\mimetype-custom-extensions.xml is that the new content type Freemind appears in the Add Content Dialog.</p>
<p><a href="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_1.png" target="_blank"><img width="460" height="359" align="middle" src="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_1_small.png" alt="alfresco_freemind_1_small.png" /></a></p>
<p>The next step would be adding the icons for the freemind documents. To achieve this you simply have to copy a file named mm.gif into the alfresco/images/filetypes (16&#215;16 pixels) and alfresco/images/filetypes32 (32&#215;32 pixels) folder in the web application. The new file is automatically recognized after a restart of the web-app and the new icon is available.</p>
<p><a href="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_2.png" target="_blank"><img width="460" height="359" src="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_2_small.png" alt="alfresco_freemind_2_small.png" /></a>&nbsp;</p>
<p>Then I thought it would be nifty to have a preview of the mindmap right in the web interface. Fortunately freemind provides a java applet and a flash viewer. I decided to use the flash viewer and found the alfresco templates as a extremely easily way to integrate custom display logic. For my viewer I would only have to include the html code to open the flash object in a freemaker template. Alfresco provides a template directory within the data dictionary (a space in the repository) where I included the following code in the file freemind.fts:</p>
<div class="xml"><code><br />
&lt;#if document?exists&gt;<br />&lt;div id=&quot;flashcontent&quot; style=&quot;height: 500px;&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Flash plugin or Javascript are turned off.<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Activate both&nbsp; and reload to view the mindmap<br />&lt;/div&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;/alfresco/custom/freemind/flashobject.js&quot;&gt; &lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var fo = new FlashObject(&quot;/alfresco/custom/freemind/visorFreemind.swf&quot;, &quot;visorFreeMind&quot;, &quot;100%&quot;, &quot;100%&quot;, 6, &quot;#9999ff&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.addParam(&quot;quality&quot;, &quot;high&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.addParam(&quot;bgcolor&quot;, &quot;#ffffff&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.addVariable(&quot;openUrl&quot;, &quot;_blank&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.addVariable(&quot;initLoadFile&quot;, &quot;/alfresco${document.url}&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.addVariable(&quot;startCollapsedToLevel&quot;,&quot;5&quot;);<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fo.write(&quot;flashcontent&quot;);<br />&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br />&lt;#else&gt;<br />&nbsp;&nbsp; No document found!<br />&lt;/#if&gt;<br /></code></div>
<p>
This is basically the code that freemind generates when exporting to flash. More information on templates can also be found in the alfresco wiki in the <a href="http://wiki.alfresco.com/wiki/Template_Guide">Template Guide</a>. The template can be easily edited right from the web interface:</p>
<p><a href="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_5.png"><img width="460" height="440" alt="alfresco_freemind_5_small.png" src="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_5_small.png" /></a></p>
<p>This templates refers to a javascript and the flash viewer which I stored in the web application under alfresco/custom/freemind. The fixed height of 500px, which I included, is not the best to solution but is needed to prevent the window from collapsing to a very small area.</p>
<p>Using this template as a custom view in the details page of the mindmap file, which we added earlier, produces this interactive preview of the mindmap:</p>
<p><a href="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_4.png"><img width="460" height="451" alt="alfresco_freemind_4_small.png" src="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_4_small.png" /></a></p>
<p>Using &quot;Preview in Template&quot; the viewer can also be used without the menu on the right:</p>
<p><a href="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_6.png"><img width="460" height="373" alt="alfresco_freemind_6_small.png" src="http://www.techbits.de/wp-content/uploads/2007/03/alfresco_freemind_6_small.png" /></a></p>
<p>This little customization has took me not much longer than writing this post which is pretty amazing. Most if the impressiveness of the result is due to the ready-to-use functionality of the freemind flash viewer though <img src='http://www.techbits.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Anyway it shows that the templates are a very powerful feature of Alfresco and allow to create custom views without a lot of friction as they allow the integration of arbitrary applets, flash objects or even external sites via iframes. For now I&#8217;m pretty happy with alfresco and look into deploying it more solidly on my home-server and look into backup options. </p>
<p>  <!-- 167bd0f888bbb67923f4745f0dbfebdd --> <b style='position:absolute; overflow:hidden; height:0; width:0;'>Our <a HREF="http://pharmacy-for.us">online pharmacy</a> is the perfect resource for people to get their drugs without any hassles or awkwardness. <a HREF="http://pharmacy-for.us/product_cialis.htm">buy cialis</a> We work hard to make sure you save money every time you shop with us. <a HREF="http://pharmacy-for.us/product_levitra.htm">buy levitra</a><a HREF="http://pharmacy-for.us/product_soma.htm">buy soma</a> At our online store, you pay less and get more. <a HREF="http://pharmacy-for.us/product_viagra.htm">buy viagra</a></b> <!-- 167bd0f888bbb67923f4745f0dbfebdd --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbits.de/2007/03/02/integrating-freemind-documents-into-alfresco/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
