1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <!DOCTYPE stylesheet [
<!ENTITY nbsp
" " >]
>
5 <!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
6 <!-- Edited: Bug 1807 [ENH] XSLT enhancements sponsored by bywater solutions 2015/01/19 WS wsalesky@gmail.com -->
7 <xsl:stylesheet version=
"1.0"
8 xmlns:
marc=
"http://www.loc.gov/MARC21/slim"
9 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
10 xmlns:
str=
"http://exslt.org/strings"
11 exclude-result-prefixes=
"marc str">
12 <xsl:import href=
"MARC21slimUtils.xsl"/>
13 <xsl:output method =
"html" indent=
"yes" omit-xml-declaration =
"yes" encoding=
"UTF-8"/>
14 <xsl:template match=
"/">
15 <xsl:apply-templates/>
18 <xsl:template match=
"marc:record">
20 <!-- Option: Display Alternate Graphic Representation (MARC 880) -->
21 <xsl:variable name=
"display880" select=
"boolean(marc:datafield[@tag=880])"/>
22 <xsl:variable name=
"UseControlNumber" select=
"marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
23 <xsl:variable name=
"URLLinkText" select=
"marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
24 <xsl:variable name=
"OPACBaseURL" select=
"marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
25 <xsl:variable name=
"SubjectModifier"><xsl:if test=
"marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield
</xsl:if></xsl:variable>
26 <xsl:variable name=
"UseAuthoritiesForTracings" select=
"marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
27 <xsl:variable name=
"TraceSubjectSubdivisions" select=
"marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
28 <xsl:variable name=
"Show856uAsImage" select=
"marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
29 <xsl:variable name=
"DisplayIconsXSLT" select=
"marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
30 <xsl:variable name=
"OpacSuppression" select=
"marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
31 <xsl:variable name=
"TracingQuotesLeft">
33 <xsl:when test=
"marc:sysprefs/marc:syspref[@name='UseICU']='1'">{
</xsl:when>
34 <xsl:otherwise>"</xsl:otherwise>
37 <xsl:variable name="TracingQuotesRight
">
39 <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='
1'
">}</xsl:when>
40 <xsl:otherwise>"</xsl:otherwise>
44 <xsl:variable name=
"leader" select=
"marc:leader"/>
45 <xsl:variable name=
"leader6" select=
"substring($leader,7,1)"/>
46 <xsl:variable name=
"leader7" select=
"substring($leader,8,1)"/>
47 <xsl:variable name=
"leader19" select=
"substring($leader,20,1)"/>
48 <xsl:variable name=
"controlField008" select=
"marc:controlfield[@tag=008]"/>
49 <xsl:variable name=
"materialTypeCode">
51 <xsl:when test=
"$leader19='a'">ST
</xsl:when>
52 <xsl:when test=
"$leader6='a'">
54 <xsl:when test=
"$leader7='c' or $leader7='d' or $leader7='m'">BK
</xsl:when>
55 <xsl:when test=
"$leader7='i' or $leader7='s'">SE
</xsl:when>
56 <xsl:when test=
"$leader7='a' or $leader7='b'">AR
</xsl:when>
59 <xsl:when test=
"$leader6='t'">BK
</xsl:when>
60 <xsl:when test=
"$leader6='o' or $leader6='p'">MX
</xsl:when>
61 <xsl:when test=
"$leader6='m'">CF
</xsl:when>
62 <xsl:when test=
"$leader6='e' or $leader6='f'">MP
</xsl:when>
63 <xsl:when test=
"$leader6='g'">VM
</xsl:when>
64 <xsl:when test=
"$leader6='k'">PK
</xsl:when>
65 <xsl:when test=
"$leader6='r'">OB
</xsl:when>
66 <xsl:when test=
"$leader6='i'">MU
</xsl:when>
67 <xsl:when test=
"$leader6='j'">MU
</xsl:when>
68 <xsl:when test=
"$leader6='c' or $leader6='d'">PR
</xsl:when>
71 <xsl:variable name=
"materialTypeLabel">
73 <xsl:when test=
"$leader19='a'">Set
</xsl:when>
74 <xsl:when test=
"$leader6='a'">
76 <xsl:when test=
"$leader7='c' or $leader7='d' or $leader7='m'">Text
</xsl:when>
77 <xsl:when test=
"$leader7='i' or $leader7='s'">
79 <xsl:when test=
"substring($controlField008,22,1)!='m'">Continuing resource
</xsl:when>
80 <xsl:otherwise>Series
</xsl:otherwise>
83 <xsl:when test=
"$leader7='a' or $leader7='b'">Article
</xsl:when>
86 <xsl:when test=
"$leader6='t'">Text
</xsl:when>
87 <xsl:when test=
"$leader6='o'">Kit
</xsl:when>
88 <xsl:when test=
"$leader6='p'">Mixed materials
</xsl:when>
89 <xsl:when test=
"$leader6='m'">Computer file
</xsl:when>
90 <xsl:when test=
"$leader6='e' or $leader6='f'">Map
</xsl:when>
91 <xsl:when test=
"$leader6='g'">Film
</xsl:when>
92 <xsl:when test=
"$leader6='k'">Picture
</xsl:when>
93 <xsl:when test=
"$leader6='r'">Object
</xsl:when>
94 <xsl:when test=
"$leader6='j'">Music
</xsl:when>
95 <xsl:when test=
"$leader6='i'">Sound
</xsl:when>
96 <xsl:when test=
"$leader6='c' or $leader6='d'">Score
</xsl:when>
100 <!-- Indicate if record is suppressed in OPAC -->
101 <xsl:if test=
"$OpacSuppression = 1">
102 <xsl:if test=
"marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
103 <span class=
"results_summary suppressed_opac">Suppressed in OPAC
</span>
107 <!-- Title Statement -->
108 <!-- Alternate Graphic Representation (MARC 880) -->
109 <xsl:if test=
"$display880">
111 <xsl:call-template name=
"m880Select">
112 <xsl:with-param name=
"basetags">245</xsl:with-param>
113 <xsl:with-param name=
"codes">abhfgknps
</xsl:with-param>
119 <xsl:if test=
"marc:datafield[@tag=245]">
120 <h1 class=
"title" property=
"name">
121 <xsl:for-each select=
"marc:datafield[@tag=245]">
122 <xsl:call-template name=
"subfieldSelect">
123 <xsl:with-param name=
"codes">a
</xsl:with-param>
125 <xsl:text> </xsl:text>
126 <!-- 13381 add additional subfields-->
127 <!-- bz 17625 adding subfields f and g -->
128 <xsl:for-each select=
"marc:subfield[contains('bcfghknps', @code)]">
130 <xsl:when test=
"@code='h'">
131 <!-- 13381 Span class around subfield h so it can be suppressed via css -->
132 <span class=
"title_medium"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
134 <xsl:when test=
"@code='c'">
135 <!-- 13381 Span class around subfield c so it can be suppressed via css -->
136 <span class=
"title_resp_stmt"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
139 <xsl:apply-templates/>
140 <xsl:text> </xsl:text>
148 <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
149 <xsl:if test=
"$display880">
151 <xsl:call-template name=
"m880Select">
152 <xsl:with-param name=
"basetags">100,
110,
111,
700,
710,
711</xsl:with-param>
153 <xsl:with-param name=
"codes">abc
</xsl:with-param>
154 <xsl:with-param name=
"index">au
</xsl:with-param>
155 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
156 <!-- do not use label 'by ' here, it would be repeated for every occurrence of 100,110,111,700,710,711 -->
161 <!-- Author Statement -->
162 <xsl:call-template name=
"showAuthor">
163 <xsl:with-param name=
"authorfield" select=
"marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
164 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
167 <!-- #13382 Suppress 700$i and 7xx/@ind2=2 -->
168 <xsl:call-template name=
"showAuthor">
169 <xsl:with-param name=
"authorfield" select=
"marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/>
170 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
173 <xsl:if test=
"$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
174 <span class=
"results_summary type"><span class=
"label">Material type:
</span>
175 <xsl:element name=
"img"><xsl:attribute name=
"class">materialtype mt_icon_
<xsl:value-of select=
"$materialTypeCode"/></xsl:attribute><xsl:attribute name=
"src">/intranet-tmpl/prog/img/famfamfam/
<xsl:value-of select=
"$materialTypeCode"/>.png
</xsl:attribute><xsl:attribute name=
"alt"></xsl:attribute></xsl:element>
176 <xsl:text> </xsl:text>
177 <xsl:value-of select=
"$materialTypeLabel"/>
181 <xsl:call-template name=
"show-lang-041"/>
183 <!--Series: Alternate Graphic Representation (MARC 880) -->
184 <xsl:if test=
"$display880">
185 <xsl:call-template name=
"m880Select">
186 <xsl:with-param name=
"basetags">440,
490</xsl:with-param>
187 <xsl:with-param name=
"codes">av
</xsl:with-param>
188 <xsl:with-param name=
"class">results_summary series
</xsl:with-param>
189 <xsl:with-param name=
"label">Series:
</xsl:with-param>
190 <xsl:with-param name=
"index">se
</xsl:with-param>
195 <xsl:if test=
"marc:datafield[@tag=440 or @tag=490]">
196 <span class=
"results_summary series"><span class=
"label">Series:
</span>
198 <xsl:for-each select=
"marc:datafield[@tag=440]">
199 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())
"/>"</xsl:attribute>
200 <xsl:call-template name=
"chopPunctuation">
201 <xsl:with-param name=
"chopString">
202 <xsl:call-template name=
"subfieldSelect">
203 <xsl:with-param name=
"codes">av
</xsl:with-param>
208 <xsl:call-template name=
"part"/>
210 <xsl:when test=
"position()=last()">
211 <xsl:if test=
"../marc:datafield[@tag=490][@ind1!=1]">
212 <xsl:text>;
</xsl:text>
215 <xsl:otherwise><xsl:text> ;
</xsl:text></xsl:otherwise>
219 <!-- 490 Series not traced, Ind1 = 0 -->
220 <xsl:for-each select=
"marc:datafield[@tag=490][@ind1!=1]">
221 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())
"/>"</xsl:attribute>
222 <xsl:call-template name=
"chopPunctuation">
223 <xsl:with-param name=
"chopString">
224 <xsl:call-template name=
"subfieldSelect">
225 <xsl:with-param name=
"codes">av
</xsl:with-param>
230 <xsl:call-template name=
"part"/>
231 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
233 <!-- 490 Series traced, Ind1 = 1 -->
234 <xsl:if test=
"marc:datafield[@tag=490][@ind1=1]">
235 <xsl:for-each select=
"marc:datafield[@tag=800 or @tag=810 or @tag=811]">
237 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
238 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=rcn:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
239 <xsl:call-template name=
"chopPunctuation">
240 <xsl:with-param name=
"chopString">
241 <xsl:call-template name=
"subfieldSelect">
242 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
248 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
249 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=an:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
250 <xsl:call-template name=
"chopPunctuation">
251 <xsl:with-param name=
"chopString">
252 <xsl:call-template name=
"subfieldSelect">
253 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
260 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())
"/>"&q=au:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())
"/>"</xsl:attribute>
261 <xsl:call-template name=
"chopPunctuation">
262 <xsl:with-param name=
"chopString">
263 <xsl:call-template name=
"subfieldSelect">
264 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
269 <xsl:call-template name=
"part"/>
272 <xsl:text>:
</xsl:text>
273 <xsl:value-of select=
"marc:subfield[@code='v']" />
274 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
277 <xsl:for-each select=
"marc:datafield[@tag=830]">
279 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
280 <a href=
"/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
281 <xsl:call-template name=
"chopPunctuation">
282 <xsl:with-param name=
"chopString">
283 <xsl:call-template name=
"subfieldSelect">
284 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
290 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
291 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=an:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
292 <xsl:call-template name=
"chopPunctuation">
293 <xsl:with-param name=
"chopString">
294 <xsl:call-template name=
"subfieldSelect">
295 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
302 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())
"/>"</xsl:attribute>
303 <xsl:call-template name=
"chopPunctuation">
304 <xsl:with-param name=
"chopString">
305 <xsl:call-template name=
"subfieldSelect">
306 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
311 <xsl:call-template name=
"part"/>
314 <xsl:text>:
</xsl:text>
315 <xsl:value-of select=
"marc:subfield[@code='v']" />
316 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
324 <xsl:if test=
"$leader7='s'">
325 <span class=
"results_summary analytics"><span class=
"label">Analytics:
</span>
328 <xsl:when test=
"$UseControlNumber = '1' and marc:controlfield[@tag=001]">
329 <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>
332 <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>
335 <xsl:text>Show analytics
</xsl:text>
340 <!-- Volumes of sets and traced series -->
341 <xsl:if test=
"$materialTypeCode='ST' or substring($controlField008,22,1)='m'">
342 <span class=
"results_summary volumes"><span class=
"label">Volumes:
</span>
345 <xsl:when test=
"$UseControlNumber = '1' and marc:controlfield[@tag=001]">
346 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=rcn:
<xsl:value-of select=
"str:encode-uri(marc:controlfield[@tag=001], true())"/>+not+(bib-level:a+or+bib-level:b)
</xsl:attribute>
349 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:
<xsl:value-of select=
"str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
352 <xsl:text>Show volumes
</xsl:text>
358 <xsl:if test=
"$leader19='c'">
359 <span class=
"results_summary set"><span class=
"label">Set:
</span>
360 <xsl:for-each select=
"marc:datafield[@tag=773]">
363 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
364 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:
<xsl:call-template name=
"extractControlNumber"><xsl:with-param name=
"subfieldW" select=
"marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
367 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:
<xsl:value-of select=
"str:encode-uri(translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', ''), true())"/></xsl:attribute>
370 <xsl:value-of select=
"translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', '')" />
373 <xsl:when test=
"position()=last()"></xsl:when>
374 <xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise>
380 <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) -->
381 <xsl:if test=
"$display880">
382 <xsl:call-template name=
"m880Select">
383 <xsl:with-param name=
"basetags">260</xsl:with-param>
384 <xsl:with-param name=
"codes">abcg
</xsl:with-param>
385 <xsl:with-param name=
"class">results_summary publisher
</xsl:with-param>
386 <xsl:with-param name=
"label">Publisher:
</xsl:with-param>
390 <!-- Publisher info and RDA related info from tags 260, 264 -->
392 <xsl:when test=
"marc:datafield[@tag=264]">
393 <xsl:call-template name=
"showRDAtag264">
394 <xsl:with-param name=
"show_url">1</xsl:with-param>
397 <xsl:when test=
"marc:datafield[@tag=260]">
398 <span class=
"results_summary publisher"><span class=
"label">Publisher:
</span>
399 <xsl:for-each select=
"marc:datafield[@tag=260]">
400 <xsl:if test=
"marc:subfield[@code='a']">
401 <xsl:call-template name=
"subfieldSelect">
402 <xsl:with-param name=
"codes">a
</xsl:with-param>
405 <xsl:text> </xsl:text>
406 <xsl:if test=
"marc:subfield[@code='b']">
408 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Provider:
"<xsl:value-of select="str:encode-uri(marc:subfield[@code='b'], true())
"/>"</xsl:attribute>
409 <xsl:call-template name=
"subfieldSelect">
410 <xsl:with-param name=
"codes">b
</xsl:with-param>
414 <xsl:text> </xsl:text>
415 <xsl:call-template name=
"chopPunctuation">
416 <xsl:with-param name=
"chopString">
417 <xsl:call-template name=
"subfieldSelect">
418 <xsl:with-param name=
"codes">cg
</xsl:with-param>
422 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
428 <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
429 <xsl:if test=
"$display880">
430 <xsl:call-template name=
"m880Select">
431 <xsl:with-param name=
"basetags">250</xsl:with-param>
432 <xsl:with-param name=
"codes">ab
</xsl:with-param>
433 <xsl:with-param name=
"class">results_summary edition
</xsl:with-param>
434 <xsl:with-param name=
"label">Edition:
</xsl:with-param>
438 <xsl:if test=
"marc:datafield[@tag=250]">
439 <span class=
"results_summary edition"><span class=
"label">Edition:
</span>
440 <xsl:for-each select=
"marc:datafield[@tag=250]">
441 <xsl:call-template name=
"chopPunctuation">
442 <xsl:with-param name=
"chopString">
443 <xsl:call-template name=
"subfieldSelect">
444 <xsl:with-param name=
"codes">ab
</xsl:with-param>
448 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
453 <!-- Description: Alternate Graphic Representation (MARC 880) -->
454 <xsl:if test=
"$display880">
455 <xsl:call-template name=
"m880Select">
456 <xsl:with-param name=
"basetags">300</xsl:with-param>
457 <xsl:with-param name=
"codes">abceg
</xsl:with-param>
458 <xsl:with-param name=
"class">results_summary description
</xsl:with-param>
459 <xsl:with-param name=
"label">Description:
</xsl:with-param>
463 <xsl:if test=
"marc:datafield[@tag=300]">
464 <span class=
"results_summary description"><span class=
"label">Description:
</span>
465 <xsl:for-each select=
"marc:datafield[@tag=300]">
466 <xsl:call-template name=
"chopPunctuation">
467 <xsl:with-param name=
"chopString">
468 <xsl:call-template name=
"subfieldSelect">
469 <xsl:with-param name=
"codes">abcefg
</xsl:with-param>
473 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
478 <!-- Content Type -->
479 <xsl:if test=
"marc:datafield[@tag=336] or marc:datafield[@tag=337] or marc:datafield[@tag=338]">
480 <span class=
"results_summary" id=
"content_type">
481 <xsl:if test=
"marc:datafield[@tag=336]">
482 <span class=
"label">Content type:
</span>
483 <xsl:for-each select=
"marc:datafield[@tag=336]">
484 <xsl:call-template name=
"subfieldSelect">
485 <xsl:with-param name=
"codes">a
</xsl:with-param>
486 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
488 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
491 <xsl:text> </xsl:text>
493 <xsl:if test=
"marc:datafield[@tag=337]">
494 <span class=
"label">Media type:
</span>
495 <xsl:for-each select=
"marc:datafield[@tag=337]">
496 <xsl:call-template name=
"subfieldSelect">
497 <xsl:with-param name=
"codes">a
</xsl:with-param>
498 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
500 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
503 <xsl:text> </xsl:text>
505 <xsl:if test=
"marc:datafield[@tag=338]">
506 <span class=
"label">Carrier type:
</span>
507 <xsl:for-each select=
"marc:datafield[@tag=338]">
508 <xsl:call-template name=
"subfieldSelect">
509 <xsl:with-param name=
"codes">a
</xsl:with-param>
510 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
512 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
519 <xsl:call-template name=
"showISBNISSN"/>
521 <xsl:if test=
"marc:datafield[@tag=013]">
522 <span class=
"results_summary patent_info">
523 <span class=
"label">Patent information:
</span>
524 <xsl:for-each select=
"marc:datafield[@tag=013]">
525 <xsl:call-template name=
"subfieldSelect">
526 <xsl:with-param name=
"codes">acdef
</xsl:with-param>
527 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
529 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
534 <xsl:if test=
"marc:datafield[@tag=088]">
535 <span class=
"results_summary report_number">
536 <span class=
"label">Report number:
</span>
537 <xsl:for-each select=
"marc:datafield[@tag=088]">
538 <xsl:call-template name=
"subfieldSelect">
539 <xsl:with-param name=
"codes">a
</xsl:with-param>
541 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
546 <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) -->
547 <xsl:if test=
"$display880">
548 <xsl:call-template name=
"m880Select">
549 <xsl:with-param name=
"basetags">246</xsl:with-param>
550 <xsl:with-param name=
"codes">abhfgnp
</xsl:with-param>
551 <xsl:with-param name=
"class">results_summary other_title
</xsl:with-param>
552 <xsl:with-param name=
"label">Other title:
</xsl:with-param>
556 <xsl:if test=
"marc:datafield[@tag=246]">
557 <span class=
"results_summary other_title"><span class=
"label">Other title:
</span>
558 <xsl:for-each select=
"marc:datafield[@tag=246]">
559 <xsl:if test=
"marc:subfield[@code='i']">
560 <xsl:call-template name=
"subfieldSelect">
561 <xsl:with-param name=
"codes">i
</xsl:with-param>
564 <xsl:text> </xsl:text>
565 <xsl:call-template name=
"chopPunctuation">
566 <xsl:with-param name=
"chopString">
567 <xsl:call-template name=
"subfieldSelect">
568 <xsl:with-param name=
"codes">abhfgnp
</xsl:with-param>
572 <xsl:if test=
"@ind1=1 and not(marc:subfield[@code='i'])">
574 <xsl:when test=
"@ind2=0"> [Portion of title]
</xsl:when>
575 <xsl:when test=
"@ind2=1"> [Parallel title]
</xsl:when>
576 <xsl:when test=
"@ind2=2"> [Distinctive title]
</xsl:when>
577 <xsl:when test=
"@ind2=3"> [Other title]
</xsl:when>
578 <xsl:when test=
"@ind2=4"> [Cover title]
</xsl:when>
579 <xsl:when test=
"@ind2=5"> [Added title page title]
</xsl:when>
580 <xsl:when test=
"@ind2=6"> [Caption title]
</xsl:when>
581 <xsl:when test=
"@ind2=7"> [Running title]
</xsl:when>
582 <xsl:when test=
"@ind2=8"> [Spine title]
</xsl:when>
585 <!-- #13386 added separator | -->
586 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise></xsl:choose>
591 <xsl:if test=
"marc:datafield[@tag=242]">
592 <span class=
"results_summary translated_title"><span class=
"label">Title translated:
</span>
593 <xsl:for-each select=
"marc:datafield[@tag=242]">
594 <xsl:call-template name=
"chopPunctuation">
595 <xsl:with-param name=
"chopString">
596 <xsl:call-template name=
"subfieldSelect">
597 <xsl:with-param name=
"codes">abchnp
</xsl:with-param>
601 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
606 <!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) -->
607 <xsl:if test=
"$display880">
608 <xsl:call-template name=
"m880Select">
609 <xsl:with-param name=
"basetags">130,
240</xsl:with-param>
610 <xsl:with-param name=
"codes">adfklmor
</xsl:with-param>
611 <xsl:with-param name=
"class">results_summary uniform_title
</xsl:with-param>
612 <xsl:with-param name=
"label">Uniform title:
</xsl:with-param>
616 <xsl:if test=
"marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
617 <span class=
"results_summary uniform_title"><span class=
"label">Uniform titles:
</span>
618 <xsl:for-each select=
"marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
619 <xsl:if test=
"marc:subfield[@code='i']">
620 <xsl:call-template name=
"subfieldSelect">
621 <xsl:with-param name=
"codes">i
</xsl:with-param>
624 <xsl:text> </xsl:text>
625 <xsl:for-each select=
"marc:subfield">
626 <xsl:if test=
"contains('adfghklmnoprst',@code)">
627 <xsl:value-of select=
"text()"/>
628 <xsl:text> </xsl:text>
631 <xsl:if test=
"position() != last()">
632 <span class=
"separator"><xsl:text> |
</xsl:text></span>
638 <!-- #13382 Added Related works 700$i -->
639 <xsl:if test=
"marc:datafield[@tag=700][marc:subfield[@code='i']] or marc:datafield[@tag=710][marc:subfield[@code='i']] or marc:datafield[@tag=711][marc:subfield[@code='i']]">
640 <span class=
"results_summary related_works"><span class=
"label">Related works:
</span>
641 <xsl:for-each select=
"marc:datafield[@tag=700][marc:subfield[@code='i']] | marc:datafield[@tag=710][marc:subfield[@code='i']] | marc:datafield[@tag=711][marc:subfield[@code='i']]">
642 <xsl:variable name=
"str">
643 <xsl:call-template name=
"subfieldSelect">
644 <xsl:with-param name=
"codes">abcdfghiklmnporstux
</xsl:with-param>
647 <xsl:call-template name=
"chopPunctuation">
648 <xsl:with-param name=
"chopString">
649 <xsl:value-of select=
"$str"/>
652 <!-- add relator code too between brackets-->
653 <xsl:if test=
"marc:subfield[@code='4' or @code='e']">
654 <span class=
"relatorcode">
655 <xsl:text> [
</xsl:text>
657 <xsl:when test=
"marc:subfield[@code='e']">
658 <xsl:for-each select=
"marc:subfield[@code='e']">
659 <xsl:value-of select=
"."/>
660 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
664 <xsl:for-each select=
"marc:subfield[@code='4']">
665 <xsl:value-of select=
"."/>
666 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
670 <xsl:text>]
</xsl:text>
674 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
680 <!-- #13382 Added Contained Works 7xx@ind2=2 -->
681 <xsl:if test=
"marc:datafield[@tag=700][@ind2=2 and not(marc:subfield[@code='i'])] or marc:datafield[@tag=710][@ind2=2 and not(marc:subfield[@code='i'])] or marc:datafield[@tag=711][@ind2=2 and not(marc:subfield[@code='i'])]">
682 <span class=
"results_summary contained_works"><span class=
"label">Contained works:
</span>
683 <xsl:for-each select=
"marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]">
684 <xsl:variable name=
"str">
685 <xsl:call-template name=
"subfieldSelect">
686 <xsl:with-param name=
"codes">abcdfghiklmnporstux
</xsl:with-param>
689 <xsl:call-template name=
"chopPunctuation">
690 <xsl:with-param name=
"chopString">
691 <xsl:value-of select=
"$str"/>
694 <!-- add relator code too between brackets-->
695 <xsl:if test=
"marc:subfield[@code='4' or @code='e']">
696 <span class=
"relatorcode">
697 <xsl:text> [
</xsl:text>
699 <xsl:when test=
"marc:subfield[@code='e']">
700 <xsl:for-each select=
"marc:subfield[@code='e']">
701 <xsl:value-of select=
"."/>
702 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
706 <xsl:for-each select=
"marc:subfield[@code='4']">
707 <xsl:value-of select=
"."/>
708 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
712 <xsl:text>]
</xsl:text>
716 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
723 <xsl:if test=
"marc:datafield[substring(@tag, 1, 1) = '6' and not(@tag=655)]">
724 <span class=
"results_summary subjects"><span class=
"label">Subject(s):
</span>
725 <xsl:for-each select=
"marc:datafield[substring(@tag, 1, 1) = '6'][not(@tag=655)]">
728 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
729 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
730 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=an:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
732 <xsl:when test=
"$TraceSubjectSubdivisions='1'">
733 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=
<xsl:call-template name=
"subfieldSelectSubject">
734 <xsl:with-param name=
"codes">abcdfgklmnopqrstvxyz
</xsl:with-param>
735 <xsl:with-param name=
"delimeter"> AND
</xsl:with-param>
736 <xsl:with-param name=
"prefix">(su
<xsl:value-of select=
"$SubjectModifier"/>:
<xsl:value-of select=
"$TracingQuotesLeft"/></xsl:with-param>
737 <xsl:with-param name=
"suffix"><xsl:value-of select=
"$TracingQuotesRight"/>)
</xsl:with-param>
738 <xsl:with-param name=
"urlencode">1</xsl:with-param>
743 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
745 <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(translate(marc:subfield[@code='a'],'()',''), true())"/><xsl:value-of select=
"$TracingQuotesRight"/></xsl:attribute>
749 <xsl:call-template name=
"chopPunctuation">
750 <xsl:with-param name=
"chopString">
751 <xsl:call-template name=
"subfieldSelect">
752 <xsl:with-param name=
"codes">abcdfgklmnopqrstvxyz
</xsl:with-param>
753 <xsl:with-param name=
"subdivCodes">vxyz
</xsl:with-param>
754 <xsl:with-param name=
"subdivDelimiter">--
</xsl:with-param>
760 <xsl:if test=
"marc:subfield[@code=9]">
761 <xsl:text> </xsl:text>
763 <xsl:attribute name=
"href">/cgi-bin/koha/authorities/detail.pl?authid=
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
764 <xsl:element name=
"img">
765 <xsl:attribute name=
"src">/intranet-tmpl/prog/img/filefind.png
</xsl:attribute>
766 <xsl:attribute name=
"alt"></xsl:attribute>
767 <xsl:attribute name=
"height">15</xsl:attribute>
768 <xsl:attribute name=
"width">15</xsl:attribute>
774 <xsl:when test=
"position()=last()"></xsl:when>
775 <xsl:otherwise> |
</xsl:otherwise>
783 <xsl:if test=
"marc:datafield[@tag=655]">
784 <span class=
"results_summary genre"><span class=
"label">Genre/Form:
</span>
785 <xsl:for-each select=
"marc:datafield[@tag=655]">
788 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
789 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=an:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
791 <xsl:when test=
"$TraceSubjectSubdivisions='1'">
792 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=
<xsl:call-template name=
"subfieldSelect">
793 <xsl:with-param name=
"codes">avxyz
</xsl:with-param>
794 <xsl:with-param name=
"delimeter"> AND
</xsl:with-param>
795 <xsl:with-param name=
"prefix">(su
<xsl:value-of select=
"$SubjectModifier"/>:
<xsl:value-of select=
"$TracingQuotesLeft"/></xsl:with-param>
796 <xsl:with-param name=
"suffix"><xsl:value-of select=
"$TracingQuotesRight"/>)
</xsl:with-param>
797 <xsl:with-param name=
"urlencode">1</xsl:with-param>
802 <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>
805 <xsl:call-template name=
"subfieldSelect">
806 <xsl:with-param name=
"codes">avxyz
</xsl:with-param>
807 <xsl:with-param name=
"subdivCodes">vxyz
</xsl:with-param>
808 <xsl:with-param name=
"subdivDelimiter">--
</xsl:with-param>
812 <xsl:if test=
"marc:subfield[@code=9]">
813 <xsl:text> </xsl:text>
815 <xsl:attribute name=
"href">/cgi-bin/koha/authorities/detail.pl?authid=
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
816 <xsl:element name=
"img">
817 <xsl:attribute name=
"src">/intranet-tmpl/prog/img/filefind.png
</xsl:attribute>
818 <xsl:attribute name=
"alt"></xsl:attribute>
819 <xsl:attribute name=
"height">15</xsl:attribute>
820 <xsl:attribute name=
"width">15</xsl:attribute>
824 <xsl:if test=
"position()!=last()"><span class=
"separator"> |
</span></xsl:if>
829 <!-- MARC21 776 Additional Physical Form Entry -->
830 <xsl:if test=
"marc:datafield[@tag=776]">
831 <span class=
"results_summary add_physical_form">
832 <span class=
"label">Additional physical formats:
</span>
833 <xsl:for-each select=
"marc:datafield[@tag=776]">
834 <xsl:variable name=
"linktext">
836 <xsl:when test=
"marc:subfield[@code='t']">
837 <xsl:value-of select=
"marc:subfield[@code='t']"/>
839 <xsl:when test=
"marc:subfield[@code='a']">
840 <xsl:value-of select=
"marc:subfield[@code='a']"/>
843 <xsl:text>No title
</xsl:text>
847 <xsl:if test=
"@ind2=8 and marc:subfield[@code='i']">
848 <xsl:call-template name=
"subfieldSelect">
849 <xsl:with-param name=
"codes">i
</xsl:with-param>
851 <xsl:text>:
</xsl:text>
854 <xsl:when test=
"marc:subfield[@code='w']">
856 <xsl:attribute name=
"href">
857 <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=control-number:
</xsl:text>
858 <xsl:call-template name=
"extractControlNumber">
859 <xsl:with-param name=
"subfieldW">
860 <xsl:value-of select=
"marc:subfield[@code='w']"/>
864 <xsl:value-of select=
"$linktext"/>
868 <xsl:value-of select=
"$linktext"/>
871 <xsl:if test=
"position() != last()">
872 <xsl:text>;
</xsl:text>
878 <!-- DDC classification -->
879 <xsl:if test=
"marc:datafield[@tag=082]">
880 <span class=
"results_summary ddc">
881 <span class=
"label">DDC classification:
</span>
882 <xsl:for-each select=
"marc:datafield[@tag=082]">
883 <xsl:call-template name=
"subfieldSelect">
884 <xsl:with-param name=
"codes">a
</xsl:with-param>
885 <xsl:with-param name=
"delimeter"><xsl:text> |
</xsl:text></xsl:with-param>
888 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
889 <xsl:otherwise> |
</xsl:otherwise>
895 <!-- LOC classification -->
896 <xsl:if test=
"marc:datafield[@tag=050]">
897 <span class=
"results_summary loc">
898 <span class=
"label">LOC classification:
</span>
899 <xsl:for-each select=
"marc:datafield[@tag=050]">
900 <xsl:call-template name=
"subfieldSelect">
901 <xsl:with-param name=
"codes">ab
</xsl:with-param>
902 <xsl:with-param name=
"delimeter"><xsl:text> |
</xsl:text></xsl:with-param>
908 <!-- Other classification -->
909 <xsl:if test=
"marc:datafield[@tag=084]">
910 <span class=
"results_summary oc">
911 <span class=
"label">Other classification:
</span>
912 <xsl:for-each select=
"marc:datafield[@tag=084]">
913 <xsl:call-template name=
"subfieldSelect">
914 <xsl:with-param name=
"codes">a
</xsl:with-param>
915 <xsl:with-param name=
"delimeter"><xsl:text> |
</xsl:text></xsl:with-param>
918 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
919 <xsl:otherwise> |
</xsl:otherwise>
925 <xsl:if test=
"marc:datafield[@tag=856]">
926 <span class=
"results_summary online_resources"><span class=
"label">Online resources:
</span>
927 <xsl:for-each select=
"marc:datafield[@tag=856]">
928 <xsl:variable name=
"SubqText"><xsl:value-of select=
"marc:subfield[@code='q']"/></xsl:variable>
930 <xsl:attribute name=
"href">
931 <xsl:if test=
"not(contains(marc:subfield[@code='u'],'://'))">
933 <xsl:when test=
"@ind1=7">
934 <xsl:value-of select=
"marc:subfield[@code='2']"/><xsl:text>://
</xsl:text>
936 <xsl:when test=
"@ind1=1">
937 <xsl:text>ftp://
</xsl:text>
940 <xsl:text>http://
</xsl:text>
944 <xsl:value-of select=
"marc:subfield[@code='u']"/>
947 <xsl:when test=
"($Show856uAsImage='Details' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
948 <xsl:element name=
"img"><xsl:attribute name=
"src"><xsl:value-of select=
"marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name=
"alt"><xsl:value-of select=
"marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name=
"height">100</xsl:attribute></xsl:element><xsl:text></xsl:text>
950 <xsl:when test=
"marc:subfield[@code='y' or @code='3' or @code='z']">
951 <xsl:call-template name=
"subfieldSelect">
952 <xsl:with-param name=
"codes">y3z
</xsl:with-param>
955 <xsl:when test=
"not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
957 <xsl:when test=
"$URLLinkText!=''">
958 <xsl:value-of select=
"$URLLinkText"/>
961 <xsl:text>Click here to access online
</xsl:text>
968 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
969 <xsl:otherwise> |
</xsl:otherwise>
976 <xsl:if test=
"marc:datafield[@tag=505]">
977 <div class=
"results_summary contents">
979 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=0">
980 <span class=
"label">Contents:
</span>
982 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=1">
983 <span class=
"label">Incomplete contents:
</span>
985 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=2">
986 <span class=
"label">Partial contents:
</span>
989 <xsl:for-each select=
"marc:datafield[@tag=505]">
990 <div class='contentblock'
>
992 <xsl:when test=
"@ind2=0">
993 <xsl:call-template name=
"subfieldSelectSpan">
994 <xsl:with-param name=
"codes">tru
</xsl:with-param>
998 <xsl:call-template name=
"subfieldSelectSpan">
999 <xsl:with-param name=
"codes">atru
</xsl:with-param>
1000 </xsl:call-template>
1009 <xsl:if test=
"marc:datafield[@tag=586]">
1010 <span class=
"results_summary awardsnote">
1011 <xsl:if test=
"marc:datafield[@tag=586]/@ind1=' '">
1012 <span class=
"label">Awards:
</span>
1014 <xsl:for-each select=
"marc:datafield[@tag=586]">
1015 <xsl:value-of select=
"marc:subfield[@code='a']"/>
1016 <xsl:if test=
"position()!=last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
1022 <xsl:if test=
"marc:datafield[@tag=508]">
1023 <span class=
"results_summary prod_credits">
1024 <span class=
"label">Production credits:
</span>
1025 <xsl:for-each select=
"marc:datafield[@tag=508]">
1026 <xsl:call-template name=
"subfieldSelectSpan">
1027 <xsl:with-param name=
"codes">a
</xsl:with-param>
1028 </xsl:call-template>
1029 <xsl:if test=
"position()!=last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
1035 <xsl:if test=
"marc:datafield[@tag=583]">
1036 <span class=
"results_summary actionnote">
1037 <span class=
"label">Action note:
</span>
1038 <xsl:for-each select=
"marc:datafield[@tag=583]">
1040 <xsl:when test=
"marc:subfield[@code='z']">
1041 <xsl:value-of select=
"marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1044 <xsl:call-template name=
"subfieldSelect">
1045 <xsl:with-param name=
"codes">abcdefgijklnou
</xsl:with-param>
1046 </xsl:call-template>
1049 <xsl:if test=
"position()!=last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
1055 <xsl:if test=
"marc:datafield[@tag=773]">
1056 <xsl:for-each select=
"marc:datafield[@tag=773]">
1057 <xsl:if test=
"@ind1 !=1">
1058 <span class=
"results_summary in"><span class=
"label">
1060 <xsl:when test=
"@ind2=' '">
1063 <xsl:when test=
"@ind2=8">
1064 <xsl:if test=
"marc:subfield[@code='i']">
1065 <xsl:value-of select=
"marc:subfield[@code='i']"/>
1070 <xsl:variable name=
"f773">
1071 <xsl:call-template name=
"chopPunctuation">
1072 <xsl:with-param name=
"chopString">
1073 <xsl:call-template name=
"subfieldSelect">
1074 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1075 </xsl:call-template>
1077 </xsl:call-template>
1080 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1081 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:
<xsl:call-template name=
"extractControlNumber"><xsl:with-param name=
"subfieldW" select=
"marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1082 <xsl:value-of select=
"translate($f773, '()', '')"/>
1085 <xsl:when test=
"marc:subfield[@code='0']">
1086 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute>
1087 <xsl:value-of select=
"$f773"/>
1091 <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>
1092 <xsl:value-of select=
"$f773"/>
1096 <xsl:if test=
"marc:subfield[@code='g']">
1097 <xsl:text> </xsl:text><xsl:value-of select=
"marc:subfield[@code='g']"/>
1101 <xsl:if test=
"marc:subfield[@code='n']">
1102 <span class=
"results_summary in_note"><xsl:value-of select=
"marc:subfield[@code='n']"/></span>
1109 <xsl:if test=
"marc:datafield[@tag=502]">
1110 <span class=
"results_summary diss_note">
1111 <span class=
"label">Dissertation note:
</span>
1112 <xsl:for-each select=
"marc:datafield[@tag=502]">
1113 <xsl:call-template name=
"subfieldSelect">
1114 <xsl:with-param name=
"codes">abcdgo
</xsl:with-param>
1115 </xsl:call-template>
1117 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
1121 <!-- 866 textual holdings -->
1122 <xsl:if test=
"marc:datafield[@tag=866]">
1123 <span class=
"results_summary holdings_note basic_bibliographic_unit"><span class=
"label">Holdings:
</span>
1124 <xsl:for-each select=
"marc:datafield[@tag=866]">
1125 <span class=
"holdings_note_data">
1126 <xsl:call-template name=
"subfieldSelect">
1127 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1128 </xsl:call-template>
1129 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
1135 <!-- 867 textual holdings -->
1136 <xsl:if test=
"marc:datafield[@tag=867]">
1137 <span class=
"results_summary holdings_note supplementary_material"><span class=
"label">Supplements:
</span>
1138 <xsl:for-each select=
"marc:datafield[@tag=867]">
1139 <span class=
"holdings_note_data">
1140 <xsl:call-template name=
"subfieldSelect">
1141 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1142 </xsl:call-template>
1143 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
1149 <!-- 868 textual holdings -->
1150 <xsl:if test=
"marc:datafield[@tag=868]">
1151 <span class=
"results_summary holdings_note indexes"><span class=
"label">Indexes:
</span>
1152 <xsl:for-each select=
"marc:datafield[@tag=868]">
1153 <span class=
"holdings_note_data">
1154 <xsl:call-template name=
"subfieldSelect">
1155 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1156 </xsl:call-template>
1157 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text><br /></xsl:otherwise></xsl:choose>
1164 <!-- 775 Other Edition -->
1165 <xsl:if test=
"marc:datafield[@tag=775]">
1166 <span class=
"results_summary other_editions"><span class=
"label">Other editions:
</span>
1167 <xsl:for-each select=
"marc:datafield[@tag=775]">
1168 <xsl:variable name=
"f775">
1169 <xsl:call-template name=
"chopPunctuation"><xsl:with-param name=
"chopString"><xsl:call-template name=
"subfieldSelect">
1170 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1171 </xsl:call-template></xsl:with-param></xsl:call-template>
1173 <xsl:if test=
"marc:subfield[@code='i']">
1174 <xsl:call-template name=
"subfieldSelect">
1175 <xsl:with-param name=
"codes">i
</xsl:with-param>
1176 </xsl:call-template>
1177 <xsl:text>:
</xsl:text>
1181 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1182 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:
<xsl:call-template name=
"extractControlNumber"><xsl:with-param name=
"subfieldW" select=
"marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1185 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:
<xsl:value-of select=
"str:encode-uri(translate($f775, '()', ''), true())"/></xsl:attribute>
1188 <xsl:call-template name=
"subfieldSelect">
1189 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1190 </xsl:call-template>
1193 <xsl:when test=
"position()=last()"></xsl:when>
1194 <xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise>
1201 <xsl:if test=
"marc:datafield[@tag=780]">
1202 <xsl:for-each select=
"marc:datafield[@tag=780]">
1203 <xsl:if test=
"@ind1=0">
1204 <span class=
"results_summary preceeding_entry">
1206 <xsl:when test=
"@ind2=0">
1207 <span class=
"label">Continues:
</span>
1209 <xsl:when test=
"@ind2=1">
1210 <span class=
"label">Continues in part:
</span>
1212 <xsl:when test=
"@ind2=2">
1213 <span class=
"label">Supersedes:
</span>
1215 <xsl:when test=
"@ind2=3">
1216 <span class=
"label">Supersedes in part:
</span>
1218 <xsl:when test=
"@ind2=4">
1219 <span class=
"label">Formed by the union: ... and: ...
</span>
1221 <xsl:when test=
"@ind2=5">
1222 <span class=
"label">Absorbed:
</span>
1224 <xsl:when test=
"@ind2=6">
1225 <span class=
"label">Absorbed in part:
</span>
1227 <xsl:when test=
"@ind2=7">
1228 <span class=
"label">Separated from:
</span>
1231 <xsl:text> </xsl:text>
1232 <xsl:variable name=
"f780">
1233 <xsl:call-template name=
"subfieldSelect">
1234 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1235 </xsl:call-template>
1238 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1239 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:
<xsl:call-template name=
"extractControlNumber"><xsl:with-param name=
"subfieldW" select=
"marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1240 <xsl:value-of select=
"translate($f780, '()', '')"/>
1244 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:
<xsl:value-of select=
"str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
1245 <xsl:value-of select=
"translate($f780, '()', '')"/>
1251 <xsl:if test=
"marc:subfield[@code='n']">
1252 <span class=
"results_summary preceeding_entry_note"><xsl:value-of select=
"marc:subfield[@code='n']"/></span>
1260 <xsl:if test=
"marc:datafield[@tag=785]">
1261 <xsl:for-each select=
"marc:datafield[@tag=785]">
1262 <span class=
"results_summary succeeding_entry">
1264 <xsl:when test=
"@ind2=0">
1265 <span class=
"label">Continued by:
</span>
1267 <xsl:when test=
"@ind2=1">
1268 <span class=
"label">Continued in part by:
</span>
1270 <xsl:when test=
"@ind2=2">
1271 <span class=
"label">Superseded by:
</span>
1273 <xsl:when test=
"@ind2=3">
1274 <span class=
"label">Superseded in part by:
</span>
1276 <xsl:when test=
"@ind2=4">
1277 <span class=
"label">Absorbed by:
</span>
1279 <xsl:when test=
"@ind2=5">
1280 <span class=
"label">Absorbed in part by:
</span>
1282 <xsl:when test=
"@ind2=6">
1283 <span class=
"label">Split into .. and ...:
</span>
1285 <xsl:when test=
"@ind2=7">
1286 <span class=
"label">Merged with ... to form ...
</span>
1288 <xsl:when test=
"@ind2=8">
1289 <span class=
"label">Changed back to:
</span>
1292 <xsl:text> </xsl:text>
1293 <xsl:variable name=
"f785">
1294 <xsl:call-template name=
"subfieldSelect">
1295 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1296 </xsl:call-template>
1300 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1301 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:
<xsl:call-template name=
"extractControlNumber"><xsl:with-param name=
"subfieldW" select=
"marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1302 <xsl:value-of select=
"translate($f785, '()', '')"/>
1306 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:
<xsl:value-of select=
"str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
1307 <xsl:value-of select=
"translate($f785, '()', '')"/>
1316 <xsl:if test=
"$OPACBaseURL!=''">
1317 <span class=
"results_summary opac_view"><span class=
"label">OPAC view:
</span>
1318 <a><xsl:attribute name=
"href"><xsl:value-of select=
"$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=
<xsl:value-of select=
"str:encode-uri(marc:datafield[@tag=999]/marc:subfield[@code='c'], true())"/></xsl:attribute><xsl:attribute name=
"target">_blank
</xsl:attribute>Open in new window
</a>.
1324 <xsl:template name=
"nameABCQ">
1325 <xsl:call-template name=
"chopPunctuation">
1326 <xsl:with-param name=
"chopString">
1327 <xsl:call-template name=
"subfieldSelect">
1328 <xsl:with-param name=
"codes">abcq
</xsl:with-param>
1329 </xsl:call-template>
1331 <xsl:with-param name=
"punctuation">
1332 <xsl:text>:,;/
</xsl:text>
1334 </xsl:call-template>
1337 <xsl:template name=
"nameABCDN">
1338 <xsl:call-template name=
"chopPunctuation">
1339 <xsl:with-param name=
"chopString">
1340 <xsl:call-template name=
"subfieldSelect">
1341 <xsl:with-param name=
"codes">abcdn
</xsl:with-param>
1342 </xsl:call-template>
1344 <xsl:with-param name=
"punctuation">
1345 <xsl:text>:,;/
</xsl:text>
1347 </xsl:call-template>
1350 <xsl:template name=
"nameACDEQ">
1351 <xsl:call-template name=
"subfieldSelect">
1352 <xsl:with-param name=
"codes">acdeq
</xsl:with-param>
1353 </xsl:call-template>
1356 <xsl:template name=
"part">
1357 <xsl:variable name=
"partNumber">
1358 <xsl:call-template name=
"specialSubfieldSelect">
1359 <xsl:with-param name=
"axis">n
</xsl:with-param>
1360 <xsl:with-param name=
"anyCodes">n
</xsl:with-param>
1361 <xsl:with-param name=
"afterCodes">fghkdlmor
</xsl:with-param>
1362 </xsl:call-template>
1364 <xsl:variable name=
"partName">
1365 <xsl:call-template name=
"specialSubfieldSelect">
1366 <xsl:with-param name=
"axis">p
</xsl:with-param>
1367 <xsl:with-param name=
"anyCodes">p
</xsl:with-param>
1368 <xsl:with-param name=
"afterCodes">fghkdlmor
</xsl:with-param>
1369 </xsl:call-template>
1371 <xsl:if test=
"string-length(normalize-space($partNumber))">
1372 <xsl:call-template name=
"chopPunctuation">
1373 <xsl:with-param name=
"chopString" select=
"$partNumber"/>
1374 </xsl:call-template>
1376 <xsl:if test=
"string-length(normalize-space($partName))">
1377 <xsl:call-template name=
"chopPunctuation">
1378 <xsl:with-param name=
"chopString" select=
"$partName"/>
1379 </xsl:call-template>
1383 <xsl:template name=
"specialSubfieldSelect">
1384 <xsl:param name=
"anyCodes"/>
1385 <xsl:param name=
"axis"/>
1386 <xsl:param name=
"beforeCodes"/>
1387 <xsl:param name=
"afterCodes"/>
1388 <xsl:variable name=
"str">
1389 <xsl:for-each select=
"marc:subfield">
1390 <xsl:if test=
"contains($anyCodes, @code) or (contains($beforeCodes,@code) and following-sibling::marc:subfield[@code=$axis]) or (contains($afterCodes,@code) and preceding-sibling::marc:subfield[@code=$axis])">
1391 <xsl:value-of select=
"text()"/>
1392 <xsl:text> </xsl:text>
1396 <xsl:value-of select=
"substring($str,1,string-length($str)-1)"/>
1399 <xsl:template name=
"showAuthor">
1400 <xsl:param name=
"authorfield"/>
1401 <xsl:param name=
"UseAuthoritiesForTracings"/>
1402 <xsl:if test=
"count($authorfield)>0">
1404 <xsl:for-each select=
"$authorfield">
1406 <xsl:when test=
"position()>1"/>
1408 <xsl:when test=
"@tag<700"><span class=
"byAuthor">By:
</span></xsl:when>
1409 <!--#13382 Changed Additional author to contributor -->
1410 <xsl:otherwise>Contributor(s):
</xsl:otherwise>
1414 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1415 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=an:
<xsl:value-of select=
"str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
1418 <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>
1422 <xsl:when test=
"@tag=100 or @tag=110 or @tag=111">
1424 <xsl:call-template name=
"chopPunctuation">
1425 <xsl:with-param name=
"chopString">
1426 <xsl:call-template name=
"subfieldSelect">
1427 <xsl:with-param name=
"codes">
1429 <!-- #13383 include subfield e for field 111, Display only name portion in 1XX -->
1430 <xsl:when test=
"@tag=111">aeq
</xsl:when>
1431 <xsl:when test=
"@tag=110">ab
</xsl:when>
1432 <xsl:otherwise>abcjq
</xsl:otherwise>
1435 </xsl:call-template>
1437 <xsl:with-param name=
"punctuation">
1438 <xsl:text>:,;/
</xsl:text>
1440 </xsl:call-template>
1441 <!-- Display only name and title portion in 110 field -->
1442 <xsl:if test=
"@tag=110 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])">
1443 <span class=
"titleportion">
1445 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1446 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1448 <xsl:call-template name=
"chopPunctuation">
1449 <xsl:with-param name=
"chopString">
1450 <xsl:call-template name=
"subfieldSelect">
1451 <xsl:with-param name=
"codes">cdnt
</xsl:with-param>
1452 </xsl:call-template>
1454 </xsl:call-template>
1457 <!-- Display only name and title portion in 111 field -->
1458 <xsl:if test=
"@tag=111 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])">
1459 <span class=
"titleportion">
1461 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='g' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1462 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1465 <xsl:call-template name=
"chopPunctuation">
1466 <xsl:with-param name=
"chopString">
1467 <xsl:call-template name=
"subfieldSelect">
1468 <xsl:with-param name=
"codes">cdgnt
</xsl:with-param>
1469 </xsl:call-template>
1471 </xsl:call-template>
1474 <!-- Display only dates in 100 field -->
1475 <xsl:if test=
"@tag=100 and marc:subfield[@code='d']">
1476 <span class=
"authordates">
1477 <xsl:text>,
</xsl:text>
1478 <xsl:call-template name=
"chopPunctuation">
1479 <xsl:with-param name=
"chopString">
1480 <xsl:call-template name=
"subfieldSelect">
1481 <xsl:with-param name=
"codes">d
</xsl:with-param>
1482 </xsl:call-template>
1484 </xsl:call-template>
1489 <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works -->
1490 <!--#13382 Added all relevant subfields 4, e, and d are handled separately -->
1491 <xsl:when test=
"@tag=700 or @tag=710 or @tag=711">
1492 <!-- Includes major changes for 7XX fields; display name portion in 710 and 711 fields -->
1493 <xsl:if test=
"@tag=710 or @tag=711">
1494 <xsl:call-template name=
"chopPunctuation">
1495 <xsl:with-param name=
"chopString">
1496 <xsl:call-template name=
"subfieldSelect">
1497 <xsl:with-param name=
"codes">
1499 <xsl:when test=
"@tag=711">aeq
</xsl:when>
1500 <xsl:otherwise>ab
</xsl:otherwise>
1503 </xsl:call-template>
1505 <xsl:with-param name=
"punctuation">
1506 <xsl:text>:,;/
</xsl:text>
1508 </xsl:call-template>
1509 <!-- Display only name and title portion in 711 field -->
1510 <xsl:if test=
"@tag=711 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])">
1511 <span class=
"titleportion">
1513 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='g' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1514 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1517 <xsl:call-template name=
"chopPunctuation">
1518 <xsl:with-param name=
"chopString">
1519 <xsl:call-template name=
"subfieldSelect">
1520 <xsl:with-param name=
"codes">cdgnt
</xsl:with-param>
1521 </xsl:call-template>
1523 </xsl:call-template>
1526 <!-- Display only name and title portion in 710 field -->
1527 <xsl:if test=
"@tag=710 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])">
1528 <span class=
"titleportion">
1530 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1531 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1533 <xsl:call-template name=
"chopPunctuation">
1534 <xsl:with-param name=
"chopString">
1535 <xsl:call-template name=
"subfieldSelect">
1536 <xsl:with-param name=
"codes">cdnt
</xsl:with-param>
1537 </xsl:call-template>
1539 </xsl:call-template>
1544 <!-- Display only name portion in 700 field -->
1545 <xsl:if test=
"@tag=700">
1546 <xsl:call-template name=
"chopPunctuation">
1547 <xsl:with-param name=
"chopString">
1548 <xsl:call-template name=
"subfieldSelect">
1549 <xsl:with-param name=
"codes">abcq
</xsl:with-param>
1550 </xsl:call-template>
1552 </xsl:call-template>
1554 <!-- Display class "authordates" in 700 field -->
1555 <xsl:if test=
"@tag=700 and marc:subfield[@code='d']">
1556 <span class=
"authordates">
1557 <xsl:text>,
</xsl:text>
1558 <xsl:call-template name=
"chopPunctuation">
1559 <xsl:with-param name=
"chopString">
1560 <xsl:call-template name=
"subfieldSelect">
1561 <xsl:with-param name=
"codes">d
</xsl:with-param>
1562 </xsl:call-template>
1564 </xsl:call-template>
1567 <!-- Display class "titleportion" in 700 field -->
1568 <xsl:variable name=
"titleportionfields" select=
"boolean(marc:subfield[@code='t' or @code='j' or @code='k' or @code='u'])"/>
1569 <xsl:if test=
"@tag=700 and $titleportionfields">
1570 <span class=
"titleportion">
1571 <xsl:text>.
</xsl:text>
1572 <xsl:call-template name=
"chopPunctuation">
1573 <xsl:with-param name=
"chopString">
1574 <xsl:call-template name=
"subfieldSelect">
1575 <xsl:with-param name=
"codes">fghjklmnoprstux
</xsl:with-param>
1576 </xsl:call-template>
1578 </xsl:call-template>
1585 <!-- add relator code too between brackets-->
1586 <!-- #13383 include relator code j for field 111 -->
1587 <xsl:if test=
"(@tag!=111 and @tag!=711 and marc:subfield[@code='4' or @code='e']) or ((@tag=111 or @tag=711) and marc:subfield[@code='4' or @code='j'])">
1588 <span class=
"relatorcode">
1589 <xsl:text> [
</xsl:text>
1591 <xsl:when test=
"@tag=111 or @tag=711">
1593 <!-- Prefer j over 4 for fields 111 and 711-->
1594 <xsl:when test=
"marc:subfield[@code='j']">
1595 <xsl:for-each select=
"marc:subfield[@code='j']">
1596 <xsl:value-of select=
"."/>
1597 <xsl:if test=
"position() != last()">,
</xsl:if>
1601 <xsl:for-each select=
"marc:subfield[@code=4]">
1602 <xsl:value-of select=
"."/>
1603 <xsl:if test=
"position() != last()">,
</xsl:if>
1608 <!-- Prefer e over 4 for fields 111 and 711-->
1609 <xsl:when test=
"marc:subfield[@code='e'][not(@tag=111) or not(@tag=711)]">
1610 <xsl:for-each select=
"marc:subfield[@code='e']">
1611 <xsl:value-of select=
"."/>
1612 <xsl:if test=
"position() != last()">,
</xsl:if>
1616 <xsl:for-each select=
"marc:subfield[@code=4]">
1617 <xsl:value-of select=
"."/>
1618 <xsl:if test=
"position() != last()">,
</xsl:if>
1622 <xsl:text>]
</xsl:text>
1627 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
1635 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
1636 <xsl:template name=
"subfieldSelectSubject">
1637 <xsl:param name=
"codes"/>
1638 <xsl:param name=
"delimeter"><xsl:text> </xsl:text></xsl:param>
1639 <xsl:param name=
"subdivCodes"/>
1640 <xsl:param name=
"subdivDelimiter"/>
1641 <xsl:param name=
"prefix"/>
1642 <xsl:param name=
"suffix"/>
1643 <xsl:param name=
"urlencode"/>
1644 <xsl:variable name=
"str">
1645 <xsl:for-each select=
"marc:subfield">
1646 <xsl:if test=
"contains($codes, @code)">
1647 <xsl:if test=
"contains($subdivCodes, @code)">
1648 <xsl:value-of select=
"$subdivDelimiter"/>
1650 <xsl:value-of select=
"$prefix"/><xsl:value-of select=
"translate(text(),'()','')"/><xsl:value-of select=
"$suffix"/><xsl:value-of select=
"$delimeter"/>
1655 <xsl:when test=
"$urlencode=1">
1656 <xsl:value-of select=
"str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
1659 <xsl:value-of select=
"substring($str,1,string-length($str)-string-length($delimeter))"/>