Dear All,

Hi everyone, we are using DSpace 1.7.1 and mirage as our theme. I  want to
customise the DC metadata fields to show in the default simple item view. I
edited item-view.xsl and for testing purposes I add this line:
          <!-- Publisher row -->
          <xsl:when test="$clause = 7 and (dim:field[@element='publisher'
and not(@qualifier)])">
                <div class="simple-item-view-other">
                    <h3
class="bold"><i18n:text>xmlui.dri2xhtml.METS-1.0.item-publisher</i18n:text>:</h3>
                    <div>
                    <xsl:if test="count(dim:field[@element='publisher' and
not(@qualifier)]) &gt; 1 and not(count(dim:field[@element='publisher' and
not(@qualifier)]) &gt; 1)">
                        <div class="spacer">&#160;</div>
                    </xsl:if>
                    <xsl:for-each select="dim:field[@element='publisher' and
not(@qualifier)]">
                        <xsl:copy-of select="./node()"/>
                        <xsl:if
test="count(following-sibling::dim:field[@element='publisher' and
not(@qualifier)]) != 0">
                            <div class="spacer">&#160;</div>
                        </xsl:if>
                       </xsl:for-each>
                       <xsl:if test="count(dim:field[@element='publisher'
and not(@qualifier)]) &gt; 1">
                           <div class="spacer">&#160;</div>
                    </xsl:if>
                    </div>
                </div>
              <xsl:call-template name="itemSummaryView-DIM-fields">
                <xsl:with-param name="clause" select="($clause + 1)"/>
                <xsl:with-param name="phase" select="$otherPhase"/>
              </xsl:call-template>
          </xsl:when>
 and then below this line:
             <!-- IMPORTANT: This test should be updated if clauses are
added! -->
            <xsl:if test="$clause &lt; *7*"> ,
I change 7 into 8. Restarted Tomcat and upload new items. I found out that
the additional field that I inserted in item-view.xsl only shows during the
submission process but not after the item has been approved and archived,
also it didn't show in older items before I edited item-view.xsl. I tried to
edit both item-view.xsl from
\webapps\xmlui\themes\Mirage\lib\xsl\aspect\artifactbrowser and
\webapps\xmlui\themes\dri2xhtml-alt\aspect\artifactbrowser and still the
field doesn't show up. Please help. Thanks in advance.


Best regards,
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to