Custom search dashlet for Alfresco Share

Today we rescue some parts of a useful code for a multi-purpose search dashlet for Alfresco Share. We developed it some time ago and some parts are still working in Alfresco 5. The dashlet allows to configure custom filters in user and site panel such as document type, custom type, multiple categories and tags, or/and document mimetype.