1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3 <!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
4 <xsl:stylesheet version="1.0"
5 xmlns:marc="http://www.loc.gov/MARC21/slim"
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:str="http://exslt.org/strings"
8 exclude-result-prefixes="marc str">
9 <xsl:import href="MARC21slimUtils.xsl"/>
10 <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
12 <xsl:template match="/">
13 <xsl:apply-templates/>
15 <xsl:template match="marc:record">
17 <!-- Option: Display Alternate Graphic Representation (MARC 880) -->
18 <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
19 <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
21 <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
22 <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
23 <xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/>
24 <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
25 <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
26 <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
27 <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
28 <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
29 <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
30 <xsl:variable name="leader" select="marc:leader"/>
31 <xsl:variable name="leader6" select="substring($leader,7,1)"/>
32 <xsl:variable name="leader7" select="substring($leader,8,1)"/>
33 <xsl:variable name="leader19" select="substring($leader,20,1)"/>
34 <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
35 <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
36 <xsl:variable name="typeOf008">
38 <xsl:when test="$leader19='a'">ST</xsl:when>
39 <xsl:when test="$leader6='a'">
41 <xsl:when test="$leader7='a' or $leader7='c' or $leader7='d' or $leader7='m'">BK</xsl:when>
42 <xsl:when test="$leader7='b' or $leader7='i' or $leader7='s'">CR</xsl:when>
45 <xsl:when test="$leader6='t'">BK</xsl:when>
46 <xsl:when test="$leader6='o' or $leader6='p'">MX</xsl:when>
47 <xsl:when test="$leader6='m'">CF</xsl:when>
48 <xsl:when test="$leader6='e' or $leader6='f'">MP</xsl:when>
49 <xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'">VM</xsl:when>
50 <xsl:when test="$leader6='i' or $leader6='j'">MU</xsl:when>
51 <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
54 <xsl:variable name="controlField008-23" select="substring($controlField008,24,1)"/>
55 <xsl:variable name="controlField008-21" select="substring($controlField008,22,1)"/>
56 <xsl:variable name="controlField008-22" select="substring($controlField008,23,1)"/>
57 <xsl:variable name="controlField008-24" select="substring($controlField008,25,4)"/>
58 <xsl:variable name="controlField008-26" select="substring($controlField008,27,1)"/>
59 <xsl:variable name="controlField008-29" select="substring($controlField008,30,1)"/>
60 <xsl:variable name="controlField008-34" select="substring($controlField008,35,1)"/>
61 <xsl:variable name="controlField008-33" select="substring($controlField008,34,1)"/>
62 <xsl:variable name="controlField008-30-31" select="substring($controlField008,31,2)"/>
64 <xsl:variable name="physicalDescription">
65 <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='a']">
68 <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='b']">
71 <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='d']">
72 digitized other analog
75 <xsl:variable name="check008-23">
76 <xsl:if test="$typeOf008='BK' or $typeOf008='MU' or $typeOf008='CR' or $typeOf008='MX'">
77 <xsl:value-of select="true()"></xsl:value-of>
80 <xsl:variable name="check008-29">
81 <xsl:if test="$typeOf008='MP' or $typeOf008='VM'">
82 <xsl:value-of select="true()"></xsl:value-of>
86 <xsl:when test="($check008-23 and $controlField008-23='f') or ($check008-29 and $controlField008-29='f')">
89 <xsl:when test="($controlField008-23=' ' and ($leader6='c' or $leader6='d')) or (($typeOf008='BK' or $typeOf008='CR') and ($controlField008-23=' ' or $controlField008='r'))">
92 <xsl:when test="$leader6 = 'm' or ($check008-23 and $controlField008-23='s') or ($check008-29 and $controlField008-29='s')">
95 <xsl:when test="($check008-23 and $controlField008-23='b') or ($check008-29 and $controlField008-29='b')">
98 <xsl:when test="($check008-23 and $controlField008-23='a') or ($check008-29 and $controlField008-29='a')">
101 <xsl:when test="($controlField008-23='d' and ($typeOf008='BK' or $typeOf008='CR'))">
106 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='b']">
109 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='j']">
112 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='m']">
115 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='r']">
118 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='a']">
121 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='f']">
124 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='h']">
128 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='o'][substring(text(),2,1)='o']">
132 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='d']">
135 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='g']">
138 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='j']">
141 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']">
144 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='k']">
147 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='r']">
150 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='s']">
153 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='y']">
157 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='a']">
160 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='e']">
163 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='f']">
166 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='b']">
169 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='c']">
172 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='d']">
175 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='g']">
178 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='c']">
181 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='f']">
184 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='r']">
187 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='c']">
190 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='f']">
191 photomechanical print
193 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='g']">
196 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='h']">
199 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='j']">
202 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='l']">
205 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='d']">
208 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='c']">
211 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='o']">
214 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='f']">
217 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='t']">
220 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='r'][substring(text(),2,1)='r']">
223 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='e']">
226 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='q']">
229 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='g']">
232 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='s']">
235 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='t']">
238 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='i']">
241 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='w']">
244 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='c']">
247 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='b']">
250 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='a']">
253 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='d']">
254 tactile, with no writing system
256 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='c']">
259 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='a']">
262 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='d']">
263 text in looseleaf binder
265 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='c']">
268 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='f']">
271 <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='r']">
275 <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q'][string-length(.)>1]">
276 <xsl:value-of select="."></xsl:value-of>
278 <xsl:for-each select="marc:datafield[@tag=300]">
279 <xsl:call-template name="subfieldSelect">
280 <xsl:with-param name="codes">abce</xsl:with-param>
286 <!-- Indicate if record is suppressed in OPAC -->
287 <xsl:if test="$OpacSuppression = 1">
288 <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
289 <span class="results_summary suppressed_opac">Suppressed in OPAC</span>
293 <!-- Title Statement: Alternate Graphic Representation (MARC 880) -->
294 <xsl:if test="$display880">
295 <xsl:call-template name="m880Select">
296 <xsl:with-param name="basetags">245</xsl:with-param>
297 <xsl:with-param name="codes">abhfgknps</xsl:with-param>
298 <xsl:with-param name="bibno"><xsl:value-of select="$biblionumber"/></xsl:with-param>
303 <xsl:attribute name="href">
304 <xsl:call-template name="buildBiblioDefaultViewURL">
305 <xsl:with-param name="IntranetBiblioDefaultView">
306 <xsl:value-of select="$IntranetBiblioDefaultView"/>
309 <xsl:value-of select="str:encode-uri($biblionumber, true())"/>
311 <xsl:attribute name="class">title</xsl:attribute>
313 <xsl:if test="marc:datafield[@tag=245]">
314 <xsl:for-each select="marc:datafield[@tag=245]">
315 <xsl:call-template name="subfieldSelect">
316 <xsl:with-param name="codes">a</xsl:with-param>
318 <xsl:text> </xsl:text>
319 <!-- 13381 add additional subfields-->
320 <!-- bz 17625 adding subfields f and g -->
321 <xsl:for-each select="marc:subfield[contains('bcfghknps', @code)]">
323 <xsl:when test="@code='h'">
324 <!-- 13381 Span class around subfield h so it can be suppressed via css -->
325 <span class="title_medium"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
327 <xsl:when test="@code='c'">
328 <!-- 13381 Span class around subfield c so it can be suppressed via css -->
329 <span class="title_resp_stmt"><xsl:apply-templates/> <xsl:text> </xsl:text> </span>
332 <xsl:apply-templates/>
333 <xsl:text> </xsl:text>
341 <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
342 <xsl:if test="$display880">
343 <xsl:call-template name="m880Select">
344 <xsl:with-param name="basetags">100,110,111,700,710,711</xsl:with-param>
345 <xsl:with-param name="codes">abc</xsl:with-param>
350 <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
351 <p class="author"><span class="byAuthor">by </span>
353 <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700 or @tag=110 or @tag=710 or @tag=111 or @tag=711) and @ind1!='z']">
356 <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
357 <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>
360 <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>
363 <xsl:call-template name="chopPunctuation">
364 <xsl:with-param name="chopString">
365 <xsl:call-template name="subfieldSelect">
366 <xsl:with-param name="codes">
368 <!-- #13383 include subfield e for field 111 -->
369 <xsl:when test="@tag=111 or @tag=711">aeq</xsl:when>
370 <xsl:when test="@tag=110 or @tag=710">ab</xsl:when>
371 <xsl:otherwise>abcjq</xsl:otherwise>
376 <xsl:with-param name="punctuation">
377 <xsl:text>:,;/ </xsl:text>
380 <!-- Display title portion for 110 and 710 fields -->
381 <xsl:if test="(@tag=110 or @tag=710) and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])">
382 <span class="titleportion">
384 <xsl:when test="marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when>
385 <xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise>
387 <xsl:call-template name="chopPunctuation">
388 <xsl:with-param name="chopString">
389 <xsl:call-template name="subfieldSelect">
390 <xsl:with-param name="codes">cdnt</xsl:with-param>
396 <!-- Display title portion for 111 and 711 fields -->
397 <xsl:if test="(@tag=111 or @tag=711) and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])">
398 <span class="titleportion">
400 <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>
401 <xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise>
404 <xsl:call-template name="chopPunctuation">
405 <xsl:with-param name="chopString">
406 <xsl:call-template name="subfieldSelect">
407 <xsl:with-param name="codes">cdgnt</xsl:with-param>
413 <!-- Display dates for 100 and 700 fields -->
414 <xsl:if test="(@tag=100 or @tag=700) and marc:subfield[@code='d']">
415 <span class="authordates">
416 <xsl:text>, </xsl:text>
417 <xsl:call-template name="chopPunctuation">
418 <xsl:with-param name="chopString">
419 <xsl:call-template name="subfieldSelect">
420 <xsl:with-param name="codes">d</xsl:with-param>
426 <!-- Display title portion for 100 and 700 fields -->
427 <xsl:if test="@tag=700 and marc:subfield[@code='t']">
428 <span class="titleportion">
429 <xsl:text>. </xsl:text>
430 <xsl:call-template name="chopPunctuation">
431 <xsl:with-param name="chopString">
432 <xsl:call-template name="subfieldSelect">
433 <xsl:with-param name="codes">t</xsl:with-param>
440 <!-- Display relators for 1XX and 7XX fields -->
441 <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])">
442 <span class="relatorcode">
443 <xsl:text> [</xsl:text>
445 <xsl:when test="@tag=111 or @tag=711">
447 <!-- Prefer j over 4 -->
448 <xsl:when test="marc:subfield[@code='j']">
449 <xsl:for-each select="marc:subfield[@code='j']">
450 <xsl:value-of select="."/>
451 <xsl:if test="position() != last()">, </xsl:if>
455 <xsl:for-each select="marc:subfield[@code=4]">
456 <xsl:value-of select="."/>
457 <xsl:if test="position() != last()">, </xsl:if>
462 <!-- Prefer e over 4 -->
463 <xsl:when test="marc:subfield[@code='e']">
464 <xsl:for-each select="marc:subfield[@code='e'][not(@tag=111) or not(@tag=711)]">
465 <xsl:value-of select="."/>
466 <xsl:if test="position() != last()">, </xsl:if>
470 <xsl:for-each select="marc:subfield[@code=4]">
471 <xsl:value-of select="."/>
472 <xsl:if test="position() != last()">, </xsl:if>
476 <xsl:text>]</xsl:text>
480 <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
487 <xsl:if test="$DisplayIconsXSLT!='0'">
488 <span class="results_summary">
489 <xsl:if test="$typeOf008!=''">
490 <span class="results_material_type">
491 <span class="label">Material type: </span>
493 <xsl:when test="$leader19='a'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book_link.png" alt="book" title="book" class="materialtype"/> Set</xsl:when>
494 <xsl:when test="$leader6='a'">
496 <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Text</xsl:when>
497 <xsl:when test="$leader7='i' or $leader7='s'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/newspaper.png" alt="serial" title="serial" class="materialtype mt_icon_CR"/> Continuing resource</xsl:when>
498 <xsl:when test="$leader7='a' or $leader7='b'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book_open.png" alt="article" title="article" class="materialtype mt_icon_AR"/> Article</xsl:when>
501 <xsl:when test="$leader6='t'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Text</xsl:when>
502 <xsl:when test="$leader6='o'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/report_disk.png" alt="kit" title="kit" class="materialtype mt_icon_MX"/> Kit</xsl:when>
503 <xsl:when test="$leader6='p'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/report_disk.png" alt="mixed materials" title="mixed materials" class="materialtype mt_icon_MX"/>Mixed materials</xsl:when>
504 <xsl:when test="$leader6='m'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/computer_link.png" alt="computer file" title="computer file" class="materialtype mt_icon_CF"/> Computer file</xsl:when>
505 <xsl:when test="$leader6='e' or $leader6='f'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/map.png" alt="map" title="map" class="materialtype mt_icon_MP"/> Map</xsl:when>
506 <xsl:when test="$leader6='g'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/film.png" alt="Film" class="materialtype mt_icon_VM"/> Film</xsl:when>
507 <xsl:when test="$leader6='k'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/picture.png" alt="Picture" class="materialtype mt_icon_GR"/> Picture</xsl:when>
508 <xsl:when test="$leader6='r'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/object.png" alt="Object" title="Object" class="materialtype mt_icon_OB"/> Object</xsl:when>
509 <xsl:when test="$leader6='c' or $leader6='d'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/music.png" alt="score" title="score" class="materialtype mt_icon_PR"/> Score</xsl:when>
510 <xsl:when test="$leader6='i'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="sound" title="sound" class="materialtype mt_icon_MU"/> Sound</xsl:when>
511 <xsl:when test="$leader6='j'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="music" title="music" class="materialtype mt_icon_MU"/> Music</xsl:when>
516 <xsl:if test="string-length(normalize-space($physicalDescription))">
517 <span class="results_format">
518 <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
522 <xsl:if test="$controlField008-21 or $controlField008-22 or $controlField008-24 or $controlField008-26 or $controlField008-29 or $controlField008-34 or $controlField008-33 or $controlField008-30-31 or $controlField008-33">
524 <xsl:if test="$typeOf008='CR'">
525 <span class="results_typeofcontinueing">
526 <xsl:if test="$controlField008-21 and $controlField008-21 !='|' and $controlField008-21 !=' '">
527 <span class="label">; Type of continuing resource: </span>
530 <xsl:when test="$controlField008-21='l'">
533 <xsl:when test="$controlField008-21='m'">
536 <xsl:when test="$controlField008-21='n'">
539 <xsl:when test="$controlField008-21='p'">
545 <xsl:if test="$typeOf008='BK' or $typeOf008='CR'">
546 <xsl:if test="contains($controlField008-24,'abcdefghijklmnopqrstvwxyz')">
547 <span class="results_natureofcontents">
548 <span class="label">; Nature of contents: </span>
550 <xsl:when test="contains($controlField008-24,'a')">
553 <xsl:when test="contains($controlField008-24,'b')">
556 <xsl:when test="contains($controlField008-24,'c')">
559 <xsl:when test="contains($controlField008-24,'d')">
562 <xsl:when test="contains($controlField008-24,'e')">
565 <xsl:when test="contains($controlField008-24,'f')">
568 <xsl:when test="contains($controlField008-24,'g')">
571 <xsl:when test="contains($controlField008-24,'i')">
574 <xsl:when test="contains($controlField008-24,'k')">
577 <xsl:when test="contains($controlField008-24,'l')">
580 <xsl:when test="contains($controlField008-24,'m')">
583 <xsl:when test="contains($controlField008-24,'n')">
586 <xsl:when test="contains($controlField008-24,'o')">
589 <xsl:when test="contains($controlField008-24,'p')">
592 <xsl:when test="contains($controlField008-24,'q')">
595 <xsl:when test="contains($controlField008-24,'r')">
598 <xsl:when test="contains($controlField008-24,'s')">
601 <xsl:when test="contains($controlField008-24,'v')">
602 legal case and case notes
604 <xsl:when test="contains($controlField008-24,'w')">
607 <xsl:when test="contains($controlField008-24,'z')">
612 <xsl:when test="$controlField008-29='1'">
613 conference publication
619 <xsl:if test="$typeOf008='CF'">
620 <span class="results_typeofcomp">
621 <xsl:if test="$controlField008-26='a' or $controlField008-26='e' or $controlField008-26='f' or $controlField008-26='g'">
622 <span class="label">; Type of computer file: </span>
625 <xsl:when test="$controlField008-26='a'">
631 <xsl:if test="$typeOf008='BK'">
632 <span class="results_contents_literary">
633 <xsl:if test="(substring($controlField008,25,1)='j') or (substring($controlField008,25,1)='1') or ($controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d')">
634 <span class="label">; Nature of contents: </span>
636 <xsl:if test="substring($controlField008,25,1)='j'">
639 <xsl:if test="substring($controlField008,31,1)='1'">
643 <xsl:if test="$controlField008-33 and $controlField008-33!='|' and $controlField008-33!='u' and $controlField008-33!=' '">
644 <span class="label">; Literary form: </span>
647 <xsl:when test="$controlField008-33='0'">
650 <xsl:when test="$controlField008-33='1'">
653 <xsl:when test="$controlField008-33='d'">
656 <xsl:when test="$controlField008-33='e'">
659 <xsl:when test="$controlField008-33='f'">
662 <xsl:when test="$controlField008-33='h'">
665 <xsl:when test="$controlField008-33='i'">
668 <xsl:when test="$controlField008-33='j'">
671 <xsl:when test="$controlField008-33='m'">
674 <xsl:when test="$controlField008-33='p'">
677 <xsl:when test="$controlField008-33='s'">
683 <xsl:if test="$typeOf008='MU' and $controlField008-30-31 and $controlField008-30-31!='||' and $controlField008-30-31!=' '">
684 <span class="results_literaryform">
685 <span class="label">; Literary form: </span> <!-- Literary text for sound recordings -->
686 <xsl:if test="contains($controlField008-30-31,'b')">
689 <xsl:if test="contains($controlField008-30-31,'c')">
690 conference publication
692 <xsl:if test="contains($controlField008-30-31,'d')">
695 <xsl:if test="contains($controlField008-30-31,'e')">
698 <xsl:if test="contains($controlField008-30-31,'f')">
701 <xsl:if test="contains($controlField008-30-31,'o')">
704 <xsl:if test="contains($controlField008-30-31,'h')">
707 <xsl:if test="contains($controlField008-30-31,'k')">
710 <xsl:if test="contains($controlField008-30-31,'m')">
713 <xsl:if test="contains($controlField008-30-31,'p')">
716 <xsl:if test="contains($controlField008-30-31,'r')">
719 <xsl:if test="contains($controlField008-30-31,'g')">
722 <xsl:if test="contains($controlField008-30-31,'s')">
725 <xsl:if test="contains($controlField008-30-31,'l')">
730 <xsl:if test="$typeOf008='VM'">
731 <span class="results_typeofvisual">
732 <span class="label">; Type of visual material: </span>
734 <xsl:when test="$controlField008-33='a'">
737 <xsl:when test="$controlField008-33='b'">
740 <xsl:when test="$controlField008-33='c'">
743 <xsl:when test="$controlField008-33='d'">
746 <xsl:when test="$controlField008-33='f'">
749 <xsl:when test="$controlField008-33='g'">
752 <xsl:when test="$controlField008-33='i'">
755 <xsl:when test="$controlField008-33='k'">
758 <xsl:when test="$controlField008-33='l'">
761 <xsl:when test="$controlField008-33='m'">
764 <xsl:when test="$controlField008-33='n'">
767 <xsl:when test="$controlField008-33='o'">
770 <xsl:when test="$controlField008-33='p'">
773 <xsl:when test="$controlField008-33='q' or marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']">
776 <xsl:when test="$controlField008-33='r'">
779 <xsl:when test="$controlField008-33='s'">
782 <xsl:when test="$controlField008-33='t'">
785 <xsl:when test="$controlField008-33='v'">
788 <xsl:when test="$controlField008-33='w'">
796 <xsl:if test="($typeOf008='BK' or $typeOf008='CF' or $typeOf008='MU' or $typeOf008='VM') and ($controlField008-22='a' or $controlField008-22='b' or $controlField008-22='c' or $controlField008-22='d' or $controlField008-22='e' or $controlField008-22='g' or $controlField008-22='j' or $controlField008-22='f')">
797 <span class="results_audience">
798 <span class="label">; Audience: </span>
800 <xsl:when test="$controlField008-22='a'">
803 <xsl:when test="$controlField008-22='b'">
806 <xsl:when test="$controlField008-22='c'">
809 <xsl:when test="$controlField008-22='d'">
812 <xsl:when test="$controlField008-22='e'">
815 <xsl:when test="$controlField008-22='g'">
818 <xsl:when test="$controlField008-22='j'">
821 <xsl:when test="$controlField008-22='f'">
827 <xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
829 </xsl:if> <!-- DisplayIconsXSLT -->
831 <xsl:call-template name="show-lang-041"/>
833 <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) -->
834 <xsl:if test="$display880">
835 <xsl:call-template name="m880Select">
836 <xsl:with-param name="basetags">260</xsl:with-param>
837 <xsl:with-param name="codes">abcg</xsl:with-param>
838 <xsl:with-param name="class">results_summary publisher</xsl:with-param>
839 <xsl:with-param name="label">Publisher: </xsl:with-param>
843 <xsl:call-template name="show-series">
844 <xsl:with-param name="searchurl">/cgi-bin/koha/catalogue/search.pl</xsl:with-param>
845 <xsl:with-param name="UseControlNumber" select="$UseControlNumber"/>
846 <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
849 <!-- Publisher info and RDA related info from tags 260, 264 -->
851 <xsl:when test="marc:datafield[@tag=264]">
852 <xsl:call-template name="showRDAtag264"/>
854 <xsl:when test="marc:datafield[@tag=260]">
855 <span class="results_summary publisher"><span class="label">Publisher: </span>
856 <xsl:for-each select="marc:datafield[@tag=260]">
857 <xsl:if test="marc:subfield[@code='a']">
858 <xsl:call-template name="subfieldSelect">
859 <xsl:with-param name="codes">a</xsl:with-param>
862 <xsl:text> </xsl:text>
863 <xsl:if test="marc:subfield[@code='b']">
864 <xsl:call-template name="subfieldSelect">
865 <xsl:with-param name="codes">b</xsl:with-param>
868 <xsl:text> </xsl:text>
869 <xsl:call-template name="chopPunctuation">
870 <xsl:with-param name="chopString">
871 <xsl:call-template name="subfieldSelect">
872 <xsl:with-param name="codes">cg</xsl:with-param>
876 <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
882 <!-- Dissertation note -->
883 <xsl:if test="marc:datafield[@tag=502]">
884 <span class="results_summary diss_note">
885 <span class="label">Dissertation note: </span>
886 <xsl:for-each select="marc:datafield[@tag=502]">
887 <xsl:call-template name="subfieldSelect">
888 <xsl:with-param name="codes">abcdgo</xsl:with-param>
891 <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
895 <xsl:if test="marc:datafield[@tag=300]">
896 <span class="results_summary description"><span class="label">Description: </span>
897 <xsl:for-each select="marc:datafield[@tag=300]">
898 <xsl:call-template name="chopPunctuation">
899 <xsl:with-param name="chopString">
900 <xsl:call-template name="subfieldSelect">
901 <xsl:with-param name="codes">abcefg</xsl:with-param>
905 <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
910 <xsl:call-template name="showISBNISSN"/>
912 <xsl:if test="marc:datafield[@tag=250]">
913 <span class="results_summary edition">
914 <span class="label">Edition: </span>
915 <xsl:for-each select="marc:datafield[@tag=250]">
916 <xsl:call-template name="subfieldSelect">
917 <xsl:with-param name="codes">ab</xsl:with-param>
923 <xsl:if test="marc:datafield[@tag=773]">
924 <xsl:for-each select="marc:datafield[@tag=773]">
925 <xsl:if test="marc:subfield[@code='t']">
926 <span class="results_summary source">
927 <span class="label">Source: </span>
928 <xsl:value-of select="marc:subfield[@code='t']"/>
934 <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) -->
935 <xsl:if test="$display880">
936 <xsl:call-template name="m880Select">
937 <xsl:with-param name="basetags">246</xsl:with-param>
938 <xsl:with-param name="codes">ab</xsl:with-param>
939 <xsl:with-param name="class">results_summary other_title</xsl:with-param>
940 <xsl:with-param name="label">Other title: </xsl:with-param>
944 <xsl:if test="marc:datafield[@tag=246]">
945 <span class="results_summary other_title">
946 <span class="label">Other title: </span>
947 <xsl:for-each select="marc:datafield[@tag=246]">
948 <xsl:call-template name="subfieldSelect">
949 <xsl:with-param name="codes">ab</xsl:with-param>
951 <!-- #13386 added separator | -->
952 <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>
956 <xsl:if test="marc:datafield[@tag=856]">
957 <span class="results_summary online_access">
958 <span class="label">Online access: </span>
959 <xsl:for-each select="marc:datafield[@tag=856]">
960 <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
962 <xsl:attribute name="href">
963 <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">
965 <xsl:when test="@ind1=7">
966 <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text>
968 <xsl:when test="@ind1=1">
969 <xsl:text>ftp://</xsl:text>
972 <xsl:text>http://</xsl:text>
976 <xsl:value-of select="marc:subfield[@code='u']"/>
979 <xsl:when test="($Show856uAsImage='Results' 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')">
980 <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>
982 <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
983 <xsl:call-template name="subfieldSelect">
984 <xsl:with-param name="codes">y3z</xsl:with-param>
987 <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
989 <xsl:when test="$URLLinkText!=''">
990 <xsl:value-of select="$URLLinkText"/>
993 <xsl:text>Click here to access online</xsl:text>
1000 <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
1001 <xsl:otherwise> | </xsl:otherwise>
1008 <xsl:template name="nameABCQ">
1009 <xsl:call-template name="chopPunctuation">
1010 <xsl:with-param name="chopString">
1011 <xsl:call-template name="subfieldSelect">
1012 <xsl:with-param name="codes">abcq</xsl:with-param>
1013 </xsl:call-template>
1015 <xsl:with-param name="punctuation">
1016 <xsl:text>:,;/ </xsl:text>
1018 </xsl:call-template>
1021 <xsl:template name="nameABCDN">
1022 <xsl:call-template name="chopPunctuation">
1023 <xsl:with-param name="chopString">
1024 <xsl:call-template name="subfieldSelect">
1025 <xsl:with-param name="codes">abcdn</xsl:with-param>
1026 </xsl:call-template>
1028 <xsl:with-param name="punctuation">
1029 <xsl:text>:,;/ </xsl:text>
1031 </xsl:call-template>
1034 <xsl:template name="nameACDEQ">
1035 <xsl:call-template name="subfieldSelect">
1036 <xsl:with-param name="codes">acdeq</xsl:with-param>
1037 </xsl:call-template>
1040 <xsl:template name="nameDate">
1041 <xsl:for-each select="marc:subfield[@code='d']">
1042 <xsl:call-template name="chopPunctuation">
1043 <xsl:with-param name="chopString" select="."/>
1044 </xsl:call-template>
1048 <xsl:template name="role">
1049 <xsl:for-each select="marc:subfield[@code='e']">
1050 <xsl:value-of select="."/>
1052 <xsl:for-each select="marc:subfield[@code='4']">
1053 <xsl:value-of select="."/>
1057 <xsl:template name="specialSubfieldSelect">
1058 <xsl:param name="anyCodes"/>
1059 <xsl:param name="axis"/>
1060 <xsl:param name="beforeCodes"/>
1061 <xsl:param name="afterCodes"/>
1062 <xsl:variable name="str">
1063 <xsl:for-each select="marc:subfield">
1064 <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])">
1065 <xsl:value-of select="text()"/>
1066 <xsl:text> </xsl:text>
1070 <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
1073 <xsl:template name="subtitle">
1074 <xsl:if test="marc:subfield[@code='b']">
1075 <xsl:call-template name="chopPunctuation">
1076 <xsl:with-param name="chopString">
1077 <xsl:value-of select="marc:subfield[@code='b']"/>
1079 <!--<xsl:call-template name="subfieldSelect">
1080 <xsl:with-param name="codes">b</xsl:with-param>
1081 </xsl:call-template>-->
1083 </xsl:call-template>
1087 <xsl:template name="chopBrackets">
1088 <xsl:param name="chopString"></xsl:param>
1089 <xsl:variable name="string">
1090 <xsl:call-template name="chopPunctuation">
1091 <xsl:with-param name="chopString" select="$chopString"></xsl:with-param>
1092 </xsl:call-template>
1094 <xsl:if test="substring($string, 1,1)='['">
1095 <xsl:value-of select="substring($string,2, string-length($string)-2)"></xsl:value-of>
1097 <xsl:if test="substring($string, 1,1)!='['">
1098 <xsl:value-of select="$string"></xsl:value-of>