Fix for Bug 5175, XSL view doesn't link publisher name to search
Fixes the doubled up display of the publisher.
This patch fixes the bug in both the OPAC and staff client
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c0272a6b66)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
7428c3f833
commit
50c71c4801
|
|
@ -222,16 +222,22 @@
|
|||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary"><span class="label">Publisher: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<a href="/cgi-bin/koha/catalogue/search.pl?q=pb:{marc:subfield[@code='b']}">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcg</xsl:with-param>
|
||||
<xsl:with-param name="codes">acg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
|
||||
|
|
|
|||
|
|
@ -243,10 +243,16 @@
|
|||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary"><span class="label">Publisher: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<a href="/cgi-bin/koha/opac-search.pl?q=pb:{marc:subfield[@code='b']}">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcg</xsl:with-param>
|
||||
<xsl:with-param name="codes">acg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue