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.js
file (i.e.multipleDocMode
:vvDefines.multipleDocModes.viewedDocuments
, etc.).
Adding amps
Scripting method
- Build the
snowbound-repo
andsnowbound-share
projects to produce amp files. - Run
update_alfresco.sh
inconnector-alfresco/
to automatically install the amps and restart Alfresco.
Adding amps manually
- Copy the
snowbound-repo-0.1-RC1.amp
in thevirtualviewer
directory to the[alfresco directory]/amps
directory. - Copy the
snowbound-share-0.1-RC1.amp
in thevirtualviewer
directory to the[alfresco directory]/amps_share
directory. - Stop
alfrescoTomcat
andalfrescoPostgreSQL
. - Run
[alfresco directory]/bin/apply_amps -verbose
in the command prompt window. - Start
alfrescoTomcat
andalfrescoPostgreSQL
. - 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-map
file located at:[alfresco directory]\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\mimetype\mimetype-map
.For example, if you were to add a
.dcm
file:<mimetype mimetype="image/x-dicom" display="dcm"> <extension>dcm</extension> </mimetype>
-
Add to the
web-preview.get.config
file 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
.dcm
file 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!