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:
items=
"http://www.koha-community.org/items"
10 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
11 xmlns:
str=
"http://exslt.org/strings"
12 exclude-result-prefixes=
"marc items str">
13 <xsl:import href=
"MARC21slimUtils.xsl"/>
14 <xsl:output method =
"html" indent=
"yes" omit-xml-declaration =
"yes" encoding=
"UTF-8"/>
15 <xsl:template match=
"/">
16 <xsl:apply-templates/>
19 <xsl:template match=
"marc:record">
21 <!-- Option: Display Alternate Graphic Representation (MARC 880) -->
22 <xsl:variable name=
"display880" select=
"boolean(marc:datafield[@tag=880])"/>
23 <xsl:variable name=
"UseControlNumber" select=
"marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
24 <xsl:variable name=
"URLLinkText" select=
"marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
25 <xsl:variable name=
"OPACBaseURL" select=
"marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
26 <xsl:variable name=
"SubjectModifier"><xsl:if test=
"marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield
</xsl:if></xsl:variable>
27 <xsl:variable name=
"UseAuthoritiesForTracings" select=
"marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
28 <xsl:variable name=
"TraceSubjectSubdivisions" select=
"marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
29 <xsl:variable name=
"Show856uAsImage" select=
"marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
30 <xsl:variable name=
"DisplayIconsXSLT" select=
"marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
31 <xsl:variable name=
"OpacSuppression" select=
"marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
32 <xsl:variable name=
"TracingQuotesLeft">
34 <xsl:when test=
"marc:sysprefs/marc:syspref[@name='UseICU']='1'">{
</xsl:when>
35 <xsl:otherwise>"</xsl:otherwise>
38 <xsl:variable name="TracingQuotesRight
">
40 <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='
1'
">}</xsl:when>
41 <xsl:otherwise>"</xsl:otherwise>
45 <xsl:variable name=
"leader" select=
"marc:leader"/>
46 <xsl:variable name=
"leader6" select=
"substring($leader,7,1)"/>
47 <xsl:variable name=
"leader7" select=
"substring($leader,8,1)"/>
48 <xsl:variable name=
"leader19" select=
"substring($leader,20,1)"/>
49 <xsl:variable name=
"controlField008" select=
"marc:controlfield[@tag=008]"/>
50 <xsl:variable name=
"materialTypeCode">
52 <xsl:when test=
"$leader19='a'">ST
</xsl:when>
53 <xsl:when test=
"$leader6='a'">
55 <xsl:when test=
"$leader7='c' or $leader7='d' or $leader7='m'">BK
</xsl:when>
56 <xsl:when test=
"$leader7='i' or $leader7='s'">SE
</xsl:when>
57 <xsl:when test=
"$leader7='a' or $leader7='b'">AR
</xsl:when>
60 <xsl:when test=
"$leader6='t'">BK
</xsl:when>
61 <xsl:when test=
"$leader6='o' or $leader6='p'">MX
</xsl:when>
62 <xsl:when test=
"$leader6='m'">CF
</xsl:when>
63 <xsl:when test=
"$leader6='e' or $leader6='f'">MP
</xsl:when>
64 <xsl:when test=
"$leader6='g'">VM
</xsl:when>
65 <xsl:when test=
"$leader6='k'">PK
</xsl:when>
66 <xsl:when test=
"$leader6='r'">OB
</xsl:when>
67 <xsl:when test=
"$leader6='i'">SO
</xsl:when>
68 <xsl:when test=
"$leader6='j'">MU
</xsl:when>
69 <xsl:when test=
"$leader6='c' or $leader6='d'">PR
</xsl:when>
72 <xsl:variable name=
"materialTypeLabel">
74 <xsl:when test=
"$leader19='a'">Set
</xsl:when>
75 <xsl:when test=
"$leader6='a'">
77 <xsl:when test=
"$leader7='c' or $leader7='d' or $leader7='m'">Book
</xsl:when>
78 <xsl:when test=
"$leader7='i' or $leader7='s'">
80 <xsl:when test=
"substring($controlField008,22,1)!='m'">Continuing resource
</xsl:when>
81 <xsl:otherwise>Series
</xsl:otherwise>
84 <xsl:when test=
"$leader7='a' or $leader7='b'">Article
</xsl:when>
87 <xsl:when test=
"$leader6='t'">Book
</xsl:when>
88 <xsl:when test=
"$leader6='o'">Kit
</xsl:when>
89 <xsl:when test=
"$leader6='p'">Mixed materials
</xsl:when>
90 <xsl:when test=
"$leader6='m'">Computer file
</xsl:when>
91 <xsl:when test=
"$leader6='e' or $leader6='f'">Map
</xsl:when>
92 <xsl:when test=
"$leader6='g'">Film
</xsl:when>
93 <xsl:when test=
"$leader6='k'">Picture
</xsl:when>
94 <xsl:when test=
"$leader6='r'">Object
</xsl:when>
95 <xsl:when test=
"$leader6='j'">Music
</xsl:when>
96 <xsl:when test=
"$leader6='i'">Sound
</xsl:when>
97 <xsl:when test=
"$leader6='c' or $leader6='d'">Score
</xsl:when>
101 <!-- Indicate if record is suppressed in OPAC -->
102 <xsl:if test=
"$OpacSuppression = 1">
103 <xsl:if test=
"marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
104 <span class=
"results_summary suppressed_opac">Suppressed in OPAC
</span>
108 <!-- Title Statement -->
109 <!-- Alternate Graphic Representation (MARC 880) -->
110 <xsl:if test=
"$display880">
112 <xsl:call-template name=
"m880Select">
113 <xsl:with-param name=
"basetags">245</xsl:with-param>
114 <xsl:with-param name=
"codes">abhfgknps
</xsl:with-param>
120 <xsl:if test=
"marc:datafield[@tag=245]">
121 <h1 class=
"title" property=
"name">
122 <xsl:for-each select=
"marc:datafield[@tag=245]">
123 <xsl:call-template name=
"subfieldSelect">
124 <xsl:with-param name=
"codes">a
</xsl:with-param>
126 <xsl:text> </xsl:text>
127 <!-- 13381 add additional subfields-->
128 <!-- bz 17625 adding subfields f and g -->
129 <xsl:for-each select=
"marc:subfield[contains('bcfghknps', @code)]">
131 <xsl:when test=
"@code='h'">
132 <!-- 13381 Span class around subfield h so it can be suppressed via css -->
133 <span class=
"title_medium"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
135 <xsl:when test=
"@code='c'">
136 <!-- 13381 Span class around subfield c so it can be suppressed via css -->
137 <span class=
"title_resp_stmt"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
140 <xsl:apply-templates/>
141 <xsl:text> </xsl:text>
149 <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
150 <xsl:if test=
"$display880">
152 <xsl:call-template name=
"m880Select">
153 <xsl:with-param name=
"basetags">100,
110,
111,
700,
710,
711</xsl:with-param>
154 <xsl:with-param name=
"codes">abc
</xsl:with-param>
155 <xsl:with-param name=
"index">au
</xsl:with-param>
156 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
157 <!-- do not use label 'by ' here, it would be repeated for every occurrence of 100,110,111,700,710,711 -->
162 <!-- Author Statement -->
163 <xsl:call-template name=
"showAuthor">
164 <xsl:with-param name=
"authorfield" select=
"marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
165 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
168 <!-- #13382 Suppress 700$i and 7xx/@ind2=2 -->
169 <xsl:call-template name=
"showAuthor">
170 <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'])]"/>
171 <xsl:with-param name=
"UseAuthoritiesForTracings" select=
"$UseAuthoritiesForTracings"/>
174 <xsl:if test=
"$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
175 <span class=
"results_summary type"><span class=
"label">Material type:
</span>
176 <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>
177 <xsl:text> </xsl:text>
178 <xsl:value-of select=
"$materialTypeLabel"/>
182 <xsl:call-template name=
"show-lang-041"/>
184 <!--Series: Alternate Graphic Representation (MARC 880) -->
185 <xsl:if test=
"$display880">
186 <xsl:call-template name=
"m880Select">
187 <xsl:with-param name=
"basetags">440,
490</xsl:with-param>
188 <xsl:with-param name=
"codes">av
</xsl:with-param>
189 <xsl:with-param name=
"class">results_summary series
</xsl:with-param>
190 <xsl:with-param name=
"label">Series:
</xsl:with-param>
191 <xsl:with-param name=
"index">se
</xsl:with-param>
196 <xsl:if test=
"marc:datafield[@tag=440 or @tag=490]">
197 <span class=
"results_summary series"><span class=
"label">Series:
</span>
199 <xsl:for-each select=
"marc:datafield[@tag=440]">
200 <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>
201 <xsl:call-template name=
"chopPunctuation">
202 <xsl:with-param name=
"chopString">
203 <xsl:call-template name=
"subfieldSelect">
204 <xsl:with-param name=
"codes">av
</xsl:with-param>
209 <xsl:call-template name=
"part"/>
210 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> ;
</xsl:text></xsl:otherwise></xsl:choose>
213 <!-- 490 Series not traced, Ind1 = 0 -->
214 <xsl:for-each select=
"marc:datafield[@tag=490][@ind1!=1]">
215 <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>
216 <xsl:call-template name=
"chopPunctuation">
217 <xsl:with-param name=
"chopString">
218 <xsl:call-template name=
"subfieldSelect">
219 <xsl:with-param name=
"codes">av
</xsl:with-param>
224 <xsl:call-template name=
"part"/>
225 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
227 <!-- 490 Series traced, Ind1 = 1 -->
228 <xsl:if test=
"marc:datafield[@tag=490][@ind1=1]">
229 <xsl:for-each select=
"marc:datafield[@tag=800 or @tag=810 or @tag=811]">
231 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
232 <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>
233 <xsl:call-template name=
"chopPunctuation">
234 <xsl:with-param name=
"chopString">
235 <xsl:call-template name=
"subfieldSelect">
236 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
242 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
243 <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>
244 <xsl:call-template name=
"chopPunctuation">
245 <xsl:with-param name=
"chopString">
246 <xsl:call-template name=
"subfieldSelect">
247 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
254 <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>
255 <xsl:call-template name=
"chopPunctuation">
256 <xsl:with-param name=
"chopString">
257 <xsl:call-template name=
"subfieldSelect">
258 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
263 <xsl:call-template name=
"part"/>
266 <xsl:text>:
</xsl:text>
267 <xsl:value-of select=
"marc:subfield[@code='v']" />
268 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
271 <xsl:for-each select=
"marc:datafield[@tag=830]">
273 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
274 <a href=
"/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
275 <xsl:call-template name=
"chopPunctuation">
276 <xsl:with-param name=
"chopString">
277 <xsl:call-template name=
"subfieldSelect">
278 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
284 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
285 <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>
286 <xsl:call-template name=
"chopPunctuation">
287 <xsl:with-param name=
"chopString">
288 <xsl:call-template name=
"subfieldSelect">
289 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
296 <a><xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:
"<xsl:value-of select="marc:subfield[@code='a']
"/>"</xsl:attribute>
297 <xsl:call-template name=
"chopPunctuation">
298 <xsl:with-param name=
"chopString">
299 <xsl:call-template name=
"subfieldSelect">
300 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
305 <xsl:call-template name=
"part"/>
308 <xsl:text>:
</xsl:text>
309 <xsl:value-of select=
"marc:subfield[@code='v']" />
310 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
318 <xsl:if test=
"$leader7='s'">
319 <span class=
"results_summary analytics"><span class=
"label">Analytics:
</span>
322 <xsl:when test=
"$UseControlNumber = '1' and marc:controlfield[@tag=001]">
323 <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>
326 <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>
329 <xsl:text>Show analytics
</xsl:text>
334 <!-- Volumes of sets and traced series -->
335 <xsl:if test=
"$materialTypeCode='ST' or substring($controlField008,22,1)='m'">
336 <span class=
"results_summary volumes"><span class=
"label">Volumes:
</span>
339 <xsl:when test=
"$UseControlNumber = '1' and marc:controlfield[@tag=001]">
340 <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>
343 <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>
346 <xsl:text>Show volumes
</xsl:text>
352 <xsl:if test=
"$leader19='c'">
353 <span class=
"results_summary set"><span class=
"label">Set:
</span>
354 <xsl:for-each select=
"marc:datafield[@tag=773]">
357 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
358 <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>
361 <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>
364 <xsl:value-of select=
"translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', '')" />
367 <xsl:when test=
"position()=last()"></xsl:when>
368 <xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise>
374 <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) -->
375 <xsl:if test=
"$display880">
376 <xsl:call-template name=
"m880Select">
377 <xsl:with-param name=
"basetags">260</xsl:with-param>
378 <xsl:with-param name=
"codes">abcg
</xsl:with-param>
379 <xsl:with-param name=
"class">results_summary publisher
</xsl:with-param>
380 <xsl:with-param name=
"label">Publisher:
</xsl:with-param>
384 <!-- Publisher info and RDA related info from tags 260, 264 -->
386 <xsl:when test=
"marc:datafield[@tag=264]">
387 <xsl:call-template name=
"showRDAtag264">
388 <xsl:with-param name=
"show_url">1</xsl:with-param>
391 <xsl:when test=
"marc:datafield[@tag=260]">
392 <span class=
"results_summary publisher"><span class=
"label">Publisher:
</span>
393 <xsl:for-each select=
"marc:datafield[@tag=260]">
394 <xsl:if test=
"marc:subfield[@code='a']">
395 <xsl:call-template name=
"subfieldSelect">
396 <xsl:with-param name=
"codes">a
</xsl:with-param>
399 <xsl:text> </xsl:text>
400 <xsl:if test=
"marc:subfield[@code='b']">
402 <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>
403 <xsl:call-template name=
"subfieldSelect">
404 <xsl:with-param name=
"codes">b
</xsl:with-param>
408 <xsl:text> </xsl:text>
409 <xsl:call-template name=
"chopPunctuation">
410 <xsl:with-param name=
"chopString">
411 <xsl:call-template name=
"subfieldSelect">
412 <xsl:with-param name=
"codes">cg
</xsl:with-param>
416 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
422 <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
423 <xsl:if test=
"$display880">
424 <xsl:call-template name=
"m880Select">
425 <xsl:with-param name=
"basetags">250</xsl:with-param>
426 <xsl:with-param name=
"codes">ab
</xsl:with-param>
427 <xsl:with-param name=
"class">results_summary edition
</xsl:with-param>
428 <xsl:with-param name=
"label">Edition:
</xsl:with-param>
432 <xsl:if test=
"marc:datafield[@tag=250]">
433 <span class=
"results_summary edition"><span class=
"label">Edition:
</span>
434 <xsl:for-each select=
"marc:datafield[@tag=250]">
435 <xsl:call-template name=
"chopPunctuation">
436 <xsl:with-param name=
"chopString">
437 <xsl:call-template name=
"subfieldSelect">
438 <xsl:with-param name=
"codes">ab
</xsl:with-param>
442 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
447 <!-- Description: Alternate Graphic Representation (MARC 880) -->
448 <xsl:if test=
"$display880">
449 <xsl:call-template name=
"m880Select">
450 <xsl:with-param name=
"basetags">300</xsl:with-param>
451 <xsl:with-param name=
"codes">abceg
</xsl:with-param>
452 <xsl:with-param name=
"class">results_summary description
</xsl:with-param>
453 <xsl:with-param name=
"label">Description:
</xsl:with-param>
457 <xsl:if test=
"marc:datafield[@tag=300]">
458 <span class=
"results_summary description"><span class=
"label">Description:
</span>
459 <xsl:for-each select=
"marc:datafield[@tag=300]">
460 <xsl:call-template name=
"chopPunctuation">
461 <xsl:with-param name=
"chopString">
462 <xsl:call-template name=
"subfieldSelect">
463 <xsl:with-param name=
"codes">abcefg
</xsl:with-param>
467 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
472 <!-- Content Type -->
473 <xsl:if test=
"marc:datafield[@tag=336] or marc:datafield[@tag=337] or marc:datafield[@tag=338]">
474 <span class=
"results_summary" id=
"content_type">
475 <xsl:if test=
"marc:datafield[@tag=336]">
476 <span class=
"label">Content type:
</span>
477 <xsl:for-each select=
"marc:datafield[@tag=336]">
478 <xsl:call-template name=
"subfieldSelect">
479 <xsl:with-param name=
"codes">a
</xsl:with-param>
480 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
482 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
485 <xsl:text> </xsl:text>
487 <xsl:if test=
"marc:datafield[@tag=337]">
488 <span class=
"label">Media type:
</span>
489 <xsl:for-each select=
"marc:datafield[@tag=337]">
490 <xsl:call-template name=
"subfieldSelect">
491 <xsl:with-param name=
"codes">a
</xsl:with-param>
492 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
494 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
497 <xsl:text> </xsl:text>
499 <xsl:if test=
"marc:datafield[@tag=338]">
500 <span class=
"label">Carrier type:
</span>
501 <xsl:for-each select=
"marc:datafield[@tag=338]">
502 <xsl:call-template name=
"subfieldSelect">
503 <xsl:with-param name=
"codes">a
</xsl:with-param>
504 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
506 <xsl:if test=
"position() != last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
513 <xsl:call-template name=
"showISBNISSN"/>
515 <xsl:if test=
"marc:datafield[@tag=013]">
516 <span class=
"results_summary patent_info">
517 <span class=
"label">Patent information:
</span>
518 <xsl:for-each select=
"marc:datafield[@tag=013]">
519 <xsl:call-template name=
"subfieldSelect">
520 <xsl:with-param name=
"codes">acdef
</xsl:with-param>
521 <xsl:with-param name=
"delimeter">,
</xsl:with-param>
523 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
528 <xsl:if test=
"marc:datafield[@tag=088]">
529 <span class=
"results_summary report_number">
530 <span class=
"label">Report number:
</span>
531 <xsl:for-each select=
"marc:datafield[@tag=088]">
532 <xsl:call-template name=
"subfieldSelect">
533 <xsl:with-param name=
"codes">a
</xsl:with-param>
535 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
540 <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) -->
541 <xsl:if test=
"$display880">
542 <xsl:call-template name=
"m880Select">
543 <xsl:with-param name=
"basetags">246</xsl:with-param>
544 <xsl:with-param name=
"codes">abhfgnp
</xsl:with-param>
545 <xsl:with-param name=
"class">results_summary other_title
</xsl:with-param>
546 <xsl:with-param name=
"label">Other title:
</xsl:with-param>
550 <xsl:if test=
"marc:datafield[@tag=246]">
551 <span class=
"results_summary other_title"><span class=
"label">Other title:
</span>
552 <xsl:for-each select=
"marc:datafield[@tag=246]">
553 <xsl:call-template name=
"chopPunctuation">
554 <xsl:with-param name=
"chopString">
555 <xsl:call-template name=
"subfieldSelect">
556 <xsl:with-param name=
"codes">abhfgnp
</xsl:with-param>
560 <xsl:if test=
"@ind1=1 and not(marc:subfield[@code='i'])">
562 <xsl:when test=
"@ind2=0"> [Portion of title]
</xsl:when>
563 <xsl:when test=
"@ind2=1"> [Parallel title]
</xsl:when>
564 <xsl:when test=
"@ind2=2"> [Distinctive title]
</xsl:when>
565 <xsl:when test=
"@ind2=3"> [Other title]
</xsl:when>
566 <xsl:when test=
"@ind2=4"> [Cover title]
</xsl:when>
567 <xsl:when test=
"@ind2=5"> [Added title page title]
</xsl:when>
568 <xsl:when test=
"@ind2=6"> [Caption title]
</xsl:when>
569 <xsl:when test=
"@ind2=7"> [Running title]
</xsl:when>
570 <xsl:when test=
"@ind2=8"> [Spine title]
</xsl:when>
573 <xsl:if test=
"marc:subfield[@code='i']">
574 <xsl:value-of select=
"concat(' [',marc:subfield[@code='i'],']')"/>
576 <!-- #13386 added separator | -->
577 <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>
582 <xsl:if test=
"marc:datafield[@tag=242]">
583 <span class=
"results_summary translated_title"><span class=
"label">Title translated:
</span>
584 <xsl:for-each select=
"marc:datafield[@tag=242]">
585 <xsl:call-template name=
"chopPunctuation">
586 <xsl:with-param name=
"chopString">
587 <xsl:call-template name=
"subfieldSelect">
588 <xsl:with-param name=
"codes">abchnp
</xsl:with-param>
592 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
597 <!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) -->
598 <xsl:if test=
"$display880">
599 <xsl:call-template name=
"m880Select">
600 <xsl:with-param name=
"basetags">130,
240</xsl:with-param>
601 <xsl:with-param name=
"codes">adfklmor
</xsl:with-param>
602 <xsl:with-param name=
"class">results_summary uniform_title
</xsl:with-param>
603 <xsl:with-param name=
"label">Uniform title:
</xsl:with-param>
607 <xsl:if test=
"marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
608 <span class=
"results_summary uniform_title"><span class=
"label">Uniform titles:
</span>
609 <xsl:for-each select=
"marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
610 <xsl:for-each select=
"marc:subfield">
611 <xsl:if test=
"contains('adfghklmnoprst',@code)">
612 <xsl:value-of select=
"text()"/>
613 <xsl:text> </xsl:text>
616 <xsl:if test=
"position() != last()">
617 <span class=
"separator"><xsl:text> |
</xsl:text></span>
623 <!-- #13382 Added Related works 700$i -->
624 <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']]">
625 <span class=
"results_summary related_works"><span class=
"label">Related works:
</span>
626 <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']]">
627 <xsl:variable name=
"str">
628 <xsl:call-template name=
"subfieldSelect">
629 <xsl:with-param name=
"codes">abcdfghiklmnporstux
</xsl:with-param>
632 <xsl:call-template name=
"chopPunctuation">
633 <xsl:with-param name=
"chopString">
634 <xsl:value-of select=
"$str"/>
637 <!-- add relator code too between brackets-->
638 <xsl:if test=
"marc:subfield[@code='4' or @code='e']">
639 <span class=
"relatorcode">
640 <xsl:text> [
</xsl:text>
642 <xsl:when test=
"marc:subfield[@code='e']">
643 <xsl:for-each select=
"marc:subfield[@code='e']">
644 <xsl:value-of select=
"."/>
645 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
649 <xsl:for-each select=
"marc:subfield[@code='4']">
650 <xsl:value-of select=
"."/>
651 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
655 <xsl:text>]
</xsl:text>
659 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
665 <!-- #13382 Added Contained Works 7xx@ind2=2 -->
666 <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'])]">
667 <span class=
"results_summary contained_works"><span class=
"label">Contained works:
</span>
668 <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'])]">
669 <xsl:variable name=
"str">
670 <xsl:call-template name=
"subfieldSelect">
671 <xsl:with-param name=
"codes">abcdfghiklmnporstux
</xsl:with-param>
674 <xsl:call-template name=
"chopPunctuation">
675 <xsl:with-param name=
"chopString">
676 <xsl:value-of select=
"$str"/>
679 <!-- add relator code too between brackets-->
680 <xsl:if test=
"marc:subfield[@code='4' or @code='e']">
681 <span class=
"relatorcode">
682 <xsl:text> [
</xsl:text>
684 <xsl:when test=
"marc:subfield[@code='e']">
685 <xsl:for-each select=
"marc:subfield[@code='e']">
686 <xsl:value-of select=
"."/>
687 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
691 <xsl:for-each select=
"marc:subfield[@code='4']">
692 <xsl:value-of select=
"."/>
693 <xsl:if test=
"position() != last()"><xsl:text>,
</xsl:text></xsl:if>
697 <xsl:text>]
</xsl:text>
701 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
708 <xsl:if test=
"marc:datafield[substring(@tag, 1, 1) = '6' and not(@tag=655)]">
709 <span class=
"results_summary subjects"><span class=
"label">Subject(s):
</span>
710 <xsl:for-each select=
"marc:datafield[substring(@tag, 1, 1) = '6'][not(@tag=655)]">
713 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
714 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
715 <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>
717 <xsl:when test=
"$TraceSubjectSubdivisions='1'">
718 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=
<xsl:call-template name=
"subfieldSelectSubject">
719 <xsl:with-param name=
"codes">abcdfgklmnopqrstvxyz
</xsl:with-param>
720 <xsl:with-param name=
"delimeter"> AND
</xsl:with-param>
721 <xsl:with-param name=
"prefix">(su
<xsl:value-of select=
"$SubjectModifier"/>:
<xsl:value-of select=
"$TracingQuotesLeft"/></xsl:with-param>
722 <xsl:with-param name=
"suffix"><xsl:value-of select=
"$TracingQuotesRight"/>)
</xsl:with-param>
723 <xsl:with-param name=
"urlencode">1</xsl:with-param>
728 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
730 <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>
734 <xsl:call-template name=
"chopPunctuation">
735 <xsl:with-param name=
"chopString">
736 <xsl:call-template name=
"subfieldSelect">
737 <xsl:with-param name=
"codes">abcdfgklmnopqrstvxyz
</xsl:with-param>
738 <xsl:with-param name=
"subdivCodes">vxyz
</xsl:with-param>
739 <xsl:with-param name=
"subdivDelimiter">--
</xsl:with-param>
745 <xsl:if test=
"marc:subfield[@code=9]">
746 <xsl:text> </xsl:text>
748 <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>
749 <xsl:element name=
"img">
750 <xsl:attribute name=
"src">/intranet-tmpl/prog/img/filefind.png
</xsl:attribute>
751 <xsl:attribute name=
"alt"></xsl:attribute>
752 <xsl:attribute name=
"height">15</xsl:attribute>
753 <xsl:attribute name=
"width">15</xsl:attribute>
759 <xsl:when test=
"position()=last()"></xsl:when>
760 <xsl:otherwise> |
</xsl:otherwise>
768 <xsl:if test=
"marc:datafield[@tag=655]">
769 <span class=
"results_summary genre"><span class=
"label">Genre/Form:
</span>
770 <xsl:for-each select=
"marc:datafield[@tag=655]">
773 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
774 <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>
776 <xsl:when test=
"$TraceSubjectSubdivisions='1'">
777 <xsl:attribute name=
"href">/cgi-bin/koha/catalogue/search.pl?q=
<xsl:call-template name=
"subfieldSelect">
778 <xsl:with-param name=
"codes">avxyz
</xsl:with-param>
779 <xsl:with-param name=
"delimeter"> AND
</xsl:with-param>
780 <xsl:with-param name=
"prefix">(su
<xsl:value-of select=
"$SubjectModifier"/>:
<xsl:value-of select=
"$TracingQuotesLeft"/></xsl:with-param>
781 <xsl:with-param name=
"suffix"><xsl:value-of select=
"$TracingQuotesRight"/>)
</xsl:with-param>
782 <xsl:with-param name=
"urlencode">1</xsl:with-param>
787 <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>
790 <xsl:call-template name=
"subfieldSelect">
791 <xsl:with-param name=
"codes">avxyz
</xsl:with-param>
792 <xsl:with-param name=
"subdivCodes">vxyz
</xsl:with-param>
793 <xsl:with-param name=
"subdivDelimiter">--
</xsl:with-param>
797 <xsl:if test=
"marc:subfield[@code=9]">
798 <xsl:text> </xsl:text>
800 <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>
801 <xsl:element name=
"img">
802 <xsl:attribute name=
"src">/intranet-tmpl/prog/img/filefind.png
</xsl:attribute>
803 <xsl:attribute name=
"alt"></xsl:attribute>
804 <xsl:attribute name=
"height">15</xsl:attribute>
805 <xsl:attribute name=
"width">15</xsl:attribute>
809 <xsl:if test=
"position()!=last()"><span class=
"separator"> |
</span></xsl:if>
814 <!-- MARC21 776 Additional Physical Form Entry -->
815 <xsl:if test=
"marc:datafield[@tag=776]">
816 <span class=
"results_summary add_physical_form">
817 <span class=
"label">Additional physical formats:
</span>
818 <xsl:for-each select=
"marc:datafield[@tag=776]">
819 <xsl:variable name=
"linktext">
821 <xsl:when test=
"marc:subfield[@code='t']">
822 <xsl:value-of select=
"marc:subfield[@code='t']"/>
824 <xsl:when test=
"marc:subfield[@code='a']">
825 <xsl:value-of select=
"marc:subfield[@code='a']"/>
828 <xsl:text>No title
</xsl:text>
832 <xsl:if test=
"@ind2=8 and marc:subfield[@code='i']">
833 <xsl:call-template name=
"subfieldSelect">
834 <xsl:with-param name=
"codes">i
</xsl:with-param>
836 <xsl:text>:
</xsl:text>
839 <xsl:when test=
"marc:subfield[@code='w']">
841 <xsl:attribute name=
"href">
842 <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=control-number:
</xsl:text>
843 <xsl:call-template name=
"extractControlNumber">
844 <xsl:with-param name=
"subfieldW">
845 <xsl:value-of select=
"marc:subfield[@code='w']"/>
849 <xsl:value-of select=
"$linktext"/>
853 <xsl:value-of select=
"$linktext"/>
856 <xsl:if test=
"position() != last()">
857 <xsl:text>;
</xsl:text>
863 <!-- DDC classification -->
864 <xsl:if test=
"marc:datafield[@tag=082]">
865 <span class=
"results_summary ddc">
866 <span class=
"label">DDC classification:
</span>
867 <xsl:for-each select=
"marc:datafield[@tag=082]">
868 <xsl:call-template name=
"subfieldSelect">
869 <xsl:with-param name=
"codes">a
</xsl:with-param>
870 <xsl:with-param name=
"delimeter"><xsl:text> |
</xsl:text></xsl:with-param>
873 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
874 <xsl:otherwise> |
</xsl:otherwise>
880 <!-- Other classification -->
881 <xsl:if test=
"marc:datafield[@tag=084]">
882 <span class=
"results_summary oc">
883 <span class=
"label">Other classification:
</span>
884 <xsl:for-each select=
"marc:datafield[@tag=084]">
885 <xsl:call-template name=
"subfieldSelect">
886 <xsl:with-param name=
"codes">a
</xsl:with-param>
887 <xsl:with-param name=
"delimeter"><xsl:text> |
</xsl:text></xsl:with-param>
890 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
891 <xsl:otherwise> |
</xsl:otherwise>
897 <xsl:if test=
"marc:datafield[@tag=856]">
898 <span class=
"results_summary online_resources"><span class=
"label">Online resources:
</span>
899 <xsl:for-each select=
"marc:datafield[@tag=856]">
900 <xsl:variable name=
"SubqText"><xsl:value-of select=
"marc:subfield[@code='q']"/></xsl:variable>
902 <xsl:attribute name=
"href">
903 <xsl:if test=
"not(contains(marc:subfield[@code='u'],'://'))">
905 <xsl:when test=
"@ind1=7">
906 <xsl:value-of select=
"marc:subfield[@code='2']"/><xsl:text>://
</xsl:text>
908 <xsl:when test=
"@ind1=1">
909 <xsl:text>ftp://
</xsl:text>
912 <xsl:text>http://
</xsl:text>
916 <xsl:value-of select=
"marc:subfield[@code='u']"/>
919 <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')">
920 <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>
922 <xsl:when test=
"marc:subfield[@code='y' or @code='3' or @code='z']">
923 <xsl:call-template name=
"subfieldSelect">
924 <xsl:with-param name=
"codes">y3z
</xsl:with-param>
927 <xsl:when test=
"not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
929 <xsl:when test=
"$URLLinkText!=''">
930 <xsl:value-of select=
"$URLLinkText"/>
933 <xsl:text>Click here to access online
</xsl:text>
940 <xsl:when test=
"position()=last()"><xsl:text> </xsl:text></xsl:when>
941 <xsl:otherwise> |
</xsl:otherwise>
948 <xsl:if test=
"marc:datafield[@tag=505]">
949 <div class=
"results_summary contents">
951 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=0">
952 <span class=
"label">Contents:
</span>
954 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=1">
955 <span class=
"label">Incomplete contents:
</span>
957 <xsl:when test=
"marc:datafield[@tag=505]/@ind1=2">
958 <span class=
"label">Partial contents:
</span>
961 <xsl:for-each select=
"marc:datafield[@tag=505]">
962 <div class='contentblock'
>
964 <xsl:when test=
"@ind2=0">
965 <xsl:call-template name=
"subfieldSelectSpan">
966 <xsl:with-param name=
"codes">tru
</xsl:with-param>
970 <xsl:call-template name=
"subfieldSelectSpan">
971 <xsl:with-param name=
"codes">atru
</xsl:with-param>
981 <xsl:if test=
"marc:datafield[@tag=586]">
982 <span class=
"results_summary awardsnote">
983 <xsl:if test=
"marc:datafield[@tag=586]/@ind1=' '">
984 <span class=
"label">Awards:
</span>
986 <xsl:for-each select=
"marc:datafield[@tag=586]">
987 <xsl:value-of select=
"marc:subfield[@code='a']"/>
988 <xsl:if test=
"position()!=last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
994 <xsl:if test=
"marc:datafield[@tag=583]">
995 <xsl:for-each select=
"marc:datafield[@tag=583]">
996 <xsl:if test=
"@ind1=1 or @ind1=' '">
997 <span class=
"results_summary actionnote">
998 <span class=
"label">Action note:
</span>
1000 <xsl:when test=
"marc:subfield[@code='z']">
1001 <xsl:value-of select=
"marc:subfield[@code='z']"/>
1004 <xsl:call-template name=
"subfieldSelect">
1005 <xsl:with-param name=
"codes">abcdefgijklnou
</xsl:with-param>
1006 </xsl:call-template>
1015 <xsl:if test=
"marc:datafield[@tag=508]">
1016 <div class=
"results_summary prod_credits">
1017 <span class=
"label">Production credits:
</span>
1018 <xsl:for-each select=
"marc:datafield[@tag=508]">
1019 <xsl:call-template name=
"subfieldSelectSpan">
1020 <xsl:with-param name=
"codes">a
</xsl:with-param>
1021 </xsl:call-template>
1022 <xsl:if test=
"position()!=last()"><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:if>
1028 <xsl:if test=
"marc:datafield[@tag=773]">
1029 <xsl:for-each select=
"marc:datafield[@tag=773]">
1030 <xsl:if test=
"@ind1 !=1">
1031 <span class=
"results_summary in"><span class=
"label">
1033 <xsl:when test=
"@ind2=' '">
1036 <xsl:when test=
"@ind2=8">
1037 <xsl:if test=
"marc:subfield[@code='i']">
1038 <xsl:value-of select=
"marc:subfield[@code='i']"/>
1043 <xsl:variable name=
"f773">
1044 <xsl:call-template name=
"chopPunctuation">
1045 <xsl:with-param name=
"chopString">
1046 <xsl:call-template name=
"subfieldSelect">
1047 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1048 </xsl:call-template>
1050 </xsl:call-template>
1053 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1054 <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>
1055 <xsl:value-of select=
"translate($f773, '()', '')"/>
1058 <xsl:when test=
"marc:subfield[@code='0']">
1059 <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>
1060 <xsl:value-of select=
"$f773"/>
1064 <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>
1065 <xsl:value-of select=
"$f773"/>
1069 <xsl:if test=
"marc:subfield[@code='g']">
1070 <xsl:text> </xsl:text><xsl:value-of select=
"marc:subfield[@code='g']"/>
1074 <xsl:if test=
"marc:subfield[@code='n']">
1075 <span class=
"results_summary in_note"><xsl:value-of select=
"marc:subfield[@code='n']"/></span>
1082 <xsl:if test=
"marc:datafield[@tag=502]">
1083 <span class=
"results_summary diss_note">
1084 <span class=
"label">Dissertation note:
</span>
1085 <xsl:for-each select=
"marc:datafield[@tag=502]">
1086 <xsl:call-template name=
"subfieldSelect">
1087 <xsl:with-param name=
"codes">abcdgo
</xsl:with-param>
1088 </xsl:call-template>
1090 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
1094 <!-- 866 textual holdings -->
1095 <xsl:if test=
"marc:datafield[@tag=866]">
1096 <span class=
"results_summary holdings_note basic_bibliographic_unit"><span class=
"label">Holdings:
</span>
1097 <xsl:for-each select=
"marc:datafield[@tag=866]">
1098 <span class=
"holdings_note_data">
1099 <xsl:call-template name=
"subfieldSelect">
1100 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1101 </xsl:call-template>
1102 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
1108 <!-- 867 textual holdings -->
1109 <xsl:if test=
"marc:datafield[@tag=867]">
1110 <span class=
"results_summary holdings_note supplementary_material"><span class=
"label">Supplements:
</span>
1111 <xsl:for-each select=
"marc:datafield[@tag=867]">
1112 <span class=
"holdings_note_data">
1113 <xsl:call-template name=
"subfieldSelect">
1114 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1115 </xsl:call-template>
1116 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise></xsl:choose>
1122 <!-- 868 textual holdings -->
1123 <xsl:if test=
"marc:datafield[@tag=868]">
1124 <span class=
"results_summary holdings_note indexes"><span class=
"label">Indexes:
</span>
1125 <xsl:for-each select=
"marc:datafield[@tag=868]">
1126 <span class=
"holdings_note_data">
1127 <xsl:call-template name=
"subfieldSelect">
1128 <xsl:with-param name=
"codes">axz
</xsl:with-param>
1129 </xsl:call-template>
1130 <xsl:choose><xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>;
</xsl:text><br /></xsl:otherwise></xsl:choose>
1137 <!-- 775 Other Edition -->
1138 <xsl:if test=
"marc:datafield[@tag=775]">
1139 <span class=
"results_summary other_editions"><span class=
"label">Other editions:
</span>
1140 <xsl:for-each select=
"marc:datafield[@tag=775]">
1141 <xsl:variable name=
"f775">
1142 <xsl:call-template name=
"chopPunctuation"><xsl:with-param name=
"chopString"><xsl:call-template name=
"subfieldSelect">
1143 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1144 </xsl:call-template></xsl:with-param></xsl:call-template>
1146 <xsl:if test=
"marc:subfield[@code='i']">
1147 <xsl:call-template name=
"subfieldSelect">
1148 <xsl:with-param name=
"codes">i
</xsl:with-param>
1149 </xsl:call-template>
1150 <xsl:text>:
</xsl:text>
1154 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1155 <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>
1158 <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>
1161 <xsl:call-template name=
"subfieldSelect">
1162 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1163 </xsl:call-template>
1166 <xsl:when test=
"position()=last()"></xsl:when>
1167 <xsl:otherwise><xsl:text>;
</xsl:text></xsl:otherwise>
1174 <xsl:if test=
"marc:datafield[@tag=780]">
1175 <xsl:for-each select=
"marc:datafield[@tag=780]">
1176 <xsl:if test=
"@ind1=0">
1177 <span class=
"results_summary preceeding_entry">
1179 <xsl:when test=
"@ind2=0">
1180 <span class=
"label">Continues:
</span>
1182 <xsl:when test=
"@ind2=1">
1183 <span class=
"label">Continues in part:
</span>
1185 <xsl:when test=
"@ind2=2">
1186 <span class=
"label">Supersedes:
</span>
1188 <xsl:when test=
"@ind2=3">
1189 <span class=
"label">Supersedes in part:
</span>
1191 <xsl:when test=
"@ind2=4">
1192 <span class=
"label">Formed by the union: ... and: ...
</span>
1194 <xsl:when test=
"@ind2=5">
1195 <span class=
"label">Absorbed:
</span>
1197 <xsl:when test=
"@ind2=6">
1198 <span class=
"label">Absorbed in part:
</span>
1200 <xsl:when test=
"@ind2=7">
1201 <span class=
"label">Separated from:
</span>
1204 <xsl:text> </xsl:text>
1205 <xsl:variable name=
"f780">
1206 <xsl:call-template name=
"subfieldSelect">
1207 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1208 </xsl:call-template>
1211 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1212 <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>
1213 <xsl:value-of select=
"translate($f780, '()', '')"/>
1217 <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>
1218 <xsl:value-of select=
"translate($f780, '()', '')"/>
1224 <xsl:if test=
"marc:subfield[@code='n']">
1225 <span class=
"results_summary preceeding_entry_note"><xsl:value-of select=
"marc:subfield[@code='n']"/></span>
1233 <xsl:if test=
"marc:datafield[@tag=785]">
1234 <xsl:for-each select=
"marc:datafield[@tag=785]">
1235 <span class=
"results_summary succeeding_entry">
1237 <xsl:when test=
"@ind2=0">
1238 <span class=
"label">Continued by:
</span>
1240 <xsl:when test=
"@ind2=1">
1241 <span class=
"label">Continued in part by:
</span>
1243 <xsl:when test=
"@ind2=2">
1244 <span class=
"label">Superseded by:
</span>
1246 <xsl:when test=
"@ind2=3">
1247 <span class=
"label">Superseded in part by:
</span>
1249 <xsl:when test=
"@ind2=4">
1250 <span class=
"label">Absorbed by:
</span>
1252 <xsl:when test=
"@ind2=5">
1253 <span class=
"label">Absorbed in part by:
</span>
1255 <xsl:when test=
"@ind2=6">
1256 <span class=
"label">Split into .. and ...:
</span>
1258 <xsl:when test=
"@ind2=7">
1259 <span class=
"label">Merged with ... to form ...
</span>
1261 <xsl:when test=
"@ind2=8">
1262 <span class=
"label">Changed back to:
</span>
1265 <xsl:text> </xsl:text>
1266 <xsl:variable name=
"f785">
1267 <xsl:call-template name=
"subfieldSelect">
1268 <xsl:with-param name=
"codes">a_t
</xsl:with-param>
1269 </xsl:call-template>
1273 <xsl:when test=
"$UseControlNumber = '1' and marc:subfield[@code='w']">
1274 <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>
1275 <xsl:value-of select=
"translate($f785, '()', '')"/>
1279 <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>
1280 <xsl:value-of select=
"translate($f785, '()', '')"/>
1289 <xsl:if test=
"$OPACBaseURL!=''">
1290 <span class=
"results_summary succeeding_entry_note"><span class=
"label">OPAC view:
</span>
1291 <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>.
1297 <xsl:template name=
"nameABCQ">
1298 <xsl:call-template name=
"chopPunctuation">
1299 <xsl:with-param name=
"chopString">
1300 <xsl:call-template name=
"subfieldSelect">
1301 <xsl:with-param name=
"codes">abcq
</xsl:with-param>
1302 </xsl:call-template>
1304 <xsl:with-param name=
"punctuation">
1305 <xsl:text>:,;/
</xsl:text>
1307 </xsl:call-template>
1310 <xsl:template name=
"nameABCDN">
1311 <xsl:call-template name=
"chopPunctuation">
1312 <xsl:with-param name=
"chopString">
1313 <xsl:call-template name=
"subfieldSelect">
1314 <xsl:with-param name=
"codes">abcdn
</xsl:with-param>
1315 </xsl:call-template>
1317 <xsl:with-param name=
"punctuation">
1318 <xsl:text>:,;/
</xsl:text>
1320 </xsl:call-template>
1323 <xsl:template name=
"nameACDEQ">
1324 <xsl:call-template name=
"subfieldSelect">
1325 <xsl:with-param name=
"codes">acdeq
</xsl:with-param>
1326 </xsl:call-template>
1329 <xsl:template name=
"part">
1330 <xsl:variable name=
"partNumber">
1331 <xsl:call-template name=
"specialSubfieldSelect">
1332 <xsl:with-param name=
"axis">n
</xsl:with-param>
1333 <xsl:with-param name=
"anyCodes">n
</xsl:with-param>
1334 <xsl:with-param name=
"afterCodes">fghkdlmor
</xsl:with-param>
1335 </xsl:call-template>
1337 <xsl:variable name=
"partName">
1338 <xsl:call-template name=
"specialSubfieldSelect">
1339 <xsl:with-param name=
"axis">p
</xsl:with-param>
1340 <xsl:with-param name=
"anyCodes">p
</xsl:with-param>
1341 <xsl:with-param name=
"afterCodes">fghkdlmor
</xsl:with-param>
1342 </xsl:call-template>
1344 <xsl:if test=
"string-length(normalize-space($partNumber))">
1345 <xsl:call-template name=
"chopPunctuation">
1346 <xsl:with-param name=
"chopString" select=
"$partNumber"/>
1347 </xsl:call-template>
1349 <xsl:if test=
"string-length(normalize-space($partName))">
1350 <xsl:call-template name=
"chopPunctuation">
1351 <xsl:with-param name=
"chopString" select=
"$partName"/>
1352 </xsl:call-template>
1356 <xsl:template name=
"specialSubfieldSelect">
1357 <xsl:param name=
"anyCodes"/>
1358 <xsl:param name=
"axis"/>
1359 <xsl:param name=
"beforeCodes"/>
1360 <xsl:param name=
"afterCodes"/>
1361 <xsl:variable name=
"str">
1362 <xsl:for-each select=
"marc:subfield">
1363 <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])">
1364 <xsl:value-of select=
"text()"/>
1365 <xsl:text> </xsl:text>
1369 <xsl:value-of select=
"substring($str,1,string-length($str)-1)"/>
1372 <xsl:template name=
"showAuthor">
1373 <xsl:param name=
"authorfield"/>
1374 <xsl:param name=
"UseAuthoritiesForTracings"/>
1375 <xsl:if test=
"count($authorfield)>0">
1377 <xsl:for-each select=
"$authorfield">
1379 <xsl:when test=
"position()>1"/>
1381 <xsl:when test=
"@tag<700">By:
</xsl:when>
1382 <!--#13382 Changed Additional author to contributor -->
1383 <xsl:otherwise>Contributor(s):
</xsl:otherwise>
1387 <xsl:when test=
"marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1388 <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>
1391 <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>
1395 <xsl:when test=
"@tag=100 or @tag=110 or @tag=111">
1397 <xsl:call-template name=
"chopPunctuation">
1398 <xsl:with-param name=
"chopString">
1399 <xsl:call-template name=
"subfieldSelect">
1400 <xsl:with-param name=
"codes">
1402 <!-- #13383 include subfield e for field 111, Display only name portion in 1XX -->
1403 <xsl:when test=
"@tag=111">aeq
</xsl:when>
1404 <xsl:when test=
"@tag=110">ab
</xsl:when>
1405 <xsl:otherwise>abcjq
</xsl:otherwise>
1408 </xsl:call-template>
1410 <xsl:with-param name=
"punctuation">
1411 <xsl:text>:,;/
</xsl:text>
1413 </xsl:call-template>
1414 <!-- Display only name and title portion in 110 field -->
1415 <xsl:if test=
"@tag=110 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])">
1416 <span class=
"titleportion">
1418 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1419 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1421 <xsl:call-template name=
"chopPunctuation">
1422 <xsl:with-param name=
"chopString">
1423 <xsl:call-template name=
"subfieldSelect">
1424 <xsl:with-param name=
"codes">cdnt
</xsl:with-param>
1425 </xsl:call-template>
1427 </xsl:call-template>
1430 <!-- Display only name and title portion in 111 field -->
1431 <xsl:if test=
"@tag=111 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])">
1432 <span class=
"titleportion">
1434 <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>
1435 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1438 <xsl:call-template name=
"chopPunctuation">
1439 <xsl:with-param name=
"chopString">
1440 <xsl:call-template name=
"subfieldSelect">
1441 <xsl:with-param name=
"codes">cdgnt
</xsl:with-param>
1442 </xsl:call-template>
1444 </xsl:call-template>
1447 <!-- Display only dates in 100 field -->
1448 <xsl:if test=
"@tag=100 and marc:subfield[@code='d']">
1449 <span class=
"authordates">
1450 <xsl:text>,
</xsl:text>
1451 <xsl:call-template name=
"chopPunctuation">
1452 <xsl:with-param name=
"chopString">
1453 <xsl:call-template name=
"subfieldSelect">
1454 <xsl:with-param name=
"codes">d
</xsl:with-param>
1455 </xsl:call-template>
1457 </xsl:call-template>
1462 <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works -->
1463 <!--#13382 Added all relevant subfields 4, e, and d are handled separately -->
1464 <xsl:when test=
"@tag=700 or @tag=710 or @tag=711">
1465 <!-- Includes major changes for 7XX fields; display name portion in 710 and 711 fields -->
1466 <xsl:if test=
"@tag=710 or @tag=711">
1467 <xsl:call-template name=
"chopPunctuation">
1468 <xsl:with-param name=
"chopString">
1469 <xsl:call-template name=
"subfieldSelect">
1470 <xsl:with-param name=
"codes">
1472 <xsl:when test=
"@tag=711">aeq
</xsl:when>
1473 <xsl:otherwise>ab
</xsl:otherwise>
1476 </xsl:call-template>
1478 <xsl:with-param name=
"punctuation">
1479 <xsl:text>:,;/
</xsl:text>
1481 </xsl:call-template>
1482 <!-- Display only name and title portion in 711 field -->
1483 <xsl:if test=
"@tag=711 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])">
1484 <span class=
"titleportion">
1486 <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>
1487 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1490 <xsl:call-template name=
"chopPunctuation">
1491 <xsl:with-param name=
"chopString">
1492 <xsl:call-template name=
"subfieldSelect">
1493 <xsl:with-param name=
"codes">cdgnt
</xsl:with-param>
1494 </xsl:call-template>
1496 </xsl:call-template>
1499 <!-- Display only name and title portion in 710 field -->
1500 <xsl:if test=
"@tag=710 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])">
1501 <span class=
"titleportion">
1503 <xsl:when test=
"marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
1504 <xsl:otherwise><xsl:text>.
</xsl:text></xsl:otherwise>
1506 <xsl:call-template name=
"chopPunctuation">
1507 <xsl:with-param name=
"chopString">
1508 <xsl:call-template name=
"subfieldSelect">
1509 <xsl:with-param name=
"codes">cdnt
</xsl:with-param>
1510 </xsl:call-template>
1512 </xsl:call-template>
1517 <!-- Display only name portion in 700 field -->
1518 <xsl:if test=
"@tag=700">
1519 <xsl:call-template name=
"chopPunctuation">
1520 <xsl:with-param name=
"chopString">
1521 <xsl:call-template name=
"subfieldSelect">
1522 <xsl:with-param name=
"codes">abcq
</xsl:with-param>
1523 </xsl:call-template>
1525 </xsl:call-template>
1527 <!-- Display class "authordates" in 700 field -->
1528 <xsl:if test=
"@tag=700 and marc:subfield[@code='d']">
1529 <span class=
"authordates">
1530 <xsl:text>,
</xsl:text>
1531 <xsl:call-template name=
"chopPunctuation">
1532 <xsl:with-param name=
"chopString">
1533 <xsl:call-template name=
"subfieldSelect">
1534 <xsl:with-param name=
"codes">d
</xsl:with-param>
1535 </xsl:call-template>
1537 </xsl:call-template>
1540 <!-- Display class "titleportion" in 700 field -->
1541 <xsl:variable name=
"titleportionfields" select=
"boolean(marc:subfield[@code='t' or @code='j' or @code='k' or @code='u'])"/>
1542 <xsl:if test=
"@tag=700 and $titleportionfields">
1543 <span class=
"titleportion">
1544 <xsl:text>.
</xsl:text>
1545 <xsl:call-template name=
"chopPunctuation">
1546 <xsl:with-param name=
"chopString">
1547 <xsl:call-template name=
"subfieldSelect">
1548 <xsl:with-param name=
"codes">fghjklmnoprstux
</xsl:with-param>
1549 </xsl:call-template>
1551 </xsl:call-template>
1558 <!-- add relator code too between brackets-->
1559 <!-- #13383 include relator code j for field 111 -->
1560 <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'])">
1561 <span class=
"relatorcode">
1562 <xsl:text> [
</xsl:text>
1564 <xsl:when test=
"@tag=111 or @tag=711">
1566 <!-- Prefer j over 4 for fields 111 and 711-->
1567 <xsl:when test=
"marc:subfield[@code='j']">
1568 <xsl:for-each select=
"marc:subfield[@code='j']">
1569 <xsl:value-of select=
"."/>
1570 <xsl:if test=
"position() != last()">,
</xsl:if>
1574 <xsl:for-each select=
"marc:subfield[@code=4]">
1575 <xsl:value-of select=
"."/>
1576 <xsl:if test=
"position() != last()">,
</xsl:if>
1581 <!-- Prefer e over 4 for fields 111 and 711-->
1582 <xsl:when test=
"marc:subfield[@code='e'][not(@tag=111) or not(@tag=711)]">
1583 <xsl:for-each select=
"marc:subfield[@code='e']">
1584 <xsl:value-of select=
"."/>
1585 <xsl:if test=
"position() != last()">,
</xsl:if>
1589 <xsl:for-each select=
"marc:subfield[@code=4]">
1590 <xsl:value-of select=
"."/>
1591 <xsl:if test=
"position() != last()">,
</xsl:if>
1595 <xsl:text>]
</xsl:text>
1600 <xsl:when test=
"position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class=
"separator"><xsl:text> |
</xsl:text></span></xsl:otherwise>
1608 <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
1609 <xsl:template name=
"subfieldSelectSubject">
1610 <xsl:param name=
"codes"/>
1611 <xsl:param name=
"delimeter"><xsl:text> </xsl:text></xsl:param>
1612 <xsl:param name=
"subdivCodes"/>
1613 <xsl:param name=
"subdivDelimiter"/>
1614 <xsl:param name=
"prefix"/>
1615 <xsl:param name=
"suffix"/>
1616 <xsl:param name=
"urlencode"/>
1617 <xsl:variable name=
"str">
1618 <xsl:for-each select=
"marc:subfield">
1619 <xsl:if test=
"contains($codes, @code)">
1620 <xsl:if test=
"contains($subdivCodes, @code)">
1621 <xsl:value-of select=
"$subdivDelimiter"/>
1623 <xsl:value-of select=
"$prefix"/><xsl:value-of select=
"translate(text(),'()','')"/><xsl:value-of select=
"$suffix"/><xsl:value-of select=
"$delimeter"/>
1628 <xsl:when test=
"$urlencode=1">
1629 <xsl:value-of select=
"str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
1632 <xsl:value-of select=
"substring($str,1,string-length($str)-string-length($delimeter))"/>