Skip to content
Cesar Capillas edited this page Jul 1, 2017 · 10 revisions

Alfresco addon for online edition with Libreoffice

Alfresco Share addon for online edition by Zylk provides webdav links for online edition for Office and MS-Office mimetypes.

Tested on

  • Alfresco 4.x and 5.x (tested with 4.2.x CE, 4.1.x EE, 4.2.x EE, 5.0.x CE, 5.0.x EE).
  • Any modern browser (most tested in last versions of Firefox and Chrome - also IE).
  • Libreoffice 4.0.4 - 4.2.8.2 - 5.1

Video demo

Installation of the addon in Alfresco

To install the addon you just need to copy the jar file in the $TOMCAT_HOME/shared/lib directory, and restart alfresco service.

Registering the dav protocol in Linux

Other possibilities are related to register the url scheme at system level. For example, in Linux (Ubuntu 14.04):

Create file /usr/share/applications/libreoffice-alf.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=LibreOffice for Alfresco
GenericName=LibreOffice for Alfresco
Comment=Online Editing in Alfresco via webdav
Icon=libreoffice-writer
TryExec=soffice Exec=soffice %U 
Terminal=false 
Type=Application 
Categories=Office;
MimeType=x-scheme-handler/davs;x-scheme-handler/dav;x-scheme-handler/vnd.sun.star.webdavs;x-scheme-handler/vnd.sun.star.webdav

In /usr/share/applications/mimeinfo.cache add the following lines,

x-scheme-handler/davs=libreoffice-alf.desktop; 
x-scheme-handler/dav=libreoffice-alf.desktop;
x-scheme-handler/vnd.sun.star.webdavs=libreoffice-alf.desktop; 
x-scheme-handler/vnd.sun.star.webdav=libreoffice-alf.desktop;

And finally,

$ sudo update-desktop-database

For this, you need admin credentials. Here I explain how to do it, for a local user:

http://www.zylk.net/es/web/guest/web-2-0/blog/-/blogs/online-edition-with-libreoffice-in-alfresco-5

Registering the dav protocol in Windows

In Windows, create a .reg file and execute it. This allows to register dav:// and davs:// protocol in Windows.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dav] 
@="URL:loffice Protocol" 
"URL Protocol"=""
[HKEY_CLASSES_ROOT\dav\DefaultIcon]
@="soffice.exe,1" 
[HKEY_CLASSES_ROOT\dav\shell] 
[HKEY_CLASSES_ROOT\dav\shell\open] 
[HKEY_CLASSES_ROOT\dav\shell\open\command] 
@="\"C:\Program Files\OpenOffice.org 3\program\soffice.exe\" \"%1\""

[HKEY_CLASSES_ROOT\davs] 
@="URL:loffice Protocol" 
"URL Protocol"="" 
[HKEY_CLASSES_ROOT\davs\DefaultIcon] 
@="soffice.exe,1" 
[HKEY_CLASSES_ROOT\davs\shell] 
[HKEY_CLASSES_ROOT\davs\shell\open] 
[HKEY_CLASSES_ROOT\davs\shell\open\command] 
@="\"C:\Program Files\OpenOffice.org 3\program\soffice.exe\" \"%1\""

[HKEY_CLASSES_ROOT\vnd.sun.star.webdav] 
@="URL:loffice Protocol" 
"URL Protocol"=""
[HKEY_CLASSES_ROOT\vnd.sun.star.webdav\DefaultIcon]
@="soffice.exe,1" 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdav\shell] 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdav\shell\open] 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdav\shell\open\command] 
@="\"C:\Program Files\LibreOffice 5\program\soffice.exe\" \"%1\""

[HKEY_CLASSES_ROOT\vnd.sun.star.webdavs] 
@="URL:loffice Protocol" 
"URL Protocol"=""
[HKEY_CLASSES_ROOT\vnd.sun.star.webdavs\DefaultIcon]
@="soffice.exe,1" 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdavs\shell] 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdavs\shell\open] 
[HKEY_CLASSES_ROOT\vnd.sun.star.webdavs\shell\open\command] 
@="\"C:\Program Files\LibreOffice 5\program\soffice.exe\" \"%1\""

You can find a reg file in Releases page.

Known issues of Webdav protocol in Windows XX

Software Update for Web Folders (KB907306) (for Win XP, Win Vista and Win 7).

Allow Basic Auth in Windows 7 (in Windows Registry)

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Webclient\Parameters\BasicAuthLevel --> Type: DWORD Value: 2 
 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Internet\BasicAuthLevel --> DWORD y Value: 2

MS Office 20XX setup (in Windows registry)

Links:

Downloads:

Note: For Libreoffice 5.1, use 0.3 release, while for Libreoffice 4.x, use th 0.2 one.