View | Details | Raw Unified | Return to bug 14716
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl (-13 / +16 lines)
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
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl (-8 / +9 lines)
Lines 5-11 Link Here
5
  xmlns:marc="http://www.loc.gov/MARC21/slim"
5
  xmlns:marc="http://www.loc.gov/MARC21/slim"
6
  xmlns:items="http://www.koha-community.org/items"
6
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  exclude-result-prefixes="marc items">
8
  xmlns:str="http://exslt.org/strings"
9
  exclude-result-prefixes="marc items str">
9
    <xsl:import href="NORMARCslimUtils.xsl"/>
10
    <xsl:import href="NORMARCslimUtils.xsl"/>
10
    <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
11
    <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
11
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
12
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
Lines 308-314 Link Here
308
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
309
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
309
        </xsl:when>
310
        </xsl:when>
310
        <xsl:otherwise>
311
        <xsl:otherwise>
311
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
312
        <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>
312
        </xsl:otherwise>
313
        </xsl:otherwise>
313
    </xsl:choose>
314
    </xsl:choose>
314
    <xsl:call-template name="nameABCDQ"/></a>
315
    <xsl:call-template name="nameABCDQ"/></a>
Lines 323-329 Link Here
323
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
324
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
324
        </xsl:when>
325
        </xsl:when>
325
        <xsl:otherwise>
326
        <xsl:otherwise>
326
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
327
        <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>
327
        </xsl:otherwise>
328
        </xsl:otherwise>
328
    </xsl:choose>
329
    </xsl:choose>
329
    <xsl:call-template name="nameABCDN"/></a>
330
    <xsl:call-template name="nameABCDN"/></a>
Lines 345-351 Link Here
345
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
346
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
346
        </xsl:when>
347
        </xsl:when>
347
        <xsl:otherwise>
348
        <xsl:otherwise>
348
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
349
        <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>
349
        </xsl:otherwise>
350
        </xsl:otherwise>
350
    </xsl:choose>
351
    </xsl:choose>
351
    <xsl:call-template name="nameACDEQ"/></a>
352
    <xsl:call-template name="nameACDEQ"/></a>
Lines 407-416 Link Here
407
            <a>
408
            <a>
408
            <xsl:choose>
409
            <xsl:choose>
409
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
410
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
410
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
411
                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
411
            </xsl:when>
412
            </xsl:when>
412
            <xsl:otherwise>
413
            <xsl:otherwise>
413
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
414
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
414
            </xsl:otherwise>
415
            </xsl:otherwise>
415
            </xsl:choose>
416
            </xsl:choose>
416
            <xsl:text>Show analytics</xsl:text>
417
            <xsl:text>Show analytics</xsl:text>
Lines 452-461 Link Here
452
                    </a>
453
                    </a>
453
                </xsl:when>
454
                </xsl:when>
454
                <xsl:otherwise>
455
                <xsl:otherwise>
455
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
456
                    <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>
456
                        <xsl:value-of select="$f773"/>
457
                        <xsl:value-of select="$f773"/>
457
                    </a>
458
                    </a>
458
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
459
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="str:encode-uri(marc:subfield[@code='g'], true())"/></xsl:if>
459
                </xsl:otherwise>
460
                </xsl:otherwise>
460
            </xsl:choose>
461
            </xsl:choose>
461
        </span>
462
        </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl (-2 / +5 lines)
Lines 2-8 Link Here
2
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
4
5
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
<xsl:stylesheet version="1.0"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  xmlns:str="http://exslt.org/strings">
6
	<xsl:template name="datafield">
9
	<xsl:template name="datafield">
7
		<xsl:param name="tag"/>
10
		<xsl:param name="tag"/>
8
		<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
11
		<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
Lines 227-233 Link Here
227
                        </xsl:when>
230
                        </xsl:when>
228
                        <xsl:when test="boolean($index)">
231
                        <xsl:when test="boolean($index)">
229
                            <a>
232
                            <a>
230
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
233
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
231
                                <xsl:value-of select="$str"/>
234
                                <xsl:value-of select="$str"/>
232
                            </a>
235
                            </a>
