Bug 5810 revision to fix author search link github/bug_5810 origin/new/enh/bug_5810
authorJane Wagner <jwagner@ptfs.com>
Sat, 12 Mar 2011 19:35:50 +0000 (14:35 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 13 Mar 2011 02:03:06 +0000 (15:03 +1300)
Signed-off-by: Jane Wagner <jwagner@ptfs.com>
Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl

index c96d82b..2b6af2d 100644 (file)
         </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>
index d101723..43f86b0 100644 (file)
                                 <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"/>