Hi, List,
We are trying to add an "adviser" (dc.contributor.adviser) row to the
itemSummaryList. We just copied the "dc.contributor.author" section and changed
the qualifier from "author" to "adviser" (totally 6 places were switched) in
the DIM-Handler xslt file. After rebuilding, the "adviser" line shows up but
displays the "author" value. Is there anything else we need to make changes?
(We also tried to look for the pattern in the itemDetailedlist, but didn't see
how the "adviser" value was extracted.)
Would anybody point out what's missing here? Thanks very much!!
Added section to the DIM-Handler xslt file:
<!-- Adviser row -->
<xsl:when test="$clause = 7 and
(dim:field[@element='contributor'][@qualifier='adviser'] or
dim:field[@element='creator'] or dim:field[@element='contributor'])">
<tr class="ds-table-row {$phase}">
<td><span
class="bold"><i18n:text>xmlui.dri2xhtml.METS-1.0.item-adviser</i18n:text>:</span></td>
<td>
<xsl:choose>
<xsl:when
test="dim:field[@element='contributor'][@qualifier='adviser']">
<xsl:for-each
select="dim:field[@element='contributor'][@qualifier='adviser']">
<span>
<xsl:if test="@authority">
<xsl:attribute
name="class"><xsl:text>ds-dc_contributor_adviser-authority</xsl:text></xsl:attribute>
</xsl:if>
<xsl:copy-of select="node()"/>
</span>
<xsl:if
test="count(following-sibling::dim:field[@element='contributor'][@qualifier='adviser'])
!= 0">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when test="dim:field[@element='creator']">
<xsl:for-each
select="dim:field[@element='creator']">
<xsl:copy-of select="node()"/>
<xsl:if
test="count(following-sibling::dim:field[@element='creator']) != 0">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when
test="dim:field[@element='contributor']">
<xsl:for-each
select="dim:field[@element='contributor']">
<xsl:copy-of select="node()"/>
<xsl:if
test="count(following-sibling::dim:field[@element='contributor']) != 0">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<i18n:text>xmlui.dri2xhtml.METS-1.0.no-author</i18n:text>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<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>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech