|
Lines 7-13
Link Here
|
| 7 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
7 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
| 8 |
xmlns:items="http://www.koha-community.org/items" |
8 |
xmlns:items="http://www.koha-community.org/items" |
| 9 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
9 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 10 |
exclude-result-prefixes="marc items"> |
10 |
xmlns:str="http://exslt.org/strings" |
|
|
11 |
exclude-result-prefixes="marc items str"> |
| 11 |
<xsl:import href="NORMARCslimUtils.xsl"/> |
12 |
<xsl:import href="NORMARCslimUtils.xsl"/> |
| 12 |
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> |
13 |
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> |
| 13 |
<xsl:template match="/"> |
14 |
<xsl:template match="/"> |
|
Lines 108-114
Link Here
|
| 108 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
109 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
| 109 |
</xsl:when> |
110 |
</xsl:when> |
| 110 |
<xsl:otherwise> |
111 |
<xsl:otherwise> |
| 111 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
112 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
| 112 |
</xsl:otherwise> |
113 |
</xsl:otherwise> |
| 113 |
</xsl:choose> |
114 |
</xsl:choose> |
| 114 |
<xsl:call-template name="nameABCDQ"/></a> |
115 |
<xsl:call-template name="nameABCDQ"/></a> |
|
Lines 123-129
Link Here
|
| 123 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
124 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
| 124 |
</xsl:when> |
125 |
</xsl:when> |
| 125 |
<xsl:otherwise> |
126 |
<xsl:otherwise> |
| 126 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
127 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
| 127 |
</xsl:otherwise> |
128 |
</xsl:otherwise> |
| 128 |
</xsl:choose> |
129 |
</xsl:choose> |
| 129 |
<xsl:call-template name="nameABCDN"/></a> |
130 |
<xsl:call-template name="nameABCDN"/></a> |
|
Lines 137-143
Link Here
|
| 137 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
138 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
| 138 |
</xsl:when> |
139 |
</xsl:when> |
| 139 |
<xsl:otherwise> |
140 |
<xsl:otherwise> |
| 140 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
141 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
| 141 |
</xsl:otherwise> |
142 |
</xsl:otherwise> |
| 142 |
</xsl:choose> |
143 |
</xsl:choose> |
| 143 |
<xsl:call-template name="nameACDEQ"/></a> |
144 |
<xsl:call-template name="nameACDEQ"/></a> |
|
Lines 170-177
Link Here
|
| 170 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
171 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
| 171 |
<span class="results_summary"><span class="label">Series: </span> |
172 |
<span class="results_summary"><span class="label">Series: </span> |
| 172 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
173 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
| 173 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}"> |
174 |
<a> |
| 174 |
<xsl:call-template name="chopPunctuation"> |
175 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
|
|
176 |
<xsl:call-template name="chopPunctuation"> |
| 175 |
<xsl:with-param name="chopString"> |
177 |
<xsl:with-param name="chopString"> |
| 176 |
<xsl:call-template name="subfieldSelect"> |
178 |
<xsl:call-template name="subfieldSelect"> |
| 177 |
<xsl:with-param name="codes">av</xsl:with-param> |
179 |
<xsl:with-param name="codes">av</xsl:with-param> |
|
Lines 184-190
Link Here
|
| 184 |
</xsl:for-each> |
186 |
</xsl:for-each> |
| 185 |
|
187 |
|
| 186 |
<xsl:for-each select="marc:datafield[@tag=490][@ind1=0]"> |
188 |
<xsl:for-each select="marc:datafield[@tag=490][@ind1=0]"> |
| 187 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}"> |
189 |
<a> |
|
|
190 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute> |
| 188 |
<xsl:call-template name="chopPunctuation"> |
191 |
<xsl:call-template name="chopPunctuation"> |
| 189 |
<xsl:with-param name="chopString"> |
192 |
<xsl:with-param name="chopString"> |
| 190 |
<xsl:call-template name="subfieldSelect"> |
193 |
<xsl:call-template name="subfieldSelect"> |
|
Lines 205-214
Link Here
|
| 205 |
<a> |
208 |
<a> |
| 206 |
<xsl:choose> |
209 |
<xsl:choose> |
| 207 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
210 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
| 208 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute> |
211 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute> |
| 209 |
</xsl:when> |
212 |
</xsl:when> |
| 210 |
<xsl:otherwise> |
213 |
<xsl:otherwise> |
| 211 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute> |
214 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute> |
| 212 |
</xsl:otherwise> |
215 |
</xsl:otherwise> |
| 213 |
</xsl:choose> |
216 |
</xsl:choose> |
| 214 |
<xsl:text>Show analytics</xsl:text> |
217 |
<xsl:text>Show analytics</xsl:text> |
|
Lines 250-256
Link Here
|
| 250 |
</a> |
253 |
</a> |
| 251 |
</xsl:when> |
254 |
</xsl:when> |
| 252 |
<xsl:otherwise> |
255 |
<xsl:otherwise> |
| 253 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute> |
256 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute> |
| 254 |
<xsl:value-of select="$f773"/> |
257 |
<xsl:value-of select="$f773"/> |
| 255 |
</a> |
258 |
</a> |
| 256 |
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if> |
259 |
<xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if> |
|
Lines 418-424
Link Here
|
| 418 |
</xsl:attribute> |
421 |
</xsl:attribute> |
| 419 |
</xsl:when> |
422 |
</xsl:when> |
| 420 |
<xsl:otherwise> |
423 |
<xsl:otherwise> |
| 421 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="marc:subfield[@code='a']"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute> |
424 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute> |
| 422 |
</xsl:otherwise> |
425 |
</xsl:otherwise> |
| 423 |
</xsl:choose> |
426 |
</xsl:choose> |
| 424 |
<xsl:call-template name="chopPunctuation"> |
427 |
<xsl:call-template name="chopPunctuation"> |
|
Lines 537-543
Link Here
|
| 537 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
540 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 538 |
</xsl:call-template> |
541 |
</xsl:call-template> |
| 539 |
</xsl:variable> |
542 |
</xsl:variable> |
| 540 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute> |
543 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute> |
| 541 |
<xsl:value-of select="translate($f780, '()', '')"/> |
544 |
<xsl:value-of select="translate($f780, '()', '')"/> |
| 542 |
</a> |
545 |
</a> |
| 543 |
</span> |
546 |
</span> |
|
Lines 588-594
Link Here
|
| 588 |
</xsl:call-template> |
591 |
</xsl:call-template> |
| 589 |
</xsl:variable> |
592 |
</xsl:variable> |
| 590 |
|
593 |
|
| 591 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute> |
594 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute> |
| 592 |
<xsl:value-of select="translate($f785, '()', '')"/> |
595 |
<xsl:value-of select="translate($f785, '()', '')"/> |
| 593 |
</a> |
596 |
</a> |
| 594 |
|
597 |
|