Lines 460-478
Link Here
|
460 |
<xsl:template name="tag_subject"> |
460 |
<xsl:template name="tag_subject"> |
461 |
<xsl:param name="tag" /> |
461 |
<xsl:param name="tag" /> |
462 |
<xsl:param name="label" /> |
462 |
<xsl:param name="label" /> |
463 |
<xsl:param name="spanclass" /> |
463 |
<xsl:param name="spanclass"/> |
464 |
<xsl:if test="marc:datafield[@tag=$tag]"> |
464 |
<xsl:if test="marc:datafield[@tag=$tag]"> |
465 |
<span class="results_summary subjects {$spanclass}"> |
465 |
<span class="results_summary subjects {$spanclass}"> |
466 |
<span class="label"> |
466 |
<span class="label"> |
467 |
<xsl:value-of select="$label"/> |
467 |
<xsl:value-of select="$label"/> |
468 |
<xsl:text>: </xsl:text> |
468 |
<xsl:text>: </xsl:text> |
469 |
</span> |
469 |
</span> |
470 |
<span class="value"> |
470 |
<xsl:for-each select="marc:datafield[@tag=$tag]"> |
471 |
<xsl:for-each select="marc:datafield[@tag=$tag]"> |
471 |
<a> |
472 |
<xsl:call-template name="tag_onesubject"> |
472 |
<xsl:choose> |
|
|
473 |
<xsl:when test="marc:subfield[@code=9]"> |
474 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute> |
475 |
</xsl:when> |
476 |
<xsl:otherwise> |
477 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
478 |
</xsl:otherwise> |
479 |
</xsl:choose> |
480 |
<xsl:call-template name="chopPunctuation"> |
481 |
<xsl:with-param name="chopString"> |
482 |
<xsl:call-template name="subfieldSelect"> |
483 |
<xsl:with-param name="codes">abcdjptvxyz</xsl:with-param> |
484 |
<xsl:with-param name="subdivCodes">jpxyz</xsl:with-param> |
485 |
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param> |
486 |
</xsl:call-template> |
487 |
</xsl:with-param> |
473 |
</xsl:call-template> |
488 |
</xsl:call-template> |
474 |
</xsl:for-each> |
489 |
</a> |
475 |
</span> |
490 |
<xsl:if test="not (position()=last())"> |
|
|
491 |
<xsl:text> | </xsl:text> |
492 |
</xsl:if> |
493 |
</xsl:for-each> |
476 |
</span> |
494 |
</span> |
477 |
</xsl:if> |
495 |
</xsl:if> |
478 |
</xsl:template> |
496 |
</xsl:template> |
479 |
- |
|
|