Lines 22-27
Link Here
|
22 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
22 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
23 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
23 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
24 |
<xsl:variable name="ShowISBD" select="marc:sysprefs/marc:syspref[@name='viewISBD']"/> |
24 |
<xsl:variable name="ShowISBD" select="marc:sysprefs/marc:syspref[@name='viewISBD']"/> |
|
|
25 |
|
26 |
<xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable> |
27 |
<xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/> |
25 |
<xsl:variable name="leader" select="marc:leader"/> |
28 |
<xsl:variable name="leader" select="marc:leader"/> |
26 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
29 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
27 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
30 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
Lines 128-134
Link Here
|
128 |
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]"> |
131 |
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]"> |
129 |
<a> |
132 |
<a> |
130 |
<xsl:choose> |
133 |
<xsl:choose> |
131 |
<xsl:when test="marc:subfield[@code=9]"> |
134 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
132 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
135 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
133 |
</xsl:when> |
136 |
</xsl:when> |
134 |
<xsl:otherwise> |
137 |
<xsl:otherwise> |
Lines 143-149
Link Here
|
143 |
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]"> |
146 |
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]"> |
144 |
<a> |
147 |
<a> |
145 |
<xsl:choose> |
148 |
<xsl:choose> |
146 |
<xsl:when test="marc:subfield[@code=9]"> |
149 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
147 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
150 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
148 |
</xsl:when> |
151 |
</xsl:when> |
149 |
<xsl:otherwise> |
152 |
<xsl:otherwise> |
Lines 165-171
Link Here
|
165 |
</xsl:choose> |
168 |
</xsl:choose> |
166 |
<a> |
169 |
<a> |
167 |
<xsl:choose> |
170 |
<xsl:choose> |
168 |
<xsl:when test="marc:subfield[@code=9]"> |
171 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
169 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
172 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
170 |
</xsl:when> |
173 |
</xsl:when> |
171 |
<xsl:otherwise> |
174 |
<xsl:otherwise> |
Lines 479-489
Link Here
|
479 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
482 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
480 |
<a> |
483 |
<a> |
481 |
<xsl:choose> |
484 |
<xsl:choose> |
482 |
<xsl:when test="marc:subfield[@code=9]"> |
485 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
483 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
486 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
484 |
</xsl:when> |
487 |
</xsl:when> |
485 |
<xsl:otherwise> |
488 |
<xsl:otherwise> |
486 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
489 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
487 |
</xsl:otherwise> |
490 |
</xsl:otherwise> |
488 |
</xsl:choose> |
491 |
</xsl:choose> |
489 |
<xsl:call-template name="chopPunctuation"> |
492 |
<xsl:call-template name="chopPunctuation"> |
490 |
- |
|
|