Extension:AlfrescoSearch

What can this extension do?
Alfresco Search creates a new SpecialPage in your Wiki that provides a mechanism to search for documents within an Alfresco repository. The returned results are hyperlinks to these documents in your Alfresco repository.

Usage
Alfresco Search can be used to search for documents in any Alfresco instance that has the PHP Library installed which basically provides a PHP API to the Alfresco OpenSearch.

Download instructions
Create a new folder under your MediaWiki extensions directory called AlfrescoSearch. Please cut and paste the code found below and place it in  directory in new files with the names supplied, you should end up creating five files. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Pre-Requisites
This software was tested with MediaWiki 1.15.1 on a Windows based MediaWiki installation. It may or may not work with earlier or later versions, but please test it. It should work on UNIX too, please amend the paths etc. as appropriate. We are running PHP 5.3 and Alfresco Community Edition 3.2.

It requires the following packages:


 * Alfresco PHP library (http://wiki.alfresco.com/wiki/Alfresco_PHP_Library_Installation_Instructions)
 * SimpleForms Extension for MediaWiki (http://www.mediawiki.org/wiki/Extension:Simple_Forms)

Installation
To install this extension:

Edit the file AlfrescoConfig.php which you downloaded from below, change the hostname to match the host for your Alfresco installation. (Note: localhost won't work even if MediaWiki and Alfresco are on the same server - otherwise when a user runs the search it will interpret this as localhost on their machine!). Also edit the username and password in this file. We created a mediawiki user in Alfresco to make things simpler and restrict what the user can do.

Add the following to LocalSettings.php:

Upload an Alfresco logo (25x24) to your wiki, then comment out line 82 in AlfrescoSearch_body.php and uncomment line 80. Change the image name to match what you uploaded. Good luck :)

Testing
Open 'yourwikiURL'/index.php?title=Special:AlfrescoSearch, this should load the search page. Try it out. If this link doesn't work, at the very least you should a link 'Alfresco Search' when you go to 'Special Pages' for your wiki.