233
                        </xsl:when>
236
                        </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl (-13 / +15 lines)
Lines 8-14 Link Here
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
  xmlns:str="http://exslt.org/strings"
10
  xmlns:str="http://exslt.org/strings"
11
  exclude-result-prefixes="marc items">
11
  exclude-result-prefixes="marc items str">
12
    <xsl:import href="NORMARCslimUtils.xsl"/>
12
    <xsl:import href="NORMARCslimUtils.xsl"/>
13
    <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"/>
14
    <xsl:template match="/">
14
    <xsl:template match="/">
Lines 104-110 Link Here
104
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
104
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
105
            </xsl:when>
105
            </xsl:when>
106
            <xsl:otherwise>
106
            <xsl:otherwise>
107
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
107
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
108
            </xsl:otherwise>
108
            </xsl:otherwise>
109
        </xsl:choose>
109
        </xsl:choose>
110
        <xsl:call-template name="nameABCDQ"/></a>
110
        <xsl:call-template name="nameABCDQ"/></a>
Lines 130-136 Link Here
130
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
130
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
131
            </xsl:when>
131
            </xsl:when>
132
            <xsl:otherwise>
132
            <xsl:otherwise>
133
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
133
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
134
            </xsl:otherwise>
134
            </xsl:otherwise>
135
        </xsl:choose>
135
        </xsl:choose>
136
        <xsl:call-template name="nameABCDN"/></a>
136
        <xsl:call-template name="nameABCDN"/></a>
Lines 155-161 Link Here
155
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
155
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
156
            </xsl:when>
156
            </xsl:when>
157
            <xsl:otherwise>
157
            <xsl:otherwise>
158
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
158
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
159
            </xsl:otherwise>
159
            </xsl:otherwise>
160
        </xsl:choose>
160
        </xsl:choose>
161
        <xsl:call-template name="nameACDEQ"/></a>
161
        <xsl:call-template name="nameACDEQ"/></a>
Lines 200-207 Link Here
200
        <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
200
        <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
201
	        <span class="results_summary"><span class="label">Series: </span>
201
	        <span class="results_summary"><span class="label">Series: </span>
202
	        <xsl:for-each select="marc:datafield[@tag=440]">
202
	        <xsl:for-each select="marc:datafield[@tag=440]">
203
	             <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
203
	            <a>
204
	            <xsl:call-template name="chopPunctuation">
204
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
205
	                <xsl:call-template name="chopPunctuation">
205
	                            <xsl:with-param name="chopString">
206
	                            <xsl:with-param name="chopString">
206
	                                <xsl:call-template name="subfieldSelect">
207
	                                <xsl:call-template name="subfieldSelect">
207
	                                    <xsl:with-param name="codes">av</xsl:with-param>
208
	                                    <xsl:with-param name="codes">av</xsl:with-param>
Lines 214-220 Link Here
214
	        </xsl:for-each>
215
	        </xsl:for-each>
215
216
216
	        <xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
217
	        <xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
217
	             <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
218
	            <a>
219
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
218
	                        <xsl:call-template name="chopPunctuation">
220
	                        <xsl:call-template name="chopPunctuation">
219
	                            <xsl:with-param name="chopString">
221
	                            <xsl:with-param name="chopString">
220
	                                <xsl:call-template name="subfieldSelect">
222
	                                <xsl:call-template name="subfieldSelect">
Lines 235-244 Link Here
235
            <a>
237
            <a>
236
            <xsl:choose>
238
            <xsl:choose>
237
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
239
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
238
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
240
                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
239
            </xsl:when>
241
            </xsl:when>
240
            <xsl:otherwise>
242
            <xsl:otherwise>
241
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
243
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
242
            </xsl:otherwise>
244
            </xsl:otherwise>
243
            </xsl:choose>
245
            </xsl:choose>
244
            <xsl:text>Show analytics</xsl:text>
246
            <xsl:text>Show analytics</xsl:text>
Lines 280-286 Link Here
280
                    </a>
282
                    </a>
281
                </xsl:when>
283
                </xsl:when>
282
                <xsl:otherwise>
284
                <xsl:otherwise>
