[Koha-patches] [PATCH] [SIGNED-OFF 2/2] Bug 5810 revision to fix author search link
Jared Camins-Esakov
jcamins at bywatersolutions.com
Sat Mar 12 20:35:50 CET 2011
From: Jane Wagner <jwagner at ptfs.com>
Signed-off-by: Jane Wagner <jwagner at ptfs.com>
Signed-off-by: Jared Camins-Esakov <jcamins at bywatersolutions.com>
---
.../prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +-
.../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index c96d82b..2b6af2d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -804,7 +804,7 @@
</xsl:choose>
<a>
<xsl:choose>
- <xsl:when test="marc:subfield[@code=9]">
+ <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
index d101723..43f86b0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
@@ -127,7 +127,7 @@
<xsl:value-of select="$str"/>
</a>
</xsl:when>
- <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
+ <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9]) and $UseAuthoritiesForTracings='1'">
<a>
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
<xsl:value-of select="$str"/>
--
1.7.2.3
More information about the Koha-patches
mailing list