Alfresco Connector configuration
In order to properly configure the Alfresco Connector for PrizmDoc® for Java, you will want to configure/add appropriate amp files and/or mime types for your specific environment.
Note: Alfresco has currently only been tested to work with viewedDocuments mode in the
config.jsfile (i.e.multipleDocMode:vvDefines.multipleDocModes.viewedDocuments, etc.).
Adding amps
Scripting method
- Build the
snowbound-repoandsnowbound-shareprojects to produce amp files. - Run
update_alfresco.shinconnector-alfresco/to automatically install the amps and restart Alfresco.
Adding amps manually
- Copy the
snowbound-repo-0.1-RC1.ampin thevirtualviewerdirectory to the[alfresco directory]/ampsdirectory. - Copy the
snowbound-share-0.1-RC1.ampin thevirtualviewerdirectory to the[alfresco directory]/amps_sharedirectory. - Stop
alfrescoTomcatandalfrescoPostgreSQL. - Run
[alfresco directory]/bin/apply_amps -verbosein the command prompt window. - Start
alfrescoTomcatandalfrescoPostgreSQL. - Open Afresco url (i.e.
localhost:8080/share) in the browser and test to see if you can load a TIFF image in the Virtual Viewer.
Note: Please check below for information about adding mime types or changing Alfresco to filter annotations from “All” filter.
Add new mime types to Alfresco
To add a new mime type:
-
Add to the
mimetype-mapfile located at:[alfresco directory]\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\mimetype\mimetype-map.For example, if you were to add a
.dcmfile:<mimetype mimetype="image/x-dicom" display="dcm"> <extension>dcm</extension> </mimetype> -
Add to the
web-preview.get.configfile located at:[alfresco directory]\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\preview\web-preview.get.config.For example, continuing with our
.dcmfile example:<condition mimeType="image/x-dicom"> <plugin>SnowboundVirtualViewer</plugin> </condition> -
Once complete, restart the Java web application server.
Have questions, corrections, or concerns about this topic? Please let us know!