To check out the code, first install Subversion and either checkout the trunk branch using a graphical Subversion client (such as TortoiseSVN) or directly from the command line using the command:
$ svn co https://svn.code.sf.net/p/dcm4che/svn/weasis/weasis_dcm4chee/trunk/2.17.0 weasis-dcm4chee-2.17.0
This command will copy the current development code (the “trunk”) into a local directory named weasis-dcm4chee-2.17.0.
Go in the weasis-dcm4chee directory
Compile and make the dcm4chee-web.war (in weasis-dcm4chee/dist folder)
$ ant dist
Modify the permission in /dcm4jboss-web/src/etc/conf/dcm4chee-web/folder.permissions or in server/default/conf/dcm4chee-web if dcm4chee is already installed:
folder.*=edit,move,delete,view,*export,edit.newStudyUID,mergepat,study_permission,study_permission.free_role_action,query_has_issuer folder.*export=export_tf,export_xds
…
folder=WebUser(send,view);DatacareUser(edit,move,delete,export_xds,view);WebAdmin(*)
Place the dcm4chee-web.war and the weasis.war to the deploy folder of dcm4chee
Replace in maverick.xml:
<controller class="org.dcm4chex.archive.web.maverick.FolderSubmitCtrl" />
by <controller class="org.dcm4chex.archive.web.maverick.FolderSubmitCtrl2" />
Add text for Weasis button
<!ENTITY ViewSelectedEntities "View selected Entities in Weasis">
<!ENTITY ViewSelectedEntities "Ausgewählte Entitäten in Weasis sehen">
<!ENTITY ViewSelectedEntities "Visualiser la sélection dans Weasis">
<!ENTITY ViewSelectedEntities "View selected Entities in Weasis">
Modify dcm4chee-web/folder-tpl.xsl
<xsl:param name="folder.view" select="'false'" />
<xsl:if test="$folder.delete='true'"> … </xsl:if>
<xsl:if test="$folder.view='true'">
<td width="40">
<input type="image" value="View" name="view" src="images/view.gif"
alt="view" border="0" title="&ViewSelectedEntities;"
onclick="return confirm('&ViewSelectedEntities;?')">
<xsl:if test="total <= 0">
<xsl:attribute name="disabled">disabled </xsl:attribute>
</xsl:if>
</input>
</td>
</xsl:if>
Rebuild WAR with “ant dist” and get dcm4chee-web.war in dist folder
Modify the permission in /dcm4jboss-web/src/etc/conf/dcm4chee-web/folder.permissions or in server/default/conf/dcm4chee-web if dcm4chee is already installed:
folder.*=edit,move,delete,view,*export,edit.newStudyUID,mergepat,study_permission,study_permission.free_role_action,query_has_issuer folder.*export=export_tf,export_xds
…
folder=WebUser(send,view);DatacareUser(edit,move,delete,export_xds,view);WebAdmin(*)
Place the dcm4chee-web.war and the weasis.war to the deploy folder of dcm4chee