This page describes how to add a button to launch Weasis from the dcm4chee web interface.

Integrate Weasis into dcm4chee 2.15.0 in 5 minutes

dcm4chee-web.war is only for dcm4chee 2.15.0 (for other versions see Rebuild dcm4chee-web from any version→)

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(*)

Build dcm4chee-web 2.15.0

Prerequisites

  1. Subversion (SVN), one of the following client:
  2. JDK 5 or higher (Sun or OpenJDK)
  3. Ant 1.6 or higher

Getting the Source

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://dcm4che.svn.sourceforge.net/svnroot/dcm4che/weasis/weasis_dcm4chee/trunk weasis-dcm4chee

This command will copy the current development code (the "trunk") into a local directory named weasis-dcm4chee.

Note: Sources can also be browsed online

Building dcm4chee-web.war

cd weasis-dcm4chee
ant dist

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(*)

Rebuild dcm4chee-web from any version (Draft)

1. Make a project to rebuild dcm4chee-web

2. Replace in maverick.xml:

<controller class="org.dcm4chex.archive.web.maverick.FolderSubmitCtrl" />
by
<controller class="org.dcm4chex.archive.web.maverick.FolderSubmitCtrl2" />

3. Add text for Weasis button

4. Modify dcm4chee-web/folder-tpl.xsl

<xsl:param name="folder.view" select="'false'" />*

         <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 &lt;= 0">
                         <xsl:attribute name="disabled">disabled </xsl:attribute>
                     </xsl:if>
                 </input>
             </td>
         </xsl:if>

5. Rebuild WAR with "ant dist" and get dcm4chee-web.war in dist folder

6. 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(*)

7. Place the dcm4chee-web.war and the weasis.war (see Building Weasis) to the deploy folder of dcm4chee