283
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
285
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
284
                        <xsl:value-of select="$f773"/>
286
                        <xsl:value-of select="$f773"/>
285
                    </a>
287
                    </a>
286
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
288
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
Lines 448-454 Link Here
448
                </xsl:attribute>
450
                </xsl:attribute>
449
            </xsl:when>
451
            </xsl:when>
450
            <xsl:otherwise>
452
            <xsl:otherwise>
451
                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
453
                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
452
            </xsl:otherwise>
454
            </xsl:otherwise>
453
            </xsl:choose>
455
            </xsl:choose>
454
            <xsl:call-template name="chopPunctuation">
456
            <xsl:call-template name="chopPunctuation">
Lines 600-606 Link Here
600
                        <xsl:with-param name="codes">a_t</xsl:with-param>
602
                        <xsl:with-param name="codes">a_t</xsl:with-param>
601
                    </xsl:call-template>
603
                    </xsl:call-template>
602
                </xsl:variable>
604
                </xsl:variable>
603
             <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
605
             <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
604
                <xsl:value-of select="translate($f780, '()', '')"/>
606
                <xsl:value-of select="translate($f780, '()', '')"/>
605
            </a>
607
            </a>
606
        </span>
608
        </span>
Lines 651-657 Link Here
651
                    </xsl:call-template>
653
                    </xsl:call-template>
652
                </xsl:variable>
654
                </xsl:variable>
653
655
654
                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
656
                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
655
                <xsl:value-of select="translate($f785, '()', '')"/>
657
                <xsl:value-of select="translate($f785, '()', '')"/>
656
            </a>
658
            </a>
657
659
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl (-4 / +4 lines)
Lines 8-14 Link Here
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
  xmlns:str="http://exslt.org/strings"
10
  xmlns:str="http://exslt.org/strings"
11
  exclude-result-prefixes="marc items">
11
  exclude-result-prefixes="marc items str">
12
    <xsl:import href="NORMARCslimUtils.xsl"/>
12
    <xsl:import href="NORMARCslimUtils.xsl"/>
13
    <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"/>
14
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
14
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
Lines 396-405 Link Here
396
            <a>
396
            <a>
397
            <xsl:choose>
397
            <xsl:choose>
398
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
398
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
399
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
399
                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
400
            </xsl:when>
400
            </xsl:when>
401
            <xsl:otherwise>
401
            <xsl:otherwise>
402
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
402
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
403
            </xsl:otherwise>
403
            </xsl:otherwise>
404
            </xsl:choose>
404
            </xsl:choose>
405
            <xsl:text>Show analytics</xsl:text>
405
            <xsl:text>Show analytics</xsl:text>
Lines 441-447 Link Here
441
                    </a>
441
                    </a>
442
                </xsl:when>
442
                </xsl:when>
443
                <xsl:otherwise>
443
                <xsl:otherwise>
444
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
444
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
445
                        <xsl:value-of select="$f773"/>
445
                        <xsl:value-of select="$f773"/>
446
                    </a>
446
                    </a>
447
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
447
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslimUtils.xsl (-3 / +6 lines)
Lines 1-6 Link Here
1
<?xml version='1.0'?>
1
<?xml version='1.0'?>
2
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
2
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
3
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
<xsl:stylesheet version="1.0"
4
  xmlns:marc="http://www.loc.gov/MARC21/slim"
5
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
  xmlns:str="http://exslt.org/strings"
7
  exclude-result-prefixes="str">
4
	<xsl:template name="datafield">
8
	<xsl:template name="datafield">
5
		<xsl:param name="tag"/>
9
		<xsl:param name="tag"/>
6
		<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
10
		<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
Lines 223-229 Link Here
223
                            </xsl:when>
227
                            </xsl:when>
224
                            <xsl:when test="boolean($index)">
228
                            <xsl:when test="boolean($index)">
225
                                <a>
229
                                <a>
226
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
230
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
227
                                    <xsl:value-of select="$str"/>
231
                                    <xsl:value-of select="$str"/>
228
                                </a>
232
                                </a>
229
                            </xsl:when>
233
                            </xsl:when>
230
- 

Return to bug 14716