On Thu, Jun 28, 2012 at 9:23 AM, Webshet, Sisay (ILRI)
<[email protected]> wrote:
> Sorry I was asking you wrong Question.I want to have an author field
> clickable to an items of an author at item page
> http://cgspace.cgiar.org/handle/10568/5405
Yes, that's what I was answering. Author links on the item summary page.
1) copy this template to the stylesheet of your theme:
<xsl:template match="dim:dim" mode="itemSummaryView-DIM">
2) change the code generating the author row to this:
<!-- Author(s) row -->
<xsl:when test="$clause = 2 and
(dim:field[@element='contributor'][@qualifier='author'])">
<tr class="simple-item-view-other">
<td
class="metadataFieldLabel"><i18n:text>xmlui.dri2xhtml.METS-1.0.item-author</i18n:text>:</td>
<td class="simple-item-view-other">
<xsl:for-each
select="dim:field[@element='contributor'][@qualifier='author']">
<a>
<xsl:attribute name="href">
<xsl:text>/browse?type=author&value=</xsl:text><xsl:copy-of
select="./node()"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</a>
<xsl:if
test="count(following-sibling::dim:field[@element='contributor'][@qualifier='author'])
!= 0">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:for-each>
</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:with-param name="sourceDocument" select="$sourceDocument"/>
</xsl:call-template>
</xsl:when>
Regards,
~~helix84
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech