Bug 12901: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / xslt / MARC21slim2OPACResults.xsl
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 "&#160;" >]>
4 <xsl:stylesheet version="1.0"
5   xmlns:marc="http://www.loc.gov/MARC21/slim"
6   xmlns:items="http://www.koha-community.org/items"
7   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8   exclude-result-prefixes="marc items">
9     <xsl:import href="MARC21slimUtils.xsl"/>
10     <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
11     <xsl:key name="item-by-status" match="items:item" use="items:status"/>
12     <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
13
14     <xsl:template match="/">
15             <xsl:apply-templates/>
16     </xsl:template>
17     <xsl:template match="marc:record">
18
19         <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
20         <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
21
22     <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
23     <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
24     <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
25     <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
26     <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
27     <xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/>
28     <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
29     <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
30     <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
31     <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
32     <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
33     <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
34         <xsl:variable name="leader" select="marc:leader"/>
35         <xsl:variable name="leader6" select="substring($leader,7,1)"/>
36         <xsl:variable name="leader7" select="substring($leader,8,1)"/>
37         <xsl:variable name="leader19" select="substring($leader,20,1)"/>
38         <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
39         <xsl:variable name="isbn" select="marc:datafield[@tag=020]/marc:subfield[@code='a']"/>
40         <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
41         <xsl:variable name="typeOf008">
42             <xsl:choose>
43                 <xsl:when test="$leader19='a'">ST</xsl:when>
44                 <xsl:when test="$leader6='a'">
45                     <xsl:choose>
46                         <xsl:when test="$leader7='a' or $leader7='c' or $leader7='d' or $leader7='m'">BK</xsl:when>
47                         <xsl:when test="$leader7='b' or $leader7='i' or $leader7='s'">CR</xsl:when>
48                     </xsl:choose>
49                 </xsl:when>
50                 <xsl:when test="$leader6='t'">BK</xsl:when>
51                 <xsl:when test="$leader6='o' or $leader6='p'">MX</xsl:when>
52                 <xsl:when test="$leader6='m'">CF</xsl:when>
53                 <xsl:when test="$leader6='e' or $leader6='f'">MP</xsl:when>
54                 <xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'">VM</xsl:when>
55                 <xsl:when test="$leader6='i' or $leader6='j'">MU</xsl:when>
56                 <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
57             </xsl:choose>
58         </xsl:variable>
59         <xsl:variable name="controlField008-23" select="substring($controlField008,24,1)"/>
60         <xsl:variable name="controlField008-21" select="substring($controlField008,22,1)"/>
61         <xsl:variable name="controlField008-22" select="substring($controlField008,23,1)"/>
62         <xsl:variable name="controlField008-24" select="substring($controlField008,25,4)"/>
63         <xsl:variable name="controlField008-26" select="substring($controlField008,27,1)"/>
64         <xsl:variable name="controlField008-29" select="substring($controlField008,30,1)"/>
65         <xsl:variable name="controlField008-34" select="substring($controlField008,35,1)"/>
66         <xsl:variable name="controlField008-33" select="substring($controlField008,34,1)"/>
67         <xsl:variable name="controlField008-30-31" select="substring($controlField008,31,2)"/>
68
69         <xsl:variable name="physicalDescription">
70             <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='a']">
71                 reformatted digital
72             </xsl:if>
73             <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='b']">
74                 digitized microfilm
75             </xsl:if>
76             <xsl:if test="$typeOf008='CF' and marc:controlfield[@tag=007][substring(.,12,1)='d']">
77                 digitized other analog
78             </xsl:if>
79
80             <xsl:variable name="check008-23">
81                 <xsl:if test="$typeOf008='BK' or $typeOf008='MU' or $typeOf008='CR' or $typeOf008='MX'">
82                     <xsl:value-of select="true()"></xsl:value-of>
83                 </xsl:if>
84             </xsl:variable>
85             <xsl:variable name="check008-29">
86                 <xsl:if test="$typeOf008='MP' or $typeOf008='VM'">
87                     <xsl:value-of select="true()"></xsl:value-of>
88                 </xsl:if>
89             </xsl:variable>
90             <xsl:choose>
91                 <xsl:when test="($check008-23 and $controlField008-23='f') or ($check008-29 and $controlField008-29='f')">
92                     braille
93                 </xsl:when>
94                 <xsl:when test="($controlField008-23=' ' and ($leader6='c' or $leader6='d')) or (($typeOf008='BK' or $typeOf008='CR') and ($controlField008-23=' ' or $controlField008='r'))">
95                     print
96                 </xsl:when>
97                 <xsl:when test="$leader6 = 'm' or ($check008-23 and $controlField008-23='s') or ($check008-29 and $controlField008-29='s')">
98                     electronic
99                 </xsl:when>
100                 <xsl:when test="($check008-23 and $controlField008-23='b') or ($check008-29 and $controlField008-29='b')">
101                     microfiche
102                 </xsl:when>
103                 <xsl:when test="($check008-23 and $controlField008-23='a') or ($check008-29 and $controlField008-29='a')">
104                     microfilm
105                 </xsl:when>
106             </xsl:choose>
107 <!--
108             <xsl:if test="marc:datafield[@tag=130]/marc:subfield[@code='h']">
109                     <xsl:call-template name="chopBrackets">
110                         <xsl:with-param name="chopString">
111                             <xsl:value-of select="marc:datafield[@tag=130]/marc:subfield[@code='h']"></xsl:value-of>
112                         </xsl:with-param>
113                     </xsl:call-template>
114             </xsl:if>
115             <xsl:if test="marc:datafield[@tag=240]/marc:subfield[@code='h']">
116                     <xsl:call-template name="chopBrackets">
117                         <xsl:with-param name="chopString">
118                             <xsl:value-of select="marc:datafield[@tag=240]/marc:subfield[@code='h']"></xsl:value-of>
119                         </xsl:with-param>
120                     </xsl:call-template>
121             </xsl:if>
122             <xsl:if test="marc:datafield[@tag=242]/marc:subfield[@code='h']">
123                     <xsl:call-template name="chopBrackets">
124                         <xsl:with-param name="chopString">
125                             <xsl:value-of select="marc:datafield[@tag=242]/marc:subfield[@code='h']"></xsl:value-of>
126                         </xsl:with-param>
127                     </xsl:call-template>
128             </xsl:if>
129             <xsl:if test="marc:datafield[@tag=245]/marc:subfield[@code='h']">
130                     <xsl:call-template name="chopBrackets">
131                         <xsl:with-param name="chopString">
132                             <xsl:value-of select="marc:datafield[@tag=245]/marc:subfield[@code='h']"></xsl:value-of>
133                         </xsl:with-param>
134                     </xsl:call-template>
135             </xsl:if>
136             <xsl:if test="marc:datafield[@tag=246]/marc:subfield[@code='h']">
137                     <xsl:call-template name="chopBrackets">
138                         <xsl:with-param name="chopString">
139                             <xsl:value-of select="marc:datafield[@tag=246]/marc:subfield[@code='h']"></xsl:value-of>
140                         </xsl:with-param>
141                     </xsl:call-template>
142             </xsl:if>
143             <xsl:if test="marc:datafield[@tag=730]/marc:subfield[@code='h']">
144                     <xsl:call-template name="chopBrackets">
145                         <xsl:with-param name="chopString">
146                             <xsl:value-of select="marc:datafield[@tag=730]/marc:subfield[@code='h']"></xsl:value-of>
147                         </xsl:with-param>
148                     </xsl:call-template>
149             </xsl:if>
150             <xsl:for-each select="marc:datafield[@tag=256]/marc:subfield[@code='a']">
151                     <xsl:value-of select="."></xsl:value-of>
152             </xsl:for-each>
153             <xsl:for-each select="marc:controlfield[@tag=007][substring(text(),1,1)='c']">
154                 <xsl:choose>
155                     <xsl:when test="substring(text(),14,1)='a'">
156                         access
157                     </xsl:when>
158                     <xsl:when test="substring(text(),14,1)='p'">
159                         preservation
160                     </xsl:when>
161                     <xsl:when test="substring(text(),14,1)='r'">
162                         replacement
163                     </xsl:when>
164                 </xsl:choose>
165             </xsl:for-each>
166 -->
167             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='b']">
168                 chip cartridge
169             </xsl:if>
170             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='c']">
171                 <img src="/opac-tmpl/lib/famfamfam/silk/cd.png" alt="computer optical disc cartridge" title="computer optical disc cartridge" class="format"/>
172             </xsl:if>
173             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='j']">
174                 magnetic disc
175             </xsl:if>
176             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='m']">
177                 magneto-optical disc
178             </xsl:if>
179             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='o']">
180                 <img src="/opac-tmpl/lib/famfamfam/silk/cd.png" alt="optical disc" title="optical disc" class="format"/>
181             </xsl:if>
182             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='r']">
183                 available online
184                 <img src="/opac-tmpl/lib/famfamfam/silk/drive_web.png" alt="remote" title="remote" class="format"/>
185             </xsl:if>
186             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='a']">
187                 tape cartridge
188             </xsl:if>
189             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='f']">
190                 tape cassette
191             </xsl:if>
192             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='h']">
193                 tape reel
194             </xsl:if>
195
196             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='a']">
197                 <img src="/opac-tmpl/lib/famfamfam/silk/world.png" alt="celestial globe" title="celestial globe" class="format"/>
198             </xsl:if>
199             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='e']">
200                 <img src="/opac-tmpl/lib/famfamfam/silk/world.png" alt="earth moon globe" title="earth moon globe" class="format"/>
201             </xsl:if>
202             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='b']">
203                 <img src="/opac-tmpl/lib/famfamfam/silk/world.png" alt="planetary or lunar globe" title="planetary or lunar globe" class="format"/>
204             </xsl:if>
205             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='c']">
206                 <img src="/opac-tmpl/lib/famfamfam/silk/world.png" alt="terrestrial globe" title="terrestrial globe" class="format"/>
207             </xsl:if>
208
209             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='o'][substring(text(),2,1)='o']">
210                 kit
211             </xsl:if>
212
213             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='d']">
214                 atlas
215             </xsl:if>
216             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='g']">
217                 diagram
218             </xsl:if>
219             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='j']">
220                 map
221             </xsl:if>
222             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']">
223                 model
224             </xsl:if>
225             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='k']">
226                 profile
227             </xsl:if>
228             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='r']">
229                 remote-sensing image
230             </xsl:if>
231             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='s']">
232                 section
233             </xsl:if>
234             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='y']">
235                 view
236             </xsl:if>
237
238             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='a']">
239                 aperture card
240             </xsl:if>
241             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='e']">
242                 microfiche
243             </xsl:if>
244             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='f']">
245                 microfiche cassette
246             </xsl:if>
247             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='b']">
248                 microfilm cartridge
249             </xsl:if>
250             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='c']">
251                 microfilm cassette
252             </xsl:if>
253             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='d']">
254                 microfilm reel
255             </xsl:if>
256             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='g']">
257                 microopaque
258             </xsl:if>
259             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='c']">
260                 film cartridge
261             </xsl:if>
262             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='f']">
263                 film cassette
264             </xsl:if>
265             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='r']">
266                 film reel
267             </xsl:if>
268             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='n']">
269                 <img src="/opac-tmpl/lib/famfamfam/silk/chart_curve.png" alt="chart" title="chart" class="format"/>
270             </xsl:if>
271             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='c']">
272                 collage
273             </xsl:if>
274             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='d']">
275                  <img src="/opac-tmpl/lib/famfamfam/silk/pencil.png" alt="drawing" title="drawing" class="format"/>
276             </xsl:if>
277             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='o']">
278                 <img src="/opac-tmpl/lib/famfamfam/silk/note.png" alt="flash card" title="flash card" class="format"/>
279             </xsl:if>
280             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='e']">
281                 <img src="/opac-tmpl/lib/famfamfam/silk/paintbrush.png" alt="painting" title="painting" class="format"/>
282             </xsl:if>
283             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='f']">
284                 photomechanical print
285             </xsl:if>
286             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='g']">
287                 photonegative
288             </xsl:if>
289             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='h']">
290                 photoprint
291             </xsl:if>
292             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='i']">
293                 <img src="/opac-tmpl/lib/famfamfam/silk/picture.png" alt="picture" title="picture" class="format"/>
294             </xsl:if>
295             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='j']">
296                 print
297             </xsl:if>
298             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='l']">
299                 technical drawing
300             </xsl:if>
301             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='q'][substring(text(),2,1)='q']">
302                 <img src="/opac-tmpl/lib/famfamfam/silk/script.png" alt="notated music" title="notated music" class="format"/>
303             </xsl:if>
304             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='d']">
305                 filmslip
306             </xsl:if>
307             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='c']">
308                 filmstrip cartridge
309             </xsl:if>
310             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='o']">
311                 filmstrip roll
312             </xsl:if>
313             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='f']">
314                 other filmstrip type
315             </xsl:if>
316             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='s']">
317                 <img src="/opac-tmpl/lib/famfamfam/silk/pictures.png" alt="slide" title="slide" class="format"/>
318             </xsl:if>
319             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='t']">
320                 transparency
321             </xsl:if>
322             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='r'][substring(text(),2,1)='r']">
323                 remote-sensing image
324             </xsl:if>
325             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='e']">
326                 cylinder
327             </xsl:if>
328             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='q']">
329                 roll
330             </xsl:if>
331             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='g']">
332                 sound cartridge
333             </xsl:if>
334             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='s']">
335                 sound cassette
336             </xsl:if>
337             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='d']">
338                 <img src="/opac-tmpl/lib/famfamfam/silk/cd.png" alt="sound disc" title="sound disc" class="format"/>
339             </xsl:if>
340             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='t']">
341                 sound-tape reel
342             </xsl:if>
343             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='i']">
344                 sound-track film
345             </xsl:if>
346             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='w']">
347                 wire recording
348             </xsl:if>
349             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='c']">
350                 braille
351             </xsl:if>
352             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='b']">
353                 combination
354             </xsl:if>
355             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='a']">
356                 moon
357             </xsl:if>
358             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='d']">
359                 tactile, with no writing system
360             </xsl:if>
361             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='c']">
362                 braille
363             </xsl:if>
364             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='b']">
365                 <img src="/opac-tmpl/lib/famfamfam/silk/magnifier.png" alt="large print" title="large print" class="format"/>
366             </xsl:if>
367             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='a']">
368                 regular print
369             </xsl:if>
370             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='d']">
371                 text in looseleaf binder
372             </xsl:if>
373             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='c']">
374                 videocartridge
375             </xsl:if>
376             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='f']">
377                 videocassette
378             </xsl:if>
379             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='d']">
380                 <img src="/opac-tmpl/lib/famfamfam/silk/dvd.png" alt="videodisc" title="videodisc" class="format"/>
381             </xsl:if>
382             <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='r']">
383                 videoreel
384             </xsl:if>
385 <!--
386             <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q'][string-length(.)>1]">
387                     <xsl:value-of select="."></xsl:value-of>
388             </xsl:for-each>
389             <xsl:for-each select="marc:datafield[@tag=300]">
390                     <xsl:call-template name="subfieldSelect">
391                         <xsl:with-param name="codes">abce</xsl:with-param>
392                     </xsl:call-template>
393             </xsl:for-each>
394 -->
395         </xsl:variable>
396
397         <!-- Title Statement: Alternate Graphic Representation (MARC 880) -->
398         <xsl:if test="$display880">
399            <xsl:call-template name="m880Select">
400               <xsl:with-param name="basetags">245</xsl:with-param>
401               <xsl:with-param name="codes">abhfgknps</xsl:with-param>
402               <xsl:with-param name="bibno"><xsl:value-of  select="$biblionumber"/></xsl:with-param>
403            </xsl:call-template>
404         </xsl:if>
405
406     <a>
407         <xsl:attribute name="href">
408             <xsl:call-template name="buildBiblioDefaultViewURL">
409                 <xsl:with-param name="BiblioDefaultView">
410                     <xsl:value-of select="$BiblioDefaultView"/>
411                 </xsl:with-param>
412             </xsl:call-template>
413             <xsl:value-of select="$biblionumber"/>
414         </xsl:attribute>
415         <xsl:attribute name="class">title</xsl:attribute>
416
417         <xsl:if test="marc:datafield[@tag=245]">
418         <xsl:for-each select="marc:datafield[@tag=245]">
419             <xsl:variable name="title">
420                      <xsl:call-template name="subfieldSelect">
421                         <xsl:with-param name="codes">a</xsl:with-param>
422                     </xsl:call-template>
423                     <xsl:if test="marc:subfield[@code='h']">
424                         <xsl:text> </xsl:text>
425                         <xsl:call-template name="subfieldSelect">
426                             <xsl:with-param name="codes">h</xsl:with-param>
427                         </xsl:call-template>
428                     </xsl:if>
429                     <xsl:if test="marc:subfield[@code='b']">
430                         <xsl:text> </xsl:text>
431                         <xsl:call-template name="subfieldSelect">
432                             <xsl:with-param name="codes">b</xsl:with-param>
433                         </xsl:call-template>
434                     </xsl:if>
435                 <xsl:text> </xsl:text>
436                     <xsl:call-template name="subfieldSelect">
437                         <xsl:with-param name="codes">fgknps</xsl:with-param>
438                      </xsl:call-template>
439             </xsl:variable>
440             <xsl:variable name="titleChop">
441                 <xsl:call-template name="chopPunctuation">
442                     <xsl:with-param name="chopString">
443                         <xsl:value-of select="$title"/>
444                     </xsl:with-param>
445                 </xsl:call-template>
446             </xsl:variable>
447             <xsl:value-of select="$titleChop"/>
448         </xsl:for-each>
449         </xsl:if>
450     </a>
451     <p>
452
453     <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
454     <xsl:if test="$display880">
455       <xsl:call-template name="m880Select">
456       <xsl:with-param name="basetags">100,110,111,700,710,711</xsl:with-param>
457       <xsl:with-param name="codes">abc</xsl:with-param>
458       </xsl:call-template>
459     </xsl:if>
460
461     <xsl:choose>
462     <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]">
463
464     by <span class="author">
465         <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
466             <xsl:choose>
467             <xsl:when test="position()=last()">
468                 <xsl:call-template name="nameABCQ"/>.
469             </xsl:when>
470             <xsl:otherwise>
471                 <xsl:call-template name="nameABCQ"/>;
472             </xsl:otherwise>
473             </xsl:choose>
474         </xsl:for-each>
475
476         <xsl:for-each select="marc:datafield[(@tag=110 or @tag=710) and @ind1!='z']">
477             <xsl:choose>
478             <xsl:when test="position()=1">
479                 <xsl:text> -- </xsl:text>
480             </xsl:when>
481             </xsl:choose>
482             <xsl:choose>
483             <xsl:when test="position()=last()">
484                 <xsl:call-template name="nameABCDN"/>
485             </xsl:when>
486             <xsl:otherwise>
487                 <xsl:call-template name="nameABCDN"/>;
488             </xsl:otherwise>
489             </xsl:choose>
490         </xsl:for-each>
491
492         <xsl:for-each select="marc:datafield[(@tag=111 or @tag=711) and @ind1!='z']">
493             <xsl:choose>
494             <xsl:when test="position()=1">
495                 <xsl:text> -- </xsl:text>
496             </xsl:when>
497             </xsl:choose>
498             <xsl:choose>
499             <xsl:when test="marc:subfield[@code='n']">
500                <xsl:text> </xsl:text>
501                <xsl:call-template name="subfieldSelect">
502                   <xsl:with-param name="codes">n</xsl:with-param>
503                </xsl:call-template>
504                <xsl:text> </xsl:text>
505             </xsl:when>
506             </xsl:choose>
507             <xsl:choose>
508             <xsl:when test="position()=last()">
509                 <xsl:call-template name="nameACDEQ"/>.
510             </xsl:when>
511             <xsl:otherwise>
512                 <xsl:call-template name="nameACDEQ"/>;
513             </xsl:otherwise>
514             </xsl:choose>
515         </xsl:for-each>
516     </span>
517     </xsl:when>
518     </xsl:choose>
519     </p>
520
521     <xsl:if test="marc:datafield[@tag=250]">
522     <span class="results_summary edition">
523     <span class="label">Edition: </span>
524             <xsl:for-each select="marc:datafield[@tag=250]">
525                     <xsl:call-template name="subfieldSelect">
526                         <xsl:with-param name="codes">ab</xsl:with-param>
527                     </xsl:call-template>
528             </xsl:for-each>
529         </span>
530     </xsl:if>
531
532     <xsl:if test="marc:datafield[@tag=773]">
533         <xsl:for-each select="marc:datafield[@tag=773]">
534             <xsl:if test="marc:subfield[@code='t']">
535     <span class="results_summary source">
536     <span class="label">Source: </span>
537             <xsl:value-of select="marc:subfield[@code='t']"/>
538     </span>
539             </xsl:if>
540         </xsl:for-each>
541     </xsl:if>
542
543 <xsl:if test="$DisplayOPACiconsXSLT!='0'">
544     <span class="results_summary type">
545     <xsl:if test="$typeOf008!=''">
546         <span class="label">Material type: </span>
547             <xsl:choose>
548                 <xsl:when test="$leader19='a'"><img src="/opac-tmpl/lib/famfamfam/silk/book_link.png" alt="book" title="book" class="materialtype"/> Set</xsl:when>
549                 <xsl:when test="$leader6='a'">
550                     <xsl:choose>
551                         <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype"/> Book</xsl:when>
552                         <xsl:when test="$leader7='i' or $leader7='s'"><img src="/opac-tmpl/lib/famfamfam/silk/newspaper.png" alt="serial" title="serial" class="materialtype"/> Continuing Resource</xsl:when>
553                         <xsl:when test="$leader7='a' or $leader7='b'"><img src="/opac-tmpl/lib/famfamfam/silk/book_open.png" alt="article" title="article" class="materialtype"/> Article</xsl:when>
554                     </xsl:choose>
555                 </xsl:when>
556                 <xsl:when test="$leader6='t'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype"/> Book</xsl:when>
557                 <xsl:when test="$leader6='o'"><img src="/opac-tmpl/lib/famfamfam/silk/report_disk.png" alt="kit" title="kit" class="materialtype"/> Kit</xsl:when>
558                 <xsl:when test="$leader6='p'"><img src="/opac-tmpl/lib/famfamfam/silk/report_disk.png" alt="mixed materials" title="mixed materials" class="materialtype"/>Mixed Materials</xsl:when>
559                 <xsl:when test="$leader6='m'"><img src="/opac-tmpl/lib/famfamfam/silk/computer_link.png" alt="computer file" title="computer file" class="materialtype"/> Computer File</xsl:when>
560                 <xsl:when test="$leader6='e' or $leader6='f'"><img src="/opac-tmpl/lib/famfamfam/silk/map.png" alt="map" title="map" class="materialtype"/> Map</xsl:when>
561                 <xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'"><img src="/opac-tmpl/lib/famfamfam/silk/film.png" alt="visual material" title="visual material" class="materialtype"/> Visual Material</xsl:when>
562                 <xsl:when test="$leader6='c' or $leader6='d'"><img src="/opac-tmpl/lib/famfamfam/silk/music.png" alt="score" title="score" class="materialtype"/> Score</xsl:when>
563                 <xsl:when test="$leader6='i'"><img src="/opac-tmpl/lib/famfamfam/silk/sound.png" alt="sound" title="sound" class="materialtype"/> Sound</xsl:when>
564                 <xsl:when test="$leader6='j'"><img src="/opac-tmpl/lib/famfamfam/silk/sound.png" alt="music" title="music" class="materialtype"/> Music</xsl:when>
565             </xsl:choose>
566     </xsl:if>
567     <xsl:if test="string-length(normalize-space($physicalDescription))">
568         <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
569     </xsl:if>
570
571         <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">
572
573         <xsl:if test="$typeOf008='CR'">
574         <xsl:if test="$controlField008-21 and $controlField008-21 !='|' and $controlField008-21 !=' '">
575         <span class="label">; Type of continuing resource: </span>
576         </xsl:if>
577             <xsl:choose>
578                 <xsl:when test="$controlField008-21='d'">
579                      <img src="/opac-tmpl/lib/famfamfam/silk/database.png" alt="database" title="database" class="format"/>
580                 </xsl:when>
581                 <xsl:when test="$controlField008-21='l'">
582                     loose-leaf
583                 </xsl:when>
584                 <xsl:when test="$controlField008-21='m'">
585                     series
586                 </xsl:when>
587                 <xsl:when test="$controlField008-21='n'">
588                     newspaper
589                 </xsl:when>
590                 <xsl:when test="$controlField008-21='p'">
591                     periodical
592                 </xsl:when>
593                 <xsl:when test="$controlField008-21='w'">
594                      <img src="/opac-tmpl/lib/famfamfam/silk/world_link.png" alt="web site" title="web site" class="format"/>
595                 </xsl:when>
596             </xsl:choose>
597         </xsl:if>
598         <xsl:if test="$typeOf008='BK' or $typeOf008='CR'">
599         <xsl:if test="contains($controlField008-24,'abcdefghijklmnopqrstvwxyz')">
600         <span class="label">; Nature of contents: </span>
601         </xsl:if>
602             <xsl:choose>
603                 <xsl:when test="contains($controlField008-24,'a')">
604                     abstract or summary
605                 </xsl:when>
606                 <xsl:when test="contains($controlField008-24,'b')">
607                         bibliography
608                      <img src="/opac-tmpl/lib/famfamfam/silk/text_list_bullets.png" alt="bibliography" title="bibliography" class="natureofcontents"/>
609                 </xsl:when>
610                 <xsl:when test="contains($controlField008-24,'c')">
611                     catalog
612                 </xsl:when>
613                 <xsl:when test="contains($controlField008-24,'d')">
614                     dictionary
615                 </xsl:when>
616                 <xsl:when test="contains($controlField008-24,'e')">
617                     encyclopedia
618                 </xsl:when>
619                 <xsl:when test="contains($controlField008-24,'f')">
620                     handbook
621                 </xsl:when>
622                 <xsl:when test="contains($controlField008-24,'g')">
623                     legal article
624                 </xsl:when>
625                 <xsl:when test="contains($controlField008-24,'i')">
626                     index
627                 </xsl:when>
628                 <xsl:when test="contains($controlField008-24,'k')">
629                     discography
630                 </xsl:when>
631                 <xsl:when test="contains($controlField008-24,'l')">
632                     legislation
633                 </xsl:when>
634                 <xsl:when test="contains($controlField008-24,'m')">
635                     theses
636                 </xsl:when>
637                 <xsl:when test="contains($controlField008-24,'n')">
638                     survey of literature
639                 </xsl:when>
640                 <xsl:when test="contains($controlField008-24,'o')">
641                     review
642                 </xsl:when>
643                 <xsl:when test="contains($controlField008-24,'p')">
644                     programmed text
645                 </xsl:when>
646                 <xsl:when test="contains($controlField008-24,'q')">
647                     filmography
648                 </xsl:when>
649                 <xsl:when test="contains($controlField008-24,'r')">
650                     directory
651                 </xsl:when>
652                 <xsl:when test="contains($controlField008-24,'s')">
653                     statistics
654                 </xsl:when>
655                 <xsl:when test="contains($controlField008-24,'t')">
656                      <img src="/opac-tmpl/lib/famfamfam/silk/report.png" alt="technical report" title="technical report" class="natureofcontents"/>
657                 </xsl:when>
658                 <xsl:when test="contains($controlField008-24,'v')">
659                     legal case and case notes
660                 </xsl:when>
661                 <xsl:when test="contains($controlField008-24,'w')">
662                     law report or digest
663                 </xsl:when>
664                 <xsl:when test="contains($controlField008-24,'z')">
665                     treaty
666                 </xsl:when>
667             </xsl:choose>
668             <xsl:choose>
669                 <xsl:when test="$controlField008-29='1'">
670                     conference publication
671                 </xsl:when>
672             </xsl:choose>
673         </xsl:if>
674         <xsl:if test="$typeOf008='CF'">
675             <xsl:if test="$controlField008-26='a' or $controlField008-26='e' or $controlField008-26='f' or $controlField008-26='g'">
676             <span class="label">; Type of computer file: </span>
677             </xsl:if>
678             <xsl:choose>
679                 <xsl:when test="$controlField008-26='a'">
680                     numeric data
681                 </xsl:when>
682                 <xsl:when test="$controlField008-26='e'">
683                      <img src="/opac-tmpl/lib/famfamfam/silk/database.png" alt="database" title="database" class="format"/>
684                 </xsl:when>
685                 <xsl:when test="$controlField008-26='f'">
686                      <img src="/opac-tmpl/lib/famfamfam/silk/font.png" alt="font" title="font" class="format"/>
687                 </xsl:when>
688                 <xsl:when test="$controlField008-26='g'">
689                      <img src="/opac-tmpl/lib/famfamfam/silk/controller.png" alt="game" title="game" class="format"/>
690                 </xsl:when>
691             </xsl:choose>
692         </xsl:if>
693         <xsl:if test="$typeOf008='BK'">
694             <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')">
695             <span class="label">; Nature of contents: </span>
696             </xsl:if>
697             <xsl:if test="substring($controlField008,25,1)='j'">
698                 patent
699             </xsl:if>
700             <xsl:if test="substring($controlField008,31,1)='1'">
701                 festschrift
702             </xsl:if>
703             <xsl:if test="$controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d'">
704                  <img src="/opac-tmpl/lib/famfamfam/silk/user.png" alt="biography" title="biography" class="natureofcontents"/>
705             </xsl:if>
706
707             <xsl:if test="$controlField008-33 and $controlField008-33!='|' and $controlField008-33!='u' and $controlField008-33!=' '">
708             <span class="label">; Literary form: </span>
709             </xsl:if>
710             <xsl:choose>
711                 <xsl:when test="$controlField008-33='0'">
712                     not fiction
713                 </xsl:when>
714                 <xsl:when test="$controlField008-33='1'">
715                     fiction
716                 </xsl:when>
717                 <xsl:when test="$controlField008-33='e'">
718                     essay
719                 </xsl:when>
720                 <xsl:when test="$controlField008-33='d'">
721                     drama
722                 </xsl:when>
723                 <xsl:when test="$controlField008-33='c'">
724                     comic strip
725                 </xsl:when>
726                 <xsl:when test="$controlField008-33='l'">
727                     fiction
728                 </xsl:when>
729                 <xsl:when test="$controlField008-33='h'">
730                     humor, satire
731                 </xsl:when>
732                 <xsl:when test="$controlField008-33='i'">
733                     letter
734                 </xsl:when>
735                 <xsl:when test="$controlField008-33='f'">
736                     novel
737                 </xsl:when>
738                 <xsl:when test="$controlField008-33='j'">
739                     short story
740                 </xsl:when>
741                 <xsl:when test="$controlField008-33='s'">
742                     speech
743                 </xsl:when>
744             </xsl:choose>
745         </xsl:if>
746         <xsl:if test="$typeOf008='MU' and $controlField008-30-31 and $controlField008-30-31!='||' and $controlField008-30-31!='  '">
747             <span class="label">; Literary form: </span> <!-- Literary text for sound recordings -->
748             <xsl:if test="contains($controlField008-30-31,'b')">
749                 biography
750             </xsl:if>
751             <xsl:if test="contains($controlField008-30-31,'c')">
752                 conference publication
753             </xsl:if>
754             <xsl:if test="contains($controlField008-30-31,'d')">
755                 drama
756             </xsl:if>
757             <xsl:if test="contains($controlField008-30-31,'e')">
758                 essay
759             </xsl:if>
760             <xsl:if test="contains($controlField008-30-31,'f')">
761                 fiction
762             </xsl:if>
763             <xsl:if test="contains($controlField008-30-31,'o')">
764                 folktale
765             </xsl:if>
766             <xsl:if test="contains($controlField008-30-31,'h')">
767                 history
768             </xsl:if>
769             <xsl:if test="contains($controlField008-30-31,'k')">
770                 humor, satire
771             </xsl:if>
772             <xsl:if test="contains($controlField008-30-31,'m')">
773                 memoir
774             </xsl:if>
775             <xsl:if test="contains($controlField008-30-31,'p')">
776                 poetry
777             </xsl:if>
778             <xsl:if test="contains($controlField008-30-31,'r')">
779                 rehearsal
780             </xsl:if>
781             <xsl:if test="contains($controlField008-30-31,'g')">
782                 reporting
783             </xsl:if>
784             <xsl:if test="contains($controlField008-30-31,'s')">
785                 sound
786             </xsl:if>
787             <xsl:if test="contains($controlField008-30-31,'l')">
788                 speech
789             </xsl:if>
790         </xsl:if>
791         <xsl:if test="$typeOf008='VM'">
792             <span class="label">; Type of visual material: </span>
793             <xsl:choose>
794                 <xsl:when test="$controlField008-33='a'">
795                     art original
796                 </xsl:when>
797                 <xsl:when test="$controlField008-33='b'">
798                     kit
799                 </xsl:when>
800                 <xsl:when test="$controlField008-33='c'">
801                     art reproduction
802                 </xsl:when>
803                 <xsl:when test="$controlField008-33='d'">
804                     diorama
805                 </xsl:when>
806                 <xsl:when test="$controlField008-33='f'">
807                     filmstrip
808                 </xsl:when>
809                 <xsl:when test="$controlField008-33='g'">
810                     legal article
811                 </xsl:when>
812                 <xsl:when test="$controlField008-33='i'">
813                     picture
814                 </xsl:when>
815                 <xsl:when test="$controlField008-33='k'">
816                     graphic
817                 </xsl:when>
818                 <xsl:when test="$controlField008-33='l'">
819                     technical drawing
820                 </xsl:when>
821                 <xsl:when test="$controlField008-33='m'">
822                     motion picture
823                 </xsl:when>
824                 <xsl:when test="$controlField008-33='n'">
825                     chart
826                 </xsl:when>
827                 <xsl:when test="$controlField008-33='o'">
828                     flash card
829                 </xsl:when>
830                 <xsl:when test="$controlField008-33='p'">
831                     microscope slide
832                 </xsl:when>
833                 <xsl:when test="$controlField008-33='q' or marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2
834 ,1)='q']">
835                     model
836                 </xsl:when>
837                 <xsl:when test="$controlField008-33='r'">
838                     realia
839                 </xsl:when>
840                 <xsl:when test="$controlField008-33='s'">
841                     slide
842                 </xsl:when>
843                 <xsl:when test="$controlField008-33='t'">
844                     transparency
845                 </xsl:when>
846                 <xsl:when test="$controlField008-33='v'">
847                     videorecording
848                 </xsl:when>
849                 <xsl:when test="$controlField008-33='w'">
850                     toy
851                 </xsl:when>
852             </xsl:choose>
853         </xsl:if>
854         </xsl:if>
855
856     <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')">
857         <span class="label">; Audience: </span>
858         <xsl:choose>
859             <xsl:when test="$controlField008-22='a'">
860              Preschool;
861             </xsl:when>
862             <xsl:when test="$controlField008-22='b'">
863              Primary;
864             </xsl:when>
865             <xsl:when test="$controlField008-22='c'">
866              Pre-adolescent;
867             </xsl:when>
868             <xsl:when test="$controlField008-22='d'">
869              Adolescent;
870             </xsl:when>
871             <xsl:when test="$controlField008-22='e'">
872              Adult;
873             </xsl:when>
874             <xsl:when test="$controlField008-22='g'">
875              General;
876             </xsl:when>
877             <xsl:when test="$controlField008-22='j'">
878              Juvenile;
879             </xsl:when>
880             <xsl:when test="$controlField008-22='f'">
881              Specialized;
882             </xsl:when>
883             </xsl:choose>
884     </xsl:if>
885 <xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
886         </span>
887 </xsl:if>
888
889     <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) -->
890     <xsl:if test="$display880">
891       <xsl:call-template name="m880Select">
892         <xsl:with-param name="basetags">260</xsl:with-param>
893         <xsl:with-param name="codes">abcg</xsl:with-param>
894         <xsl:with-param name="class">results_summary publisher</xsl:with-param>
895         <xsl:with-param name="label">Publisher: </xsl:with-param>
896       </xsl:call-template>
897     </xsl:if>
898
899     <!-- Publisher info and RDA related info from tags 260, 264 -->
900     <xsl:choose>
901         <xsl:when test="marc:datafield[@tag=260]">
902         <span class="results_summary publisher"><span class="label">Publisher: </span>
903             <xsl:for-each select="marc:datafield[@tag=260]">
904                 <xsl:if test="marc:subfield[@code='a']">
905                     <xsl:call-template name="subfieldSelect">
906                         <xsl:with-param name="codes">a</xsl:with-param>
907                     </xsl:call-template>
908                 </xsl:if>
909                 <xsl:text> </xsl:text>
910                 <xsl:if test="marc:subfield[@code='b']">
911                     <xsl:call-template name="subfieldSelect">
912                         <xsl:with-param name="codes">b</xsl:with-param>
913                     </xsl:call-template>
914                 </xsl:if>
915                 <xsl:text> </xsl:text>
916                 <xsl:call-template name="chopPunctuation">
917                   <xsl:with-param name="chopString">
918                     <xsl:call-template name="subfieldSelect">
919                         <xsl:with-param name="codes">cg</xsl:with-param>
920                     </xsl:call-template>
921                    </xsl:with-param>
922                 </xsl:call-template>
923                 <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
924             </xsl:for-each>
925             <xsl:if test="marc:datafield[@tag=264]">
926                 <xsl:text>; </xsl:text>
927                 <xsl:call-template name="showRDAtag264"/>
928             </xsl:if>
929         </span>
930         </xsl:when>
931         <xsl:when test="marc:datafield[@tag=264]">
932             <span class="results_summary">
933                 <xsl:call-template name="showRDAtag264"/>
934             </span>
935         </xsl:when>
936     </xsl:choose>
937
938     <!-- Dissertation note -->
939     <xsl:if test="marc:datafield[@tag=502]">
940         <span class="results_summary diss_note">
941             <span class="label">Dissertation note: </span>
942             <xsl:for-each select="marc:datafield[@tag=502]">
943                 <xsl:call-template name="subfieldSelect">
944                     <xsl:with-param name="codes">abcdgo</xsl:with-param>
945                 </xsl:call-template>
946             </xsl:for-each>
947             <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
948         </span>
949     </xsl:if>
950
951     <!-- Other Title  Statement: Alternate Graphic Representation (MARC 880) -->
952     <xsl:if test="$display880">
953        <xsl:call-template name="m880Select">
954          <xsl:with-param name="basetags">246</xsl:with-param>
955          <xsl:with-param name="codes">ab</xsl:with-param>
956          <xsl:with-param name="class">results_summary other_title</xsl:with-param>
957          <xsl:with-param name="label">Other title: </xsl:with-param>
958        </xsl:call-template>
959     </xsl:if>
960
961     <xsl:if test="marc:datafield[@tag=246]">
962     <span class="results_summary other_title">
963     <span class="label">Other title: </span>
964             <xsl:for-each select="marc:datafield[@tag=246]">
965                     <xsl:call-template name="subfieldSelect">
966                         <xsl:with-param name="codes">ab</xsl:with-param>
967                     </xsl:call-template>
968                     <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
969             </xsl:for-each>
970         </span>
971     </xsl:if>
972     <xsl:if test="marc:datafield[@tag=242]">
973     <span class="results_summary translated_title">
974     <span class="label">Title translated: </span>
975             <xsl:for-each select="marc:datafield[@tag=242]">
976                     <xsl:call-template name="subfieldSelect">
977                         <xsl:with-param name="codes">abh</xsl:with-param>
978                     </xsl:call-template>
979                     <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
980             </xsl:for-each>
981         </span>
982     </xsl:if>
983     <xsl:if test="marc:datafield[@tag=856]">
984          <span class="results_summary online_resources">
985                            <span class="label">Online Access: </span>
986                             <xsl:for-each select="marc:datafield[@tag=856]">
987                             <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
988                             <xsl:if test="$OPACURLOpenInNewWindow='0'">
989                               <a>
990                               <xsl:choose>
991                                 <xsl:when test="$OPACTrackClicks='track'">
992                                   <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
993                                 </xsl:when>
994                                 <xsl:when test="$OPACTrackClicks='anonymous'">
995                                   <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
996                                 </xsl:when>
997                                 <xsl:otherwise>
998                                   <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
999                                 </xsl:otherwise>
1000                               </xsl:choose>
1001                                     <xsl:choose>
1002                                      <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')">
1003                                         <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>
1004                                     </xsl:when>
1005                                     <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
1006                                         <xsl:call-template name="subfieldSelect">
1007                                         <xsl:with-param name="codes">y3z</xsl:with-param>
1008                                         </xsl:call-template>
1009                                     </xsl:when>
1010                                     <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
1011                                         <xsl:choose>
1012                                         <xsl:when test="$URLLinkText!=''">
1013                                                 <xsl:value-of select="$URLLinkText"/>
1014                                         </xsl:when>
1015                                         <xsl:otherwise>
1016                                                 <xsl:text>Click here to access online</xsl:text>
1017                                         </xsl:otherwise>
1018                                         </xsl:choose>
1019                                     </xsl:when>
1020                                     </xsl:choose>
1021                                     </a>
1022                               </xsl:if>
1023                             <xsl:if test="$OPACURLOpenInNewWindow='1'">
1024                                    <a target='_blank'>
1025                                    <xsl:choose>
1026                                      <xsl:when test="$OPACTrackClicks='track'">
1027                                        <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1028                                      </xsl:when>
1029                                      <xsl:when test="$OPACTrackClicks='anonymous'">
1030                                        <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1031                                      </xsl:when>
1032                                      <xsl:otherwise>
1033                                        <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1034                                      </xsl:otherwise>
1035                                    </xsl:choose>
1036                                     <xsl:choose>
1037                                     <xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and ($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')">
1038                                         <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>
1039                                     </xsl:when>
1040                                     <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
1041                                         <xsl:call-template name="subfieldSelect">
1042                                         <xsl:with-param name="codes">y3z</xsl:with-param>
1043                                         </xsl:call-template>
1044                                     </xsl:when>
1045                                     <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
1046                                         <xsl:choose>
1047                                         <xsl:when test="$URLLinkText!=''">
1048                                                 <xsl:value-of select="$URLLinkText"/>
1049                                         </xsl:when>
1050                                         <xsl:otherwise>
1051                                                 <xsl:text>Click here to access online</xsl:text>
1052                                         </xsl:otherwise>
1053                                         </xsl:choose>
1054                                     </xsl:when>
1055                                     </xsl:choose>
1056                                     </a>
1057                               </xsl:if>
1058                                     <xsl:choose>
1059                                     <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
1060                                     <xsl:otherwise> | </xsl:otherwise>
1061                                     </xsl:choose>
1062                             </xsl:for-each>
1063                             </span>
1064                         </xsl:if>
1065                         <span class="results_summary availability">
1066                         <span class="label">Availability: </span>
1067                         <xsl:choose>
1068                                    <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
1069                         <xsl:choose>
1070                             <xsl:when test="string-length($AlternateHoldingsField)=3 and marc:datafield[@tag=$AlternateHoldingsField]">
1071                             <xsl:variable name="AlternateHoldingsCount" select="count(marc:datafield[@tag=$AlternateHoldingsField])"/>
1072                             <xsl:for-each select="marc:datafield[@tag=$AlternateHoldingsField][1]">
1073                                 <xsl:call-template select="marc:datafield[@tag=$AlternateHoldingsField]" name="subfieldSelect">
1074                                     <xsl:with-param name="codes"><xsl:value-of select="$AlternateHoldingsSubfields"/></xsl:with-param>
1075                                     <xsl:with-param name="delimeter"><xsl:value-of select="$AlternateHoldingsSeparator"/></xsl:with-param>
1076                                 </xsl:call-template>
1077                             </xsl:for-each>
1078                             (<xsl:value-of select="$AlternateHoldingsCount"/>)
1079                             </xsl:when>
1080                             <xsl:otherwise>No items available </xsl:otherwise>
1081                         </xsl:choose>
1082                                    </xsl:when>
1083                    <xsl:when test="count(key('item-by-status', 'available'))>0">
1084                    <span class="available">
1085                        <b><xsl:text>Items available for loan: </xsl:text></b>
1086                        <xsl:variable name="available_items"
1087                            select="key('item-by-status', 'available')"/>
1088                <xsl:choose>
1089                <xsl:when test="$singleBranchMode=1">
1090                <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1091                    <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1092                                <xsl:text> (</xsl:text>
1093                                <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
1094                                <xsl:text>)</xsl:text>
1095                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1096                                </xsl:for-each>
1097                </xsl:when>
1098                <xsl:otherwise>
1099                    <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1100                        <xsl:value-of select="items:homebranch"/>
1101                    <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1102                                <xsl:text> (</xsl:text>
1103                                <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
1104                                <xsl:text>)</xsl:text>
1105                                <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1106                                </xsl:for-each>
1107                </xsl:otherwise>
1108                </xsl:choose>
1109
1110            </span>
1111                    </xsl:when>
1112                                    </xsl:choose>
1113
1114             <xsl:choose>
1115                 <xsl:when test="count(key('item-by-status', 'reference'))>0">
1116                     <span class="available">
1117                         <b><xsl:text>Items available for reference: </xsl:text></b>
1118                         <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/>
1119                         <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1120                             <xsl:if test="$singleBranchMode=0">
1121                                 <xsl:value-of select="items:homebranch"/>
1122                             </xsl:if>
1123                             <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
1124                             <xsl:text> (</xsl:text>
1125                             <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
1126                             <xsl:text> )</xsl:text>
1127                             <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1128                         </xsl:for-each>
1129                     </span>
1130                 </xsl:when>
1131             </xsl:choose>
1132
1133                    <xsl:choose> <xsl:when test="count(key('item-by-status', 'available'))>0">
1134                        <xsl:choose><xsl:when test="count(key('item-by-status', 'reference'))>0">
1135                             <br/>
1136                        </xsl:when></xsl:choose>
1137                    </xsl:when> </xsl:choose>
1138
1139                    <xsl:if test="count(key('item-by-status', 'Checked out'))>0">
1140                    <span class="unavailable">
1141                        <xsl:text>Checked out (</xsl:text>
1142                        <xsl:value-of select="count(key('item-by-status', 'Checked out'))"/>
1143                        <xsl:text>). </xsl:text>
1144                                    </span>
1145                    </xsl:if>
1146                    <xsl:if test="count(key('item-by-status', 'Withdrawn'))>0">
1147                    <span class="unavailable">
1148                        <xsl:text>Withdrawn (</xsl:text>
1149                        <xsl:value-of select="count(key('item-by-status', 'Withdrawn'))"/>
1150                        <xsl:text>). </xsl:text>                   </span>
1151                                    </xsl:if>
1152                     <xsl:if test="$hidelostitems='0' and count(key('item-by-status', 'Lost'))>0">
1153                    <span class="unavailable">
1154                        <xsl:text>Lost (</xsl:text>
1155                        <xsl:value-of select="count(key('item-by-status', 'Lost'))"/>
1156                        <xsl:text>). </xsl:text>                   </span>
1157                                    </xsl:if>
1158                     <xsl:if test="count(key('item-by-status', 'Damaged'))>0">
1159                    <span class="unavailable">
1160                        <xsl:text>Damaged (</xsl:text>
1161                        <xsl:value-of select="count(key('item-by-status', 'Damaged'))"/>
1162                        <xsl:text>). </xsl:text>                   </span>
1163                    </xsl:if>
1164                     <xsl:if test="count(key('item-by-status', 'On order'))>0">
1165                    <span class="unavailable">
1166                        <xsl:text>On order (</xsl:text>
1167                        <xsl:value-of select="count(key('item-by-status', 'On order'))"/>
1168                        <xsl:text>). </xsl:text>                   </span>
1169                    </xsl:if>
1170                     <xsl:if test="count(key('item-by-status', 'In transit'))>0">
1171                    <span class="unavailable">
1172                        <xsl:text>In transit (</xsl:text>
1173                        <xsl:value-of select="count(key('item-by-status', 'In transit'))"/>
1174                        <xsl:text>). </xsl:text>                   </span>
1175                    </xsl:if>
1176                     <xsl:if test="count(key('item-by-status', 'Waiting'))>0">
1177                    <span class="unavailable">
1178                        <xsl:text>On hold (</xsl:text>
1179                        <xsl:value-of select="count(key('item-by-status', 'Waiting'))"/>
1180                        <xsl:text>). </xsl:text>                   </span>
1181                    </xsl:if>
1182                </span>
1183     <xsl:choose>
1184         <xsl:when test="($OPACItemLocation='location' or $OPACItemLocation='ccode') and (count(key('item-by-status', 'available'))!=0 or count(key('item-by-status', 'reference'))!=0)">
1185             <span class="results_summary location">
1186                 <span class="label">Location(s): </span>
1187                 <xsl:choose>
1188                 <xsl:when test="count(key('item-by-status', 'available'))>0">
1189                     <span class="available">
1190                         <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
1191                         <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1192                             <xsl:choose>
1193                                 <xsl:when test="$OPACItemLocation='location'"><b><xsl:value-of select="concat(items:location,' ')"/></b></xsl:when>
1194                                 <xsl:when test="$OPACItemLocation='ccode'"><b><xsl:value-of select="concat(items:ccode,' ')"/></b></xsl:when>
1195                             </xsl:choose>
1196                             <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> <xsl:value-of select="items:itemcallnumber"/></xsl:if>
1197                             <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1198                         </xsl:for-each>
1199                     </span>
1200                 </xsl:when>
1201                 <xsl:when test="count(key('item-by-status', 'reference'))>0">
1202                     <span class="available">
1203                         <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/>
1204                         <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1205                             <xsl:choose>
1206                                 <xsl:when test="$OPACItemLocation='location'"><b><xsl:value-of select="concat(items:location,' ')"/></b></xsl:when>
1207                                 <xsl:when test="$OPACItemLocation='ccode'"><b><xsl:value-of select="concat(items:ccode,' ')"/></b></xsl:when>
1208                             </xsl:choose>
1209                             <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> <xsl:value-of select="items:itemcallnumber"/></xsl:if>
1210                             <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose>
1211                         </xsl:for-each>
1212                     </span>
1213                 </xsl:when>
1214                 </xsl:choose>
1215             </span>
1216         </xsl:when>
1217        </xsl:choose>
1218     </xsl:template>
1219
1220     <xsl:template name="nameABCQ">
1221             <xsl:call-template name="chopPunctuation">
1222                 <xsl:with-param name="chopString">
1223                     <xsl:call-template name="subfieldSelect">
1224                         <xsl:with-param name="codes">abcq</xsl:with-param>
1225                     </xsl:call-template>
1226                 </xsl:with-param>
1227                 <xsl:with-param name="punctuation">
1228                     <xsl:text>:,;/ </xsl:text>
1229                 </xsl:with-param>
1230             </xsl:call-template>
1231     </xsl:template>
1232
1233     <xsl:template name="nameABCDN">
1234             <xsl:call-template name="chopPunctuation">
1235                 <xsl:with-param name="chopString">
1236                     <xsl:call-template name="subfieldSelect">
1237                         <xsl:with-param name="codes">abcdn</xsl:with-param>
1238                     </xsl:call-template>
1239                 </xsl:with-param>
1240                 <xsl:with-param name="punctuation">
1241                     <xsl:text>:,;/ </xsl:text>
1242                 </xsl:with-param>
1243             </xsl:call-template>
1244     </xsl:template>
1245
1246     <xsl:template name="nameACDEQ">
1247             <xsl:call-template name="subfieldSelect">
1248                 <xsl:with-param name="codes">acdeq</xsl:with-param>
1249             </xsl:call-template>
1250     </xsl:template>
1251
1252     <xsl:template name="nameDate">
1253         <xsl:for-each select="marc:subfield[@code='d']">
1254             <xsl:call-template name="chopPunctuation">
1255                 <xsl:with-param name="chopString" select="."/>
1256             </xsl:call-template>
1257         </xsl:for-each>
1258     </xsl:template>
1259
1260     <xsl:template name="role">
1261         <xsl:for-each select="marc:subfield[@code='e']">
1262                     <xsl:value-of select="."/>
1263         </xsl:for-each>
1264         <xsl:for-each select="marc:subfield[@code='4']">
1265                     <xsl:value-of select="."/>
1266         </xsl:for-each>
1267     </xsl:template>
1268
1269     <xsl:template name="specialSubfieldSelect">
1270         <xsl:param name="anyCodes"/>
1271         <xsl:param name="axis"/>
1272         <xsl:param name="beforeCodes"/>
1273         <xsl:param name="afterCodes"/>
1274         <xsl:variable name="str">
1275             <xsl:for-each select="marc:subfield">
1276                 <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])">
1277                     <xsl:value-of select="text()"/>
1278                     <xsl:text> </xsl:text>
1279                 </xsl:if>
1280             </xsl:for-each>
1281         </xsl:variable>
1282         <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
1283     </xsl:template>
1284
1285     <xsl:template name="subtitle">
1286         <xsl:if test="marc:subfield[@code='b']">
1287                 <xsl:call-template name="chopPunctuation">
1288                     <xsl:with-param name="chopString">
1289                         <xsl:value-of select="marc:subfield[@code='b']"/>
1290
1291                         <!--<xsl:call-template name="subfieldSelect">
1292                             <xsl:with-param name="codes">b</xsl:with-param>
1293                         </xsl:call-template>-->
1294                     </xsl:with-param>
1295                 </xsl:call-template>
1296         </xsl:if>
1297     </xsl:template>
1298
1299     <xsl:template name="chopBrackets">
1300         <xsl:param name="chopString"></xsl:param>
1301         <xsl:variable name="string">
1302             <xsl:call-template name="chopPunctuation">
1303                 <xsl:with-param name="chopString" select="$chopString"></xsl:with-param>
1304             </xsl:call-template>
1305         </xsl:variable>
1306         <xsl:if test="substring($string, 1,1)='['">
1307             <xsl:value-of select="substring($string,2, string-length($string)-2)"></xsl:value-of>
1308         </xsl:if>
1309         <xsl:if test="substring($string, 1,1)!='['">
1310             <xsl:value-of select="$string"></xsl:value-of>
1311         </xsl:if>
1312     </xsl:template>
1313
1314 </xsl:stylesheet>