Koha:XSLT Edits
From TSAS Library
Enable Awards Search
Makes Award notes (Marc field 586) into a keyword search link in the OPAC. Note that this requires the addition of a nonstandard subfield "b" which holds the year. If that change is not needed/desired, remove lines 9-11 below.
It is a good idea to make a copy of the XSLT file. Information on that here[1].
<xsl:if test="marc:datafield[@tag=586]">
<span class="results_summary awardsnote">
<xsl:if test="marc:datafield[@tag=586]/@ind1=' '">
<span class="label">Awards: </span>
</xsl:if>
<xsl:for-each select="marc:datafield[@tag=586]">
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q="<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></a>
<xsl:if test="marc:subfield[@code='b']">
<span class="separator"><xsl:text>, </xsl:text></span><xsl:value-of select="marc:subfield[@code='b']"/>
</xsl:if>
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
</xsl:for-each>
</span>
</xsl:if>
Excellent overview of XSLT in this context from U of Hartford[2]