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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl (-464 / +2483 lines)
Lines 1-483 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
1
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
2
5
<xsl:stylesheet version="1.0"
3
<xsl:stylesheet version="1.0"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
4
  xmlns:marc="http://www.loc.gov/MARC21/slim"
5
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  xmlns:str="http://exslt.org/strings"
7
  exclude-result-prefixes="marc items">
9
  exclude-result-prefixes="marc str">
10
8
11
<xsl:import href="UNIMARCslimUtils.xsl"/>
9
<xsl:import href="UNIMARCslimUtils.xsl"/>
12
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
10
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
13
<xsl:template match="/">
11
<xsl:template match="/">
14
  <xsl:apply-templates/>
12
<xsl:apply-templates/>
15
</xsl:template>
13
</xsl:template>
16
14
17
<xsl:template match="marc:record">
15
<xsl:template match="marc:record">
18
  <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
16
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
19
  <xsl:variable name="leader" select="marc:leader"/>
17
<xsl:variable name="OpacURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
20
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
18
<xsl:variable name="leader" select="marc:leader"/>
21
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
19
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
22
  <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
20
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
23
21
<xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
24
22
<xsl:variable name="renvoi" select="marc:datafield[@tag=700]/@ind1"/>
25
  <xsl:if test="marc:datafield[@tag=200]">
23
26
    <xsl:for-each select="marc:datafield[@tag=200]">
24
27
      <h1>
25
<xsl:if test="marc:datafield[@tag=200]">
28
        <xsl:call-template name="addClassRtl" />
26
<xsl:for-each select="marc:datafield[@tag=200]">
29
        <xsl:variable name="title" select="marc:subfield[@code='a']"/>
27
<h1>
30
        <xsl:variable name="ntitle"
28
<xsl:call-template name="addClassRtl" />
31
         select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
29
<xsl:variable name="title" select="marc:subfield[@code='a']"/>
32
        <xsl:value-of select="$ntitle" />
30
<xsl:variable name="ntitle"
33
        <xsl:if test="marc:subfield[@code='e']">
31
select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
34
          <xsl:text> : </xsl:text>
32
 <xsl:value-of select="marc:subfield[@code='a'][1]" />
35
          <xsl:for-each select="marc:subfield[@code='e']">
33
<xsl:if test="marc:subfield[@code='e'][1]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][1]" /></xsl:if>
36
            <xsl:value-of select="."/>
34
<xsl:if test="marc:subfield[@code='c'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][1]" /></xsl:if>
37
          </xsl:for-each>
35
<xsl:if test="marc:subfield[@code='d'][1]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][1]" /></xsl:if>
38
        </xsl:if>
36
<xsl:if test="marc:subfield[@code='h'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][1]" /></xsl:if>
39
        <xsl:if test="marc:subfield[@code='b']">
37
<xsl:if test="marc:subfield[@code='i'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][1]" /></xsl:if>
40
          <xsl:text> [</xsl:text>
38
<xsl:if test="marc:subfield[@code='e'][2]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][2]" /></xsl:if>
41
          <xsl:value-of select="marc:subfield[@code='b']"/>
39
<xsl:if test="marc:subfield[@code='c'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][1]" /></xsl:if>
42
          <xsl:text>]</xsl:text>
40
<xsl:if test="marc:subfield[@code='d'][2]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][2]" /></xsl:if>
43
        </xsl:if>
41
<xsl:if test="marc:subfield[@code='h'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][2]" /></xsl:if>
44
        <xsl:if test="marc:subfield[@code='f']">
42
<xsl:if test="marc:subfield[@code='i'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][2]" /></xsl:if>
45
          <xsl:text> / </xsl:text>
43
<xsl:if test="marc:subfield[@code='e'][3]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][3]" /></xsl:if>
46
          <xsl:value-of select="marc:subfield[@code='f']"/>
44
<xsl:if test="marc:subfield[@code='c'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][3]" /></xsl:if>
47
        </xsl:if>
45
<xsl:if test="marc:subfield[@code='d'][3]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][3]" /></xsl:if>
48
        <xsl:if test="marc:subfield[@code='g']">
46
<xsl:if test="marc:subfield[@code='h'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][3]" /></xsl:if>
49
          <xsl:text> ; </xsl:text>
47
<xsl:if test="marc:subfield[@code='i'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][3]" /></xsl:if>
50
          <xsl:value-of select="marc:subfield[@code='g']"/>
48
<xsl:if test="marc:subfield[@code='a'][2]"><xsl:text>. </xsl:text><xsl:value-of select="marc:subfield[@code='a'][2]" /></xsl:if>
51
        </xsl:if>
49
<xsl:if test="marc:subfield[@code='a'][3]"><xsl:text>. </xsl:text><xsl:value-of select="marc:subfield[@code='a'][3]" /></xsl:if>
52
      </h1>
50
<xsl:if test="marc:subfield[@code='b']"><xsl:text> [</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>] </xsl:text>
53
    </xsl:for-each>
51
</xsl:if>
54
  </xsl:if>
52
<xsl:if test="marc:subfield[@code='f']">
55
  <xsl:call-template name="tag_4xx" />
53
<xsl:text> / </xsl:text>
56
54
<xsl:if test="marc:subfield[@code='f'][1]"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='f'][1]" /></xsl:if>
57
  <xsl:call-template name="tag_7xx">
55
<xsl:if test="marc:subfield[@code='f'][2]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='f'][2]" /></xsl:if>
58
    <xsl:with-param name="tag">700</xsl:with-param>
56
<xsl:if test="marc:subfield[@code='f'][3]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='f'][3]" /></xsl:if>
59
    <xsl:with-param name="label">Main Author</xsl:with-param>
57
</xsl:if>
60
  </xsl:call-template>
58
<xsl:if test="marc:subfield[@code='g'][1]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][1]" /></xsl:if>
61
59
<xsl:if test="marc:subfield[@code='g'][2]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][2]" /></xsl:if>
62
  <xsl:call-template name="tag_7xx">
60
<xsl:if test="marc:subfield[@code='g'][3]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][3]" /></xsl:if>
63
    <xsl:with-param name="tag">710</xsl:with-param>
61
</h1>
64
    <xsl:with-param name="label">Corporate Author (Main)</xsl:with-param>
62
</xsl:for-each>
65
  </xsl:call-template>
63
</xsl:if>
66
64
67
  <xsl:call-template name="tag_7xx">
65
<!--&&OPAC-->
68
    <xsl:with-param name="tag">701</xsl:with-param>
66
<xsl:if test="$biblionumber">
69
    <xsl:with-param name="label">Coauthor</xsl:with-param>
67
<li><a><xsl:attribute name="href"><xsl:value-of select="$OpacURL"/>cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>See record in the OPAC</a></li>
70
  </xsl:call-template>
68
</xsl:if>
71
69
72
  <xsl:call-template name="tag_7xx">
70
73
    <xsl:with-param name="tag">702</xsl:with-param>
71
74
    <xsl:with-param name="label">Secondary Author</xsl:with-param>
72
75
  </xsl:call-template>
73
<!--Titre de serie autorité 461-->
76
74
<!--<xsl:call-template name="tag_461" />-->
77
  <xsl:call-template name="tag_7xx">
75
78
    <xsl:with-param name="tag">711</xsl:with-param>
76
<!--Titre de serie non autorité 461-->
79
    <xsl:with-param name="label">Corporate Author (Coauthor)</xsl:with-param>
77
<xsl:call-template name="tag_461bis" />
80
  </xsl:call-template>
78
81
79
<!--Titre dépouillé 463-->
82
  <xsl:call-template name="tag_7xx">
80
<xsl:call-template name="tag_463" />
83
    <xsl:with-param name="tag">712</xsl:with-param>
81
84
    <xsl:with-param name="label">Corporate Author (Secondary)</xsl:with-param>
82
85
  </xsl:call-template>
83
<xsl:call-template name="tag_4xx">
86
84
<xsl:with-param name="tag">412</xsl:with-param>
87
  <xsl:if test="marc:datafield[@tag=101]">
85
<xsl:with-param name="label">Is an excerpt or taken apart from</xsl:with-param>
88
    <li>
86
</xsl:call-template>
89
      <strong>Language: </strong>
87
90
      <xsl:for-each select="marc:datafield[@tag=101]">
88
<!--413 Extrait ou tiré à part-->
91
        <xsl:for-each select="marc:subfield">
89
<xsl:for-each select="marc:datafield[@tag=413]">
92
          <xsl:choose>
90
 <li>
93
            <xsl:when test="@code='b'">of intermediate text, </xsl:when>
91
 <strong>A for extract or pulled apart&nbsp;: </strong>
94
            <xsl:when test="@code='c'">of original work, </xsl:when>
92
<xsl:choose>
95
            <xsl:when test="@code='d'">of summary, </xsl:when>
93
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='o']) and  (marc:subfield[@code='f']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
96
            <xsl:when test="@code='e'">of contents page, </xsl:when>
94
 <xsl:value-of select="marc:subfield[@code='t']"/>
97
            <xsl:when test="@code='f'">of title page, </xsl:when>
95
<xsl:text> : </xsl:text>
98
            <xsl:when test="@code='g'">of title proper, </xsl:when>
96
 <xsl:value-of select="marc:subfield[@code='o']"/>
99
            <xsl:when test="@code='h'">of libretto, </xsl:when>
97
<xsl:text> / </xsl:text>
100
            <xsl:when test="@code='i'">of accompanying material, </xsl:when>
98
<xsl:value-of select="marc:subfield[@code='f']"/>
101
            <xsl:when test="@code='j'">of subtitles, </xsl:when>n>
99
 <xsl:text>. - </xsl:text>
102
          </xsl:choose>
100
<xsl:value-of select="marc:subfield[@code='c']"/>
103
          <xsl:value-of select="text()"/>
101
 <xsl:text> : </xsl:text>
104
          <xsl:choose>
102
<xsl:value-of select="marc:subfield[@code='n']"/>
105
            <xsl:when test="position()=last()">
103
 <xsl:text>, </xsl:text>
106
              <xsl:text>.</xsl:text>
104
<xsl:value-of select="marc:subfield[@code='d']"/>
107
            </xsl:when>
105
</xsl:when>
108
            <xsl:otherwise>
106
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='o']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
109
              <xsl:text> ; </xsl:text>
107
 <xsl:value-of select="marc:subfield[@code='t']"/>
110
            </xsl:otherwise>
108
<xsl:text> : </xsl:text>
111
          </xsl:choose>
109
 <xsl:value-of select="marc:subfield[@code='o']"/>
112
        </xsl:for-each>
110
 <xsl:text>. - </xsl:text>
113
      </xsl:for-each>
111
<xsl:value-of select="marc:subfield[@code='c']"/>
114
    </li>
112
 <xsl:text> : </xsl:text>
115
  </xsl:if>
113
<xsl:value-of select="marc:subfield[@code='n']"/>
116
114
 <xsl:text>, </xsl:text>
117
  <xsl:if test="marc:datafield[@tag=102]">
115
<xsl:value-of select="marc:subfield[@code='d']"/>
118
    <li>
116
</xsl:when>
119
      <strong>Country: </strong>
117
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='f']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
120
      <xsl:for-each select="marc:datafield[@tag=102]">
118
 <xsl:value-of select="marc:subfield[@code='t']"/>
121
        <xsl:for-each select="marc:subfield">
119
<xsl:text> / </xsl:text>
122
          <xsl:value-of select="text()"/>
120
 <xsl:value-of select="marc:subfield[@code='f']"/>
123
          <xsl:choose>
121
 <xsl:text>. - </xsl:text>
124
            <xsl:when test="position()=last()">
122
<xsl:value-of select="marc:subfield[@code='c']"/>
125
              <xsl:text>.</xsl:text>
123
 <xsl:text> : </xsl:text>
126
            </xsl:when>
124
<xsl:value-of select="marc:subfield[@code='n']"/>
127
              <xsl:otherwise><xsl:text>, </xsl:text>
125
 <xsl:text>, </xsl:text>
128
            </xsl:otherwise>
126
<xsl:value-of select="marc:subfield[@code='d']"/>
129
          </xsl:choose>
127
</xsl:when>
130
        </xsl:for-each>
128
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
131
      </xsl:for-each>
129
 <xsl:value-of select="marc:subfield[@code='t']"/>
132
    </li>
130
 <xsl:text>. - </xsl:text>
133
  </xsl:if>
131
<xsl:value-of select="marc:subfield[@code='c']"/>
134
132
 <xsl:text> : </xsl:text>
135
  <xsl:call-template name="tag_210" />
133
<xsl:value-of select="marc:subfield[@code='n']"/>
136
134
 <xsl:text>, </xsl:text>
137
  <xsl:call-template name="tag_215" />
135
<xsl:value-of select="marc:subfield[@code='d']"/>
138
136
</xsl:when>
139
<xsl:if test="marc:controlfield[@tag=009]">
137
<xsl:when test="marc:subfield[@code='t']">
140
    <li><strong>Tag 009: </strong>
138
 <xsl:value-of select="marc:subfield[@code='t']"/>
141
      <xsl:value-of select="marc:controlfield[@tag=009]"/>
139
</xsl:when>
142
    </li>
140
</xsl:choose>
143
  </xsl:if>
141
 </li>
144
142
 </xsl:for-each>
145
  <!-- Build ISBN -->
143
146
  <xsl:if test="marc:datafield[@tag=010]/marc:subfield[@code='a']">
144
147
    <li><strong>ISBN: </strong>
145
148
      <xsl:for-each select="marc:datafield[@tag=010]/marc:subfield[@code='a']">
146
149
        <span property="isbn">
147
<xsl:call-template name="tag_4xx">
150
          <xsl:value-of select="."/>
148
<xsl:with-param name="tag">421</xsl:with-param>
151
          <xsl:choose>
149
<xsl:with-param name="label">Has for supplement</xsl:with-param>
152
            <xsl:when test="position()=last()">
150
</xsl:call-template>
153
              <xsl:text>.</xsl:text>
151
152
<xsl:call-template name="tag_4xx">
153
<xsl:with-param name="tag">422</xsl:with-param>
154
<xsl:with-param name="label">Is a supplement of</xsl:with-param>
155
</xsl:call-template>
156
157
<xsl:call-template name="tag_4xx">
158
<xsl:with-param name="tag">423</xsl:with-param>
159
<xsl:with-param name="label">Is published with</xsl:with-param>
160
</xsl:call-template>
161
162
<xsl:call-template name="tag_4xx">
163
<xsl:with-param name="tag">424</xsl:with-param>
164
<xsl:with-param name="label">Is updated by</xsl:with-param>
165
</xsl:call-template>
166
167
<xsl:call-template name="tag_4xx">
168
<xsl:with-param name="tag">430</xsl:with-param>
169
<xsl:with-param name="label">Following</xsl:with-param>
170
</xsl:call-template> 
171
172
<xsl:call-template name="tag_4xx">
173
<xsl:with-param name="tag">431</xsl:with-param>
174
<xsl:with-param name="label">Succeeds after division of</xsl:with-param>
175
</xsl:call-template>
176
177
<xsl:call-template name="tag_4xx">
178
<xsl:with-param name="tag">432</xsl:with-param>
179
<xsl:with-param name="label">Replace</xsl:with-param>
180
</xsl:call-template>
181
182
<xsl:call-template name="tag_4xx">
183
<xsl:with-param name="tag">433</xsl:with-param>
184
<xsl:with-param name="label">Replace partially</xsl:with-param>
185
</xsl:call-template>
186
187
<xsl:call-template name="tag_4xx">
188
<xsl:with-param name="tag">434</xsl:with-param>
189
<xsl:with-param name="label">Absorbed</xsl:with-param>
190
</xsl:call-template>
191
192
<xsl:call-template name="tag_4xx">
193
<xsl:with-param name="tag">435</xsl:with-param>
194
<xsl:with-param name="label">Absorbed partially</xsl:with-param>
195
</xsl:call-template>
196
197
<xsl:call-template name="tag_4xx">
198
<xsl:with-param name="tag">436</xsl:with-param>
199
<xsl:with-param name="label">Merge of</xsl:with-param>
200
</xsl:call-template>
201
202
<xsl:call-template name="tag_4xx">
203
<xsl:with-param name="tag">437</xsl:with-param>
204
<xsl:with-param name="label">Partial sequence of</xsl:with-param>
205
</xsl:call-template>
206
207
<xsl:call-template name="tag_4xx">
208
<xsl:with-param name="tag">440</xsl:with-param>
209
<xsl:with-param name="label">Becomes</xsl:with-param>
210
</xsl:call-template>
211
212
213
<xsl:call-template name="tag_4xx">
214
<xsl:with-param name="tag">441</xsl:with-param>
215
<xsl:with-param name="label">Become partially</xsl:with-param>
216
</xsl:call-template>
217
218
<xsl:call-template name="tag_4xx">
219
<xsl:with-param name="tag">442</xsl:with-param>
220
<xsl:with-param name="label">Replace by</xsl:with-param>
221
</xsl:call-template>
222
223
<xsl:call-template name="tag_4xx">
224
<xsl:with-param name="tag">443</xsl:with-param>
225
<xsl:with-param name="label">Replace partially by</xsl:with-param>
226
</xsl:call-template>
227
228
<xsl:call-template name="tag_4xx">
229
<xsl:with-param name="tag">444</xsl:with-param>
230
<xsl:with-param name="label">Absorbed by</xsl:with-param>
231
</xsl:call-template>
232
233
<xsl:call-template name="tag_4xx">
234
<xsl:with-param name="tag">447</xsl:with-param>
235
<xsl:with-param name="label">Merged with...to train</xsl:with-param>
236
</xsl:call-template>
237
238
<xsl:call-template name="tag_4xx">
239
<xsl:with-param name="tag">451</xsl:with-param>
240
<xsl:with-param name="label">Other edition, same support</xsl:with-param>
241
</xsl:call-template>
242
243
<xsl:call-template name="tag_4xx">
244
<xsl:with-param name="tag">452</xsl:with-param>
245
<xsl:with-param name="label">Other edition, different support</xsl:with-param>
246
</xsl:call-template>
247
248
<xsl:call-template name="tag_4xx">
249
<xsl:with-param name="tag">453</xsl:with-param>
250
<xsl:with-param name="label">Translated under the title</xsl:with-param>
251
</xsl:call-template>
252
253
<xsl:call-template name="tag_4xx">
254
<xsl:with-param name="tag">454</xsl:with-param>
255
<xsl:with-param name="label">Is a translation of</xsl:with-param>
256
</xsl:call-template>
257
258
<xsl:call-template name="tag_4xx">
259
<xsl:with-param name="tag">455</xsl:with-param>
260
<xsl:with-param name="label">Is a reproduction of</xsl:with-param>
261
</xsl:call-template>
262
263
<xsl:call-template name="tag_4xx">
264
<xsl:with-param name="tag">456</xsl:with-param>
265
<xsl:with-param name="label">Is reproducted as</xsl:with-param>
266
</xsl:call-template>
267
268
<xsl:call-template name="tag_4xx">
269
<xsl:with-param name="tag">464</xsl:with-param>
270
<xsl:with-param name="label">Component</xsl:with-param>
271
</xsl:call-template>
272
273
<xsl:call-template name="tag_4xx">
274
<xsl:with-param name="tag">470</xsl:with-param>
275
<xsl:with-param name="label">Analysed document</xsl:with-param>
276
</xsl:call-template>
277
278
<xsl:call-template name="tag_4xx">
279
<xsl:with-param name="tag">481</xsl:with-param>
280
<xsl:with-param name="label">Is also linked in this volume</xsl:with-param>
281
</xsl:call-template>
282
283
<xsl:call-template name="tag_4xx">
284
<xsl:with-param name="tag">482</xsl:with-param>
285
<xsl:with-param name="label">Linked as a result of</xsl:with-param>
286
</xsl:call-template>
287
288
<xsl:call-template name="tag_4xx">
289
<xsl:with-param name="tag">488</xsl:with-param>
290
<xsl:with-param name="label">Other type of relation</xsl:with-param>
291
</xsl:call-template>
292
293
<xsl:if test="marc:datafield[@tag=531]"> 
294
<li>
295
<strong>Short title&nbsp;: </strong>
296
<xsl:for-each select="marc:datafield[@tag=531]">
297
<xsl:for-each select="marc:subfield">
298
<xsl:value-of select="text()"/>
299
<xsl:choose>
300
<xsl:when test="position()=last()">
301
<xsl:text>.</xsl:text>
302
</xsl:when>
303
<xsl:otherwise><xsl:text>, </xsl:text>
304
</xsl:otherwise>
305
</xsl:choose>
306
</xsl:for-each>
307
</xsl:for-each>
308
</li>
309
</xsl:if>
310
311
<xsl:if test="marc:datafield[@tag=540]">
312
<li>
313
<strong>Title added by the cataloguer&nbsp;: </strong>
314
<xsl:for-each select="marc:datafield[@tag=540]">
315
<xsl:for-each select="marc:subfield">
316
<xsl:value-of select="text()"/>
317
<xsl:choose>
318
<xsl:when test="position()=last()">
319
<xsl:text>.</xsl:text>
320
</xsl:when>
321
<xsl:otherwise><xsl:text>, </xsl:text>
322
</xsl:otherwise>
323
</xsl:choose>
324
</xsl:for-each>
325
</xsl:for-each>
326
</li>
327
</xsl:if>
328
329
<xsl:if test="marc:datafield[@tag=541]">
330
<li>
331
<strong>Title translated by the cataloger&nbsp;: </strong>
332
<xsl:for-each select="marc:datafield[@tag=541]">
333
<xsl:for-each select="marc:subfield">
334
<xsl:value-of select="text()"/>
335
<xsl:choose>
336
<xsl:when test="position()=last()">
337
<xsl:text>.</xsl:text>
338
</xsl:when>
339
<xsl:otherwise><xsl:text>, </xsl:text>
340
</xsl:otherwise>
341
</xsl:choose>
342
</xsl:for-each>
343
</xsl:for-each>
344
</li>
345
</xsl:if>
346
347
<xsl:if test="not(contains($renvoi,'z'))">
348
<xsl:call-template name="tag_7xx">
349
<xsl:with-param name="tag">700</xsl:with-param>
350
<xsl:with-param name="label">Main Author</xsl:with-param>
351
</xsl:call-template>
352
</xsl:if>
353
354
<xsl:call-template name="tag_71x">
355
<xsl:with-param name="tag">710</xsl:with-param>
356
<xsl:with-param name="label">Collectivity Author</xsl:with-param>
357
</xsl:call-template>
358
359
<xsl:call-template name="tag_7xx">
360
<xsl:with-param name="tag">701</xsl:with-param>
361
<xsl:with-param name="label">Co-author</xsl:with-param>
362
</xsl:call-template>
363
364
<xsl:call-template name="tag_7xx">
365
<xsl:with-param name="tag">702</xsl:with-param>
366
<xsl:with-param name="label">Secondary author</xsl:with-param>
367
</xsl:call-template>
368
369
<xsl:call-template name="tag_7xx">
370
<xsl:with-param name="tag">703</xsl:with-param>
371
<xsl:with-param name="label">Personnal name - provenance or ownership</xsl:with-param>
372
</xsl:call-template>
373
374
<xsl:call-template name="tag_71x">
375
<xsl:with-param name="tag">711</xsl:with-param>
376
<xsl:with-param name="label">Co-author collectivity</xsl:with-param>
377
</xsl:call-template>
378
379
<xsl:call-template name="tag_71x">
380
<xsl:with-param name="tag">712</xsl:with-param>
381
<xsl:with-param name="label">Secondary author collectivity</xsl:with-param>
382
</xsl:call-template>
383
 
384
<xsl:call-template name="tag_71x">
385
<xsl:with-param name="tag">713</xsl:with-param>
386
<xsl:with-param name="label">Corporate body name - provenance or ownership</xsl:with-param>
387
</xsl:call-template>
388
389
<xsl:call-template name="tag_7xx">
390
<xsl:with-param name="tag">720</xsl:with-param>
391
<xsl:with-param name="label">Family name</xsl:with-param>
392
</xsl:call-template>
393
394
<xsl:call-template name="tag_7xx">
395
<xsl:with-param name="tag">723</xsl:with-param>
396
<xsl:with-param name="label">Family name - provenance or ownership</xsl:with-param>
397
</xsl:call-template>
398
 
399
400
 <xsl:if test="marc:datafield[@tag=101]">
401
 <li>
402
 <strong>Language&nbsp;: </strong>
403
 <xsl:for-each select="marc:datafield[@tag=101]">
404
 <xsl:for-each select="marc:subfield">
405
 <xsl:choose>
406
 <xsl:when test="@code='b'">intermediate text, </xsl:when>
407
 <xsl:when test="@code='c'">of the original work, </xsl:when>
408
 <xsl:when test="@code='d'">of the summary, </xsl:when>
409
 <xsl:when test="@code='e'">of the table of contents, </xsl:when>
410
 <xsl:when test="@code='f'">from the title page, </xsl:when>
411
 <xsl:when test="@code='g'">from the main title, </xsl:when>
412
 <xsl:when test="@code='h'">of the booklet or lyrics, </xsl:when>
413
 <xsl:when test="@code='i'">accompanying material, </xsl:when>
414
 <xsl:when test="@code='j'">subtitles </xsl:when>n> </xsl:choose>
415
 <xsl:value-of select="text()"/>
416
 <xsl:choose>
417
 <xsl:when test="position()=last()">
418
 <xsl:text>.</xsl:text>
419
 </xsl:when>
420
 <xsl:otherwise>
421
 <xsl:text> ; </xsl:text>
422
 </xsl:otherwise>
423
 </xsl:choose>
424
 </xsl:for-each>
425
 </xsl:for-each>
426
 </li>
427
 </xsl:if>
428
429
 <xsl:if test="marc:datafield[@tag=102]">
430
 <li>
431
 <strong>Country&nbsp;: </strong>
432
 <xsl:for-each select="marc:datafield[@tag=102]">
433
 <xsl:for-each select="marc:subfield">
434
 <xsl:value-of select="text()"/>
435
 <xsl:choose>
436
 <xsl:when test="position()=last()">
437
 <xsl:text>.</xsl:text>
438
 </xsl:when>
439
 <xsl:otherwise><xsl:text>, </xsl:text>
440
 </xsl:otherwise>
441
 </xsl:choose>
442
 </xsl:for-each>
443
 </xsl:for-each>
444
 </li>
445
 </xsl:if>
446
 
447
<xsl:if test="marc:datafield[@tag=181]">
448
<li>
449
<strong>Coded data field - content form&nbsp;: </strong>
450
<xsl:for-each select="marc:datafield[@tag=181]">
451
<xsl:for-each select="marc:subfield">
452
<xsl:value-of select="text()"/>
453
<xsl:choose>
454
<xsl:when test="position()=last()">
455
<xsl:text>.</xsl:text>
456
</xsl:when>
457
<xsl:otherwise><xsl:text>, </xsl:text>
458
</xsl:otherwise>
459
</xsl:choose>
460
</xsl:for-each>
461
</xsl:for-each>
462
</li>
463
</xsl:if>
464
465
466
<xsl:if test="marc:datafield[@tag=182]">
467
<li>
468
<strong>Coded data field - media type&nbsp;: </strong>
469
<xsl:for-each select="marc:datafield[@tag=182]">
470
<xsl:for-each select="marc:subfield">
471
<xsl:value-of select="text()"/>
472
<xsl:choose>
473
<xsl:when test="position()=last()">
474
<xsl:text>.</xsl:text>
475
</xsl:when>
476
<xsl:otherwise><xsl:text>, </xsl:text>
477
</xsl:otherwise>
478
</xsl:choose>
479
</xsl:for-each>
480
</xsl:for-each>
481
</li>
482
</xsl:if>
483
484
485
<xsl:if test="marc:datafield[@tag=183]">
486
<li>
487
<strong>Coded data field - type of carrier&nbsp;: </strong>
488
<xsl:for-each select="marc:datafield[@tag=183]">
489
<xsl:for-each select="marc:subfield">
490
<xsl:value-of select="text()"/>
491
<xsl:choose>
492
<xsl:when test="position()=last()">
493
<xsl:text>.</xsl:text>
494
</xsl:when>
495
<xsl:otherwise><xsl:text>, </xsl:text>
496
</xsl:otherwise>
497
</xsl:choose>
498
</xsl:for-each>
499
</xsl:for-each>
500
</li>
501
</xsl:if> 
502
503
 <xsl:if test="marc:datafield[@tag=205]">
504
 <li>
505
 <strong>Edition&nbsp;: </strong>
506
 <xsl:for-each select="marc:datafield[@tag=205]">
507
 <xsl:for-each select="marc:subfield">
508
 <xsl:value-of select="text()"/>
509
 <xsl:choose>
510
 <xsl:when test="position()=last()">
511
 <xsl:text>.</xsl:text>
512
 </xsl:when>
513
 <xsl:otherwise><xsl:text>, </xsl:text>
514
 </xsl:otherwise>
515
 </xsl:choose>
516
 </xsl:for-each>
517
 </xsl:for-each>
518
 </li>
519
 </xsl:if>
520
521
522
<!--&&3 Publisher 210-->
523
 <xsl:call-template name="tag_210" />
524
525
<!--&&3 Publisher 214-->
526
 <xsl:call-template name="tag_214" />
527
528
529
530
531
 <!--210$s et $r Colophon et adresse transcrite-->
532
<xsl:if test="marc:datafield[@tag=210]/marc:subfield[@code='s']">
533
 <li>
534
 <strong>Colophon&nbsp;: </strong>
535
 <xsl:for-each select="marc:datafield[@tag=210]">
536
 <xsl:value-of select="marc:subfield[@code='s']"/>
537
 <xsl:choose>
538
 <xsl:when test="position()=last()">
539
 <xsl:text>.</xsl:text>
540
 </xsl:when>
541
 <xsl:otherwise><xsl:text>, </xsl:text>
542
 </xsl:otherwise>
543
 </xsl:choose>
544
 </xsl:for-each>
545
 </li>
546
 </xsl:if>
547
548
<xsl:if test="marc:datafield[@tag=210]/marc:subfield[@code='r']">
549
 <li>
550
 <strong>Address&nbsp;: </strong>
551
 <xsl:for-each select="marc:datafield[@tag=210]">
552
 <xsl:value-of select="marc:subfield[@code='r']"/>
553
 <xsl:choose>
554
 <xsl:when test="position()=last()">
555
 <xsl:text>.</xsl:text>
556
 </xsl:when>
557
 <xsl:otherwise><xsl:text>, </xsl:text>
558
 </xsl:otherwise>
559
 </xsl:choose>
560
 </xsl:for-each>
561
 </li>
562
 </xsl:if>
563
564
<!--TB-214-->
565
 <!--210$s et $r Colophon et adresse transcrite-->
566
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='s']">
567
 <li>
568
 <strong>Colophon&nbsp;: </strong>
569
 <xsl:for-each select="marc:datafield[@tag=214]">
570
 <xsl:value-of select="marc:subfield[@code='s']"/>
571
 <xsl:choose>
572
 <xsl:when test="position()=last()">
573
 <xsl:text>.</xsl:text>
574
 </xsl:when>
575
 <xsl:otherwise><xsl:text>, </xsl:text>
576
 </xsl:otherwise>
577
 </xsl:choose>
578
 </xsl:for-each>
579
 </li>
580
 </xsl:if>
581
582
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='r']">
583
 <li>
584
 <strong>Adresse transcrite&nbsp;: </strong>
585
 <xsl:for-each select="marc:datafield[@tag=210]">
586
 <xsl:value-of select="marc:subfield[@code='r']"/>
587
 <xsl:choose>
588
 <xsl:when test="position()=last()">
589
 <xsl:text>.</xsl:text>
590
 </xsl:when>
591
 <xsl:otherwise><xsl:text>, </xsl:text>
592
 </xsl:otherwise>
593
 </xsl:choose>
594
 </xsl:for-each>
595
 </li>
596
 </xsl:if>
597
598
599
<xsl:call-template name="tag_215" />
600
601
602
<!--ISBN-->
603
<xsl:if test="(marc:datafield[@tag=010]/marc:subfield[@code='a']) or (marc:datafield[@tag=010]/marc:subfield[@code='b']) or (marc:datafield[@tag=010]/marc:subfield[@code='z'])">
604
605
 <li><strong>ISBN&nbsp;: </strong> 
606
 <xsl:for-each select="marc:datafield[@tag=010]">
607
608
<xsl:choose>
609
 <xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='b']) and (marc:subfield[@code='z'])">
610
 <xsl:value-of select="marc:subfield[@code='a']"/>
611
 <xsl:text> ; </xsl:text>
612
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> (erroné)</xsl:text>
613
<xsl:text>  </xsl:text>
614
<xsl:text>(</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
615
 </xsl:when>
616
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='b'])">
617
 <xsl:value-of select="marc:subfield[@code='a']"/>
618
<xsl:text>  </xsl:text>
619
<xsl:text>(</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
620
 </xsl:when>
621
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='z'])">
622
 <xsl:value-of select="marc:subfield[@code='a']"/>
623
<xsl:text> ; </xsl:text>
624
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> (erroné)</xsl:text>
625
</xsl:when>
626
<xsl:when test="(marc:subfield[@code='b']) and (marc:subfield[@code='z'])">
627
 <xsl:value-of select="marc:subfield[@code='z']"/>
628
<xsl:text> (error) </xsl:text><xsl:text>(</xsl:text>
629
<xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
630
</xsl:when>
631
 <xsl:when test="(marc:subfield[@code='a'])">
632
 <xsl:value-of select="marc:subfield[@code='a']"/>
633
 </xsl:when>
634
 <xsl:when test="(marc:subfield[@code='b'])">
635
 <xsl:value-of select="marc:subfield[@code='b']"/>
636
 </xsl:when>
637
<xsl:when test="(marc:subfield[@code='z'])">
638
 <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> (erroné)</xsl:text>
639
 </xsl:when>
640
 </xsl:choose>
641
<xsl:choose>
642
<xsl:when test="position()=last()">
643
 <xsl:text> </xsl:text>
644
 </xsl:when>
645
 <xsl:otherwise>
646
 <xsl:text> .- </xsl:text>
647
 </xsl:otherwise>
648
 </xsl:choose>
649
</xsl:for-each>
650
</li>
651
</xsl:if>
652
653
654
655
 <xsl:if test="marc:datafield[@tag=010]/marc:subfield[@code='d']">
656
 <li><strong>Price&nbsp;: </strong>
657
 <xsl:for-each select="marc:datafield[@tag=010]">
658
 <xsl:variable name="isbn" select="marc:subfield[@code='d']"/>
659
 <xsl:value-of select="marc:subfield[@code='d']"/>
660
 <xsl:choose>
661
 <xsl:when test="position()=last()">
662
 <xsl:text>.</xsl:text>
663
 </xsl:when>
664
 <xsl:otherwise>
665
 <xsl:text> ; </xsl:text>
666
 </xsl:otherwise>
667
 </xsl:choose>
668
 </xsl:for-each>
669
 </li>
670
 </xsl:if>
671
672
<xsl:if test="marc:datafield[@tag=011]">
673
 <li>
674
 <strong>ISSN&nbsp;: </strong>
675
 <xsl:for-each select="marc:datafield[@tag=011]">
676
 <xsl:value-of select="marc:subfield[@code='a']"/>
677
 <xsl:choose>
678
 <xsl:when test="position()=last()">
679
 <xsl:text>.</xsl:text>
680
 </xsl:when>
681
 <xsl:otherwise>
682
 <xsl:text>; </xsl:text>
683
 </xsl:otherwise>
684
 </xsl:choose>
685
 </xsl:for-each>
686
 </li>
687
 </xsl:if>
688
689
 <xsl:call-template name="tag_title_collection">
690
 <xsl:with-param name="tag">225</xsl:with-param>
691
 <xsl:with-param name="label">Collection </xsl:with-param>
692
 </xsl:call-template>
693
694
<!--410 Collection-->
695
<xsl:for-each select="marc:datafield[@tag=410]">
696
 <li>
697
 <strong>In the collection&nbsp;: </strong>
698
 <span>
699
<xsl:choose>
700
<xsl:when test="(marc:subfield[@code='9']) and (marc:subfield[@code='x']) and (marc:subfield[@code='v'])">
701
<xsl:element name="a">
702
        <xsl:attribute name="href">
703
     /cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
704
<xsl:value-of select="marc:subfield[@code='t']"/>
705
</xsl:element>
706
<xsl:text>, ISSN </xsl:text>
707
<xsl:element name="a">
708
        <xsl:attribute name="href">
709
     /cgi-bin/koha/catalogue/search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
710
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
711
<xsl:text> ; </xsl:text>
712
<xsl:value-of select="marc:subfield[@code='v']"/>
713
</xsl:when>
714
<xsl:when test="(marc:subfield[@code='9'])  and (marc:subfield[@code='v'])">
715
<xsl:element name="a">
716
        <xsl:attribute name="href">
717
     /cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
718
<xsl:value-of select="marc:subfield[@code='t']"/>
719
</xsl:element>
720
<xsl:text> ; </xsl:text>
721
<xsl:value-of select="marc:subfield[@code='v']"/>
722
      </xsl:when>
723
<xsl:when test="(marc:subfield[@code='9']) and (marc:subfield[@code='x'])">
724
<xsl:element name="a">
725
        <xsl:attribute name="href">
726
     /cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
727
<xsl:value-of select="marc:subfield[@code='t']"/>
728
</xsl:element>
729
<xsl:text>, ISSN </xsl:text>
730
<xsl:element name="a">
731
        <xsl:attribute name="href">
732
     /cgi-bin/koha/catalogue/search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
733
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
734
</xsl:when>
735
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='x']) and (marc:subfield[@code='v'])">
736
<xsl:element name="a">
737
        <xsl:attribute name="href">
738
     /cgi-bin/koha/catalogue/search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
739
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
740
<xsl:text>, ISSN </xsl:text>
741
<xsl:element name="a">
742
        <xsl:attribute name="href">
743
     /cgi-bin/koha/catalogue/search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
744
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
745
<xsl:text> ; </xsl:text>
746
<xsl:value-of select="marc:subfield[@code='v']"/>
747
</xsl:when>
748
<xsl:when test="(marc:subfield[@code='t'])  and (marc:subfield[@code='v'])">
749
<xsl:element name="a">
750
        <xsl:attribute name="href">
751
     /cgi-bin/koha/catalogue/search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
752
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
753
<xsl:text> ; </xsl:text>
754
<xsl:value-of select="marc:subfield[@code='v']"/>
755
</xsl:when>
756
<xsl:when test="(marc:subfield[@code='t'])">
757
<xsl:element name="a">
758
        <xsl:attribute name="href">
759
     /cgi-bin/koha/catalogue/search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
760
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
761
</xsl:when>
762
 </xsl:choose>
763
</span>
764
</li>
765
</xsl:for-each>
766
767
768
<!--500 TITRE UNIFORME-->
769
<xsl:for-each select="marc:datafield[@tag=500]">
770
 <li>
771
 <strong>Uniform title : </strong>
772
 <xsl:if test="marc:subfield[@code='a']">
773
<xsl:text>[</xsl:text>
774
<xsl:value-of select="marc:subfield[@code='a']"/>
775
<xsl:choose>
776
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='m']) and  (marc:subfield[@code='k'])">
777
 <xsl:text>. </xsl:text>
778
 <xsl:value-of select="marc:subfield[@code='i']"/>
779
<xsl:text>. </xsl:text>
780
 <xsl:value-of select="marc:subfield[@code='m']"/>
781
<xsl:text>. </xsl:text>
782
<xsl:value-of select="marc:subfield[@code='k']"/>
783
 <xsl:text>]</xsl:text>
784
</xsl:when>
785
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='l'])">
786
 <xsl:text>. </xsl:text>
787
 <xsl:value-of select="marc:subfield[@code='i']"/>
788
<xsl:text>. </xsl:text>
789
 <xsl:value-of select="marc:subfield[@code='l']"/>
790
 <xsl:text>]</xsl:text>
791
</xsl:when>
792
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='k'])">
793
 <xsl:text>. </xsl:text>
794
 <xsl:value-of select="marc:subfield[@code='m']"/>
795
 <xsl:text>. </xsl:text>
796
<xsl:value-of select="marc:subfield[@code='k']"/>
797
 <xsl:text>]</xsl:text>
798
</xsl:when>
799
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='k'])">
800
 <xsl:text>. </xsl:text>
801
 <xsl:value-of select="marc:subfield[@code='i']"/>
802
 <xsl:text>. </xsl:text>
803
<xsl:value-of select="marc:subfield[@code='k']"/>
804
 <xsl:text>]</xsl:text>
805
</xsl:when>
806
<xsl:when test="(marc:subfield[@code='i'][3])">
807
 <xsl:text>. </xsl:text>
808
 <xsl:value-of select="marc:subfield[@code='i'][1]"/>
809
 <xsl:text>. </xsl:text>
810
 <xsl:value-of select="marc:subfield[@code='i'][2]"/>
811
 <xsl:text>. </xsl:text>
812
 <xsl:value-of select="marc:subfield[@code='i'][3]"/>
813
 <xsl:text>]</xsl:text>
814
</xsl:when>
815
<xsl:when test="(marc:subfield[@code='i'][2])">
816
 <xsl:text>. </xsl:text>
817
 <xsl:value-of select="marc:subfield[@code='i'][1]"/>
818
 <xsl:text>. </xsl:text>
819
 <xsl:value-of select="marc:subfield[@code='i'][2]"/>
820
 <xsl:text>]</xsl:text>
821
</xsl:when>
822
<xsl:when test="(marc:subfield[@code='l'])">
823
 <xsl:text>. </xsl:text>
824
 <xsl:value-of select="marc:subfield[@code='l']"/>
825
 <xsl:text>]</xsl:text>
826
</xsl:when>
827
<xsl:otherwise>
828
<xsl:text>]</xsl:text>
829
</xsl:otherwise>
830
</xsl:choose>
831
</xsl:if>
832
 </li>
833
 </xsl:for-each>
834
835
836
<!--503 FORM TITLE-->
837
<xsl:for-each select="marc:datafield[@tag=503]">
838
 <li>
839
 <strong>Form title&nbsp;: </strong>
840
 <xsl:if test="marc:subfield[@code='a']">
841
<xsl:text>[</xsl:text>
842
<xsl:value-of select="marc:subfield[@code='a']"/>
843
<xsl:choose>
844
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='i']) and  (marc:subfield[@code='m']) and  (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
845
 <xsl:text>. </xsl:text>
846
 <xsl:value-of select="marc:subfield[@code='e']"/>
847
<xsl:text>. </xsl:text>
848
 <xsl:value-of select="marc:subfield[@code='i']"/>
849
<xsl:text>. </xsl:text>
850
<xsl:value-of select="marc:subfield[@code='m']"/>
851
<xsl:text>. </xsl:text>
852
<xsl:value-of select="marc:subfield[@code='n']"/>
853
<xsl:text>. </xsl:text>
854
<xsl:value-of select="marc:subfield[@code='o']"/>
855
<xsl:text>. </xsl:text>
856
<xsl:value-of select="marc:subfield[@code='j']"/>
857
 <xsl:text>]</xsl:text>
858
</xsl:when>
859
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
860
 <xsl:text>. </xsl:text>
861
 <xsl:value-of select="marc:subfield[@code='e']"/>
862
<xsl:text>. </xsl:text>
863
 <xsl:value-of select="marc:subfield[@code='m']"/>
864
<xsl:text>. </xsl:text>
865
 <xsl:value-of select="marc:subfield[@code='n']"/>
866
<xsl:text>. </xsl:text>
867
 <xsl:value-of select="marc:subfield[@code='o']"/>
868
<xsl:text>. </xsl:text>
869
 <xsl:value-of select="marc:subfield[@code='j']"/>
870
 <xsl:text>]</xsl:text>
871
</xsl:when>
872
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
873
 <xsl:text>. </xsl:text>
874
 <xsl:value-of select="marc:subfield[@code='m']"/>
875
 <xsl:text>. </xsl:text>
876
<xsl:value-of select="marc:subfield[@code='n']"/>
877
<xsl:text>. </xsl:text>
878
<xsl:value-of select="marc:subfield[@code='o']"/>
879
<xsl:text>. </xsl:text>
880
<xsl:value-of select="marc:subfield[@code='j']"/>
881
 <xsl:text>]</xsl:text>
882
</xsl:when>
883
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='j'])">
884
 <xsl:text>. </xsl:text>
885
 <xsl:value-of select="marc:subfield[@code='e']"/>
886
 <xsl:text>. </xsl:text>
887
<xsl:value-of select="marc:subfield[@code='m']"/>
888
 <xsl:text>. </xsl:text>
889
<xsl:value-of select="marc:subfield[@code='n']"/>
890
 <xsl:text>. </xsl:text>
891
<xsl:value-of select="marc:subfield[@code='j']"/>
892
<xsl:text>]</xsl:text>
893
</xsl:when>
894
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='j'])">
895
 <xsl:text>. </xsl:text>
896
<xsl:value-of select="marc:subfield[@code='m']"/>
897
 <xsl:text>. </xsl:text>
898
<xsl:value-of select="marc:subfield[@code='n']"/>
899
 <xsl:text>. </xsl:text>
900
<xsl:value-of select="marc:subfield[@code='j']"/>
901
<xsl:text>]</xsl:text>
902
</xsl:when>
903
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='h']) and (marc:subfield[@code='j'])">
904
 <xsl:text>. </xsl:text>
905
<xsl:value-of select="marc:subfield[@code='e']"/>
906
 <xsl:text>. </xsl:text>
907
<xsl:value-of select="marc:subfield[@code='h']"/>
908
 <xsl:text>. </xsl:text>
909
<xsl:value-of select="marc:subfield[@code='j']"/>
910
<xsl:text>]</xsl:text>
911
</xsl:when>
912
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='f']) and (marc:subfield[@code='h'])">
913
 <xsl:text>. </xsl:text>
914
<xsl:value-of select="marc:subfield[@code='e']"/>
915
 <xsl:text>. </xsl:text>
916
<xsl:value-of select="marc:subfield[@code='f']"/>
917
 <xsl:text>. </xsl:text>
918
<xsl:value-of select="marc:subfield[@code='h']"/>
919
<xsl:text>]</xsl:text>
920
</xsl:when>
921
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='f'])">
922
 <xsl:text>. </xsl:text>
923
<xsl:value-of select="marc:subfield[@code='e']"/>
924
 <xsl:text>. </xsl:text>
925
<xsl:value-of select="marc:subfield[@code='f']"/>
926
<xsl:text>]</xsl:text>
927
</xsl:when>
928
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='n'])">
929
 <xsl:text>. </xsl:text>
930
<xsl:value-of select="marc:subfield[@code='i']"/>
931
 <xsl:text>. </xsl:text>
932
<xsl:value-of select="marc:subfield[@code='n']"/>
933
<xsl:text>]</xsl:text>
934
</xsl:when>
935
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n'])">
936
 <xsl:text>. </xsl:text>
937
<xsl:value-of select="marc:subfield[@code='m']"/>
938
 <xsl:text>. </xsl:text>
939
<xsl:value-of select="marc:subfield[@code='n']"/>
940
<xsl:text>]</xsl:text>
941
</xsl:when>
942
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='j'])">
943
 <xsl:text>. </xsl:text>
944
<xsl:value-of select="marc:subfield[@code='m']"/>
945
 <xsl:text>. </xsl:text>
946
<xsl:value-of select="marc:subfield[@code='j']"/>
947
<xsl:text>]</xsl:text>
948
</xsl:when>
949
<xsl:when test="(marc:subfield[@code='m'])">
950
 <xsl:text>. </xsl:text>
951
<xsl:value-of select="marc:subfield[@code='m']"/>
952
<xsl:text>]</xsl:text>
953
</xsl:when>
954
<xsl:otherwise>
955
<xsl:text>]</xsl:text>
956
</xsl:otherwise>
957
</xsl:choose>
958
</xsl:if>
959
</li>
960
</xsl:for-each>
961
962
<!--506 identification of work-->
963
 <xsl:if test="marc:datafield[@tag=506]">
964
 <li>
965
 <strong>Identification of a work&nbsp;: </strong>
966
 <xsl:for-each select="marc:datafield[@tag=506]">
967
 <xsl:for-each select="marc:subfield">
968
 <xsl:value-of select="text()"/>
969
 <xsl:choose>
970
 <xsl:when test="position()=last()">
971
 <xsl:text>.</xsl:text>
972
 </xsl:when>
973
 <xsl:otherwise><xsl:text>. </xsl:text>
974
 </xsl:otherwise>
975
 </xsl:choose>
976
 </xsl:for-each>
977
 </xsl:for-each>
978
 </li>
979
 </xsl:if>
980
 
981
 
982
 <!--507 identification of an exception expression-->
983
 <xsl:if test="marc:datafield[@tag=507]">
984
 <li>
985
 <strong>Identification of an exception expression&nbsp;: </strong>
986
 <xsl:for-each select="marc:datafield[@tag=507]">
987
 <xsl:for-each select="marc:subfield">
988
 <xsl:value-of select="text()"/>
989
 <xsl:choose>
990
 <xsl:when test="position()=last()">
991
 <xsl:text>.</xsl:text>
992
 </xsl:when>
993
 <xsl:otherwise><xsl:text>. </xsl:text>
994
 </xsl:otherwise>
995
 </xsl:choose>
996
 </xsl:for-each>
997
 </xsl:for-each>
998
 </li>
999
 </xsl:if>
1000
1001
<!--517 other title-->
1002
<xsl:for-each select="marc:datafield[@tag=517]">
1003
 <li>
1004
 <strong>Form titles&nbsp;: </strong>
1005
 <xsl:if test="marc:subfield[@code='a']">
1006
<xsl:value-of select="marc:subfield[@code='a']"/>
1007
<xsl:choose>
1008
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='h']) and  (marc:subfield[@code='i'])">
1009
 <xsl:text>: </xsl:text>
1010
 <xsl:value-of select="marc:subfield[@code='e']"/>
1011
<xsl:text>. </xsl:text>
1012
 <xsl:value-of select="marc:subfield[@code='h']"/>
1013
<xsl:text>, </xsl:text>
1014
<xsl:value-of select="marc:subfield[@code='i']"/>
1015
</xsl:when>
1016
<xsl:when test="(marc:subfield[@code='e'])">
1017
 <xsl:text>: </xsl:text>
1018
 <xsl:value-of select="marc:subfield[@code='e']"/>
1019
</xsl:when>
1020
<xsl:when test="(marc:subfield[@code='j'])">
1021
 <xsl:text>. </xsl:text>
1022
 <xsl:value-of select="marc:subfield[@code='j']"/>
1023
</xsl:when>
1024
</xsl:choose>
1025
</xsl:if>
1026
</li>
1027
</xsl:for-each>
1028
1029
<!--576 identification of an exception expression-->
1030
 <xsl:if test="marc:datafield[@tag=576]">
1031
 <li>
1032
 <strong>Name prefered access point -Identification of a work&nbsp;: </strong>
1033
 <xsl:for-each select="marc:datafield[@tag=576]">
1034
 <xsl:for-each select="marc:subfield">
1035
 <xsl:value-of select="text()"/>
1036
 <xsl:choose>
1037
 <xsl:when test="position()=last()">
1038
 <xsl:text>.</xsl:text>
1039
 </xsl:when>
1040
 <xsl:otherwise><xsl:text>. </xsl:text>
1041
 </xsl:otherwise>
1042
 </xsl:choose>
1043
 </xsl:for-each>
1044
 </xsl:for-each>
1045
 </li>
1046
 </xsl:if>
1047
1048
<!--577 identification of an exception expression-->
1049
 <xsl:if test="marc:datafield[@tag=577]">
1050
 <li>
1051
 <strong>Name prefered access point -Identification of an expression&nbsp;: </strong>
1052
 <xsl:for-each select="marc:datafield[@tag=577]">
1053
 <xsl:for-each select="marc:subfield">
1054
 <xsl:value-of select="text()"/>
1055
 <xsl:choose>
1056
 <xsl:when test="position()=last()">
1057
 <xsl:text>.</xsl:text>
1058
 </xsl:when>
1059
 <xsl:otherwise><xsl:text>. </xsl:text>
1060
 </xsl:otherwise>
1061
 </xsl:choose>
1062
 </xsl:for-each>
1063
 </xsl:for-each>
1064
 </li>
1065
 </xsl:if>
1066
1067
<!--623 Character-->
1068
 <xsl:if test="marc:datafield[@tag=623]">
1069
 <li>
1070
 <strong>Character&nbsp;: </strong>
1071
 <xsl:for-each select="marc:datafield[@tag=623]">
1072
 <xsl:for-each select="marc:subfield">
1073
 <xsl:value-of select="text()"/>
1074
 <xsl:choose>
1075
 <xsl:when test="position()=last()">
1076
 <xsl:text>.</xsl:text>
1077
 </xsl:when>
1078
 <xsl:otherwise><xsl:text>. </xsl:text>
1079
 </xsl:otherwise>
1080
 </xsl:choose>
1081
 </xsl:for-each>
1082
 </xsl:for-each>
1083
 </li>
1084
 </xsl:if>
1085
 
1086
 
1087
<!--classification-->
1088
 <xsl:if test="marc:datafield[@tag=686]">
1089
 <li>
1090
 <strong>Other Classification&nbsp;: </strong>
1091
 <xsl:for-each select="marc:datafield[@tag=686]">
1092
 <xsl:value-of select="marc:subfield[@code='a']"/>
1093
 <xsl:if test="marc:subfield[@code='2']">
1094
 <xsl:text>, </xsl:text>
1095
 <xsl:value-of select="marc:subfield[@code='2']"/>
1096
 </xsl:if>
1097
 <xsl:if test="marc:subfield[@code='z']">
1098
 <xsl:text>, </xsl:text>
1099
 <xsl:value-of select="marc:subfield[@code='z']"/>
1100
 </xsl:if>
1101
 <xsl:if test="not (position()=last())">
1102
 <xsl:text> ; </xsl:text>
1103
 </xsl:if>
1104
 </xsl:for-each>
1105
 </li>
1106
 </xsl:if>
1107
1108
 <xsl:if test="marc:datafield[@tag=675]">
1109
 <li>
1110
 <strong>Classification-675&nbsp;: </strong>
1111
 <xsl:for-each select="marc:datafield[@tag=675]">
1112
 <xsl:value-of select="marc:subfield[@code='a']"/>
1113
 <xsl:if test="marc:subfield[@code='b']">
1114
 <xsl:text>, </xsl:text>
1115
 <xsl:value-of select="marc:subfield[@code='b']"/>
1116
 </xsl:if>
1117
 <xsl:if test="marc:subfield[@code='c']">
1118
 <xsl:text>, </xsl:text>
1119
 <xsl:value-of select="marc:subfield[@code='c']"/>
1120
 </xsl:if>
1121
 <xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
1122
 </xsl:for-each>
1123
 </li>
1124
 </xsl:if>
1125
1126
1127
 <xsl:if test="marc:datafield[@tag=676]">
1128
 <li>
1129
 <strong>Classification-676&nbsp;: </strong>
1130
 <xsl:for-each select="marc:datafield[@tag=676]">
1131
 <xsl:value-of select="marc:subfield[@code='a']"/>
1132
 <xsl:if test="marc:subfield[@code='b']">
1133
 <xsl:text>, </xsl:text>
1134
 <xsl:value-of select="marc:subfield[@code='b']"/>
1135
 </xsl:if>
1136
 <xsl:if test="marc:subfield[@code='c']">
1137
 <xsl:text>, </xsl:text>
1138
 <xsl:value-of select="marc:subfield[@code='c']"/>
1139
 </xsl:if>
1140
 <xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
1141
 </xsl:for-each>
1142
 </li>
1143
 </xsl:if>
1144
1145
1146
 <xsl:if test="marc:datafield[@tag=327]">
1147
 <li>
1148
 <strong>Note of content&nbsp;: </strong>
1149
 <xsl:for-each select="marc:datafield[@tag=327]">
1150
 <xsl:call-template name="chopPunctuation">
1151
 <xsl:with-param name="chopString">
1152
 <xsl:call-template name="subfieldSelect">
1153
 <xsl:with-param name="codes">a</xsl:with-param>
1154
 <xsl:with-param name="subdivCodes">a</xsl:with-param>
1155
 <xsl:with-param name="subdivDelimiter"> | </xsl:with-param>
1156
 </xsl:call-template>
1157
 </xsl:with-param>
1158
 </xsl:call-template>
1159
 </xsl:for-each>
1160
 </li>
1161
 </xsl:if>
1162
1163
 <xsl:if test="marc:datafield[@tag=330]">
1164
 <li>
1165
 <strong>Abstract&nbsp;: </strong>
1166
 <xsl:for-each select="marc:datafield[@tag=330]">
1167
 <xsl:value-of select="marc:subfield[@code='a']"/>
1168
 <xsl:choose>
1169
 <xsl:when test="position()=last()">
1170
 <xsl:text> </xsl:text>
1171
 </xsl:when>
1172
 <xsl:otherwise>
1173
 <br></br><xsl:text> </xsl:text>
1174
 </xsl:otherwise>
1175
 </xsl:choose>
1176
 </xsl:for-each>
1177
 </li>
1178
 </xsl:if>
1179
1180
<xsl:if test="marc:datafield[@tag=326]">
1181
 <li>
1182
 <strong>Periodicity&nbsp;: </strong>
1183
 <xsl:for-each select="marc:datafield[@tag=326]">
1184
 <xsl:value-of select="marc:subfield[@code='a']"/>
1185
 <xsl:choose>
1186
 <xsl:when test="position()=last()">
1187
 <xsl:text> </xsl:text>
1188
 </xsl:when>
1189
 <xsl:otherwise>
1190
 <xsl:text>; </xsl:text>
1191
 </xsl:otherwise>
1192
 </xsl:choose>
1193
 </xsl:for-each>
1194
 </li>
1195
 </xsl:if>
1196
1197
1198
1199
<xsl:if test="marc:datafield[@tag=310]">
1200
 <li>
1201
 <strong>Note about the availability&nbsp;: </strong>
1202
 <xsl:for-each select="marc:datafield[@tag=310]">
1203
 <xsl:value-of select="marc:subfield[@code='a']"/>
1204
 <xsl:choose>
1205
 <xsl:when test="position()=last()">
1206
 <xsl:text> </xsl:text>
1207
 </xsl:when>
1208
 <xsl:otherwise>
1209
 <xsl:text>; </xsl:text>
1210
 </xsl:otherwise>
1211
 </xsl:choose>
1212
 </xsl:for-each>
1213
 </li>
1214
 </xsl:if>
1215
1216
 <xsl:if test="marc:datafield[@tag=317]">
1217
 <li>
1218
 <strong>Note(s) of provenance&nbsp;: </strong>
1219
 <xsl:for-each select="marc:datafield[@tag=317]">
1220
 <xsl:value-of select="marc:subfield[@code='a']"/>
1221
 </xsl:for-each>
1222
 </li>
1223
 </xsl:if>
1224
1225
 <xsl:if test="marc:datafield[@tag=320]">
1226
 <li>
1227
 <strong>Notes&nbsp;: </strong>
1228
 <xsl:for-each select="marc:datafield[@tag=320]">
1229
 <xsl:value-of select="marc:subfield[@code='a']"/>
1230
 <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
1231
 </xsl:for-each>
1232
 </li>
1233
 </xsl:if>
1234
1235
 <xsl:if test="marc:datafield[@tag=328]">
1236
 <li>
1237
 <strong>Note of thesis&nbsp;: </strong>
1238
 <xsl:for-each select="marc:datafield[@tag=328]">
1239
<xsl:for-each select="marc:subfield">
1240
 <xsl:value-of select="text()"/>
1241
 <xsl:choose><xsl:when test="position()=last()"><xsl:text> . </xsl:text></xsl:when><xsl:otherwise><xsl:text> - </xsl:text></xsl:otherwise></xsl:choose>
1242
 </xsl:for-each>
1243
 </xsl:for-each>
1244
 </li>
1245
 </xsl:if>
1246
1247
 <xsl:if test="marc:datafield[@tag=333]">
1248
 <li>
1249
 <strong>Public&nbsp;: </strong>
1250
 <xsl:for-each select="marc:datafield[@tag=333]">
1251
 <xsl:value-of select="marc:subfield[@code='a']"/>
1252
 <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
1253
 </xsl:for-each>
1254
 </li>
1255
 </xsl:if>
1256
1257
1258
<!--&&13 Descripteur 610-->
1259
<xsl:if test="marc:datafield[@tag=610]">
1260
 <li> <strong>Subject&nbsp;: </strong>
1261
 <xsl:for-each select="marc:datafield[@tag=610]">
1262
<xsl:variable name="chp_610" select="marc:datafield[@tag=610]/marc:subfield[@code='a']"/>
1263
<xsl:variable name="between" select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')"/>
1264
<xsl:choose>
1265
<xsl:when test="contains($chp_610,'(')">
1266
<a>
1267
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su,phr:<xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')"/> <xsl:value-of select="$between"/></xsl:attribute>
1268
<xsl:value-of select="marc:subfield[@code='a']"/>
1269
</a>
1270
</xsl:when>
1271
<xsl:otherwise>
1272
<a>
1273
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su,phr:<xsl:value-of select="marc:subfield[@code='a']"/>
1274
</xsl:attribute>
1275
<xsl:value-of select="marc:subfield[@code='a']"/>
1276
</a>
1277
 </xsl:otherwise>
1278
</xsl:choose>
1279
 <xsl:choose>
1280
 <xsl:when test="position()=last()">
1281
 <xsl:text> </xsl:text>
1282
 </xsl:when>
1283
 <xsl:otherwise>
1284
 <xsl:text> .  </xsl:text>
1285
</xsl:otherwise>
1286
 </xsl:choose>
1287
 </xsl:for-each>
1288
 </li>
1289
</xsl:if>
1290
1291
1292
<!--&&9 Subject - Name 600-->
1293
<xsl:for-each select="marc:datafield[@tag=600]">
1294
 <li>
1295
 <strong>Subject&nbsp;: </strong>
1296
 <span>
1297
<xsl:if test="marc:subfield[@code='a']">
1298
<xsl:element name="a">
1299
        <xsl:attribute name="href">
1300
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1301
<xsl:text>+</xsl:text><xsl:if test="marc:subfield[@code='b']!=''"><xsl:value-of select="marc:subfield[@code='b']"/></xsl:if>
1302
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1303
       </xsl:if>
1304
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1305
<xsl:text>, </xsl:text>
1306
            <xsl:value-of select="marc:subfield[@code='b']"/>
1307
</xsl:if>
1308
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='d']">
1309
<xsl:text>, </xsl:text>
1310
            <xsl:value-of select="marc:subfield[@code='d']"/>
1311
       </xsl:if>
1312
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='c']">
1313
<xsl:text>, </xsl:text>
1314
<xsl:element name="a">
1315
        <xsl:attribute name="href">
1316
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='c']"/>
1317
</xsl:attribute><xsl:value-of select="marc:subfield[@code='c']"/></xsl:element>
1318
       </xsl:if>
1319
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='f']">
1320
<xsl:text> (</xsl:text>
1321
           <xsl:value-of select="marc:subfield[@code='f']"/>
1322
<xsl:text>) </xsl:text>       </xsl:if>
1323
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1324
<xsl:text> -- </xsl:text>
1325
<xsl:element name="a">
1326
        <xsl:attribute name="href">
1327
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1328
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1329
</xsl:if>
1330
<xsl:if test="marc:subfield[@code='x'][2]">
1331
<xsl:text> -- </xsl:text>
1332
<xsl:element name="a">
1333
        <xsl:attribute name="href">
1334
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1335
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1336
</xsl:if>
1337
<xsl:if test="marc:subfield[@code='x'][3]">
1338
<xsl:text> -- </xsl:text>
1339
<xsl:element name="a">
1340
        <xsl:attribute name="href">
1341
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1342
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
1343
</xsl:if>
1344
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1345
<xsl:text> -- </xsl:text>
1346
           <xsl:value-of select="marc:subfield[@code='y']"/>
1347
       </xsl:if>
1348
<xsl:if test="marc:subfield[@code='z']">
1349
<xsl:text> -- </xsl:text>
1350
           <xsl:value-of select="marc:subfield[@code='z']"/>
1351
       </xsl:if>
1352
<xsl:if test="marc:subfield[@code='2']">
1353
<xsl:text> -- </xsl:text>
1354
           <xsl:value-of select="marc:subfield[@code='2']"/>
1355
       </xsl:if>
1356
<xsl:text> | </xsl:text>
1357
<!-- recherche sur tous les mots-->  <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1358
<xsl:choose>
1359
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1360
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1361
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1362
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1363
        </xsl:when>
1364
        <xsl:otherwise>
1365
          <xsl:value-of select="marc:subfield[@code='a']" />
1366
        </xsl:otherwise>
1367
      </xsl:choose>
1368
<xsl:if test="marc:subfield[@code='b'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b']!=''"><xsl:value-of select="marc:subfield[@code='b']"/></xsl:if>
1369
<xsl:if test="marc:subfield[@code='c'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='c']!=''"><xsl:value-of select="marc:subfield[@code='c']"/></xsl:if>
1370
<xsl:if test="marc:subfield[@code='d'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='d']!=''"><xsl:value-of select="marc:subfield[@code='d']"/></xsl:if><xsl:if test="marc:subfield[@code='x'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1371
<xsl:if test="marc:subfield[@code='x'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1372
<xsl:if test="marc:subfield[@code='x'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1373
<xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if>
1374
 </xsl:attribute><xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1375
</span>
1376
 </li>
1377
 </xsl:for-each>
1378
1379
1380
<!--&&10 Subject collectivity 601-->
1381
<xsl:for-each select="marc:datafield[@tag=601]">
1382
 <li>
1383
 <strong>Subject&nbsp;: </strong>
1384
 <span>
1385
<xsl:if test="marc:subfield[@code='a']">
1386
            <xsl:element name="a">
1387
        <xsl:attribute name="href">
1388
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1389
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1390
       </xsl:if>
1391
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1392
<xsl:text>. </xsl:text>
1393
<xsl:element name="a">
1394
        <xsl:attribute name="href">
1395
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1396
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1397
<xsl:if test="marc:subfield[@code='b'][2]">
1398
<xsl:text>. </xsl:text>
1399
<xsl:element name="a">
1400
        <xsl:attribute name="href">
1401
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1402
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1403
</xsl:if>
1404
1405
<xsl:if test="marc:subfield[@code='b'][3]">
1406
<xsl:text>. </xsl:text>
1407
<xsl:element name="a">
1408
        <xsl:attribute name="href">
1409
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1410
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1411
</xsl:if>
1412
1413
 </xsl:if>
1414
1415
<xsl:if test="marc:subfield[@code='c']">
1416
<xsl:text>. </xsl:text>
1417
<xsl:value-of select="marc:subfield[@code='c']"/>
1418
 </xsl:if>
1419
1420
1421
<xsl:choose>
1422
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1423
 <xsl:text> ( </xsl:text>
1424
 <xsl:value-of select="marc:subfield[@code='d']"/>
1425
<xsl:text> ; </xsl:text>
1426
 <xsl:value-of select="marc:subfield[@code='f']"/>
1427
<xsl:text> ; </xsl:text>
1428
<xsl:value-of select="marc:subfield[@code='e']"/>
1429
 <xsl:text> ) </xsl:text>
1430
</xsl:when>
1431
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1432
 <xsl:text> ( </xsl:text>
1433
 <xsl:value-of select="marc:subfield[@code='d']"/>
1434
<xsl:text> ; </xsl:text>
1435
 <xsl:value-of select="marc:subfield[@code='f']"/>
1436
 <xsl:text> ) </xsl:text>
1437
</xsl:when>
1438
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='e'])">
1439
 <xsl:text> ( </xsl:text>
1440
 <xsl:value-of select="marc:subfield[@code='d']"/>
1441
<xsl:text> ; </xsl:text>
1442
 <xsl:value-of select="marc:subfield[@code='e']"/>
1443
 <xsl:text> ) </xsl:text>
1444
</xsl:when>
1445
<xsl:when test="(marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1446
 <xsl:text> ( </xsl:text>
1447
 <xsl:value-of select="marc:subfield[@code='f']"/>
1448
<xsl:text> ; </xsl:text>
1449
 <xsl:value-of select="marc:subfield[@code='e']"/>
1450
 <xsl:text> ) </xsl:text>
1451
</xsl:when>
1452
<xsl:when test="marc:subfield[@code='d']">
1453
 <xsl:text> ( </xsl:text>
1454
 <xsl:value-of select="marc:subfield[@code='d']"/>
1455
 <xsl:text> ) </xsl:text>
1456
</xsl:when>
1457
</xsl:choose>
1458
1459
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1460
<xsl:text> -- </xsl:text>
1461
<xsl:element name="a">
1462
        <xsl:attribute name="href">
1463
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1464
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1465
<xsl:if test="marc:subfield[@code='x'][2]">
1466
<xsl:text> -- </xsl:text>
1467
<xsl:element name="a">
1468
        <xsl:attribute name="href">
1469
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1470
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1471
</xsl:if>
1472
<xsl:if test="marc:subfield[@code='x'][3]">
1473
<xsl:text> -- </xsl:text>
1474
<xsl:element name="a">
1475
        <xsl:attribute name="href">
1476
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1477
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>           
1478
</xsl:if>
1479
       </xsl:if>
1480
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1481
<xsl:text> -- </xsl:text>
1482
 <xsl:element name="a">
1483
        <xsl:attribute name="href">
1484
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1485
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1486
       </xsl:if>
1487
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1488
<xsl:text> -- </xsl:text>
1489
            <xsl:element name="a">
1490
        <xsl:attribute name="href">
1491
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1492
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1493
       </xsl:if>
1494
<xsl:if test="marc:subfield[@code='2']">
1495
<xsl:text> -- </xsl:text>
1496
           <xsl:value-of select="marc:subfield[@code='2']"/>
1497
       </xsl:if>
1498
<xsl:text> | </xsl:text>
1499
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1500
<xsl:choose>
1501
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1502
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1503
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1504
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1505
        </xsl:when>
1506
        <xsl:otherwise>
1507
          <xsl:value-of select="marc:subfield[@code='a']" />
1508
        </xsl:otherwise>
1509
      </xsl:choose> 
1510
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1511
<xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:if>
1512
<xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:if>
1513
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1514
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1515
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1516
<xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:if>
1517
<xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:if>
1518
<xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:if>
1519
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1520
</span>
1521
 </li>
1522
 </xsl:for-each>
1523
1524
<xsl:for-each select="marc:datafield[@tag=602]">
1525
<li>
1526
<strong>Subject&nbsp;: </strong>
1527
<span>
1528
<xsl:if test="marc:subfield[@code='a']">
1529
<xsl:element name="a">
1530
<xsl:attribute name="href">
1531
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1532
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1533
</xsl:if>
1534
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1535
<xsl:text>. </xsl:text>
1536
<xsl:element name="a">
1537
        <xsl:attribute name="href">
1538
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1539
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1540
<xsl:if test="marc:subfield[@code='b'][2]">
1541
<xsl:text>. </xsl:text>
1542
<xsl:element name="a">
1543
        <xsl:attribute name="href">
1544
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1545
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1546
</xsl:if>
1547
1548
<xsl:if test="marc:subfield[@code='b'][3]">
1549
<xsl:text>. </xsl:text>
1550
<xsl:element name="a">
1551
        <xsl:attribute name="href">
1552
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1553
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1554
</xsl:if>
1555
1556
       </xsl:if>
1557
<xsl:if test="marc:subfield[@code='c']">
1558
<xsl:text>. </xsl:text>
1559
<xsl:value-of select="marc:subfield[@code='c']"/>
1560
 </xsl:if>
1561
1562
<xsl:choose>
1563
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1564
 <xsl:text> ( </xsl:text>
1565
 <xsl:value-of select="marc:subfield[@code='d']"/>
1566
<xsl:text> ; </xsl:text>
1567
 <xsl:value-of select="marc:subfield[@code='f']"/>
1568
<xsl:text> ; </xsl:text>
1569
<xsl:value-of select="marc:subfield[@code='e']"/>
1570
 <xsl:text> ) </xsl:text>
1571
</xsl:when>
1572
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1573
 <xsl:text> ( </xsl:text>
1574
</xsl:when>
1575
<xsl:when test="marc:subfield[@code='d']">
1576
 <xsl:text> ( </xsl:text>
1577
 <xsl:value-of select="marc:subfield[@code='d']"/>
1578
 <xsl:text> ) </xsl:text>
1579
</xsl:when>
1580
</xsl:choose>
1581
1582
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1583
<xsl:text> -- </xsl:text>
1584
<xsl:value-of select="marc:subfield[@code='t']"/>
1585
</xsl:if>
1586
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1587
<xsl:text> -- </xsl:text>
1588
<xsl:element name="a">
1589
<xsl:attribute name="href">
1590
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1591
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1592
<xsl:if test="marc:subfield[@code='x'][2]">
1593
<xsl:text> -- </xsl:text>
1594
<xsl:element name="a">
1595
<xsl:attribute name="href">
1596
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1597
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1598
</xsl:if>
1599
<xsl:if test="marc:subfield[@code='x'][3]">
1600
<xsl:text> -- </xsl:text>
1601
<xsl:element name="a">
1602
<xsl:attribute name="href">
1603
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1604
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1605
</xsl:if>
1606
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1607
<xsl:text> -- </xsl:text>
1608
<xsl:element name="a">
1609
<xsl:attribute name="href">
1610
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1611
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1612
</xsl:if>
1613
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1614
<xsl:text> -- </xsl:text>
1615
<xsl:element name="a">
1616
<xsl:attribute name="href">
1617
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1618
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1619
</xsl:if>
1620
<xsl:if test="marc:subfield[@code='2']">
1621
<xsl:text> -- </xsl:text>
1622
           <xsl:value-of select="marc:subfield[@code='2']"/>
1623
       </xsl:if>
1624
<xsl:text> | </xsl:text>
1625
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1626
<xsl:choose>
1627
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1628
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1629
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1630
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1631
        </xsl:when>
1632
        <xsl:otherwise>
1633
          <xsl:value-of select="marc:subfield[@code='a']" />
1634
        </xsl:otherwise>
1635
      </xsl:choose> 
1636
1637
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1638
<xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:if>
1639
<xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:if>
1640
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1641
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1642
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1643
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1644
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1645
</span>
1646
</li>
1647
</xsl:for-each>
1648
1649
1650
<xsl:for-each select="marc:datafield[@tag=604]">
1651
<li>
1652
<strong>Subject&nbsp;: </strong>
1653
<span>
1654
<xsl:if test="marc:subfield[@code='a']">
1655
<xsl:element name="a">
1656
<xsl:attribute name="href">
1657
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1658
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1659
</xsl:if>
1660
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1661
<xsl:text>. </xsl:text>
1662
<xsl:element name="a">
1663
        <xsl:attribute name="href">
1664
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1665
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1666
<xsl:if test="marc:subfield[@code='b'][2]">
1667
<xsl:text>. </xsl:text>
1668
<xsl:element name="a">
1669
        <xsl:attribute name="href">
1670
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1671
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1672
</xsl:if>
1673
1674
<xsl:if test="marc:subfield[@code='b'][3]">
1675
<xsl:text>. </xsl:text>
1676
<xsl:element name="a">
1677
        <xsl:attribute name="href">
1678
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1679
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1680
</xsl:if>
1681
1682
       </xsl:if>
1683
<xsl:if test="marc:subfield[@code='c']">
1684
<xsl:text>. </xsl:text>
1685
<xsl:value-of select="marc:subfield[@code='c']"/>
1686
 </xsl:if>
1687
1688
<xsl:choose>
1689
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1690
 <xsl:text> ( </xsl:text>
1691
 <xsl:value-of select="marc:subfield[@code='d']"/>
1692
<xsl:text> ; </xsl:text>
1693
 <xsl:value-of select="marc:subfield[@code='f']"/>
1694
<xsl:text> ; </xsl:text>
1695
<xsl:value-of select="marc:subfield[@code='e']"/>
1696
 <xsl:text> ) </xsl:text>
1697
</xsl:when>
1698
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1699
 <xsl:text> ( </xsl:text>
1700
</xsl:when>
1701
<xsl:when test="marc:subfield[@code='d']">
1702
 <xsl:text> ( </xsl:text>
1703
 <xsl:value-of select="marc:subfield[@code='d']"/>
1704
 <xsl:text> ) </xsl:text>
1705
</xsl:when>
1706
</xsl:choose>
1707
1708
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1709
<xsl:text> -- </xsl:text>
1710
<xsl:value-of select="marc:subfield[@code='t']"/>
1711
</xsl:if>
1712
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1713
<xsl:text> -- </xsl:text>
1714
<xsl:element name="a">
1715
<xsl:attribute name="href">
1716
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1717
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1718
<xsl:if test="marc:subfield[@code='x'][2]">
1719
<xsl:text> -- </xsl:text>
1720
<xsl:element name="a">
1721
<xsl:attribute name="href">
1722
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1723
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1724
</xsl:if>
1725
<xsl:if test="marc:subfield[@code='x'][3]">
1726
<xsl:text> -- </xsl:text>
1727
<xsl:element name="a">
1728
<xsl:attribute name="href">
1729
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1730
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1731
</xsl:if>
1732
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1733
<xsl:text> -- </xsl:text>
1734
<xsl:element name="a">
1735
<xsl:attribute name="href">
1736
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1737
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1738
</xsl:if>
1739
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1740
<xsl:text> -- </xsl:text>
1741
<xsl:element name="a">
1742
<xsl:attribute name="href">
1743
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1744
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1745
</xsl:if>
1746
<xsl:if test="marc:subfield[@code='2']">
1747
<xsl:text> -- </xsl:text>
1748
           <xsl:value-of select="marc:subfield[@code='2']"/>
1749
       </xsl:if>
1750
<xsl:text> | </xsl:text>
1751
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1752
<xsl:choose>
1753
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1754
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1755
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1756
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1757
        </xsl:when>
1758
        <xsl:otherwise>
1759
          <xsl:value-of select="marc:subfield[@code='a']" />
1760
        </xsl:otherwise>
1761
      </xsl:choose> 
1762
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1763
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1764
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1765
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1766
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1767
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1768
</span>
1769
</li>
1770
</xsl:for-each>
1771
1772
1773
1774
<xsl:for-each select="marc:datafield[@tag=605]">
1775
<li>
1776
<strong>Subject&nbsp;: </strong>
1777
<span>
1778
<xsl:if test="marc:subfield[@code='a']">
1779
<xsl:element name="a">
1780
<xsl:attribute name="href">
1781
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1782
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1783
</xsl:if>
1784
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1785
<xsl:text>. </xsl:text>
1786
<xsl:element name="a">
1787
        <xsl:attribute name="href">
1788
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1789
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1790
<xsl:if test="marc:subfield[@code='b'][2]">
1791
<xsl:text>. </xsl:text>
1792
<xsl:element name="a">
1793
        <xsl:attribute name="href">
1794
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1795
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1796
</xsl:if>
1797
1798
<xsl:if test="marc:subfield[@code='b'][3]">
1799
<xsl:text>. </xsl:text>
1800
<xsl:element name="a">
1801
        <xsl:attribute name="href">
1802
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1803
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1804
</xsl:if>
1805
1806
       </xsl:if>
1807
<xsl:if test="marc:subfield[@code='c']">
1808
<xsl:text>. </xsl:text>
1809
<xsl:value-of select="marc:subfield[@code='c']"/>
1810
 </xsl:if>
1811
1812
<xsl:choose>
1813
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1814
 <xsl:text> ( </xsl:text>
1815
 <xsl:value-of select="marc:subfield[@code='d']"/>
1816
<xsl:text> ; </xsl:text>
1817
 <xsl:value-of select="marc:subfield[@code='f']"/>
1818
<xsl:text> ; </xsl:text>
1819
<xsl:value-of select="marc:subfield[@code='e']"/>
1820
 <xsl:text> ) </xsl:text>
1821
</xsl:when>
1822
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1823
 <xsl:text> ( </xsl:text>
1824
</xsl:when>
1825
<xsl:when test="marc:subfield[@code='d']">
1826
 <xsl:text> ( </xsl:text>
1827
 <xsl:value-of select="marc:subfield[@code='d']"/>
1828
 <xsl:text> ) </xsl:text>
1829
</xsl:when>
1830
</xsl:choose>
1831
1832
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1833
<xsl:text> -- </xsl:text>
1834
<xsl:value-of select="marc:subfield[@code='t']"/>
1835
</xsl:if>
1836
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1837
<xsl:text> -- </xsl:text>
1838
<xsl:element name="a">
1839
<xsl:attribute name="href">
1840
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1841
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1842
<xsl:if test="marc:subfield[@code='x'][2]">
1843
<xsl:text> -- </xsl:text>
1844
<xsl:element name="a">
1845
<xsl:attribute name="href">
1846
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1847
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1848
</xsl:if>
1849
<xsl:if test="marc:subfield[@code='x'][3]">
1850
<xsl:text> -- </xsl:text>
1851
<xsl:element name="a">
1852
<xsl:attribute name="href">
1853
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1854
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1855
</xsl:if>
1856
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1857
<xsl:text> -- </xsl:text>
1858
<xsl:element name="a">
1859
<xsl:attribute name="href">
1860
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1861
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1862
</xsl:if>
1863
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1864
<xsl:text> -- </xsl:text>
1865
<xsl:element name="a">
1866
<xsl:attribute name="href">
1867
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1868
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1869
</xsl:if>
1870
<xsl:if test="marc:subfield[@code='2']">
1871
<xsl:text> -- </xsl:text>
1872
           <xsl:value-of select="marc:subfield[@code='2']"/>
1873
       </xsl:if>
1874
<xsl:text> | </xsl:text>
1875
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1876
<xsl:choose>
1877
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1878
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1879
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1880
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1881
        </xsl:when>
1882
        <xsl:otherwise>
1883
          <xsl:value-of select="marc:subfield[@code='a']" />
1884
        </xsl:otherwise>
1885
      </xsl:choose> 
1886
1887
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1888
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1889
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1890
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1891
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1892
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1893
</span>
1894
</li>
1895
</xsl:for-each>
1896
1897
1898
1899
<!--&&11 Subject terms 606-->
1900
<xsl:for-each select="marc:datafield[@tag=606]">
1901
 <li>
1902
 <strong>Subject&nbsp;: </strong>
1903
 <span>
1904
<xsl:if test="marc:subfield[@code='a']">
1905
            <xsl:element name="a">
1906
        <xsl:attribute name="href">
1907
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1908
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1909
       </xsl:if>
1910
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='j']">
1911
<xsl:text> -- </xsl:text>
1912
            <xsl:element name="a">
1913
        <xsl:attribute name="href">
1914
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='j'][1]"/>
1915
</xsl:attribute><xsl:value-of select="marc:subfield[@code='j'][1]"/></xsl:element>
1916
</xsl:if>
1917
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1918
<xsl:text> -- </xsl:text>
1919
            <xsl:element name="a">
1920
        <xsl:attribute name="href">
1921
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1922
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1923
<xsl:if test="marc:subfield[@code='x'][2]">
1924
<xsl:text> -- </xsl:text>
1925
<xsl:element name="a">
1926
        <xsl:attribute name="href">
1927
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1928
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1929
</xsl:if>
1930
<xsl:if test="marc:subfield[@code='x'][3]">
1931
<xsl:text> -- </xsl:text>
1932
<xsl:element name="a">
1933
        <xsl:attribute name="href">
1934
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1935
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
1936
</xsl:if>
1937
       </xsl:if>
1938
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1939
<xsl:text> -- </xsl:text>
1940
 <xsl:element name="a">
1941
        <xsl:attribute name="href">
1942
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
1943
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
1944
<xsl:if test="marc:subfield[@code='y'][2]">
1945
<xsl:text> -- </xsl:text>
1946
<xsl:element name="a">
1947
        <xsl:attribute name="href">
1948
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][2]"/>
1949
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:element>
1950
</xsl:if>
1951
<xsl:if test="marc:subfield[@code='y'][3]">
1952
<xsl:text> -- </xsl:text>
1953
<xsl:element name="a">
1954
        <xsl:attribute name="href">
1955
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][3]"/>
1956
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:element>
1957
</xsl:if>
1958
       </xsl:if>
1959
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1960
<xsl:text> -- </xsl:text>
1961
            <xsl:element name="a">
1962
        <xsl:attribute name="href">
1963
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1964
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1965
       </xsl:if>
1966
<xsl:if test="marc:subfield[@code='2']">
1967
<xsl:text> -- </xsl:text>
1968
           <xsl:value-of select="marc:subfield[@code='2']"/>
1969
       </xsl:if>
1970
<xsl:text> | </xsl:text>
1971
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
1972
<xsl:choose>
1973
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1974
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1975
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1976
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1977
        </xsl:when>
1978
        <xsl:otherwise>
1979
          <xsl:value-of select="marc:subfield[@code='a']" />
1980
        </xsl:otherwise>
1981
      </xsl:choose> 
1982
1983
<xsl:if test="marc:subfield[@code='x'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"> <xsl:value-of select="marc:subfield[@code='x'][2]"/>
1984
</xsl:if>
1985
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1986
<xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:if>
1987
<xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:if>
1988
<xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:if>
1989
<xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
1990
</span>
1991
 </li>
1992
 </xsl:for-each>
1993
1994
1995
<!--&&12 Subject geographic name 607-->
1996
<xsl:for-each select="marc:datafield[@tag=607]">
1997
 <li>
1998
 <strong>Subject&nbsp;: </strong>
1999
 <span>
2000
<xsl:if test="marc:subfield[@code='a']">
2001
            <xsl:element name="a">
2002
        <xsl:attribute name="href">
2003
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
2004
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
2005
       </xsl:if>
2006
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
2007
<xsl:text> -- </xsl:text>
2008
            <xsl:element name="a">
2009
        <xsl:attribute name="href">
2010
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
2011
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
2012
<xsl:if test="marc:subfield[@code='x'][2]">
2013
<xsl:text> -- </xsl:text>
2014
<xsl:element name="a">
2015
        <xsl:attribute name="href">
2016
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
2017
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
2018
</xsl:if>
2019
<xsl:if test="marc:subfield[@code='x'][3]">
2020
<xsl:text> -- </xsl:text>
2021
<xsl:element name="a">
2022
        <xsl:attribute name="href">
2023
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
2024
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
2025
</xsl:if>
2026
 </xsl:if>
2027
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
2028
<xsl:text> -- </xsl:text>
2029
            <xsl:element name="a">
2030
        <xsl:attribute name="href">
2031
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
2032
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
2033
<xsl:if test="marc:subfield[@code='y'][2]">
2034
<xsl:text> -- </xsl:text>
2035
<xsl:element name="a">
2036
        <xsl:attribute name="href">
2037
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][2]"/>
2038
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:element>
2039
</xsl:if>
2040
<xsl:if test="marc:subfield[@code='y'][3]">
2041
<xsl:text> -- </xsl:text>
2042
<xsl:element name="a">
2043
        <xsl:attribute name="href">
2044
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][3]"/>
2045
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:element>
2046
</xsl:if>
2047
<xsl:if test="marc:subfield[@code='y'][4]">
2048
<xsl:text> -- </xsl:text>
2049
<xsl:element name="a">
2050
        <xsl:attribute name="href">
2051
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][4]"/>
2052
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][4]"/></xsl:element>
2053
</xsl:if>
2054
<xsl:if test="marc:subfield[@code='y'][5]">
2055
<xsl:text> -- </xsl:text>
2056
<xsl:element name="a">
2057
        <xsl:attribute name="href">
2058
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][5]"/>
2059
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][5]"/></xsl:element>
2060
</xsl:if>
2061
<xsl:if test="marc:subfield[@code='y'][6]">
2062
<xsl:text> -- </xsl:text>
2063
<xsl:element name="a">
2064
        <xsl:attribute name="href">
2065
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][6]"/>
2066
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][6]"/></xsl:element>
2067
</xsl:if>     
2068
 </xsl:if>
2069
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
2070
<xsl:text> -- </xsl:text>
2071
            <xsl:element name="a">
2072
        <xsl:attribute name="href">
2073
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
2074
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
2075
       </xsl:if>
2076
<xsl:if test="marc:subfield[@code='2']">
2077
<xsl:text> -- </xsl:text>
2078
           <xsl:value-of select="marc:subfield[@code='2']"/>
2079
       </xsl:if>
2080
<xsl:text> | </xsl:text>
2081
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
2082
<xsl:choose>
2083
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
2084
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
2085
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
2086
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
2087
        </xsl:when>
2088
        <xsl:otherwise>
2089
          <xsl:value-of select="marc:subfield[@code='a']" />
2090
        </xsl:otherwise>
2091
      </xsl:choose> 
2092
2093
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
2094
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
2095
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
2096
<xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:if>
2097
<xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:if>
2098
<xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:if>
2099
<xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
2100
</span>
2101
 </li>
2102
 </xsl:for-each>
2103
2104
<xsl:for-each select="marc:datafield[@tag=608]">
2105
<li>
2106
<strong>Subjects&nbsp;: </strong>
2107
<span>
2108
<xsl:if test="marc:subfield[@code='a']">
2109
<xsl:element name="a">
2110
<xsl:attribute name="href">
2111
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
2112
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
2113
</xsl:if>
2114
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
2115
<xsl:text>. </xsl:text>
2116
<xsl:element name="a">
2117
        <xsl:attribute name="href">
2118
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
2119
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
2120
<xsl:if test="marc:subfield[@code='b'][2]">
2121
<xsl:text>. </xsl:text>
2122
<xsl:element name="a">
2123
        <xsl:attribute name="href">
2124
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
2125
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
2126
</xsl:if>
2127
2128
<xsl:if test="marc:subfield[@code='b'][3]">
2129
<xsl:text>. </xsl:text>
2130
<xsl:element name="a">
2131
        <xsl:attribute name="href">
2132
     /cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
2133
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
2134
</xsl:if>
2135
2136
       </xsl:if>
2137
<xsl:if test="marc:subfield[@code='c']">
2138
<xsl:text>. </xsl:text>
2139
<xsl:value-of select="marc:subfield[@code='c']"/>
2140
 </xsl:if>
2141
2142
<xsl:choose>
2143
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
2144
 <xsl:text> ( </xsl:text>
2145
 <xsl:value-of select="marc:subfield[@code='d']"/>
2146
<xsl:text> ; </xsl:text>
2147
 <xsl:value-of select="marc:subfield[@code='f']"/>
2148
<xsl:text> ; </xsl:text>
2149
<xsl:value-of select="marc:subfield[@code='e']"/>
2150
 <xsl:text> ) </xsl:text>
2151
</xsl:when>
2152
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
2153
 <xsl:text> ( </xsl:text>
2154
</xsl:when>
2155
<xsl:when test="marc:subfield[@code='d']">
2156
 <xsl:text> ( </xsl:text>
2157
 <xsl:value-of select="marc:subfield[@code='d']"/>
2158
 <xsl:text> ) </xsl:text>
2159
</xsl:when>
2160
</xsl:choose>
2161
2162
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
2163
<xsl:text> -- </xsl:text>
2164
<xsl:value-of select="marc:subfield[@code='t']"/>
2165
</xsl:if>
2166
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
2167
<xsl:text> -- </xsl:text>
2168
<xsl:element name="a">
2169
<xsl:attribute name="href">
2170
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
2171
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
2172
<xsl:if test="marc:subfield[@code='x'][2]">
2173
<xsl:text> -- </xsl:text>
2174
<xsl:element name="a">
2175
<xsl:attribute name="href">
2176
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
2177
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
2178
</xsl:if>
2179
<xsl:if test="marc:subfield[@code='x'][3]">
2180
<xsl:text> -- </xsl:text>
2181
<xsl:element name="a">
2182
<xsl:attribute name="href">
2183
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
2184
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
2185
</xsl:if>
2186
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
2187
<xsl:text> -- </xsl:text>
2188
<xsl:element name="a">
2189
<xsl:attribute name="href">
2190
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
2191
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
2192
</xsl:if>
2193
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
2194
<xsl:text> -- </xsl:text>
2195
<xsl:element name="a">
2196
<xsl:attribute name="href">
2197
/cgi-bin/koha/catalogue/search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
2198
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
2199
</xsl:if>
2200
<xsl:if test="marc:subfield[@code='2']">
2201
<xsl:text> -- </xsl:text>
2202
           <xsl:value-of select="marc:subfield[@code='2']"/>
2203
       </xsl:if>
2204
<xsl:text> | </xsl:text>
2205
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?idx=su&amp;q=
2206
<xsl:choose>
2207
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
2208
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
2209
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
2210
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
2211
        </xsl:when>
2212
        <xsl:otherwise>
2213
          <xsl:value-of select="marc:subfield[@code='a']" />
2214
        </xsl:otherwise>
2215
      </xsl:choose> 
2216
2217
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
2218
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
2219
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
2220
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
2221
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
2222
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
2223
</span>
2224
</li>
2225
</xsl:for-each>
2226
2227
 <xsl:call-template name="tag_subject">
2228
 <xsl:with-param name="tag">615</xsl:with-param>
2229
 <xsl:with-param name="label">Subject category </xsl:with-param>
2230
 </xsl:call-template>
2231
2232
 <xsl:call-template name="tag_subject">
2233
 <xsl:with-param name="tag">616</xsl:with-param>
2234
 <xsl:with-param name="label">Trademark</xsl:with-param>
2235
 </xsl:call-template>
2236
2237
<!--&&14 URL 856-->
2238
<xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
2239
      <span class="results_summary">
2240
        <span class="label">Online&nbsp;: </span>
2241
        <xsl:for-each select="marc:datafield[@tag=856]">
2242
 <xsl:variable name="url" select="substring-before(marc:subfield[@code='u'], '//')"/>
2243
<xsl:if test="contains($url,'http:') or contains($url,'https:')">
2244
          <a>
2245
            <xsl:attribute name="href">
2246
              <xsl:value-of select="marc:subfield[@code='u']"/>
2247
            </xsl:attribute>
2248
            <xsl:choose>
2249
              <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
2250
                <xsl:call-template name="subfieldSelect">
2251
                  <xsl:with-param name="codes">y3z</xsl:with-param>
2252
                </xsl:call-template>
2253
              </xsl:when>
2254
              <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
2255
              Clic here
154
            </xsl:when>
2256
            </xsl:when>
155
            <xsl:otherwise>
2257
            </xsl:choose>
156
              <xsl:text>; </xsl:text>
2258
          </a>
157
            </xsl:otherwise>
2259
</xsl:if>
158
          </xsl:choose>
2260
<xsl:if test="not(contains($url,'http:'))and not (contains($url,'https:'))">
159
        </span>
2261
          <a>
160
      </xsl:for-each>
2262
            <xsl:attribute name="href">
161
    </li>
2263
              http://<xsl:value-of select="marc:subfield[@code='u']"/>
162
  </xsl:if>
2264
            </xsl:attribute>
163
2265
            <xsl:choose>
164
  <!-- Build ISSN -->
2266
              <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
165
  <xsl:if test="marc:datafield[@tag=011]/marc:subfield[@code='a']">
2267
                <xsl:call-template name="subfieldSelect">
166
    <li>
2268
                  <xsl:with-param name="codes">y3z</xsl:with-param>
167
    <strong>ISSN: </strong>
2269
                </xsl:call-template>
168
      <xsl:for-each select="marc:datafield[@tag=011]/marc:subfield[@code='a']">
2270
              </xsl:when>
169
        <span property="issn">
2271
              <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
170
          <xsl:value-of select="."/>
2272
              Clic here
171
          <xsl:choose>
172
            <xsl:when test="position()=last()">
173
              <xsl:text>.</xsl:text>
174
            </xsl:when>
2273
            </xsl:when>
175
            <xsl:otherwise>
2274
            </xsl:choose>
176
              <xsl:text>; </xsl:text>
2275
          </a>
177
            </xsl:otherwise>
2276
</xsl:if>
178
          </xsl:choose>
179
        </span>
180
      </xsl:for-each>
181
    </li>
182
  </xsl:if>
183
184
  <xsl:call-template name="tag_title">
185
    <xsl:with-param name="tag">225</xsl:with-param>
186
    <xsl:with-param name="label">Series</xsl:with-param>
187
  </xsl:call-template>
188
189
  <xsl:if test="marc:datafield[@tag=676]">
190
    <li>
191
    <strong>Dewey: </strong>
192
      <xsl:for-each select="marc:datafield[@tag=676]">
193
        <xsl:value-of select="marc:subfield[@code='a']"/>
194
        <xsl:if test="marc:subfield[@code='v']">
195
          <xsl:text>, </xsl:text>
196
          <xsl:value-of select="marc:subfield[@code='v']"/>
197
        </xsl:if>
198
        <xsl:if test="marc:subfield[@code='z']">
199
          <xsl:text>, </xsl:text>
200
          <xsl:value-of select="marc:subfield[@code='z']"/>
201
        </xsl:if>
202
        <xsl:if test="not (position()=last())">
203
          <xsl:text> ; </xsl:text>
204
        </xsl:if>
205
      </xsl:for-each>
206
    </li>
207
  </xsl:if>
208
209
  <xsl:if test="marc:datafield[@tag=686]">
210
    <li>
211
    <strong>Classification: </strong>
212
      <xsl:for-each select="marc:datafield[@tag=686]">
213
        <xsl:value-of select="marc:subfield[@code='a']"/>
214
        <xsl:if test="marc:subfield[@code='b']">
215
          <xsl:text>, </xsl:text>
216
          <xsl:value-of select="marc:subfield[@code='b']"/>
217
        </xsl:if>
218
        <xsl:if test="marc:subfield[@code='c']">
219
          <xsl:text>, </xsl:text>
220
          <xsl:value-of select="marc:subfield[@code='c']"/>
221
        </xsl:if>
222
        <xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
223
      </xsl:for-each>
224
    </li>
225
  </xsl:if>
226
227
  <xsl:if test="marc:datafield[@tag=327]">
228
    <li>
229
      <strong>Contents note: </strong>
230
      <xsl:for-each select="marc:datafield[@tag=327]">
231
        <xsl:call-template name="chopPunctuation">
232
          <xsl:with-param name="chopString">
233
            <xsl:call-template name="subfieldSelect">
234
                <xsl:with-param name="codes">abcdjpvxyz</xsl:with-param>
235
                <xsl:with-param name="subdivCodes">jpxyz</xsl:with-param>
236
                <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
237
            </xsl:call-template>
238
          </xsl:with-param>
239
        </xsl:call-template>
240
      </xsl:for-each>
241
    </li>
242
  </xsl:if>
243
244
  <xsl:if test="marc:datafield[@tag=330]">
245
    <li>
246
      <strong>Abstract: </strong>
247
      <xsl:for-each select="marc:datafield[@tag=330]">
248
        <xsl:value-of select="marc:subfield[@code='a']"/>
249
        <xsl:choose>
250
          <xsl:when test="position()=last()">
251
            <xsl:text>.</xsl:text>
252
          </xsl:when>
253
          <xsl:otherwise>
254
            <xsl:text>; </xsl:text>
255
          </xsl:otherwise>
256
        </xsl:choose>
257
      </xsl:for-each>
258
    </li>
259
  </xsl:if>
260
261
  <xsl:if test="marc:datafield[@tag=317]">
262
    <li>
263
      <strong>Provenance note: </strong>
264
      <xsl:for-each select="marc:datafield[@tag=317]">
265
          <xsl:value-of select="marc:subfield[@code='a']"/>
266
      </xsl:for-each>
267
    </li>
268
  </xsl:if>
269
270
  <xsl:if test="marc:datafield[@tag=320]">
271
    <li>
272
      <strong>Bibliography: </strong>
273
      <xsl:for-each select="marc:datafield[@tag=320]">
274
        <xsl:value-of select="marc:subfield[@code='a']"/>
275
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
276
      </xsl:for-each>
277
    </li>
278
  </xsl:if>
279
280
  <xsl:if test="marc:datafield[@tag=328]">
281
    <li>
282
      <strong>Thesis: </strong>
283
      <xsl:for-each select="marc:datafield[@tag=328]">
284
        <xsl:value-of select="marc:subfield[@code='a']"/>
285
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
286
      </xsl:for-each>
287
    </li>
288
  </xsl:if>
289
290
  <xsl:if test="marc:datafield[@tag=333]">
291
    <li>
292
      <strong>Audience: </strong>
293
      <xsl:for-each select="marc:datafield[@tag=333]">
294
        <xsl:value-of select="marc:subfield[@code='a']"/>
295
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
296
      </xsl:for-each>
297
    </li>
298
  </xsl:if>
299
300
  <xsl:if test="marc:datafield[@tag=955]">
301
    <li>
302
      <strong>SUDOC serial history: </strong>
303
      <xsl:for-each select="marc:datafield[@tag=955]">
304
        <xsl:value-of select="marc:subfield[@code='9']"/>:
305
        <xsl:value-of select="marc:subfield[@code='r']"/>
306
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
307
      </xsl:for-each>
308
    </li>
309
  </xsl:if>
310
311
  <xsl:call-template name="tag_subject">
312
    <xsl:with-param name="tag">600</xsl:with-param>
313
    <xsl:with-param name="label">Subject - Personal Name</xsl:with-param>
314
  </xsl:call-template>
315
316
  <xsl:call-template name="tag_subject">
317
    <xsl:with-param name="tag">601</xsl:with-param>
318
    <xsl:with-param name="label">Subject - Corporate Author</xsl:with-param>
319
  </xsl:call-template>
320
321
  <xsl:call-template name="tag_subject">
322
    <xsl:with-param name="tag">602</xsl:with-param>
323
    <xsl:with-param name="label">Subject - Family</xsl:with-param>
324
  </xsl:call-template>
325
326
  <xsl:call-template name="tag_subject">
327
    <xsl:with-param name="tag">604</xsl:with-param>
328
    <xsl:with-param name="label">Subject - Author/Title</xsl:with-param>
329
  </xsl:call-template>
330
331
  <xsl:call-template name="tag_subject">
332
    <xsl:with-param name="tag">606</xsl:with-param>
333
    <xsl:with-param name="label">Subject - Topical Name</xsl:with-param>
334
  </xsl:call-template>
335
336
  <xsl:call-template name="tag_subject">
337
    <xsl:with-param name="tag">607</xsl:with-param>
338
    <xsl:with-param name="label">Subject - Geographical Name</xsl:with-param>
339
  </xsl:call-template>
340
341
  <xsl:call-template name="tag_subject">
342
    <xsl:with-param name="tag">608</xsl:with-param>
343
    <xsl:with-param name="label">Subject - Form</xsl:with-param>
344
  </xsl:call-template>
345
346
  <xsl:call-template name="tag_subject">
347
    <xsl:with-param name="tag">610</xsl:with-param>
348
    <xsl:with-param name="label">Subject</xsl:with-param>
349
  </xsl:call-template>
350
351
  <xsl:call-template name="tag_subject">
352
    <xsl:with-param name="tag">615</xsl:with-param>
353
    <xsl:with-param name="label">Subject Category</xsl:with-param>
354
  </xsl:call-template>
355
356
  <xsl:call-template name="tag_subject">
357
    <xsl:with-param name="tag">616</xsl:with-param>
358
    <xsl:with-param name="label">Trademark</xsl:with-param>
359
  </xsl:call-template>
360
361
  <xsl:if test="marc:datafield[@tag=856]">
362
    <li>
363
      <strong>Online Resources: </strong>
364
      <xsl:for-each select="marc:datafield[@tag=856]">
365
        <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
366
        <a>
367
          <xsl:attribute name="href">
368
            <xsl:value-of select="marc:subfield[@code='u']"/>
369
          </xsl:attribute>
370
          <xsl:choose>
2277
          <xsl:choose>
371
            <xsl:when test="($Show856uAsImage='Details' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
2278
            <xsl:when test="position()=last()"/>
372
              <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>
2279
            <xsl:otherwise> | </xsl:otherwise>
373
            </xsl:when>
374
            <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
375
              <xsl:call-template name="subfieldSelect">
376
                <xsl:with-param name="codes">y3z</xsl:with-param>
377
              </xsl:call-template>
378
            </xsl:when>
379
            <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
380
              Click here to access online
381
            </xsl:when>
382
          </xsl:choose>
2280
          </xsl:choose>
383
        </a>
384
        <xsl:choose>
385
          <xsl:when test="position()=last()"></xsl:when>
386
          <xsl:otherwise> | </xsl:otherwise>
387
        </xsl:choose>
388
      </xsl:for-each>
389
    </li>
390
  </xsl:if>
391
</xsl:template>
392
393
    <xsl:template name="nameABCDQ">
394
            <xsl:call-template name="chopPunctuation">
395
                <xsl:with-param name="chopString">
396
                    <xsl:call-template name="subfieldSelect">
397
                        <xsl:with-param name="codes">aq</xsl:with-param>
398
                    </xsl:call-template>
399
                </xsl:with-param>
400
                <xsl:with-param name="punctuation">
401
                    <xsl:text>:,;/ </xsl:text>
402
                </xsl:with-param>
403
            </xsl:call-template>
404
        <xsl:call-template name="termsOfAddress"/>
405
    </xsl:template>
406
407
    <xsl:template name="nameABCDN">
408
        <xsl:for-each select="marc:subfield[@code='a']">
409
                <xsl:call-template name="chopPunctuation">
410
                    <xsl:with-param name="chopString" select="."/>
411
                </xsl:call-template>
412
        </xsl:for-each>
413
        <xsl:for-each select="marc:subfield[@code='b']">
414
                <xsl:value-of select="."/>
415
        </xsl:for-each>
2281
        </xsl:for-each>
416
        <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
2282
      </span>
417
                <xsl:call-template name="subfieldSelect">
2283
    </xsl:if>
418
                    <xsl:with-param name="codes">cdn</xsl:with-param>
2284
 
419
                </xsl:call-template>
2285
 <!-- 780 -->
420
        </xsl:if>
2286
 <xsl:if test="marc:datafield[@tag=780]">
421
    </xsl:template>
2287
 <xsl:for-each select="marc:datafield[@tag=780]">
422
2288
 <li>
423
    <xsl:template name="nameACDEQ">
2289
 <xsl:choose>
424
            <xsl:call-template name="subfieldSelect">
2290
 <xsl:when test="@ind2=0">
425
                <xsl:with-param name="codes">acdeq</xsl:with-param>
2291
 <strong>Continue&nbsp;: </strong>
426
            </xsl:call-template>
2292
 </xsl:when>
427
    </xsl:template>
2293
 <xsl:when test="@ind2=1">
428
    <xsl:template name="termsOfAddress">
2294
 <strong>Continue in part&nbsp;: </strong>
429
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
2295
 </xsl:when>
430
            <xsl:call-template name="chopPunctuation">
2296
 <xsl:when test="@ind2=2">
431
                <xsl:with-param name="chopString">
2297
 <strong>Replace&nbsp;: </strong>
432
                    <xsl:call-template name="subfieldSelect">
2298
 </xsl:when>
433
                        <xsl:with-param name="codes">bc</xsl:with-param>
2299
 <xsl:when test="@ind2=3">
434
                    </xsl:call-template>
2300
 <strong>Replace in part&nbsp;: </strong>
435
                </xsl:with-param>
2301
 </xsl:when>
436
            </xsl:call-template>
2302
 <xsl:when test="@ind2=4">
437
        </xsl:if>
2303
 <strong>Formed by the meeting of... et&nbsp;: ...</strong>
438
    </xsl:template>
2304
 </xsl:when>
439
2305
 <xsl:when test="@ind2=5">
440
    <xsl:template name="part">
2306
 <strong>:</strong>
441
        <xsl:variable name="partNumber">
2307
 </xsl:when>
442
            <xsl:call-template name="specialSubfieldSelect">
2308
 <xsl:when test="@ind2=6">
443
                <xsl:with-param name="axis">n</xsl:with-param>
2309
 <strong>Absorbed in part&nbsp;:c</strong>
444
                <xsl:with-param name="anyCodes">n</xsl:with-param>
2310
 </xsl:when>
445
                <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2311
 <xsl:when test="@ind2=7">
446
            </xsl:call-template>
2312
 <strong>Separed of&nbsp;:</strong>
447
        </xsl:variable>
2313
 </xsl:when>
448
        <xsl:variable name="partName">
2314
 </xsl:choose>
449
            <xsl:call-template name="specialSubfieldSelect">
2315
450
                <xsl:with-param name="axis">p</xsl:with-param>
2316
 <xsl:variable name="f780">
451
                <xsl:with-param name="anyCodes">p</xsl:with-param>
2317
 <xsl:call-template name="subfieldSelect">
452
                <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2318
 <xsl:with-param name="codes">à</xsl:with-param>
453
            </xsl:call-template>
2319
 </xsl:call-template>
454
        </xsl:variable>
2320
 </xsl:variable>
455
        <xsl:if test="string-length(normalize-space($partNumber))">
2321
 <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
456
                <xsl:call-template name="chopPunctuation">
2322
 <xsl:value-of select="translate($f780, '()', '')"/>
457
                    <xsl:with-param name="chopString" select="$partNumber"/>
2323
 </a>
458
                </xsl:call-template>
2324
 </li>
459
        </xsl:if>
2325
460
        <xsl:if test="string-length(normalize-space($partName))">
2326
 <xsl:choose>
461
                <xsl:call-template name="chopPunctuation">
2327
 <xsl:when test="@ind1=0">
462
                    <xsl:with-param name="chopString" select="$partName"/>
2328
 <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
463
                </xsl:call-template>
2329
 </xsl:when>
464
        </xsl:if>
2330
 </xsl:choose>
465
    </xsl:template>
2331
466
2332
 </xsl:for-each>
467
    <xsl:template name="specialSubfieldSelect">
2333
 </xsl:if>
468
        <xsl:param name="anyCodes"/>
2334
469
        <xsl:param name="axis"/>
2335
 <!-- 785 -->
470
        <xsl:param name="beforeCodes"/>
2336
 <xsl:if test="marc:datafield[@tag=785]">
471
        <xsl:param name="afterCodes"/>
2337
 <xsl:for-each select="marc:datafield[@tag=785]">
472
        <xsl:variable name="str">
2338
 <li>
473
            <xsl:for-each select="marc:subfield">
2339
 <xsl:choose>
474
                <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])">
2340
 <xsl:when test="@ind2=0">
475
                    <xsl:value-of select="text()"/>
2341
 <strong>Continue by&nbsp;:</strong>
476
                    <xsl:text> </xsl:text>
2342
 </xsl:when>
477
                </xsl:if>
2343
 <xsl:when test="@ind2=1">
478
            </xsl:for-each>
2344
 <strong>Continue in part by&nbsp;:</strong>
479
        </xsl:variable>
2345
 </xsl:when>
480
        <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
2346
 <xsl:when test="@ind2=2">
481
    </xsl:template>
2347
 <strong>Replace by&nbsp;:</strong>
2348
 </xsl:when>
2349
 <xsl:when test="@ind2=3">
2350
 <strong>Replac in part by&nbsp;: </strong>
2351
 </xsl:when>
2352
 <xsl:when test="@ind2=4">
2353
 <strong>Absorbed by&nbsp;: </strong>
2354
 </xsl:when>
2355
 <xsl:when test="@ind2=5">
2356
 <strong>Absorbé partiellement par&nbsp;: </strong>
2357
 </xsl:when>
2358
 <xsl:when test="@ind2=6">
2359
 <strong>Explode from ... at ... &nbsp;: </strong>
2360
 </xsl:when>
2361
 <xsl:when test="@ind2=7">
2362
 <strong>Merged with ...to train...&nbsp;: </strong>
2363
 </xsl:when>
2364
 <xsl:when test="@ind2=8">
2365
 <strong>Redevient&nbsp;: </strong>
2366
 </xsl:when>
2367
 </xsl:choose>
2368
 <xsl:variable name="f785">
2369
 <xsl:call-template name="subfieldSelect">
2370
 <xsl:with-param name="codes">à</xsl:with-param>
2371
 </xsl:call-template>
2372
 </xsl:variable>
2373
2374
 <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
2375
 <xsl:value-of select="translate($f785, '()', '')"/>
2376
 </a>
2377
2378
 </li>
2379
 </xsl:for-each>
2380
 </xsl:if>
2381
2382
2383
<xsl:if test="marc:datafield[@tag=033]/marc:subfield[@code='a']">
2384
<li>
2385
<strong>Other System Persistent Identifier&nbsp;: </strong>
2386
<xsl:for-each select="marc:datafield[@tag=033]">
2387
<xsl:variable name="url" select="substring-before(marc:subfield[@code='a'], '//')"/>
2388
<xsl:choose>
2389
<xsl:when test="contains($url,'http:')">
2390
<a>
2391
<xsl:attribute name="href">
2392
<xsl:value-of select="marc:subfield[@code='a']"/>
2393
</xsl:attribute>
2394
<xsl:value-of select="marc:subfield[@code='a']"/>
2395
</a>
2396
</xsl:when>
2397
<xsl:when test="not(contains($url,'http:'))">
2398
<xsl:value-of select="marc:subfield[@code='a']"/>
2399
</xsl:when>
2400
</xsl:choose>
2401
<xsl:choose>
2402
<xsl:when test="position()=last()"/>
2403
<xsl:otherwise> | </xsl:otherwise>
2404
</xsl:choose>
2405
</xsl:for-each>
2406
</li>
2407
</xsl:if>
2408
2409
2410
 </xsl:template>
2411
2412
 <xsl:template name="nameABCDQ">
2413
 <xsl:call-template name="chopPunctuation">
2414
 <xsl:with-param name="chopString">
2415
 <xsl:call-template name="subfieldSelect">
2416
 <xsl:with-param name="codes">aq</xsl:with-param>
2417
 </xsl:call-template>
2418
 </xsl:with-param>
2419
 <xsl:with-param name="punctuation">
2420
 <xsl:text>:,;/ </xsl:text>
2421
 </xsl:with-param>
2422
 </xsl:call-template>
2423
 <xsl:call-template name="termsOfAddress"/>
2424
 </xsl:template>
2425
2426
 <xsl:template name="nameABCDN">
2427
 <xsl:for-each select="marc:subfield[@code='a']">
2428
 <xsl:call-template name="chopPunctuation">
2429
 <xsl:with-param name="chopString" select="."/>
2430
 </xsl:call-template>
2431
 </xsl:for-each>
2432
 <xsl:for-each select="marc:subfield[@code='b']">
2433
 <xsl:value-of select="."/>
2434
 </xsl:for-each>
2435
 <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
2436
 <xsl:call-template name="subfieldSelect">
2437
 <xsl:with-param name="codes">cdn</xsl:with-param>
2438
 </xsl:call-template>
2439
 </xsl:if>
2440
 </xsl:template>
2441
2442
 <xsl:template name="nameACDEQ">
2443
 <xsl:call-template name="subfieldSelect">
2444
 <xsl:with-param name="codes">acdeq</xsl:with-param>
2445
 </xsl:call-template>
2446
 </xsl:template>
2447
 <xsl:template name="termsOfAddress">
2448
 <xsl:if test="marc:subfield[@code='b' or @code='c']">
2449
 <xsl:call-template name="chopPunctuation">
2450
 <xsl:with-param name="chopString">
2451
 <xsl:call-template name="subfieldSelect">
2452
 <xsl:with-param name="codes">bc</xsl:with-param>
2453
 </xsl:call-template>
2454
 </xsl:with-param>
2455
 </xsl:call-template>
2456
 </xsl:if>
2457
 </xsl:template>
2458
2459
 <xsl:template name="part">
2460
 <xsl:variable name="partNumber">
2461
 <xsl:call-template name="specialSubfieldSelect">
2462
 <xsl:with-param name="axis">n</xsl:with-param>
2463
 <xsl:with-param name="anyCodes">n</xsl:with-param>
2464
 <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2465
 </xsl:call-template>
2466
 </xsl:variable>
2467
 <xsl:variable name="partName">
2468
 <xsl:call-template name="specialSubfieldSelect">
2469
 <xsl:with-param name="axis">p</xsl:with-param>
2470
 <xsl:with-param name="anyCodes">p</xsl:with-param>
2471
 <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2472
 </xsl:call-template>
2473
 </xsl:variable>
2474
 <xsl:if test="string-length(normalize-space($partNumber))">
2475
 <xsl:call-template name="chopPunctuation">
2476
 <xsl:with-param name="chopString" select="$partNumber"/>
2477
 </xsl:call-template>
2478
 </xsl:if>
2479
 <xsl:if test="string-length(normalize-space($partName))">
2480
 <xsl:call-template name="chopPunctuation">
2481
 <xsl:with-param name="chopString" select="$partName"/>
2482
 </xsl:call-template>
2483
 </xsl:if>
2484
 </xsl:template>
2485
2486
 <xsl:template name="specialSubfieldSelect">
2487
 <xsl:param name="anyCodes"/>
2488
 <xsl:param name="axis"/>
2489
 <xsl:param name="beforeCodes"/>
2490
 <xsl:param name="afterCodes"/>
2491
 <xsl:variable name="str">
2492
 <xsl:for-each select="marc:subfield">
2493
 <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])">
2494
 <xsl:value-of select="text()"/>
2495
 <xsl:text> </xsl:text>
2496
 </xsl:if>
2497
 </xsl:for-each>
2498
 </xsl:variable>
2499
 <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
2500
 </xsl:template>
482
2501
483
</xsl:stylesheet>
2502
</xsl:stylesheet>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl (-64 / +291 lines)
Lines 1-81 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
3
4
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
5
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
5
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
6
<xsl:stylesheet version="1.0"
6
<xsl:stylesheet version="1.0"
7
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:marc="http://www.loc.gov/MARC21/slim"
8
  xmlns:items="http://www.koha-community.org/items"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  xmlns:str="http://exslt.org/strings"
10
  exclude-result-prefixes="marc items">
10
  exclude-result-prefixes="marc str">
11
12
<xsl:import href="UNIMARCslimUtils.xsl"/>
11
<xsl:import href="UNIMARCslimUtils.xsl"/>
13
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
12
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
13
<xsl:key name="item-by-status" match="items:item" use="items:status"/>
14
<xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
14
15
15
<xsl:template match="/">
16
<xsl:template match="/">
16
  <xsl:apply-templates/>
17
<xsl:apply-templates/>
17
</xsl:template>
18
</xsl:template>
18
19
19
<xsl:template match="marc:record">
20
<xsl:template match="marc:record">
20
  <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
21
<xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
21
  <xsl:variable name="leader" select="marc:leader"/>
22
<xsl:variable name="leader" select="marc:leader"/>
22
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
23
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
23
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
24
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
24
  <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
25
<xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
25
  <xsl:variable name="isbn" select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
26
<xsl:variable name="isbn" select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
26
27
<xsl:variable name="type_doc" select="marc:datafield[@tag=183]/marc:subfield[@code='a']"/>
27
  <xsl:if test="marc:datafield[@tag=200]">
28
<xsl:variable name="renvoi" select="marc:datafield[@tag=700]/@ind1"/>
28
    <xsl:for-each select="marc:datafield[@tag=200]">
29
29
      <a>
30
<xsl:if test="marc:datafield[@tag=200]">
30
        <xsl:attribute name="href">
31
<xsl:for-each select="marc:datafield[@tag=200]">
31
          <xsl:call-template name="buildBiblioDefaultViewURL">
32
<a>
32
            <xsl:with-param name="IntranetBiblioDefaultView">
33
<xsl:attribute name="href">
33
              <xsl:value-of select="$IntranetBiblioDefaultView"/>
34
<xsl:call-template name="buildBiblioDefaultViewURL">
34
            </xsl:with-param>
35
<xsl:with-param name="IntranetBiblioDefaultView">
35
          </xsl:call-template>
36
<xsl:value-of select="$IntranetBiblioDefaultView"/>
36
          <xsl:value-of select="str:encode-uri($biblionumber, true())"/>
37
</xsl:with-param>
37
        </xsl:attribute>
38
</xsl:call-template>
38
        <xsl:attribute name="class">title</xsl:attribute>
39
<xsl:value-of select="$biblionumber"/>
39
40
</xsl:attribute>
40
        <xsl:variable name="title" select="marc:subfield[@code='a']"/>
41
<xsl:attribute name="class">title</xsl:attribute>
41
        <xsl:variable name="ntitle"
42
<xsl:variable name="title" select="marc:subfield[@code='a']"/>
42
            select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
43
<xsl:variable name="ntitle"
43
        <xsl:value-of select="$ntitle" />
44
select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
44
      </a>
45
<xsl:value-of select="$ntitle" />
45
      <xsl:if test="marc:subfield[@code='e']">
46
</a>
46
        <xsl:text> : </xsl:text>
47
<xsl:if test="marc:subfield[@code='e']">
47
        <xsl:value-of select="marc:subfield[@code='e']"/>
48
<xsl:text> : </xsl:text>
48
      </xsl:if>
49
<xsl:value-of select="marc:subfield[@code='e']"/>
49
      <xsl:if test="marc:subfield[@code='b']">
50
</xsl:if>
50
        <xsl:text> [</xsl:text>
51
<xsl:if test="marc:subfield[@code='b']">
51
        <xsl:value-of select="marc:subfield[@code='b']"/>
52
<xsl:text> [</xsl:text>
52
        <xsl:text>]</xsl:text>
53
<xsl:value-of select="marc:subfield[@code='b']"/>
53
      </xsl:if>
54
<xsl:text>]</xsl:text>
54
      <xsl:if test="marc:subfield[@code='h']">
55
</xsl:if>
55
        <xsl:text> : </xsl:text>
56
<xsl:if test="marc:subfield[@code='h']">
56
        <xsl:value-of select="marc:subfield[@code='h']"/>
57
<xsl:text> : </xsl:text>
57
      </xsl:if>
58
<xsl:value-of select="marc:subfield[@code='h']"/>
58
      <xsl:if test="marc:subfield[@code='i']">
59
</xsl:if>
59
        <xsl:text> : </xsl:text>
60
<xsl:if test="marc:subfield[@code='i']">
60
        <xsl:value-of select="marc:subfield[@code='i']"/>
61
<xsl:text> : </xsl:text>
61
      </xsl:if>
62
<xsl:value-of select="marc:subfield[@code='i']"/>
62
      <xsl:if test="marc:subfield[@code='f']">
63
</xsl:if>
63
        <xsl:text> / </xsl:text>
64
<xsl:if test="marc:subfield[@code='f']">
64
        <xsl:value-of select="marc:subfield[@code='f']"/>
65
<xsl:text> / </xsl:text>
65
      </xsl:if>
66
<xsl:value-of select="marc:subfield[@code='f']"/>
66
      <xsl:if test="marc:subfield[@code='g']">
67
</xsl:if>
67
        <xsl:text> ; </xsl:text>
68
<xsl:if test="marc:subfield[@code='g']">
68
        <xsl:value-of select="marc:subfield[@code='g']"/>
69
<xsl:text> ; </xsl:text>
69
      </xsl:if>
70
<xsl:value-of select="marc:subfield[@code='g']"/>
70
      <xsl:text> </xsl:text>
71
</xsl:if>
71
    </xsl:for-each>
72
<xsl:text> </xsl:text>
72
  </xsl:if>
73
</xsl:for-each>
73
74
</xsl:if>
74
  <xsl:call-template name="tag_4xx" />
75
75
76
<xsl:if test="marc:datafield[@tag=700]">
76
  <xsl:call-template name="tag_210" />
77
<xsl:if test="not(contains($renvoi,'z'))">
77
78
<li>
78
  <xsl:call-template name="tag_215" />
79
<strong>Author&#160;: </strong>
80
<xsl:for-each select="marc:datafield[@tag=700]">
81
<xsl:value-of select="marc:subfield[@code='a']"/>
82
<xsl:if test="marc:subfield[@code='b']">
83
<xsl:text> , </xsl:text>
84
<xsl:value-of select="marc:subfield[@code='b']"/>
85
</xsl:if>
86
</xsl:for-each>
87
</li>
88
</xsl:if>
89
</xsl:if>
90
91
92
<xsl:if test="marc:datafield[@tag=710]">
93
<li>
94
<strong>Collectivity Author&#160;: </strong>
95
<xsl:for-each select="marc:datafield[@tag=710]">
96
<xsl:value-of select="marc:subfield[@code='a']"/>
97
<xsl:if test="marc:subfield[@code='b']">
98
<xsl:text> , </xsl:text>
99
<xsl:value-of select="marc:subfield[@code='b']"/>
100
</xsl:if>
101
</xsl:for-each>
102
</li>
103
</xsl:if>
104
105
106
<!--Titre de serie - autorité 461-->
107
<!--<xsl:call-template name="tag_461" />-->
108
109
<!--Titre de série - non autorité 461-->
110
<xsl:call-template name="tag_461bis" />
111
112
<!--Titre  dépouillé 463-->
113
<xsl:call-template name="tag_463" />
114
115
<xsl:if test="contains($type_doc,'Périodique')">
116
<xsl:call-template name="tag_462" />
117
</xsl:if>
118
119
<xsl:call-template name="tag_4xx">
120
<xsl:with-param name="tag">412</xsl:with-param>
121
<xsl:with-param name="label">Is an excerpt or taken apart from</xsl:with-param>
122
</xsl:call-template>
123
124
<xsl:call-template name="tag_4xx">
125
<xsl:with-param name="tag">413</xsl:with-param>
126
<xsl:with-param name="label">A for extract or pulled apart</xsl:with-param>
127
</xsl:call-template>
128
129
<xsl:call-template name="tag_4xx">
130
<xsl:with-param name="tag">421</xsl:with-param>
131
<xsl:with-param name="label">Has for supplement</xsl:with-param>
132
</xsl:call-template>
133
134
<xsl:call-template name="tag_4xx">
135
<xsl:with-param name="tag">422</xsl:with-param>
136
<xsl:with-param name="label">Is a supplement of</xsl:with-param>
137
</xsl:call-template>
138
139
<xsl:call-template name="tag_4xx">
140
<xsl:with-param name="tag">423</xsl:with-param>
141
<xsl:with-param name="label">Is published with</xsl:with-param>
142
</xsl:call-template>
143
144
145
<xsl:call-template name="tag_4xx">
146
<xsl:with-param name="tag">424</xsl:with-param>
147
<xsl:with-param name="label">Is updated by</xsl:with-param>
148
</xsl:call-template>
149
150
<xsl:call-template name="tag_4xx">
151
<xsl:with-param name="tag">430</xsl:with-param>
152
<xsl:with-param name="label">Following</xsl:with-param>
153
</xsl:call-template>
154
155
<xsl:call-template name="tag_4xx">
156
<xsl:with-param name="tag">431</xsl:with-param>
157
<xsl:with-param name="label">Succeeds after division of</xsl:with-param>
158
</xsl:call-template>
159
160
<xsl:call-template name="tag_4xx">
161
<xsl:with-param name="tag">432</xsl:with-param>
162
<xsl:with-param name="label">Replace</xsl:with-param>
163
</xsl:call-template>
164
165
<xsl:call-template name="tag_4xx">
166
<xsl:with-param name="tag">433</xsl:with-param>
167
<xsl:with-param name="label">Replace partially</xsl:with-param>
168
</xsl:call-template>
169
170
<xsl:call-template name="tag_4xx">
171
<xsl:with-param name="tag">434</xsl:with-param>
172
<xsl:with-param name="label">Absorbed</xsl:with-param>
173
</xsl:call-template>
174
175
<xsl:call-template name="tag_4xx">
176
<xsl:with-param name="tag">435</xsl:with-param>
177
<xsl:with-param name="label">Absorbed partially</xsl:with-param>
178
</xsl:call-template>
179
180
<xsl:call-template name="tag_4xx">
181
<xsl:with-param name="tag">436</xsl:with-param>
182
<xsl:with-param name="label">Merge of</xsl:with-param>
183
</xsl:call-template>
184
185
<xsl:call-template name="tag_4xx">
186
<xsl:with-param name="tag">437</xsl:with-param>
187
<xsl:with-param name="label">Partial sequence of</xsl:with-param>
188
</xsl:call-template>
189
190
<xsl:call-template name="tag_4xx">
191
<xsl:with-param name="tag">440</xsl:with-param>
192
<xsl:with-param name="label">Become</xsl:with-param>
193
</xsl:call-template>
194
195
<xsl:call-template name="tag_4xx">
196
<xsl:with-param name="tag">441</xsl:with-param>
197
<xsl:with-param name="label">Become partially</xsl:with-param>
198
</xsl:call-template>
199
200
<xsl:call-template name="tag_4xx">
201
<xsl:with-param name="tag">442</xsl:with-param>
202
<xsl:with-param name="label">Replaced by</xsl:with-param>
203
</xsl:call-template>
204
205
<xsl:call-template name="tag_4xx">
206
<xsl:with-param name="tag">443</xsl:with-param>
207
<xsl:with-param name="label">Remplaced partially by</xsl:with-param>
208
</xsl:call-template>
209
210
<xsl:call-template name="tag_4xx">
211
<xsl:with-param name="tag">444</xsl:with-param>
212
<xsl:with-param name="label">Absorbed by</xsl:with-param>
213
</xsl:call-template>
214
215
<xsl:call-template name="tag_4xx">
216
<xsl:with-param name="tag">447</xsl:with-param>
217
<xsl:with-param name="label">Meged with...to form</xsl:with-param>
218
</xsl:call-template>
219
220
<xsl:call-template name="tag_4xx">
221
<xsl:with-param name="tag">451</xsl:with-param>
222
<xsl:with-param name="label">Other edition,same support</xsl:with-param>
223
</xsl:call-template>
224
225
<xsl:call-template name="tag_4xx">
226
<xsl:with-param name="tag">452</xsl:with-param>
227
<xsl:with-param name="label">Other edition, different support</xsl:with-param>
228
</xsl:call-template>
229
230
<xsl:call-template name="tag_4xx">
231
<xsl:with-param name="tag">453</xsl:with-param>
232
<xsl:with-param name="label">Translated under the title</xsl:with-param>
233
</xsl:call-template>
234
235
<xsl:call-template name="tag_4xx">
236
<xsl:with-param name="tag">454</xsl:with-param>
237
<xsl:with-param name="label">Is a translation of</xsl:with-param>
238
</xsl:call-template>
239
240
<xsl:call-template name="tag_4xx">
241
<xsl:with-param name="tag">455</xsl:with-param>
242
<xsl:with-param name="label">Is a reproduction of</xsl:with-param>
243
</xsl:call-template>
244
245
<xsl:call-template name="tag_4xx">
246
<xsl:with-param name="tag">456</xsl:with-param>
247
<xsl:with-param name="label">Is reproducted as</xsl:with-param>
248
</xsl:call-template>
249
250
<xsl:call-template name="tag_4xx">
251
<xsl:with-param name="tag">470</xsl:with-param>
252
<xsl:with-param name="label">Analysed document</xsl:with-param>
253
</xsl:call-template>
254
255
<xsl:call-template name="tag_4xx">
256
<xsl:with-param name="tag">481</xsl:with-param>
257
<xsl:with-param name="label">Is also linked in this volume</xsl:with-param>
258
</xsl:call-template>
259
260
<xsl:call-template name="tag_4xx">
261
<xsl:with-param name="tag">482</xsl:with-param>
262
<xsl:with-param name="label">Linked as a result of</xsl:with-param>
263
</xsl:call-template>
264
265
<xsl:call-template name="tag_4xx">
266
<xsl:with-param name="tag">488</xsl:with-param>
267
<xsl:with-param name="label">Other type of relation</xsl:with-param>
268
</xsl:call-template>
269
270
<xsl:if test="marc:datafield[@tag=099]">
271
<li>
272
<strong>Category of document&#160;: </strong>
273
<xsl:for-each select="marc:datafield[@tag=099]">
274
<xsl:value-of select="marc:subfield[@code='t']"/>
275
</xsl:for-each>
276
</li>
277
</xsl:if>
278
279
280
<xsl:call-template name="tag_210" />
281
282
<xsl:call-template name="tag_214" />
283
284
<xsl:call-template name="tag_215" />
285
286
<!--Collection autorité 410-->
287
<!--<xsl:for-each select="marc:datafield[@tag=410]">
288
<li>
289
<strong>Collection Authority : </strong> 
290
<xsl:element name="a"><xsl:attribute name="href">
291
/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/>
292
</xsl:attribute>
293
<xsl:value-of select="marc:subfield[@code='t']"/>
294
</xsl:element>
295
<xsl:if test="marc:subfield[@code='t'] and marc:subfield[@code='v']">
296
<xsl:text> . </xsl:text>
297
<xsl:value-of select="marc:subfield[@code='v']"/>
298
 </xsl:if>
299
</li>
300
</xsl:for-each>-->
301
302
<!--public 995$q-->
303
-<xsl:call-template name="public" />
304
79
305
80
</xsl:template>
306
</xsl:template>
307
81
</xsl:stylesheet>
308
</xsl:stylesheet>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (-327 / +1313 lines)
Lines 1-335 Link Here
1
<?xml version='1.0'?>
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
1
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
2
5
<xsl:stylesheet version="1.0"
3
<xsl:stylesheet version="1.0"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
4
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:items="http://www.koha-community.org/items"
5
  xmlns:items="http://www.koha-community.org/items"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  xmlns:str="http://exslt.org/strings"
7
  exclude-result-prefixes="marc items">
10
  exclude-result-prefixes="marc items str">
8
11
9
<xsl:template name="datafield">
12
  <xsl:template name="datafield">
10
<xsl:param name="tag"/>
13
    <xsl:param name="tag"/>
11
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
14
    <xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
12
<xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
15
    <xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
13
<xsl:param name="subfields"/>
16
    <xsl:param name="subfields"/>
14
<xsl:element name="datafield">
17
    <xsl:element name="datafield">
15
<xsl:attribute name="tag">
18
      <xsl:attribute name="tag">
16
<xsl:value-of select="$tag"/>
19
        <xsl:value-of select="$tag"/>
17
</xsl:attribute>
20
      </xsl:attribute>
18
<xsl:attribute name="ind1">
21
      <xsl:attribute name="ind1">
19
<xsl:value-of select="$ind1"/>
22
        <xsl:value-of select="$ind1"/>
20
</xsl:attribute>
23
      </xsl:attribute>
21
<xsl:attribute name="ind2">
24
      <xsl:attribute name="ind2">
22
<xsl:value-of select="$ind2"/>
25
       <xsl:value-of select="$ind2"/>
23
</xsl:attribute>
26
         </xsl:attribute>
24
<xsl:copy-of select="$subfields"/>
27
       <xsl:copy-of select="$subfields"/>
25
</xsl:element>
28
    </xsl:element>
26
</xsl:template>
29
  </xsl:template>
27
30
28
31
  <xsl:template name="tag_210">
29
<xsl:template name="tag_210">
32
    <li>
30
<xsl:for-each select="marc:datafield[@tag=210]">
33
      <strong>Publication: </strong>
31
<li>
34
      <xsl:for-each select="marc:datafield[@tag=210]">
32
<strong>Publication&nbsp;: </strong>
35
        <span>
33
<xsl:choose>
36
          <xsl:call-template name="addClassRtl" />
34
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
37
          <xsl:for-each select="marc:subfield">
35
<xsl:value-of select="marc:subfield[@code='a'][1]"/>
38
            <xsl:choose>
36
<xsl:text> : </xsl:text>
39
              <xsl:when test="@code='c' or @code='g'">
37
<xsl:element name="a">
40
                <xsl:if test="position()>1">
38
<xsl:attribute name="href">
41
                  <xsl:text> : </xsl:text>
39
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
42
                </xsl:if>
40
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
43
                <xsl:value-of select="."/>
41
</xsl:attribute>
44
              </xsl:when>
42
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
45
              <xsl:otherwise>
43
</xsl:element>
46
                <xsl:if test="position()>1">
44
<xsl:text> ; </xsl:text>
47
                  <xsl:text>, </xsl:text>
45
<xsl:value-of select="marc:subfield[@code='a'][2]"/>
48
                </xsl:if>
46
<xsl:text> : </xsl:text>
49
                <xsl:value-of select="."/>
47
<xsl:element name="a">
50
              </xsl:otherwise>
48
<xsl:attribute name="href">
51
            </xsl:choose>
49
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
52
          </xsl:for-each>
50
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
53
          <xsl:if test="not (position() = last())">
51
</xsl:attribute>
54
            <xsl:text> • </xsl:text>
52
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
55
          </xsl:if>
53
</xsl:element>
56
        </span>
54
<xsl:if test="marc:subfield[@code='a'][3]">
57
      </xsl:for-each>
55
<xsl:text> ; </xsl:text>
58
    </li>
56
<xsl:value-of select="marc:subfield[@code='a'][3]"/>
59
  </xsl:template>
57
</xsl:if>
60
58
<xsl:if test="marc:subfield[@code='c'][3]">
61
	<xsl:template name="tag_215">
59
<xsl:text> : </xsl:text>
62
    <xsl:for-each select="marc:datafield[@tag=215]">
60
<xsl:element name="a">
63
      <li>
61
<xsl:attribute name="href">
64
        <strong>Description: </strong>
62
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
65
        <xsl:if test="marc:subfield[@code='a']">
63
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
66
          <xsl:value-of select="marc:subfield[@code='a']"/>
64
</xsl:attribute>
67
        </xsl:if>
65
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
68
        <xsl:if test="marc:subfield[@code='c']"> :
66
</xsl:element>
69
          <xsl:value-of select="marc:subfield[@code='c']"/>
67
</xsl:if>
70
        </xsl:if>
68
<xsl:text>, </xsl:text>
71
        <xsl:if test="marc:subfield[@code='d']"> ;
69
<xsl:value-of select="marc:subfield[@code='d']"/>
72
          <xsl:value-of select="marc:subfield[@code='d']"/>
70
<xsl:if test="marc:subfield[@code='e']">
73
        </xsl:if>
71
<xsl:text> (</xsl:text>
74
        <xsl:if test="marc:subfield[@code='e']"> +
72
<xsl:value-of select="marc:subfield[@code='e']"/>
75
          <xsl:value-of select="marc:subfield[@code='e']"/>
73
<xsl:if test="marc:subfield[@code='g']">
76
        </xsl:if>
74
<xsl:text> : </xsl:text>
77
      </li>
75
<xsl:value-of select="marc:subfield[@code='g']"/>
78
    </xsl:for-each>
76
</xsl:if>
79
  </xsl:template>
77
<xsl:text>)</xsl:text>
80
78
</xsl:if>
81
	<xsl:template name="tag_4xx">
79
</xsl:when>
82
    <xsl:for-each select="marc:datafield[@tag=464 or @tag=461]">
80
83
        <li>
81
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
84
        <strong>Linked with: </strong>
82
<xsl:value-of select="marc:subfield[@code='a']"/>
85
        <span>
83
<xsl:if test="position()!=last()">
86
          <xsl:call-template name="addClassRtl" />
84
<xsl:text> ; </xsl:text>
87
          <xsl:if test="marc:subfield[@code='t']">
85
</xsl:if>
88
            <xsl:value-of select="marc:subfield[@code='t']"/>
86
<xsl:if test="position()=last()">
89
          </xsl:if>
87
<xsl:text> : </xsl:text>
90
          <xsl:if test="marc:subfield[@code='e']"> :
88
</xsl:if>
91
            <xsl:value-of select="marc:subfield[@code='e']"/>
89
<xsl:for-each select="marc:subfield[@code='c']">
92
          </xsl:if>
90
<xsl:element name="a">
93
          <xsl:if test="marc:subfield[@code='f']"> /
91
<xsl:attribute name="href">
94
            <xsl:value-of select="marc:subfield[@code='f']"/>
92
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
95
          </xsl:if>
93
<xsl:value-of select="text()"/>
96
          <xsl:if test="marc:subfield[@code='v']">,
94
</xsl:attribute>
97
            <xsl:value-of select="marc:subfield[@code='v']"/>
95
<xsl:value-of select="text()"/>
98
          </xsl:if>
96
</xsl:element>
99
        </span>
97
<xsl:if test="position()!=last()">
100
      </li>
98
<xsl:text> : </xsl:text>
101
    </xsl:for-each>
99
</xsl:if>
102
  </xsl:template>
100
<xsl:if test="position()=last()">
103
101
<xsl:text></xsl:text>
104
	<xsl:template name="subfieldSelect">
102
</xsl:if>
105
		<xsl:param name="codes"/>
103
</xsl:for-each>
106
		<xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
104
<xsl:text>, </xsl:text>
107
		<xsl:param name="subdivCodes"/>
105
<xsl:value-of select="marc:subfield[@code='d']"/>
108
		<xsl:param name="subdivDelimiter"/>
106
<xsl:if test="marc:subfield[@code='e']">
109
    <xsl:param name="urlencode"/>
107
<xsl:text> (</xsl:text>
110
		<xsl:variable name="str">
108
<xsl:value-of select="marc:subfield[@code='e']"/>
111
			<xsl:for-each select="marc:subfield">
109
<xsl:if test="marc:subfield[@code='g']">
112
				<xsl:if test="contains($codes, @code)">
110
<xsl:text> : </xsl:text>
113
                    <xsl:if test="contains($subdivCodes, @code)">
111
<xsl:value-of select="marc:subfield[@code='g']"/>
114
                        <xsl:value-of select="$subdivDelimiter"/>
112
</xsl:if>
115
                    </xsl:if>
113
<xsl:text>)</xsl:text>
116
					<xsl:value-of select="text()"/><xsl:value-of select="$delimeter"/>
114
</xsl:if>
117
				</xsl:if>
115
</xsl:when>
118
			</xsl:for-each>
116
119
		</xsl:variable>
117
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
120
    <xsl:choose>
118
<xsl:for-each select="marc:subfield[@code='a']">
121
      <xsl:when test="$urlencode=1">
119
<xsl:value-of select="text()"/>
122
        <xsl:value-of select="str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
120
<xsl:if test="position()!=last()">
123
      </xsl:when>
121
<xsl:text> ; </xsl:text>
124
      <xsl:otherwise>
122
</xsl:if>
125
        <xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
123
<xsl:if test="position()=last()">
126
      </xsl:otherwise>
124
<xsl:text> : </xsl:text>
127
    </xsl:choose>
125
</xsl:if>
128
	</xsl:template>
126
</xsl:for-each>
129
127
<xsl:element name="a">
130
	<xsl:template name="buildSpaces">
128
<xsl:attribute name="href">
131
		<xsl:param name="spaces"/>
129
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
132
		<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
130
<xsl:value-of select="marc:subfield[@code='c']"/>
133
		<xsl:if test="$spaces>0">
131
</xsl:attribute>
134
			<xsl:value-of select="$char"/>
132
<xsl:value-of select="marc:subfield[@code='c']"/>
135
			<xsl:call-template name="buildSpaces">
133
</xsl:element>
136
				<xsl:with-param name="spaces" select="$spaces - 1"/>
134
<xsl:if test="position()!=last()">
137
				<xsl:with-param name="char" select="$char"/>
135
<xsl:text> : </xsl:text>
138
			</xsl:call-template>
136
</xsl:if>
139
		</xsl:if>
137
<xsl:if test="position()=last()">
140
	</xsl:template>
138
<xsl:text></xsl:text>
141
139
</xsl:if>
142
  <xsl:template name="buildBiblioDefaultViewURL">
140
<xsl:text>, </xsl:text>
143
      <xsl:param name="IntranetBiblioDefaultView"/>
141
<xsl:value-of select="marc:subfield[@code='d']"/>
144
      <xsl:choose>
142
<xsl:if test="marc:subfield[@code='e']">
145
          <xsl:when test="$IntranetBiblioDefaultView='normal'">
143
<xsl:text> (</xsl:text>
146
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
144
<xsl:value-of select="marc:subfield[@code='e']"/>
147
          </xsl:when>
145
<xsl:if test="marc:subfield[@code='g']">
148
          <xsl:when test="$IntranetBiblioDefaultView='isbd'">
146
<xsl:text> : </xsl:text>
149
              <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
147
<xsl:value-of select="marc:subfield[@code='g']"/>
150
          </xsl:when>
148
</xsl:if>
151
          <xsl:when test="$IntranetBiblioDefaultView='labeled_marc'">
149
<xsl:text>)</xsl:text>
152
              <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
150
</xsl:if>
153
          </xsl:when>
151
</xsl:when>
154
          <xsl:when test="$IntranetBiblioDefaultView='marc'">
152
155
              <xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text>
153
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
156
          </xsl:when>
154
<xsl:value-of select="marc:subfield[@code='a']"/>
157
          <xsl:otherwise>
155
<xsl:text> : </xsl:text>
158
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
156
<xsl:element name="a">
159
          </xsl:otherwise>
157
<xsl:attribute name="href">
160
      </xsl:choose>
158
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
161
  </xsl:template>
159
<xsl:value-of select="marc:subfield[@code='c']"/>
162
160
</xsl:attribute>
163
	<xsl:template name="chopSpecialCharacters">
161
<xsl:value-of select="marc:subfield[@code='c']"/>
164
        <xsl:param name="title" />
162
</xsl:element>
165
        <xsl:variable name="ntitle"
163
<xsl:text>, </xsl:text>
166
             select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
164
<xsl:value-of select="marc:subfield[@code='d']"/>
167
        <xsl:value-of select="$ntitle" />
165
<xsl:if test="marc:subfield[@code='e']">
168
    </xsl:template>
166
<xsl:text> (</xsl:text>
169
167
<xsl:value-of select="marc:subfield[@code='e']"/>
170
168
<xsl:if test="marc:subfield[@code='g']">
171
	<xsl:template name="chopPunctuation">
169
<xsl:text> : </xsl:text>
172
		<xsl:param name="chopString"/>
170
<xsl:value-of select="marc:subfield[@code='g']"/>
173
		<xsl:variable name="length" select="string-length($chopString)"/>
171
</xsl:if>
174
		<xsl:choose>
172
<xsl:text>)</xsl:text>
175
			<xsl:when test="$length=0"/>
173
</xsl:if>
176
			<xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
174
</xsl:when>
177
				<xsl:call-template name="chopPunctuation">
175
178
					<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
176
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2])">
179
				</xsl:call-template>
177
<xsl:value-of select="marc:subfield[@code='a']"/>
180
			</xsl:when>
178
<xsl:text> : </xsl:text>
181
			<xsl:when test="not($chopString)"/>
179
<xsl:for-each select="marc:subfield[@code='c']">
182
			<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
180
<xsl:element name="a">
183
		</xsl:choose>
181
<xsl:attribute name="href">
184
    <xsl:text> </xsl:text>
182
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
185
	</xsl:template>
183
<xsl:value-of select="text()"/>
186
184
</xsl:attribute>
187
	<xsl:template name="addClassRtl">
185
<xsl:value-of select="text()"/>
188
    <xsl:variable name="lang" select="marc:subfield[@code='7']" />
186
</xsl:element>
189
    <xsl:if test="$lang = 'ha' or $lang = 'Hebrew' or $lang = 'fa' or $lang = 'Arabe'">
187
<xsl:if test="position()!=last()">
190
      <xsl:attribute name="class">rtl</xsl:attribute>
188
<xsl:text> : </xsl:text>
191
    </xsl:if>
189
</xsl:if>
192
  </xsl:template>
190
<xsl:if test="position()=last()">
193
191
<xsl:text></xsl:text>
194
  <xsl:template name="tag_title">
192
</xsl:if>
195
    <xsl:param name="tag" />
193
</xsl:for-each>
196
    <xsl:param name="label" />
194
<xsl:if test="marc:subfield[@code='e']">
197
    <xsl:if test="marc:datafield[@tag=$tag]">
195
<xsl:text> (</xsl:text>
198
      <li>
196
<xsl:value-of select="marc:subfield[@code='e']"/>
199
        <strong><xsl:value-of select="$label"/>: </strong>
197
<xsl:if test="marc:subfield[@code='g']">
200
        <xsl:for-each select="marc:datafield[@tag=$tag]">
198
<xsl:text> : </xsl:text>
201
          <xsl:value-of select="marc:subfield[@code='a']" />
199
<xsl:value-of select="marc:subfield[@code='g']"/>
202
          <xsl:if test="marc:subfield[@code='d']">
200
</xsl:if>
203
            <xsl:text> : </xsl:text>
201
<xsl:text>)</xsl:text>
204
            <xsl:value-of select="marc:subfield[@code='e']"/>
202
</xsl:if>
205
          </xsl:if>
203
</xsl:when>
206
          <xsl:if test="marc:subfield[@code='e']">
204
207
            <xsl:for-each select="marc:subfield[@code='e']">
205
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
208
              <xsl:text> </xsl:text>
206
<xsl:value-of select="marc:subfield[@code='a']"/>
209
              <xsl:value-of select="."/>
207
<xsl:text> : </xsl:text>
210
            </xsl:for-each>
208
<xsl:element name="a">
211
          </xsl:if>
209
<xsl:attribute name="href">
212
          <xsl:if test="marc:subfield[@code='f']">
210
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
213
            <xsl:text> / </xsl:text>
211
<xsl:value-of select="marc:subfield[@code='c']"/>
214
            <xsl:value-of select="marc:subfield[@code='f']"/>
212
</xsl:attribute>
215
          </xsl:if>
213
<xsl:value-of select="marc:subfield[@code='c']"/>
216
          <xsl:if test="marc:subfield[@code='h']">
214
</xsl:element>
217
            <xsl:text>, </xsl:text>
215
<xsl:if test="marc:subfield[@code='e']">
218
            <xsl:value-of select="marc:subfield[@code='h']"/>
216
<xsl:text> (</xsl:text>
219
          </xsl:if>
217
<xsl:value-of select="marc:subfield[@code='e']"/>
220
          <xsl:if test="marc:subfield[@code='i']">
218
<xsl:if test="marc:subfield[@code='g']">
221
            <xsl:text>, </xsl:text>
219
<xsl:text> : </xsl:text>
222
            <xsl:value-of select="marc:subfield[@code='i']"/>
220
<xsl:value-of select="marc:subfield[@code='g']"/>
223
          </xsl:if>
221
</xsl:if>
224
          <xsl:if test="marc:subfield[@code='v']">
222
<xsl:text>)</xsl:text>
225
            <xsl:text>, </xsl:text>
223
</xsl:if>
226
            <xsl:value-of select="marc:subfield[@code='v']"/>
224
</xsl:when>
227
          </xsl:if>
225
228
          <xsl:if test="marc:subfield[@code='x']">
226
<xsl:when test="(marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
229
            <xsl:text>, </xsl:text>
227
<xsl:for-each select="marc:subfield[@code='c']">
230
            <xsl:value-of select="marc:subfield[@code='x']"/>
228
<xsl:element name="a">
231
          </xsl:if>
229
<xsl:attribute name="href">
232
          <xsl:if test="marc:subfield[@code='z']">
230
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
233
            <xsl:text>, </xsl:text>
231
<xsl:value-of select="text()"/>
234
            <xsl:value-of select="marc:subfield[@code='z']"/>
232
</xsl:attribute>
235
          </xsl:if>
233
<xsl:value-of select="text()"/>
236
        </xsl:for-each>
234
</xsl:element>
237
      </li>
235
<xsl:if test="position()!=last()">
238
    </xsl:if>
236
<xsl:text> : </xsl:text>
239
  </xsl:template>
237
</xsl:if>
240
238
<xsl:if test="position()=last()">
241
239
<xsl:text>, </xsl:text>
242
  <xsl:template name="tag_subject">
240
</xsl:if>
243
    <xsl:param name="tag" />
241
</xsl:for-each>
244
    <xsl:param name="label" />
242
<xsl:value-of select="marc:subfield[@code='d']"/>
245
    <xsl:if test="marc:datafield[@tag=$tag]">
243
<xsl:if test="marc:subfield[@code='e']">
246
      <li>
244
<xsl:text> (</xsl:text>
247
        <strong><xsl:value-of select="$label"/>: </strong>
245
<xsl:value-of select="marc:subfield[@code='e']"/>
248
        <xsl:for-each select="marc:datafield[@tag=$tag]">
246
<xsl:if test="marc:subfield[@code='g']">
249
          <a>
247
<xsl:text> : </xsl:text>
250
            <xsl:choose>
248
<xsl:value-of select="marc:subfield[@code='g']"/>
251
              <xsl:when test="marc:subfield[@code=9]">
249
</xsl:if>
252
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
250
<xsl:text>)</xsl:text>
253
              </xsl:when>
251
</xsl:if>
254
              <xsl:otherwise>
252
</xsl:when>
255
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
253
<xsl:when test="(marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
256
              </xsl:otherwise>
254
<xsl:element name="a">
257
            </xsl:choose>
255
<xsl:attribute name="href">
258
            <xsl:call-template name="chopPunctuation">
256
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
259
              <xsl:with-param name="chopString">
257
<xsl:value-of select="marc:subfield[@code='c']"/>
260
                <xsl:call-template name="subfieldSelect">
258
</xsl:attribute>
261
                    <xsl:with-param name="codes">abcdjptvxyz</xsl:with-param>
259
<xsl:value-of select="marc:subfield[@code='c']"/>
262
                    <xsl:with-param name="subdivCodes">jpxyz</xsl:with-param>
260
</xsl:element>
263
                    <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
261
<xsl:text>, </xsl:text>
264
                </xsl:call-template>
262
<xsl:value-of select="marc:subfield[@code='d']"/>
265
              </xsl:with-param>
263
<xsl:if test="marc:subfield[@code='e']">
266
            </xsl:call-template>
264
<xsl:text> (</xsl:text>
267
          </a>
265
<xsl:value-of select="marc:subfield[@code='e']"/>
268
          <xsl:if test="not (position()=last())">
266
<xsl:if test="marc:subfield[@code='g']">
269
            <xsl:text> | </xsl:text>
267
<xsl:text> : </xsl:text>
270
          </xsl:if>
268
<xsl:value-of select="marc:subfield[@code='g']"/>
271
        </xsl:for-each>
269
</xsl:if>
272
      </li>
270
<xsl:text>)</xsl:text>
273
    </xsl:if>
271
</xsl:if>
274
  </xsl:template>
272
</xsl:when>
275
273
276
274
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='d'])">
277
  <xsl:template name="tag_7xx">
275
<xsl:for-each select="marc:subfield[@code='a']">
278
    <xsl:param name="tag" />
276
<xsl:value-of select="text()"/>
279
    <xsl:param name="label" />
277
<xsl:if test="position()!=last()">
280
    <xsl:if test="marc:datafield[@tag=$tag]">
278
<xsl:text> ; </xsl:text>
281
      <li>
279
</xsl:if>
282
        <strong><xsl:value-of select="$label" />: </strong>
280
<xsl:if test="position()=last()">
283
        <xsl:for-each select="marc:datafield[@tag=$tag]">
281
<xsl:text>, </xsl:text>
284
          <span>
282
</xsl:if>
285
            <xsl:call-template name="addClassRtl" />
283
</xsl:for-each>
286
            <a>
284
<xsl:value-of select="marc:subfield[@code='d']"/>
287
              <xsl:choose>
285
<xsl:if test="marc:subfield[@code='e']">
288
                <xsl:when test="marc:subfield[@code=9]">
286
<xsl:text> (</xsl:text>
289
                  <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>
287
<xsl:value-of select="marc:subfield[@code='e']"/>
290
                </xsl:when>
288
<xsl:if test="marc:subfield[@code='g']">
291
                <xsl:otherwise>
289
<xsl:text> : </xsl:text>
292
                  <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:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
290
<xsl:value-of select="marc:subfield[@code='g']"/>
293
                </xsl:otherwise>
291
</xsl:if>
294
              </xsl:choose>
292
<xsl:text>)</xsl:text>
295
              <xsl:if test="marc:subfield[@code='a']">
293
</xsl:if>
296
                <xsl:value-of select="marc:subfield[@code='a']"/>
294
</xsl:when>
297
              </xsl:if>
295
298
              <xsl:if test="marc:subfield[@code='b']">
296
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
299
                <xsl:text>, </xsl:text>
297
<xsl:value-of select="marc:subfield[@code='a']"/>
300
                <xsl:value-of select="marc:subfield[@code='b']"/>
298
<xsl:text>, </xsl:text>
301
              </xsl:if>
299
<xsl:value-of select="marc:subfield[@code='d']"/>
302
              <xsl:if test="marc:subfield[@code='c']">
300
<xsl:if test="marc:subfield[@code='e']">
303
                <xsl:text>, </xsl:text>
301
<xsl:text> (</xsl:text>
304
                <xsl:value-of select="marc:subfield[@code='c']"/>
302
<xsl:value-of select="marc:subfield[@code='e']"/>
305
              </xsl:if>
303
<xsl:if test="marc:subfield[@code='g']">
306
              <xsl:if test="marc:subfield[@code='d']">
304
<xsl:text> : </xsl:text>
307
                <xsl:text> </xsl:text>
305
<xsl:value-of select="marc:subfield[@code='g']"/>
308
                <xsl:value-of select="marc:subfield[@code='d']"/>
306
</xsl:if>
309
              </xsl:if>
307
<xsl:text>)</xsl:text>
310
              <xsl:if test="marc:subfield[@code='f']">
308
</xsl:if>
311
                <span dir="ltr">
309
</xsl:when>
312
                <xsl:text> (</xsl:text>
310
313
                <xsl:value-of select="marc:subfield[@code='f']"/>
311
<xsl:when test="(marc:subfield[@code='a'])">
314
                <xsl:text>)</xsl:text>
312
<xsl:value-of select="marc:subfield[@code='a']"/>
315
                </span>
313
<xsl:if test="marc:subfield[@code='e']">
316
              </xsl:if>
314
<xsl:text> (</xsl:text>
317
              <xsl:if test="marc:subfield[@code='g']">
315
<xsl:value-of select="marc:subfield[@code='e']"/>
318
                <xsl:text> </xsl:text>
316
<xsl:if test="marc:subfield[@code='g']">
319
                <xsl:value-of select="marc:subfield[@code='g']"/>
317
<xsl:text> : </xsl:text>
320
              </xsl:if>
318
<xsl:value-of select="marc:subfield[@code='g']"/>
321
              <xsl:if test="marc:subfield[@code='p']">
319
</xsl:if>
322
                <xsl:text> </xsl:text>
320
<xsl:text>)</xsl:text>
323
                <xsl:value-of select="marc:subfield[@code='p']"/>
321
</xsl:if>
324
              </xsl:if>
322
</xsl:when>
325
            </a>
323
326
          </span>
324
<xsl:when test="(marc:subfield[@code='d'])">
327
          <xsl:if test="not (position() = last())">
325
<xsl:value-of select="marc:subfield[@code='d']"/>
328
            <xsl:text> ; </xsl:text>
326
<xsl:if test="marc:subfield[@code='e']">
329
          </xsl:if>
327
<xsl:text> (</xsl:text>
330
        </xsl:for-each>
328
<xsl:value-of select="marc:subfield[@code='e']"/>
331
      </li>
329
<xsl:if test="marc:subfield[@code='g']">
332
    </xsl:if>
330
<xsl:text> : </xsl:text>
333
  </xsl:template>
331
<xsl:value-of select="marc:subfield[@code='g']"/>
332
</xsl:if>
333
<xsl:text>)</xsl:text>
334
</xsl:if>
335
</xsl:when>
336
<xsl:when test="(marc:subfield[@code='e'])">
337
<xsl:value-of select="marc:subfield[@code='e']"/>
338
<xsl:if test="marc:subfield[@code='g']">
339
<xsl:text> : </xsl:text>
340
<xsl:value-of select="marc:subfield[@code='g']"/>
341
</xsl:if>
342
<xsl:if test="marc:subfield[@code='h']">
343
<xsl:text> , </xsl:text>
344
<xsl:value-of select="marc:subfield[@code='h']"/>
345
</xsl:if>
346
</xsl:when>
347
<xsl:when test="(marc:subfield[@code='g'])">
348
<xsl:value-of select="marc:subfield[@code='g']"/>
349
<xsl:if test="marc:subfield[@code='h']">
350
<xsl:text> , </xsl:text>
351
<xsl:value-of select="marc:subfield[@code='h']"/>
352
</xsl:if>
353
</xsl:when>
354
<xsl:when test="(marc:subfield[@code='h'])">
355
<xsl:value-of select="marc:subfield[@code='h']"/>
356
</xsl:when>
357
</xsl:choose>
358
</li>
359
</xsl:for-each>
360
</xsl:template>
361
362
363
<xsl:template name="tag_214">
364
<xsl:for-each select="marc:datafield[@tag=214]">
365
<li>
366
<strong>Publication&nbsp;: </strong>
367
<xsl:choose>
368
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
369
<xsl:value-of select="marc:subfield[@code='a'][1]"/>
370
<xsl:text> : </xsl:text>
371
<xsl:element name="a">
372
<xsl:attribute name="href">
373
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
374
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
375
</xsl:attribute>
376
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
377
</xsl:element>
378
<xsl:text> ; </xsl:text>
379
<xsl:value-of select="marc:subfield[@code='a'][2]"/>
380
<xsl:text> : </xsl:text>
381
<xsl:element name="a">
382
<xsl:attribute name="href">
383
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
384
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
385
</xsl:attribute>
386
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
387
</xsl:element>
388
<xsl:if test="marc:subfield[@code='a'][3]">
389
<xsl:text> ; </xsl:text>
390
<xsl:value-of select="marc:subfield[@code='a'][3]"/>
391
</xsl:if>
392
<xsl:if test="marc:subfield[@code='c'][3]">
393
<xsl:text> : </xsl:text>
394
<xsl:element name="a">
395
<xsl:attribute name="href">
396
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
397
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
398
</xsl:attribute>
399
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
400
</xsl:element>
401
</xsl:if>
402
<xsl:text>, </xsl:text>
403
<xsl:value-of select="marc:subfield[@code='d']"/>
404
<xsl:if test="marc:subfield[@code='e']">
405
<xsl:text> (</xsl:text>
406
<xsl:value-of select="marc:subfield[@code='e']"/>
407
<xsl:if test="marc:subfield[@code='g']">
408
<xsl:text> : </xsl:text>
409
<xsl:value-of select="marc:subfield[@code='g']"/>
410
</xsl:if>
411
<xsl:text>)</xsl:text>
412
</xsl:if>
413
</xsl:when>
414
415
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
416
<xsl:value-of select="marc:subfield[@code='a']"/>
417
<xsl:if test="position()!=last()">
418
<xsl:text> ; </xsl:text>
419
</xsl:if>
420
<xsl:if test="position()=last()">
421
<xsl:text> : </xsl:text>
422
</xsl:if>
423
<xsl:for-each select="marc:subfield[@code='c']">
424
<xsl:element name="a">
425
<xsl:attribute name="href">
426
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
427
<xsl:value-of select="text()"/>
428
</xsl:attribute>
429
<xsl:value-of select="text()"/>
430
</xsl:element>
431
<xsl:if test="position()!=last()">
432
<xsl:text> : </xsl:text>
433
</xsl:if>
434
<xsl:if test="position()=last()">
435
<xsl:text></xsl:text>
436
</xsl:if>
437
</xsl:for-each>
438
<xsl:text>, </xsl:text>
439
<xsl:value-of select="marc:subfield[@code='d']"/>
440
<xsl:if test="marc:subfield[@code='e']">
441
<xsl:text> (</xsl:text>
442
<xsl:value-of select="marc:subfield[@code='e']"/>
443
<xsl:if test="marc:subfield[@code='g']">
444
<xsl:text> : </xsl:text>
445
<xsl:value-of select="marc:subfield[@code='g']"/>
446
</xsl:if>
447
<xsl:text>)</xsl:text>
448
</xsl:if>
449
</xsl:when>
450
451
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
452
<xsl:for-each select="marc:subfield[@code='a']">
453
<xsl:value-of select="text()"/>
454
<xsl:if test="position()!=last()">
455
<xsl:text> ; </xsl:text>
456
</xsl:if>
457
<xsl:if test="position()=last()">
458
<xsl:text> : </xsl:text>
459
</xsl:if>
460
</xsl:for-each>
461
<xsl:element name="a">
462
<xsl:attribute name="href">
463
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
464
<xsl:value-of select="marc:subfield[@code='c']"/>
465
</xsl:attribute>
466
<xsl:value-of select="marc:subfield[@code='c']"/>
467
</xsl:element>
468
<xsl:if test="position()!=last()">
469
<xsl:text> : </xsl:text>
470
</xsl:if>
471
<xsl:if test="position()=last()">
472
<xsl:text></xsl:text>
473
</xsl:if>
474
<xsl:text>, </xsl:text>
475
<xsl:value-of select="marc:subfield[@code='d']"/>
476
<xsl:if test="marc:subfield[@code='e']">
477
<xsl:text> (</xsl:text>
478
<xsl:value-of select="marc:subfield[@code='e']"/>
479
<xsl:if test="marc:subfield[@code='g']">
480
<xsl:text> : </xsl:text>
481
<xsl:value-of select="marc:subfield[@code='g']"/>
482
</xsl:if>
483
<xsl:text>)</xsl:text>
484
</xsl:if>
485
</xsl:when>
486
487
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
488
<xsl:value-of select="marc:subfield[@code='a']"/>
489
<xsl:text> : </xsl:text>
490
<xsl:element name="a">
491
<xsl:attribute name="href">
492
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
493
<xsl:value-of select="marc:subfield[@code='c']"/>
494
</xsl:attribute>
495
<xsl:value-of select="marc:subfield[@code='c']"/>
496
</xsl:element>
497
<xsl:text>, </xsl:text>
498
<xsl:value-of select="marc:subfield[@code='d']"/>
499
<xsl:if test="marc:subfield[@code='e']">
500
<xsl:text> (</xsl:text>
501
<xsl:value-of select="marc:subfield[@code='e']"/>
502
<xsl:if test="marc:subfield[@code='g']">
503
<xsl:text> : </xsl:text>
504
<xsl:value-of select="marc:subfield[@code='g']"/>
505
</xsl:if>
506
<xsl:text>)</xsl:text>
507
</xsl:if>
508
</xsl:when>
509
510
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2])">
511
<xsl:value-of select="marc:subfield[@code='a']"/>
512
<xsl:text> : </xsl:text>
513
<xsl:for-each select="marc:subfield[@code='c']">
514
<xsl:element name="a">
515
<xsl:attribute name="href">
516
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
517
<xsl:value-of select="text()"/>
518
</xsl:attribute>
519
<xsl:value-of select="text()"/>
520
</xsl:element>
521
<xsl:if test="position()!=last()">
522
<xsl:text> : </xsl:text>
523
</xsl:if>
524
<xsl:if test="position()=last()">
525
<xsl:text></xsl:text>
526
</xsl:if>
527
</xsl:for-each>
528
<xsl:if test="marc:subfield[@code='e']">
529
<xsl:text> (</xsl:text>
530
<xsl:value-of select="marc:subfield[@code='e']"/>
531
<xsl:if test="marc:subfield[@code='g']">
532
<xsl:text> : </xsl:text>
533
<xsl:value-of select="marc:subfield[@code='g']"/>
534
</xsl:if>
535
<xsl:text>)</xsl:text>
536
</xsl:if>
537
</xsl:when>
538
539
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
540
<xsl:value-of select="marc:subfield[@code='a']"/>
541
<xsl:text> : </xsl:text>
542
<xsl:element name="a">
543
<xsl:attribute name="href">
544
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
545
<xsl:value-of select="marc:subfield[@code='c']"/>
546
</xsl:attribute>
547
<xsl:value-of select="marc:subfield[@code='c']"/>
548
</xsl:element>
549
<xsl:if test="marc:subfield[@code='e']">
550
<xsl:text> (</xsl:text>
551
<xsl:value-of select="marc:subfield[@code='e']"/>
552
<xsl:if test="marc:subfield[@code='g']">
553
<xsl:text> : </xsl:text>
554
<xsl:value-of select="marc:subfield[@code='g']"/>
555
</xsl:if>
556
<xsl:text>)</xsl:text>
557
</xsl:if>
558
</xsl:when>
559
560
<xsl:when test="(marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
561
<xsl:for-each select="marc:subfield[@code='c']">
562
<xsl:element name="a">
563
<xsl:attribute name="href">
564
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
565
<xsl:value-of select="text()"/>
566
</xsl:attribute>
567
<xsl:value-of select="text()"/>
568
</xsl:element>
569
<xsl:if test="position()!=last()">
570
<xsl:text> : </xsl:text>
571
</xsl:if>
572
<xsl:if test="position()=last()">
573
<xsl:text>, </xsl:text>
574
</xsl:if>
575
</xsl:for-each>
576
<xsl:value-of select="marc:subfield[@code='d']"/>
577
<xsl:if test="marc:subfield[@code='e']">
578
<xsl:text> (</xsl:text>
579
<xsl:value-of select="marc:subfield[@code='e']"/>
580
<xsl:if test="marc:subfield[@code='g']">
581
<xsl:text> : </xsl:text>
582
<xsl:value-of select="marc:subfield[@code='g']"/>
583
</xsl:if>
584
<xsl:text>)</xsl:text>
585
</xsl:if>
586
</xsl:when>
587
<xsl:when test="(marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
588
<xsl:element name="a">
589
<xsl:attribute name="href">
590
/cgi-bin/koha/catalogue/search.pl?idx=Publisher&amp;q=
591
<xsl:value-of select="marc:subfield[@code='c']"/>
592
</xsl:attribute>
593
<xsl:value-of select="marc:subfield[@code='c']"/>
594
</xsl:element>
595
<xsl:text>, </xsl:text>
596
<xsl:value-of select="marc:subfield[@code='d']"/>
597
<xsl:if test="marc:subfield[@code='e']">
598
<xsl:text> (</xsl:text>
599
<xsl:value-of select="marc:subfield[@code='e']"/>
600
<xsl:if test="marc:subfield[@code='g']">
601
<xsl:text> : </xsl:text>
602
<xsl:value-of select="marc:subfield[@code='g']"/>
603
</xsl:if>
604
<xsl:text>)</xsl:text>
605
</xsl:if>
606
</xsl:when>
607
608
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='d'])">
609
<xsl:for-each select="marc:subfield[@code='a']">
610
<xsl:value-of select="text()"/>
611
<xsl:if test="position()!=last()">
612
<xsl:text> ; </xsl:text>
613
</xsl:if>
614
<xsl:if test="position()=last()">
615
<xsl:text>, </xsl:text>
616
</xsl:if>
617
</xsl:for-each>
618
<xsl:value-of select="marc:subfield[@code='d']"/>
619
<xsl:if test="marc:subfield[@code='e']">
620
<xsl:text> (</xsl:text>
621
<xsl:value-of select="marc:subfield[@code='e']"/>
622
<xsl:if test="marc:subfield[@code='g']">
623
<xsl:text> : </xsl:text>
624
<xsl:value-of select="marc:subfield[@code='g']"/>
625
</xsl:if>
626
<xsl:text>)</xsl:text>
627
</xsl:if>
628
</xsl:when>
629
630
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
631
<xsl:value-of select="marc:subfield[@code='a']"/>
632
<xsl:text>, </xsl:text>
633
<xsl:value-of select="marc:subfield[@code='d']"/>
634
<xsl:if test="marc:subfield[@code='e']">
635
<xsl:text> (</xsl:text>
636
<xsl:value-of select="marc:subfield[@code='e']"/>
637
<xsl:if test="marc:subfield[@code='g']">
638
<xsl:text> : </xsl:text>
639
<xsl:value-of select="marc:subfield[@code='g']"/>
640
</xsl:if>
641
<xsl:text>)</xsl:text>
642
</xsl:if>
643
</xsl:when>
644
645
<xsl:when test="(marc:subfield[@code='a'])">
646
<xsl:value-of select="marc:subfield[@code='a']"/>
647
<xsl:if test="marc:subfield[@code='e']">
648
<xsl:text> (</xsl:text>
649
<xsl:value-of select="marc:subfield[@code='e']"/>
650
<xsl:if test="marc:subfield[@code='g']">
651
<xsl:text> : </xsl:text>
652
<xsl:value-of select="marc:subfield[@code='g']"/>
653
</xsl:if>
654
<xsl:text>)</xsl:text>
655
</xsl:if>
656
</xsl:when>
657
658
<xsl:when test="(marc:subfield[@code='d'])">
659
<xsl:value-of select="marc:subfield[@code='d']"/>
660
<xsl:if test="marc:subfield[@code='e']">
661
<xsl:text> (</xsl:text>
662
<xsl:value-of select="marc:subfield[@code='e']"/>
663
<xsl:if test="marc:subfield[@code='g']">
664
<xsl:text> : </xsl:text>
665
<xsl:value-of select="marc:subfield[@code='g']"/>
666
</xsl:if>
667
<xsl:text>)</xsl:text>
668
</xsl:if>
669
</xsl:when>
670
<xsl:when test="(marc:subfield[@code='e'])">
671
<xsl:value-of select="marc:subfield[@code='e']"/>
672
<xsl:if test="marc:subfield[@code='g']">
673
<xsl:text> : </xsl:text>
674
<xsl:value-of select="marc:subfield[@code='g']"/>
675
</xsl:if>
676
<xsl:if test="marc:subfield[@code='h']">
677
<xsl:text> , </xsl:text>
678
<xsl:value-of select="marc:subfield[@code='h']"/>
679
</xsl:if>
680
</xsl:when>
681
<xsl:when test="(marc:subfield[@code='g'])">
682
<xsl:value-of select="marc:subfield[@code='g']"/>
683
<xsl:if test="marc:subfield[@code='h']">
684
<xsl:text> , </xsl:text>
685
<xsl:value-of select="marc:subfield[@code='h']"/>
686
</xsl:if>
687
</xsl:when>
688
<xsl:when test="(marc:subfield[@code='h'])">
689
<xsl:value-of select="marc:subfield[@code='h']"/>
690
</xsl:when>
691
</xsl:choose>
692
</li>
693
</xsl:for-each>
694
</xsl:template>
695
696
<xsl:template name="tag_215">
697
<xsl:for-each select="marc:datafield[@tag=215]">
698
<li>
699
<strong>Description&nbsp;: </strong>
700
<xsl:choose>
701
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d']) and (marc:subfield[@code='e'])">
702
<xsl:value-of select="marc:subfield[@code='a']"/>
703
<xsl:text> : </xsl:text>
704
<xsl:value-of select="marc:subfield[@code='c']"/>
705
<xsl:text> ; </xsl:text>
706
<xsl:value-of select="marc:subfield[@code='d']"/>
707
<xsl:text> + </xsl:text>
708
<xsl:value-of select="marc:subfield[@code='e']"/>
709
</xsl:when>
710
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
711
<xsl:value-of select="marc:subfield[@code='a']"/>
712
<xsl:text> : </xsl:text>
713
<xsl:value-of select="marc:subfield[@code='c']"/>
714
<xsl:text> ; </xsl:text>
715
<xsl:value-of select="marc:subfield[@code='d']"/>
716
</xsl:when>
717
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='e']) and (marc:subfield[@code='d'])">
718
<xsl:value-of select="marc:subfield[@code='a']"/>
719
<xsl:text> : </xsl:text>
720
<xsl:value-of select="marc:subfield[@code='d']"/>
721
<xsl:text> + </xsl:text>
722
<xsl:value-of select="marc:subfield[@code='e']"/>
723
</xsl:when>
724
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='e']) and (marc:subfield[@code='c'])">
725
<xsl:value-of select="marc:subfield[@code='a']"/>
726
<xsl:text> : </xsl:text>
727
<xsl:value-of select="marc:subfield[@code='c']"/>
728
<xsl:text> + </xsl:text>
729
<xsl:value-of select="marc:subfield[@code='e']"/>
730
</xsl:when>
731
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
732
<xsl:value-of select="marc:subfield[@code='a']"/>
733
<xsl:text> : </xsl:text>
734
<xsl:value-of select="marc:subfield[@code='c']"/>
735
</xsl:when>
736
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
737
<xsl:value-of select="marc:subfield[@code='a']"/>
738
<xsl:text> ; </xsl:text>
739
<xsl:value-of select="marc:subfield[@code='d']"/>
740
</xsl:when>
741
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='e'])">
742
<xsl:value-of select="marc:subfield[@code='a']"/>
743
<xsl:text> + </xsl:text>
744
<xsl:value-of select="marc:subfield[@code='e']"/>
745
</xsl:when>
746
<xsl:when test="(marc:subfield[@code='a'])">
747
<xsl:value-of select="marc:subfield[@code='a']"/>
748
</xsl:when>
749
<xsl:when test="(marc:subfield[@code='c'])">
750
<xsl:value-of select="marc:subfield[@code='c']"/>
751
</xsl:when>
752
<xsl:when test="(marc:subfield[@code='d'])">
753
<xsl:value-of select="marc:subfield[@code='d']"/>
754
</xsl:when>
755
<xsl:when test="(marc:subfield[@code='e'])">
756
<xsl:value-of select="marc:subfield[@code='e']"/>
757
</xsl:when>
758
</xsl:choose>
759
</li>
760
</xsl:for-each>
761
</xsl:template>
762
763
<!--Titre de serie autorité 461-->
764
<xsl:template name="tag_461">
765
<xsl:for-each select="marc:datafield[@tag=461]">
766
<li>
767
<strong>title of serie&nbsp;: </strong>
768
<xsl:call-template name="addClassRtl" />
769
<xsl:choose>
770
<xsl:when test="marc:subfield[@code='9']">
771
<xsl:element name="a"><xsl:attribute name="href">
772
/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/>
773
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
774
</xsl:when>
775
<xsl:otherwise>
776
<xsl:element name="a"><xsl:attribute name="href">
777
/cgi-bin/koha/catalogue/search.pl?idx=index-title-serie,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
778
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
779
</xsl:otherwise>
780
</xsl:choose>
781
<xsl:if test="marc:subfield[@code='e']"> :
782
<xsl:value-of select="marc:subfield[@code='e']"/>
783
</xsl:if>
784
<xsl:if test="marc:subfield[@code='f']"> /
785
<xsl:value-of select="marc:subfield[@code='f']"/>
786
</xsl:if>
787
<xsl:if test="marc:subfield[@code='d']"> ,
788
<xsl:value-of select="marc:subfield[@code='d']"/>
789
</xsl:if>
790
<xsl:if test="marc:subfield[@code='p']"> ,
791
<xsl:value-of select="marc:subfield[@code='p']"/>
792
</xsl:if>
793
<xsl:if test="marc:subfield[@code='v']">,
794
<xsl:value-of select="marc:subfield[@code='v']"/>
795
</xsl:if>
796
</li>
797
</xsl:for-each>
798
</xsl:template>
799
800
<!--Titre de serie non autorité 461-->
801
<xsl:template name="tag_461bis">
802
<xsl:for-each select="marc:datafield[@tag=461]">
803
<li>
804
<strong>In&nbsp;: </strong>
805
<xsl:call-template name="addClassRtl" />
806
<xsl:if test="marc:subfield[@code='a']">
807
<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> , </xsl:text>
808
</xsl:if>
809
<xsl:choose>
810
<xsl:when test="marc:subfield[@code='9']">
811
<xsl:element name="a"><xsl:attribute name="href">
812
/cgi-bin/koha/catalogue/search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
813
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
814
</xsl:when>
815
<xsl:otherwise>
816
<xsl:element name="a"><xsl:attribute name="href">
817
/cgi-bin/koha/catalogue/search.pl?idx=index-title-serie,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
818
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
819
</xsl:otherwise>
820
</xsl:choose>
821
<xsl:if test="marc:subfield[@code='e']"> :
822
<xsl:value-of select="marc:subfield[@code='e']"/>
823
</xsl:if>
824
<xsl:if test="marc:subfield[@code='f']"> /
825
<xsl:value-of select="marc:subfield[@code='f']"/>
826
</xsl:if>
827
<xsl:if test="marc:subfield[@code='d']"> ,
828
<xsl:value-of select="marc:subfield[@code='d']"/>
829
</xsl:if>
830
<xsl:if test="marc:subfield[@code='p']"> ,
831
<xsl:value-of select="marc:subfield[@code='p']"/>
832
</xsl:if>
833
<xsl:if test="marc:subfield[@code='v']">,
834
<xsl:value-of select="marc:subfield[@code='v']"/>
835
</xsl:if>
836
<xsl:if test="marc:subfield[@code='w']"> -
837
<xsl:value-of select="marc:subfield[@code='w']"/>
838
</xsl:if>
839
</li>
840
</xsl:for-each>
841
</xsl:template>
842
843
<!--Titre dépouillé 463-->
844
<xsl:template name="tag_463">
845
<xsl:for-each select="marc:datafield[@tag=463][1]">
846
<li>
847
<strong>Analytic title&nbsp;: </strong>
848
<xsl:call-template name="addClassRtl" />
849
<xsl:if test="marc:subfield[@code='a']">
850
<xsl:value-of select="marc:subfield[@code='a']"/>
851
</xsl:if>
852
<xsl:choose>
853
<xsl:when test="marc:subfield[@code='9']">
854
<xsl:element name="a"><xsl:attribute name="href">
855
/cgi-bin/koha/catalogue/search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
856
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
857
</xsl:when>
858
<xsl:otherwise>
859
<xsl:element name="a"><xsl:attribute name="href">
860
/cgi-bin/koha/catalogue/search.pl?idx=index-title-article,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
861
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
862
</xsl:otherwise>
863
</xsl:choose>
864
<xsl:if test="marc:subfield[@code='e']"> :
865
<xsl:value-of select="marc:subfield[@code='e']"/>
866
</xsl:if>
867
<xsl:if test="marc:subfield[@code='f']"> /
868
<xsl:value-of select="marc:subfield[@code='f']"/>
869
</xsl:if>
870
<xsl:if test="marc:subfield[@code='d']"> ,
871
<xsl:value-of select="marc:subfield[@code='d']"/>
872
</xsl:if>
873
<xsl:if test="marc:subfield[@code='p']"> ,
874
<xsl:value-of select="marc:subfield[@code='p']"/>
875
</xsl:if>
876
<xsl:if test="marc:subfield[@code='v']">,
877
<xsl:value-of select="marc:subfield[@code='v']"/>
878
</xsl:if>
879
<xsl:if test="marc:subfield[@code='w']"> -
880
<xsl:value-of select="marc:subfield[@code='w']"/>
881
</xsl:if>
882
</li>
883
</xsl:for-each>
884
</xsl:template>
885
886
<xsl:template name="tag_4xx">
887
<xsl:param name="tag" />
888
<xsl:param name="label" />
889
<xsl:if test="marc:datafield[@tag=$tag]">
890
<li>
891
<strong><xsl:value-of select="$label" /> : </strong>
892
<xsl:for-each select="marc:datafield[@tag=$tag]">
893
<span>
894
<xsl:call-template name="addClassRtl" />
895
<xsl:choose>
896
<xsl:when test="marc:subfield[@code='9']">
897
<xsl:element name="a"><xsl:attribute name="href">
898
/cgi-bin/koha/catalogue/search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
899
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
900
</xsl:when>
901
<xsl:when test="marc:subfield[@code='0']">
902
<xsl:element name="a"><xsl:attribute name="href">
903
/cgi-bin/koha/catalogue/search.pl?idx=kw,phr&amp;q=<xsl:value-of select="marc:subfield[@code='0']"/>
904
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
905
</xsl:when>
906
<xsl:otherwise>
907
<xsl:value-of select="marc:subfield[@code='t']"/>
908
</xsl:otherwise>
909
</xsl:choose>
910
<xsl:if test="marc:subfield[@code='c']"> : <xsl:value-of select="marc:subfield[@code='c']"/>
911
</xsl:if>
912
<xsl:if test="marc:subfield[@code='d']"> ; <xsl:value-of select="marc:subfield[@code='d']"/>
913
</xsl:if>
914
<xsl:if test="marc:subfield[@code='e'][1]"> - <xsl:value-of select="marc:subfield[@code='e'][1]"/>
915
</xsl:if>
916
<xsl:if test="marc:subfield[@code='f'][1]"> - <xsl:value-of select="marc:subfield[@code='f'][1]"/>
917
</xsl:if>
918
<xsl:if test="marc:subfield[@code='g'][1]"> - <xsl:value-of select="marc:subfield[@code='g'][1]"/>
919
</xsl:if>
920
<xsl:if test="marc:subfield[@code='h'][1]"> - <xsl:value-of select="marc:subfield[@code='h'][1]"/>
921
</xsl:if>
922
<xsl:if test="marc:subfield[@code='i'][1]"> - <xsl:value-of select="marc:subfield[@code='i'][1]"/>
923
</xsl:if>
924
<xsl:if test="marc:subfield[@code='l'][1]"> - <xsl:value-of select="marc:subfield[@code='l'][1]"/>
925
</xsl:if>
926
<xsl:if test="marc:subfield[@code='v'][1]"> , <xsl:value-of select="marc:subfield[@code='v'][1]"/>
927
</xsl:if>
928
<xsl:if test="marc:subfield[@code='x']">,
929
<xsl:element name="a">
930
<xsl:attribute name="href">
931
/cgi-bin/koha/catalogue/search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
932
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
933
</xsl:if>
934
<xsl:if test="marc:subfield[@code='y']">,
935
<xsl:element name="a">
936
<xsl:attribute name="href">
937
/cgi-bin/koha/catalogue/search.pl?idx=nb&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
938
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
939
</xsl:if>
940
</span>
941
<xsl:if test="not (position() = last())">
942
<xsl:text> ; </xsl:text>
943
</xsl:if>
944
</xsl:for-each>
945
</li>
946
</xsl:if>
947
</xsl:template>
948
949
950
<!--Public 995q-->
951
<xsl:template name="public">
952
<xsl:if test="marc:datafield[@tag=995]/marc:subfield[@code='q']">
953
<li>
954
<strong>Public&nbsp;: </strong>
955
<xsl:for-each select="marc:datafield[@tag=995]/marc:subfield[@code='q']">
956
<xsl:if test="position() = 1">
957
<xsl:value-of select="." />
958
</xsl:if></xsl:for-each>
959
</li> 
960
</xsl:if>
961
</xsl:template>
962
963
964
<xsl:template name="subfieldSelect">
965
<xsl:param name="codes"/>
966
<xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
967
<xsl:param name="subdivCodes"/>
968
<xsl:param name="subdivDelimiter"/>
969
<xsl:variable name="str">
970
<xsl:for-each select="marc:subfield">
971
<xsl:if test="contains($codes, @code)">
972
<xsl:if test="contains($subdivCodes, @code)">
973
<xsl:value-of select="$subdivDelimiter"/>
974
</xsl:if>
975
<xsl:value-of select="text()"/><xsl:value-of select="$delimeter"/>
976
</xsl:if>
977
</xsl:for-each>
978
</xsl:variable>
979
<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
980
</xsl:template>
981
982
<xsl:template name="buildSpaces">
983
<xsl:param name="spaces"/>
984
<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
985
<xsl:if test="$spaces>0">
986
<xsl:value-of select="$char"/>
987
<xsl:call-template name="buildSpaces">
988
<xsl:with-param name="spaces" select="$spaces - 1"/>
989
<xsl:with-param name="char" select="$char"/>
990
</xsl:call-template>
991
</xsl:if>
992
</xsl:template>
993
994
<xsl:template name="buildBiblioDefaultViewURL">
995
<xsl:param name="IntranetBiblioDefaultView"/>
996
<xsl:choose>
997
<xsl:when test="$IntranetBiblioDefaultView='normal'">
998
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
999
</xsl:when>
1000
<xsl:when test="$IntranetBiblioDefaultView='isbd'">
1001
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
1002
</xsl:when>
1003
<xsl:when test="$IntranetBiblioDefaultView='labeled_marc'">
1004
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
1005
</xsl:when>
1006
<xsl:when test="$IntranetBiblioDefaultView='marc'">
1007
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
1008
</xsl:when>
1009
<xsl:otherwise>
1010
<xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
1011
</xsl:otherwise>
1012
</xsl:choose>
1013
</xsl:template>
1014
1015
<xsl:template name="chopSpecialCharacters">
1016
<xsl:param name="title" />
1017
<xsl:variable name="ntitle"
1018
select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
1019
<xsl:value-of select="$ntitle" />
1020
</xsl:template>
1021
1022
<xsl:template name="chopPunctuation">
1023
<xsl:param name="chopString"/>
1024
<xsl:variable name="length" select="string-length($chopString)"/>
1025
<xsl:choose>
1026
<xsl:when test="$length=0"/>
1027
<xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
1028
<xsl:call-template name="chopPunctuation">
1029
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
1030
</xsl:call-template>
1031
</xsl:when>
1032
<xsl:when test="not($chopString)"/>
1033
<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
1034
</xsl:choose>
1035
<xsl:text> </xsl:text>
1036
</xsl:template>
1037
1038
<xsl:template name="addClassRtl">
1039
<xsl:variable name="lang" select="marc:subfield[@code='7']" />
1040
<xsl:if test="$lang = 'ha' or $lang = 'Hebrew' or $lang = 'fa' or $lang = 'Arabe'">
1041
<xsl:attribute name="class">rtl</xsl:attribute>
1042
</xsl:if>
1043
</xsl:template>
1044
1045
1046
<xsl:template name="tag_title_collection">
1047
 <xsl:param name="tag" />
1048
 <xsl:param name="label" />
1049
 <xsl:param name="spanclass" />
1050
 <xsl:if test="marc:datafield[@tag=$tag]">
1051
 <strong><xsl:value-of select="$label"/>: </strong>
1052
 <xsl:for-each select="marc:datafield[@tag=$tag]">
1053
 <xsl:call-template name="addClassRtl" />
1054
 <xsl:for-each select="marc:subfield">
1055
 <xsl:choose>
1056
 <xsl:when test="@code='a'">
1057
 <xsl:variable name="title" select="."/>
1058
 <xsl:variable name="ntitle"
1059
 select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
1060
 <xsl:value-of select="$ntitle" />
1061
 </xsl:when>
1062
 <xsl:when test="@code='b'">
1063
 <xsl:text>[</xsl:text>
1064
 <xsl:value-of select="."/>
1065
 <xsl:text>]</xsl:text>
1066
 </xsl:when>
1067
 <xsl:when test="@code='d'">
1068
 <xsl:text> = </xsl:text>
1069
 <xsl:value-of select="."/>
1070
 </xsl:when>
1071
 <xsl:when test="@code='e'">
1072
 <xsl:text> : </xsl:text>
1073
 <xsl:value-of select="."/>
1074
 </xsl:when>
1075
 <xsl:when test="@code='f'">
1076
 <xsl:text> / </xsl:text>
1077
 <xsl:value-of select="."/>
1078
</xsl:when>
1079
 <xsl:when test="@code='g'">
1080
 <xsl:text> ; </xsl:text>
1081
 <xsl:value-of select="."/>
1082
 </xsl:when>
1083
 <xsl:otherwise>
1084
 <xsl:if test="position()>1">
1085
 <xsl:text>, </xsl:text>
1086
 </xsl:if>
1087
 <xsl:value-of select="."/>
1088
 </xsl:otherwise>
1089
 </xsl:choose>
1090
 </xsl:for-each>
1091
 <xsl:if test="not (position() = last())">
1092
 <xsl:text>. -</xsl:text>
1093
 </xsl:if>
1094
 </xsl:for-each>
1095
 </xsl:if>
1096
 </xsl:template>
1097
1098
1099
<xsl:template name="tag_title">
1100
<xsl:param name="tag" />
1101
<xsl:param name="label" />
1102
<xsl:if test="marc:datafield[@tag=$tag]">
1103
<li>
1104
<strong><xsl:value-of select="$label"/> : </strong>
1105
<xsl:for-each select="marc:datafield[@tag=$tag]">
1106
<xsl:value-of select="marc:subfield[@code='a']" />
1107
<xsl:if test="marc:subfield[@code='d']">
1108
<xsl:text> : </xsl:text>
1109
<xsl:value-of select="marc:subfield[@code='e']"/>
1110
</xsl:if>
1111
<xsl:if test="marc:subfield[@code='e']">
1112
<xsl:for-each select="marc:subfield[@code='e']">
1113
<xsl:text> </xsl:text>
1114
<xsl:value-of select="."/>
1115
</xsl:for-each>
1116
</xsl:if>
1117
<xsl:if test="marc:subfield[@code='f']">
1118
<xsl:text> / </xsl:text>
1119
<xsl:value-of select="marc:subfield[@code='f']"/>
1120
</xsl:if>
1121
<xsl:if test="marc:subfield[@code='h']">
1122
<xsl:text>, </xsl:text>
1123
<xsl:value-of select="marc:subfield[@code='h']"/>
1124
</xsl:if>
1125
<xsl:if test="marc:subfield[@code='i']">
1126
<xsl:text>, </xsl:text>
1127
<xsl:value-of select="marc:subfield[@code='i']"/>
1128
</xsl:if>
1129
<xsl:if test="marc:subfield[@code='v']">
1130
<xsl:text>, </xsl:text>
1131
<xsl:value-of select="marc:subfield[@code='v']"/>
1132
</xsl:if>
1133
<xsl:if test="marc:subfield[@code='x']">
1134
<xsl:text>, </xsl:text>
1135
<xsl:value-of select="marc:subfield[@code='x']"/>
1136
</xsl:if>
1137
<xsl:if test="marc:subfield[@code='z']">
1138
<xsl:text>, </xsl:text>
1139
<xsl:value-of select="marc:subfield[@code='z']"/>
1140
</xsl:if>
1141
</xsl:for-each>
1142
</li>
1143
</xsl:if>
1144
</xsl:template>
1145
1146
1147
<xsl:template name="tag_subject">
1148
<xsl:param name="tag" />
1149
<xsl:param name="label" />
1150
<xsl:if test="marc:datafield[@tag=$tag]">
1151
<li>
1152
<strong><xsl:value-of select="$label"/> : </strong>
1153
<xsl:for-each select="marc:datafield[@tag=$tag]">
1154
<a>
1155
<xsl:choose>
1156
<xsl:when test="marc:subfield[@code=9]">
1157
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
1158
</xsl:when>
1159
<xsl:otherwise>
1160
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
1161
</xsl:otherwise>
1162
</xsl:choose>
1163
<xsl:call-template name="chopPunctuation">
1164
<xsl:with-param name="chopString">
1165
<xsl:call-template name="subfieldSelect">
1166
<xsl:with-param name="codes">abcdjpvxyz</xsl:with-param>
1167
<xsl:with-param name="subdivCodes">jpxyz</xsl:with-param>
1168
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
1169
</xsl:call-template>
1170
</xsl:with-param>
1171
</xsl:call-template>
1172
</a>
1173
<xsl:if test="not (position()=last())">
1174
<xsl:text> | </xsl:text>
1175
</xsl:if>
1176
</xsl:for-each>
1177
</li>
1178
</xsl:if>
1179
</xsl:template>
1180
1181
<xsl:template name="tag_71x">
1182
 <xsl:param name="tag" />
1183
 <xsl:param name="label" />
1184
 <xsl:if test="marc:datafield[@tag=$tag]">
1185
 <li>
1186
 <strong><xsl:value-of select="$label" /> : </strong>
1187
 <xsl:for-each select="marc:datafield[@tag=$tag]">
1188
 <span>
1189
 <xsl:call-template name="addClassRtl" />
1190
 <a>
1191
 <xsl:choose>
1192
 <xsl:when test="marc:subfield[@code=9]">
1193
 <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
1194
 </xsl:when>
1195
 <xsl:otherwise>
1196
 <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
1197
 </xsl:otherwise>
1198
 </xsl:choose>
1199
 <xsl:if test="marc:subfield[@code='a']">
1200
 <xsl:value-of select="marc:subfield[@code='a']"/>
1201
 </xsl:if>
1202
 <xsl:if test="marc:subfield[@code='b']">
1203
 <xsl:text>. </xsl:text>
1204
 <xsl:value-of select="marc:subfield[@code='b']"/>
1205
 </xsl:if>
1206
 <xsl:if test="marc:subfield[@code='b'][2]">
1207
 <xsl:text>. </xsl:text>
1208
 <xsl:value-of select="marc:subfield[@code='b'][2]"/>
1209
 </xsl:if>
1210
 <xsl:if test="marc:subfield[@code='b'][3]">
1211
 <xsl:text>. </xsl:text>
1212
 <xsl:value-of select="marc:subfield[@code='b'][3]"/>
1213
 </xsl:if>
1214
 <xsl:if test="marc:subfield[@code='c']">
1215
 <xsl:text>. </xsl:text>
1216
 <xsl:value-of select="marc:subfield[@code='c']"/>
1217
 </xsl:if>
1218
<xsl:choose>
1219
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1220
 <xsl:text> ( </xsl:text>
1221
 <xsl:value-of select="marc:subfield[@code='d']"/>
1222
<xsl:text> ; </xsl:text>
1223
 <xsl:value-of select="marc:subfield[@code='f']"/>
1224
<xsl:text> ; </xsl:text>
1225
<xsl:value-of select="marc:subfield[@code='e']"/>
1226
 <xsl:text> ) </xsl:text>
1227
</xsl:when>
1228
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1229
 <xsl:text> ( </xsl:text>
1230
 <xsl:value-of select="marc:subfield[@code='d']"/>
1231
<xsl:text> ; </xsl:text>
1232
 <xsl:value-of select="marc:subfield[@code='f']"/>
1233
 <xsl:text> ) </xsl:text>
1234
</xsl:when>
1235
<xsl:when test="marc:subfield[@code='d']">
1236
 <xsl:text> ( </xsl:text>
1237
 <xsl:value-of select="marc:subfield[@code='d']"/>
1238
 <xsl:text> ) </xsl:text>
1239
</xsl:when>
1240
</xsl:choose>
1241
<xsl:if test="marc:subfield[@code='4']">
1242
 <xsl:text> ( </xsl:text>
1243
 <xsl:value-of select="marc:subfield[@code='4']"/>
1244
<xsl:text> ) </xsl:text>
1245
 </xsl:if>
1246
 </a>
1247
 </span>
1248
 <xsl:if test="not (position() = last())">
1249
 <xsl:text> ; </xsl:text>
1250
 </xsl:if>
1251
 </xsl:for-each>
1252
 </li>
1253
 </xsl:if>
1254
 </xsl:template>
1255
1256
1257
<xsl:template name="tag_7xx">
1258
<xsl:param name="tag" />
1259
<xsl:param name="label" />
1260
<xsl:if test="marc:datafield[@tag=$tag]">
1261
<li>
1262
<strong><xsl:value-of select="$label" /> : </strong>
1263
<xsl:for-each select="marc:datafield[@tag=$tag]">
1264
<span>
1265
<xsl:call-template name="addClassRtl" />
1266
<a>
1267
<xsl:choose>
1268
<xsl:when test="marc:subfield[@code=9]">
1269
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
1270
</xsl:when>
1271
<xsl:otherwise>
1272
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
1273
</xsl:otherwise>
1274
</xsl:choose>
1275
<xsl:if test="marc:subfield[@code='a']">
1276
<xsl:value-of select="marc:subfield[@code='a']"/>
1277
</xsl:if>
1278
<xsl:if test="marc:subfield[@code='b']">
1279
<xsl:text>, </xsl:text>
1280
<xsl:value-of select="marc:subfield[@code='b']"/>
1281
</xsl:if>
1282
<xsl:if test="marc:subfield[@code='c']">
1283
<xsl:text>, </xsl:text>
1284
<xsl:value-of select="marc:subfield[@code='c']"/>
1285
</xsl:if>
1286
<xsl:if test="marc:subfield[@code='d']">
1287
<xsl:text> </xsl:text>
1288
<xsl:value-of select="marc:subfield[@code='d']"/>
1289
</xsl:if>
1290
<xsl:if test="marc:subfield[@code='f']">
1291
<span dir="ltr">
1292
<xsl:text> (</xsl:text>
1293
<xsl:value-of select="marc:subfield[@code='f']"/>
1294
<xsl:text>)</xsl:text>
1295
</span>
1296
</xsl:if>
1297
<xsl:if test="marc:subfield[@code='g']">
1298
<xsl:text> </xsl:text>
1299
<xsl:value-of select="marc:subfield[@code='g']"/>
1300
</xsl:if>
1301
<xsl:if test="marc:subfield[@code='p']">
1302
<xsl:text> </xsl:text>
1303
<xsl:value-of select="marc:subfield[@code='p']"/>
1304
</xsl:if>
1305
<xsl:if test="marc:subfield[@code='4']">
1306
<xsl:text> ( </xsl:text>
1307
<xsl:value-of select="marc:subfield[@code='4']"/>
1308
<xsl:text> ) </xsl:text>
1309
</xsl:if>
1310
</a>
1311
</span>
1312
<xsl:if test="not (position() = last())">
1313
<xsl:text> ; </xsl:text>
1314
</xsl:if>
1315
</xsl:for-each>
1316
</li>
1317
</xsl:if>
1318
</xsl:template>
1319
334
1320
335
</xsl:stylesheet>
1321
</xsl:stylesheet>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl (-617 / +2306 lines)
Lines 1-637 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
1
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
2
5
<xsl:stylesheet version="1.0"
3
<xsl:stylesheet version="1.0"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
4
  xmlns:marc="http://www.loc.gov/MARC21/slim"
5
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  xmlns:str="http://exslt.org/strings"
7
  exclude-result-prefixes="marc items">
9
  exclude-result-prefixes="marc str">
10
8
11
<xsl:import href="UNIMARCslimUtils.xsl"/>
9
<xsl:import href="UNIMARCslimUtils.xsl"/>
12
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
10
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
13
<xsl:template match="/">
11
<xsl:template match="/">
14
  <xsl:apply-templates/>
12
<xsl:apply-templates/>
15
</xsl:template>
13
</xsl:template>
16
14
17
<xsl:template match="marc:record">
15
<xsl:template match="marc:record">
18
  <xsl:variable name="leader" select="marc:leader"/>
16
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
19
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
17
<xsl:variable name="leader" select="marc:leader"/>
20
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
18
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
21
  <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
19
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
22
  <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
20
<xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
23
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
21
24
  <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
22
<xsl:if test="marc:datafield[@tag=200]">
25
23
<xsl:for-each select="marc:datafield[@tag=200]">
26
  <xsl:if test="marc:datafield[@tag=200]">
24
<h1>
27
    <xsl:for-each select="marc:datafield[@tag=200]">
25
<xsl:call-template name="addClassRtl" />
28
      <h1 class="title">
26
<xsl:variable name="title" select="marc:subfield[@code='a']"/>
29
        <xsl:call-template name="addClassRtl" />
27
<xsl:variable name="ntitle"
30
        <xsl:for-each select="marc:subfield">
28
select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
31
          <xsl:choose>
29
<!--<xsl:value-of select="$ntitle" />-->
32
            <xsl:when test="@code='a'">
30
<xsl:value-of select="marc:subfield[@code='a'][1]" />
33
              <xsl:variable name="title" select="."/>
31
<xsl:if test="marc:subfield[@code='e'][1]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][1]" /></xsl:if>
34
              <xsl:variable name="ntitle"
32
<xsl:if test="marc:subfield[@code='c'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][1]" /></xsl:if>
35
               select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
33
<xsl:if test="marc:subfield[@code='d'][1]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][1]" /></xsl:if>
36
              <xsl:value-of select="$ntitle" />
34
<xsl:if test="marc:subfield[@code='v'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='v'][1]" /></xsl:if>
37
            </xsl:when>
35
<xsl:if test="marc:subfield[@code='h'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][1]" /></xsl:if>
38
            <xsl:when test="@code='b'">
36
<xsl:if test="marc:subfield[@code='i'][1]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][1]" /></xsl:if>
39
              <xsl:text> [</xsl:text>
37
<xsl:if test="marc:subfield[@code='e'][2]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][2]" /></xsl:if>
40
              <xsl:value-of select="."/>
38
<xsl:if test="marc:subfield[@code='c'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][1]" /></xsl:if>
41
              <xsl:text>]</xsl:text>
39
<xsl:if test="marc:subfield[@code='d'][2]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][2]" /></xsl:if>
42
            </xsl:when>
40
<xsl:if test="marc:subfield[@code='h'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][2]" /></xsl:if>
43
            <xsl:when test="@code='d'">
41
<xsl:if test="marc:subfield[@code='i'][2]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][2]" /></xsl:if>
44
              <xsl:text> = </xsl:text>
42
<xsl:if test="marc:subfield[@code='e'][3]"><xsl:text> : </xsl:text><xsl:value-of select="marc:subfield[@code='e'][3]" /></xsl:if>
45
              <xsl:value-of select="."/>
43
<xsl:if test="marc:subfield[@code='c'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='c'][3]" /></xsl:if>
46
            </xsl:when>
44
<xsl:if test="marc:subfield[@code='d'][3]"><xsl:text> = </xsl:text><xsl:value-of select="marc:subfield[@code='d'][3]" /></xsl:if>
47
            <xsl:when test="@code='e'">
45
<xsl:if test="marc:subfield[@code='h'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='h'][3]" /></xsl:if>
48
              <xsl:text> : </xsl:text>
46
<xsl:if test="marc:subfield[@code='i'][3]"><xsl:text> . </xsl:text><xsl:value-of select="marc:subfield[@code='i'][3]" /></xsl:if>
49
              <xsl:value-of select="."/>
47
<xsl:if test="marc:subfield[@code='a'][2]"><xsl:text>. </xsl:text><xsl:value-of select="marc:subfield[@code='a'][2]" /></xsl:if>
50
            </xsl:when>
48
<xsl:if test="marc:subfield[@code='a'][3]"><xsl:text>. </xsl:text><xsl:value-of select="marc:subfield[@code='a'][3]" /></xsl:if>
51
            <xsl:when test="@code='f'">
49
<xsl:if test="marc:subfield[@code='b']"><xsl:text> [</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>] </xsl:text>
52
              <xsl:text> / </xsl:text>
50
</xsl:if>
53
              <xsl:value-of select="."/>
51
<xsl:if test="marc:subfield[@code='f']">
54
            </xsl:when>
52
<xsl:text> / </xsl:text>
55
            <xsl:when test="@code='g'">
53
<xsl:if test="marc:subfield[@code='f'][1]"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='f'][1]" /></xsl:if>
56
              <xsl:text> ; </xsl:text>
54
<xsl:if test="marc:subfield[@code='f'][2]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='f'][2]" /></xsl:if>
57
              <xsl:value-of select="."/>
55
<xsl:if test="marc:subfield[@code='f'][3]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='f'][3]" /></xsl:if>
58
            </xsl:when>
56
</xsl:if>
59
            <xsl:otherwise>
57
<xsl:if test="marc:subfield[@code='g'][1]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][1]" /></xsl:if>
60
              <xsl:text>, </xsl:text>
58
<xsl:if test="marc:subfield[@code='g'][2]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][2]" /></xsl:if>
61
              <xsl:value-of select="."/>
59
<xsl:if test="marc:subfield[@code='g'][3]"><xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='g'][3]" /></xsl:if>
62
            </xsl:otherwise>
60
</h1>
63
          </xsl:choose>
61
</xsl:for-each>
64
        </xsl:for-each>
62
</xsl:if>
65
      </h1>
63
66
    </xsl:for-each>
64
67
  </xsl:if>
65
<xsl:call-template name="tag_4xx">
68
66
<xsl:with-param name="tag">412</xsl:with-param>
69
  <xsl:call-template name="tag_title">
67
<xsl:with-param name="label">Is an excerpt or taken apart from</xsl:with-param>
70
    <xsl:with-param name="tag">454</xsl:with-param>
68
</xsl:call-template>
71
    <xsl:with-param name="label">Translation of</xsl:with-param>
69
72
    <xsl:with-param name="spanclass">original_title</xsl:with-param>
70
<xsl:for-each select="marc:datafield[@tag=413]">
73
  </xsl:call-template>
71
<span class="results_summary">
74
72
<span class="label">A for extract or pulled apart&nbsp;: </span>
75
  <xsl:call-template name="tag_title">
73
<xsl:choose>
76
    <xsl:with-param name="tag">461</xsl:with-param>
74
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='o']) and  (marc:subfield[@code='f']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
77
    <xsl:with-param name="label">Set Level</xsl:with-param>
75
 <xsl:value-of select="marc:subfield[@code='t']"/>
78
    <xsl:with-param name="spanclass">set_level</xsl:with-param>
76
<xsl:text> : </xsl:text>
79
  </xsl:call-template>
77
 <xsl:value-of select="marc:subfield[@code='o']"/>
80
78
<xsl:text> / </xsl:text>
81
  <xsl:call-template name="tag_title">
79
<xsl:value-of select="marc:subfield[@code='f']"/>
82
    <xsl:with-param name="tag">464</xsl:with-param>
80
 <xsl:text>. - </xsl:text>
83
    <xsl:with-param name="label">Piece-Analytic Level</xsl:with-param>
81
<xsl:value-of select="marc:subfield[@code='c']"/>
84
    <xsl:with-param name="spanclass">piece_analytic_level</xsl:with-param>
82
 <xsl:text> : </xsl:text>
85
  </xsl:call-template>
83
<xsl:value-of select="marc:subfield[@code='n']"/>
86
84
 <xsl:text>, </xsl:text>
87
  <xsl:call-template name="tag_7xx">
85
<xsl:value-of select="marc:subfield[@code='d']"/>
88
    <xsl:with-param name="tag">700</xsl:with-param>
86
</xsl:when>
89
    <xsl:with-param name="label">Main Author</xsl:with-param>
87
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='o']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
90
    <xsl:with-param name="spanclass">main_author</xsl:with-param>
88
 <xsl:value-of select="marc:subfield[@code='t']"/>
91
  </xsl:call-template>
89
<xsl:text> : </xsl:text>
92
90
 <xsl:value-of select="marc:subfield[@code='o']"/>
93
  <xsl:call-template name="tag_7xx">
91
 <xsl:text>. - </xsl:text>
94
    <xsl:with-param name="tag">710</xsl:with-param>
92
<xsl:value-of select="marc:subfield[@code='c']"/>
95
    <xsl:with-param name="label">Corporate Author (Main)</xsl:with-param>
93
 <xsl:text> : </xsl:text>
96
    <xsl:with-param name="spanclass">corporate_main_author</xsl:with-param>
94
<xsl:value-of select="marc:subfield[@code='n']"/>
97
  </xsl:call-template>
95
 <xsl:text>, </xsl:text>
98
96
<xsl:value-of select="marc:subfield[@code='d']"/>
99
  <xsl:call-template name="tag_7xx">
97
</xsl:when>
100
    <xsl:with-param name="tag">701</xsl:with-param>
98
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='f']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
101
    <xsl:with-param name="label">Coauthor</xsl:with-param>
99
 <xsl:value-of select="marc:subfield[@code='t']"/>
102
    <xsl:with-param name="spanclass">coauthor</xsl:with-param>
100
<xsl:text> / </xsl:text>
103
  </xsl:call-template>
101
 <xsl:value-of select="marc:subfield[@code='f']"/>
104
102
 <xsl:text>. - </xsl:text>
105
  <xsl:call-template name="tag_7xx">
103
<xsl:value-of select="marc:subfield[@code='c']"/>
106
    <xsl:with-param name="tag">702</xsl:with-param>
104
 <xsl:text> : </xsl:text>
107
    <xsl:with-param name="label">Secondary Author</xsl:with-param>
105
<xsl:value-of select="marc:subfield[@code='n']"/>
108
    <xsl:with-param name="spanclass">secondary_author</xsl:with-param>
106
 <xsl:text>, </xsl:text>
109
  </xsl:call-template>
107
<xsl:value-of select="marc:subfield[@code='d']"/>
110
108
</xsl:when>
111
  <xsl:call-template name="tag_7xx">
109
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='c']) and (marc:subfield[@code='n']) and (marc:subfield[@code='d'])">
112
    <xsl:with-param name="tag">711</xsl:with-param>
110
 <xsl:value-of select="marc:subfield[@code='t']"/>
113
    <xsl:with-param name="label">Corporate Author (Coauthor)</xsl:with-param>
111
 <xsl:text>. - </xsl:text>
114
    <xsl:with-param name="spanclass">corporate_coauthor</xsl:with-param>
112
<xsl:value-of select="marc:subfield[@code='c']"/>
115
  </xsl:call-template>
113
 <xsl:text> : </xsl:text>
116
114
<xsl:value-of select="marc:subfield[@code='n']"/>
117
  <xsl:call-template name="tag_7xx">
115
 <xsl:text>, </xsl:text>
118
    <xsl:with-param name="tag">712</xsl:with-param>
116
<xsl:value-of select="marc:subfield[@code='d']"/>
119
    <xsl:with-param name="label">Corporate Author (Secondary)</xsl:with-param>
117
</xsl:when>
120
    <xsl:with-param name="spanclass">corporate_secondary_author</xsl:with-param>
118
<xsl:when test="marc:subfield[@code='t']">
121
  </xsl:call-template>
119
 <xsl:value-of select="marc:subfield[@code='t']"/>
122
120
</xsl:when>
123
  <xsl:call-template name="tag_title">
121
</xsl:choose>
124
    <xsl:with-param name="tag">500</xsl:with-param>
122
 </span>
125
    <xsl:with-param name="label">Uniform Title</xsl:with-param>
123
 </xsl:for-each>
126
    <xsl:with-param name="spanclass">uniform_title</xsl:with-param>
124
127
  </xsl:call-template>
125
<xsl:call-template name="tag_4xx">
128
126
<xsl:with-param name="tag">421</xsl:with-param>
129
  <xsl:call-template name="tag_title">
127
<xsl:with-param name="label">Has for supplement</xsl:with-param>
130
    <xsl:with-param name="tag">503</xsl:with-param>
128
</xsl:call-template>
131
    <xsl:with-param name="label">Uniform Conventional Heading</xsl:with-param>
129
132
    <xsl:with-param name="spanclass">uniform_conventional_heading</xsl:with-param>
130
<xsl:call-template name="tag_4xx">
133
  </xsl:call-template>
131
<xsl:with-param name="tag">422</xsl:with-param>
134
132
<xsl:with-param name="label">Is a supplement of</xsl:with-param>
135
  <xsl:if test="marc:datafield[@tag=101]">
133
</xsl:call-template>
136
    <span class="results_summary language">
134
137
      <span class="label">Language: </span>
135
<xsl:call-template name="tag_4xx">
138
      <xsl:for-each select="marc:datafield[@tag=101]">
136
<xsl:with-param name="tag">423</xsl:with-param>
139
        <xsl:for-each select="marc:subfield">
137
<xsl:with-param name="label">Is published with</xsl:with-param>
140
          <xsl:choose>
138
</xsl:call-template>
141
            <xsl:when test="@code='b'">of intermediate text, </xsl:when>
139
142
            <xsl:when test="@code='c'">of original work, </xsl:when>
140
<xsl:call-template name="tag_4xx">
143
            <xsl:when test="@code='d'">of summary, </xsl:when>
141
<xsl:with-param name="tag">424</xsl:with-param>
144
            <xsl:when test="@code='e'">of contents page, </xsl:when>
142
<xsl:with-param name="label">Is updated by</xsl:with-param>
145
            <xsl:when test="@code='f'">of title page, </xsl:when>
143
</xsl:call-template>
146
            <xsl:when test="@code='g'">of title proper, </xsl:when>
144
147
            <xsl:when test="@code='h'">of libretto, </xsl:when>
145
<xsl:call-template name="tag_4xx">
148
            <xsl:when test="@code='i'">of accompanying material, </xsl:when>
146
<xsl:with-param name="tag">430</xsl:with-param>
149
            <xsl:when test="@code='j'">of subtitles, </xsl:when>
147
<xsl:with-param name="label">Following</xsl:with-param>
150
          </xsl:choose>
148
</xsl:call-template>
151
          <xsl:value-of select="text()"/>
149
152
          <xsl:choose>
150
<xsl:call-template name="tag_4xx">
153
            <xsl:when test="position()=last()">
151
<xsl:with-param name="tag">431</xsl:with-param>
154
              <xsl:text>.</xsl:text>
152
<xsl:with-param name="label">Succeeds after division of</xsl:with-param>
155
            </xsl:when>
153
</xsl:call-template>
156
            <xsl:otherwise>
154
157
              <xsl:text> ; </xsl:text>
155
<xsl:call-template name="tag_4xx">
158
            </xsl:otherwise>
156
<xsl:with-param name="tag">432</xsl:with-param>
159
          </xsl:choose>
157
<xsl:with-param name="label">Replace</xsl:with-param>
160
        </xsl:for-each>
158
</xsl:call-template>
161
      </xsl:for-each>
159
162
    </span>
160
<xsl:call-template name="tag_4xx">
163
  </xsl:if>
161
<xsl:with-param name="tag">433</xsl:with-param>
164
162
<xsl:with-param name="label">Replace partially</xsl:with-param>
165
  <xsl:if test="marc:datafield[@tag=102]">
163
</xsl:call-template>
166
	  <span class="results_summary country">
164
167
      <span class="label">Country: </span>
165
<xsl:call-template name="tag_4xx">
168
      <xsl:for-each select="marc:datafield[@tag=102]">
166
<xsl:with-param name="tag">434</xsl:with-param>
169
        <xsl:for-each select="marc:subfield">
167
<xsl:with-param name="label">Absorbed</xsl:with-param>
170
          <xsl:value-of select="text()"/>
168
</xsl:call-template>
171
          <xsl:choose>
169
172
            <xsl:when test="position()=last()">
170
<xsl:call-template name="tag_4xx">
173
              <xsl:text>.</xsl:text>
171
<xsl:with-param name="tag">435</xsl:with-param>
174
            </xsl:when>
172
<xsl:with-param name="label">Absorbed partially</xsl:with-param>
175
              <xsl:otherwise><xsl:text>, </xsl:text>
173
</xsl:call-template>
176
            </xsl:otherwise>
174
177
          </xsl:choose>
175
<xsl:call-template name="tag_4xx">
178
        </xsl:for-each>
176
<xsl:with-param name="tag">436</xsl:with-param>
179
      </xsl:for-each>
177
<xsl:with-param name="label">Merge of</xsl:with-param>
180
    </span>
178
</xsl:call-template>
181
  </xsl:if>
179
182
180
<xsl:call-template name="tag_4xx">
183
  <xsl:call-template name="tag_comma">
181
<xsl:with-param name="tag">437</xsl:with-param>
184
    <xsl:with-param name="tag">205</xsl:with-param>
182
<xsl:with-param name="label">Partial sequence of</xsl:with-param>
185
    <xsl:with-param name="label">Edition Statement</xsl:with-param>
183
</xsl:call-template>
186
    <xsl:with-param name="spanclass">edition</xsl:with-param>
184
187
  </xsl:call-template>
185
<xsl:call-template name="tag_4xx">
188
186
<xsl:with-param name="tag">440</xsl:with-param>
189
  <xsl:call-template name="tag_210" />
187
<xsl:with-param name="label">Becomes</xsl:with-param>
190
188
</xsl:call-template>
191
  <xsl:call-template name="tag_215" />
189
192
190
<xsl:call-template name="tag_4xx">
193
  <!-- Build ISBN -->
191
<xsl:with-param name="tag">441</xsl:with-param>
194
  <xsl:if test="marc:datafield[@tag=010]/marc:subfield[@code='a']">
192
<xsl:with-param name="label">Become partially</xsl:with-param>
195
    <span class="results_summary isbn"><span class="label">ISBN: </span>
193
</xsl:call-template>
196
      <xsl:for-each select="marc:datafield[@tag=010]/marc:subfield[@code='a']">
194
197
        <span property="isbn">
195
<xsl:call-template name="tag_4xx">
198
          <xsl:value-of select="."/>
196
<xsl:with-param name="tag">442</xsl:with-param>
199
          <xsl:choose>
197
<xsl:with-param name="label">Replace by</xsl:with-param>
200
            <xsl:when test="position()=last()">
198
</xsl:call-template>
201
              <xsl:text>.</xsl:text>
199
202
            </xsl:when>
200
<xsl:call-template name="tag_4xx">
203
            <xsl:otherwise>
201
<xsl:with-param name="tag">443</xsl:with-param>
204
              <xsl:text>; </xsl:text>
202
<xsl:with-param name="label">Replace partially by</xsl:with-param>
205
            </xsl:otherwise>
203
</xsl:call-template>
206
          </xsl:choose>
204
207
        </span>
205
<xsl:call-template name="tag_4xx">
208
      </xsl:for-each>
206
<xsl:with-param name="tag">444</xsl:with-param>
209
    </span>
207
<xsl:with-param name="label">Absorbed by</xsl:with-param>
210
  </xsl:if>
208
</xsl:call-template>
211
209
212
  <!-- Build ISSN -->
210
<xsl:call-template name="tag_4xx">
213
  <xsl:if test="marc:datafield[@tag=011]/marc:subfield[@code='a']">
211
<xsl:with-param name="tag">447</xsl:with-param>
214
    <span class="results_summary issn"><span class="label">ISSN: </span>
212
<xsl:with-param name="label">Merged with...to train</xsl:with-param>
215
      <xsl:for-each select="marc:datafield[@tag=011]/marc:subfield[@code='a']">
213
</xsl:call-template>
216
        <span property="issn">
214
217
          <xsl:value-of select="."/>
215
<xsl:call-template name="tag_4xx">
218
          <xsl:choose>
216
<xsl:with-param name="tag">451</xsl:with-param>
219
            <xsl:when test="position()=last()">
217
<xsl:with-param name="label">Other edition, same support</xsl:with-param>
220
              <xsl:text>.</xsl:text>
218
</xsl:call-template>
221
            </xsl:when>
219
222
            <xsl:otherwise>
220
<xsl:call-template name="tag_4xx">
223
              <xsl:text>; </xsl:text>
221
<xsl:with-param name="tag">452</xsl:with-param>
224
            </xsl:otherwise>
222
<xsl:with-param name="label">Other edition, different support</xsl:with-param>
225
          </xsl:choose>
223
</xsl:call-template>
226
        </span>
224
227
      </xsl:for-each>
225
<xsl:call-template name="tag_4xx">
228
    </span>
226
<xsl:with-param name="tag">453</xsl:with-param>
229
  </xsl:if>
227
<xsl:with-param name="label">Translated under the title</xsl:with-param>
230
228
</xsl:call-template>
231
  <xsl:call-template name="tag_title">
229
232
    <xsl:with-param name="tag">225</xsl:with-param>
230
<xsl:call-template name="tag_4xx">
233
    <xsl:with-param name="label">Series</xsl:with-param>
231
<xsl:with-param name="tag">454</xsl:with-param>
234
    <xsl:with-param name="spanclass">series</xsl:with-param>
232
<xsl:with-param name="label">Is a translation of</xsl:with-param>
235
  </xsl:call-template>
233
</xsl:call-template>
236
234
237
  <xsl:if test="marc:datafield[@tag=676]">
235
<xsl:call-template name="tag_4xx">
238
    <span class="results_summary dewey">
236
<xsl:with-param name="tag">455</xsl:with-param>
239
    <span class="label">Dewey: </span>
237
<xsl:with-param name="label">Is a reproduction of</xsl:with-param>
240
      <xsl:for-each select="marc:datafield[@tag=676]">
238
</xsl:call-template>
241
        <xsl:value-of select="marc:subfield[@code='a']"/>
239
242
        <xsl:if test="marc:subfield[@code='v']">
240
<xsl:call-template name="tag_4xx">
243
          <xsl:text>, </xsl:text>
241
<xsl:with-param name="tag">456</xsl:with-param>
244
          <xsl:value-of select="marc:subfield[@code='v']"/>
242
<xsl:with-param name="label">Is reproducted as</xsl:with-param>
245
        </xsl:if>
243
</xsl:call-template>
246
        <xsl:if test="marc:subfield[@code='z']">
244
247
          <xsl:text>, </xsl:text>
245
<xsl:call-template name="tag_4xx">
248
          <xsl:value-of select="marc:subfield[@code='z']"/>
246
<xsl:with-param name="tag">464</xsl:with-param>
249
        </xsl:if>
247
<xsl:with-param name="label">Component</xsl:with-param>
250
        <xsl:if test="not (position()=last())">
248
</xsl:call-template>
251
          <xsl:text> ; </xsl:text>
249
252
        </xsl:if>
250
<xsl:call-template name="tag_4xx">
253
      </xsl:for-each>
251
<xsl:with-param name="tag">470</xsl:with-param>
254
    </span>
252
<xsl:with-param name="label">Analysed document</xsl:with-param>
255
  </xsl:if>
253
</xsl:call-template>
256
254
257
  <xsl:if test="marc:datafield[@tag=686]">
255
<xsl:call-template name="tag_4xx">
258
    <span class="results_summary classification">
256
<xsl:with-param name="tag">481</xsl:with-param>
259
    <span class="label">Classification: </span>
257
<xsl:with-param name="label">Is also linked in this volume</xsl:with-param>
260
      <xsl:for-each select="marc:datafield[@tag=686]">
258
</xsl:call-template>
261
        <xsl:value-of select="marc:subfield[@code='a']"/>
259
262
        <xsl:if test="marc:subfield[@code='b']">
260
<xsl:call-template name="tag_4xx">
263
          <xsl:text>, </xsl:text>
261
<xsl:with-param name="tag">482</xsl:with-param>
264
          <xsl:value-of select="marc:subfield[@code='b']"/>
262
<xsl:with-param name="label">Linked as a result of</xsl:with-param>
265
        </xsl:if>
263
</xsl:call-template>
266
        <xsl:if test="marc:subfield[@code='c']">
264
267
          <xsl:text>, </xsl:text>
265
<xsl:call-template name="tag_4xx">
268
          <xsl:value-of select="marc:subfield[@code='c']"/>
266
<xsl:with-param name="tag">488</xsl:with-param>
269
        </xsl:if>
267
<xsl:with-param name="label">Other type of relation</xsl:with-param>
270
        <xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
268
</xsl:call-template>
271
      </xsl:for-each>
269
272
    </span>
270
273
  </xsl:if>
271
<!--Titre de serie autorite 461-->
274
272
<!--<xsl:call-template name="tag_461" />-->
275
  <xsl:if test="marc:datafield[@tag=327]">
273
276
    <span class="results_summary contents">
274
<!---Titre de serie non autorite 461-->
277
      <span class="label">Contents note: </span>
275
<xsl:call-template name="tag_461bis" />
278
      <xsl:for-each select="marc:datafield[@tag=327]">
276
279
        <xsl:call-template name="chopPunctuation">
277
<!--Titre dépouillé 463-->
280
          <xsl:with-param name="chopString">
278
<xsl:call-template name="tag_463" />
281
            <xsl:call-template name="subfieldSelect">
279
282
                <xsl:with-param name="codes">abcdjpvxyz</xsl:with-param>
280
283
                <xsl:with-param name="subdivCodes">jpxyz</xsl:with-param>
281
<xsl:if test="marc:datafield[@tag=531]"> 
284
                <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
282
<span class="results_summary">
285
            </xsl:call-template>
283
<span class="label">Short title&nbsp;: </span>
286
          </xsl:with-param>
284
<xsl:for-each select="marc:datafield[@tag=531]">
287
        </xsl:call-template>
285
<xsl:for-each select="marc:subfield">
288
      </xsl:for-each>
286
<xsl:value-of select="text()"/>
289
    </span>
287
<xsl:choose>
290
  </xsl:if>
288
<xsl:when test="position()=last()">
291
289
<xsl:text>.</xsl:text>
292
  <xsl:if test="marc:datafield[@tag=330]">
290
</xsl:when>
293
    <span class="results_summary abstract">
291
<xsl:otherwise><xsl:text>, </xsl:text>
294
      <span class="label">Abstract: </span>
292
</xsl:otherwise>
295
      <xsl:for-each select="marc:datafield[@tag=330]">
293
</xsl:choose>
296
        <xsl:value-of select="marc:subfield[@code='a']"/>
294
</xsl:for-each>
297
        <xsl:choose>
295
</xsl:for-each>
298
          <xsl:when test="position()=last()">
296
</span>
299
            <xsl:text>.</xsl:text>
297
</xsl:if>
300
          </xsl:when>
298
301
          <xsl:otherwise>
299
<xsl:if test="marc:datafield[@tag=540]">
302
            <xsl:text>; </xsl:text>
300
<span class="results_summary">
303
          </xsl:otherwise>
301
<span class="label">Title added by the cataloguer&nbsp;: </span>
304
        </xsl:choose>
302
<xsl:for-each select="marc:datafield[@tag=540]">
305
      </xsl:for-each>
303
<xsl:for-each select="marc:subfield">
306
    </span>
304
<xsl:value-of select="text()"/>
307
  </xsl:if>
305
<xsl:choose>
308
306
<xsl:when test="position()=last()">
309
  <xsl:if test="marc:datafield[@tag=317]">
307
<xsl:text>.</xsl:text>
310
    <span class="results_summary provenance">
308
</xsl:when>
311
      <span class="label">Provenance note: </span>
309
<xsl:otherwise><xsl:text>, </xsl:text>
312
      <xsl:for-each select="marc:datafield[@tag=317]">
310
</xsl:otherwise>
313
          <xsl:value-of select="marc:subfield[@code='a']"/>
311
</xsl:choose>
314
      </xsl:for-each>
312
</xsl:for-each>
315
    </span>
313
</xsl:for-each>
316
  </xsl:if>
314
</span>
317
315
</xsl:if>
318
  <xsl:if test="marc:datafield[@tag=320]">
316
319
    <span class="results_summary bibliography">
317
<xsl:if test="marc:datafield[@tag=541]">
320
      <span class="label">Bibliography: </span>
318
<span class="results_summary">
321
      <xsl:for-each select="marc:datafield[@tag=320]">
319
<span class="label">Title translated by the cataloger&nbsp;: </span>
322
        <xsl:value-of select="marc:subfield[@code='a']"/>
320
<xsl:for-each select="marc:datafield[@tag=541]">
323
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
321
<xsl:for-each select="marc:subfield">
324
      </xsl:for-each>
322
<xsl:value-of select="text()"/>
325
    </span>
323
<xsl:choose>
326
  </xsl:if>
324
<xsl:when test="position()=last()">
327
325
<xsl:text>.</xsl:text>
328
  <xsl:if test="marc:datafield[@tag=328]">
326
</xsl:when>
329
    <span class="results_summary thesis">
327
<xsl:otherwise><xsl:text>, </xsl:text>
330
      <span class="label">Thesis: </span>
328
</xsl:otherwise>
331
      <xsl:for-each select="marc:datafield[@tag=328]">
329
</xsl:choose>
332
        <xsl:value-of select="marc:subfield[@code='a']"/>
330
</xsl:for-each>
333
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
331
</xsl:for-each>
334
      </xsl:for-each>
332
</span>
335
    </span>
333
</xsl:if>
336
  </xsl:if>
334
337
335
338
  <xsl:if test="marc:datafield[@tag=333]">
336
<xsl:call-template name="tag_7xx">
339
    <span class="results_summary audience">
337
<xsl:with-param name="tag">700</xsl:with-param>
340
      <span class="label">Audience: </span>
338
<xsl:with-param name="label">Author(s)</xsl:with-param>
341
      <xsl:for-each select="marc:datafield[@tag=333]">
339
</xsl:call-template>
342
        <xsl:value-of select="marc:subfield[@code='a']"/>
340
343
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
341
<xsl:call-template name="tag_71x">
344
      </xsl:for-each>
342
<xsl:with-param name="tag">710</xsl:with-param>
345
    </span>
343
<xsl:with-param name="label">Author(s)</xsl:with-param>
346
  </xsl:if>
344
</xsl:call-template>
347
345
348
  <xsl:if test="marc:datafield[@tag=955]">
346
<xsl:call-template name="tag_7xx">
349
    <span class="results_summary sudoc_serial_history">
347
<xsl:with-param name="tag">701</xsl:with-param>
350
      <span class="label">SUDOC serial history: </span>
348
<xsl:with-param name="label">Author(s)</xsl:with-param>
351
      <xsl:for-each select="marc:datafield[@tag=955]">
349
</xsl:call-template>
352
        <xsl:value-of select="marc:subfield[@code='9']"/>:
350
353
        <xsl:value-of select="marc:subfield[@code='r']"/>
351
<xsl:call-template name="tag_7xx">
354
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
352
<xsl:with-param name="tag">702</xsl:with-param>
355
      </xsl:for-each>
353
<xsl:with-param name="label">Author(s)</xsl:with-param>
356
    </span>
354
</xsl:call-template>
357
  </xsl:if>
355
 
358
356
<xsl:call-template name="tag_7xx">
359
  <xsl:call-template name="tag_subject">
357
<xsl:with-param name="tag">703</xsl:with-param>
360
    <xsl:with-param name="tag">600</xsl:with-param>
358
<xsl:with-param name="label">Personnal name - provenance or ownership</xsl:with-param>
361
    <xsl:with-param name="label">Subject - Personal Name</xsl:with-param>
359
</xsl:call-template>
362
  </xsl:call-template>
360
363
361
<xsl:call-template name="tag_71x">
364
  <xsl:call-template name="tag_subject">
362
<xsl:with-param name="tag">711</xsl:with-param>
365
    <xsl:with-param name="tag">601</xsl:with-param>
363
<xsl:with-param name="label">Author(s)</xsl:with-param>
366
    <xsl:with-param name="label">Subject - Corporate Author</xsl:with-param>
364
</xsl:call-template>
367
  </xsl:call-template>
365
368
366
<xsl:call-template name="tag_71x">
369
  <xsl:call-template name="tag_subject">
367
<xsl:with-param name="tag">712</xsl:with-param>
370
    <xsl:with-param name="tag">602</xsl:with-param>
368
<xsl:with-param name="label">Author(s)</xsl:with-param>
371
    <xsl:with-param name="label">Subject - Family</xsl:with-param>
369
</xsl:call-template>
372
  </xsl:call-template>
370
 
373
371
<xsl:call-template name="tag_71x">
374
  <xsl:call-template name="tag_subject">
372
<xsl:with-param name="tag">713</xsl:with-param>
375
    <xsl:with-param name="tag">604</xsl:with-param>
373
<xsl:with-param name="label">Corporate body name - provenance or ownership</xsl:with-param>
376
    <xsl:with-param name="label">Subject - Author/Title</xsl:with-param>
374
</xsl:call-template>
377
  </xsl:call-template>
375
378
376
<xsl:call-template name="tag_7xx">
379
  <xsl:call-template name="tag_subject">
377
<xsl:with-param name="tag">720</xsl:with-param>
380
    <xsl:with-param name="tag">606</xsl:with-param>
378
<xsl:with-param name="label">Family name</xsl:with-param>
381
    <xsl:with-param name="label">Subject - Topical Name</xsl:with-param>
379
</xsl:call-template>
382
  </xsl:call-template>
380
383
381
<xsl:call-template name="tag_7xx">
384
  <xsl:call-template name="tag_subject">
382
<xsl:with-param name="tag">723</xsl:with-param>
385
    <xsl:with-param name="tag">607</xsl:with-param>
383
<xsl:with-param name="label">Family name - provenance or ownership</xsl:with-param>
386
    <xsl:with-param name="label">Subject - Geographical Name</xsl:with-param>
384
</xsl:call-template> 
387
  </xsl:call-template>
385
388
386
<xsl:if test="marc:datafield[@tag=101]"> 
389
  <xsl:call-template name="tag_subject">
387
<span class="results_summary">
390
    <xsl:with-param name="tag">608</xsl:with-param>
388
<span class="label">Language(s)&nbsp;: </span>
391
    <xsl:with-param name="label">Subject - Form</xsl:with-param>
389
<xsl:for-each select="marc:datafield[@tag=101]">
392
  </xsl:call-template>
390
<xsl:for-each select="marc:subfield">
393
391
 <xsl:choose>
394
  <xsl:call-template name="tag_subject">
392
<xsl:when test="@code='b'">intermediate text, </xsl:when>
395
    <xsl:with-param name="tag">610</xsl:with-param>
393
 <xsl:when test="@code='c'">of the original work, </xsl:when>
396
    <xsl:with-param name="label">Subject</xsl:with-param>
394
 <xsl:when test="@code='d'">of the summary, </xsl:when>
397
  </xsl:call-template>
395
 <xsl:when test="@code='e'">of the table of contents, </xsl:when>
398
396
 <xsl:when test="@code='f'">from the title page, </xsl:when>
399
  <xsl:call-template name="tag_subject">
397
 <xsl:when test="@code='g'">from the main title, </xsl:when>
400
    <xsl:with-param name="tag">615</xsl:with-param>
398
 <xsl:when test="@code='h'">of the booklet or lyrics, </xsl:when>
401
    <xsl:with-param name="label">Subject Category</xsl:with-param>
399
 <xsl:when test="@code='i'">accompanying material, </xsl:when>
402
  </xsl:call-template>
400
 <xsl:when test="@code='j'">subtitles </xsl:when>n> </xsl:choose>
403
401
 <xsl:value-of select="text()"/>
404
  <xsl:call-template name="tag_subject">
402
 <xsl:choose>
405
    <xsl:with-param name="tag">616</xsl:with-param>
403
 <xsl:when test="position()=last()">
406
    <xsl:with-param name="label">Trademark</xsl:with-param>
404
 <xsl:text>.</xsl:text>
407
  </xsl:call-template>
405
 </xsl:when>
408
406
 <xsl:otherwise>
409
  <xsl:if test="marc:datafield[@tag=856]">
407
 <xsl:text> ; </xsl:text>
410
    <span class="results_summary online_resources">
408
 </xsl:otherwise>
411
      <span class="label">Online Resources:</span>
409
 </xsl:choose>
412
      <xsl:for-each select="marc:datafield[@tag=856]">
410
 </xsl:for-each>
413
        <a>
411
 </xsl:for-each>
414
          <xsl:attribute name="href">
412
 </span>
415
            <xsl:value-of select="marc:subfield[@code='u']"/>
413
 </xsl:if>
416
          </xsl:attribute>
414
417
          <xsl:if test="$OPACURLOpenInNewWindow='1'">
415
<xsl:if test="marc:datafield[@tag=102]">
418
            <xsl:attribute name="target">_blank</xsl:attribute>
416
<span class="results_summary">
419
          </xsl:if>
417
<span class="label">Country&nbsp;: </span>
420
          <xsl:choose>
418
<xsl:for-each select="marc:datafield[@tag=102]">
421
            <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
419
<xsl:for-each select="marc:subfield">
422
              <xsl:call-template name="subfieldSelect">
420
<xsl:value-of select="text()"/>
423
                <xsl:with-param name="codes">y3z</xsl:with-param>
421
<xsl:choose>
424
              </xsl:call-template>
422
<xsl:when test="position()=last()">
425
            </xsl:when>
423
<xsl:text>.</xsl:text>
426
            <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
424
</xsl:when>
427
              <xsl:choose>
425
<xsl:otherwise><xsl:text>, </xsl:text>
428
                <xsl:when test="$URLLinkText!=''">
426
</xsl:otherwise>
429
                  <xsl:value-of select="$URLLinkText"/>
427
</xsl:choose>
430
                </xsl:when>
428
</xsl:for-each>
431
                <xsl:otherwise>
429
</xsl:for-each>
432
                  <xsl:text>Click here to access online</xsl:text>
430
</span>
433
                </xsl:otherwise>
431
</xsl:if>
434
              </xsl:choose>
432
435
            </xsl:when>
433
<xsl:if test="marc:datafield[@tag=205]">
436
          </xsl:choose>
434
<span class="results_summary">
437
        </a>
435
<span class="label">Edition&nbsp;: </span>
438
        <xsl:choose>
436
<xsl:for-each select="marc:datafield[@tag=205]">
439
          <xsl:when test="position()=last()"></xsl:when>
437
<xsl:for-each select="marc:subfield">
440
          <xsl:otherwise> | </xsl:otherwise>
438
<xsl:value-of select="text()"/>
441
        </xsl:choose>
439
<xsl:choose>
442
      </xsl:for-each>
440
<xsl:when test="position()=last()">
443
    </span>
441
<xsl:text>.</xsl:text>
444
  </xsl:if>
442
</xsl:when>
445
443
<xsl:otherwise><xsl:text>, </xsl:text>
446
  <!-- OpenURL -->
444
</xsl:otherwise>
447
  <xsl:variable name="OPACShowOpenURL" select="marc:sysprefs/marc:syspref[@name='OPACShowOpenURL']" />
445
</xsl:choose>
448
  <xsl:variable name="OpenURLImageLocation" select="marc:sysprefs/marc:syspref[@name='OpenURLImageLocation']" />
446
</xsl:for-each>
449
  <xsl:variable name="OpenURLText" select="marc:sysprefs/marc:syspref[@name='OpenURLText']" />
447
</xsl:for-each>
450
  <xsl:variable name="OpenURLResolverURL" select="marc:variables/marc:variable[@name='OpenURLResolverURL']" />
448
</span>
451
449
</xsl:if>
452
  <xsl:if test="$OPACShowOpenURL = 1 and $OpenURLResolverURL != ''">
450
453
    <xsl:variable name="openurltext">
451
<xsl:call-template name="tag_210" />
454
      <xsl:choose>
452
<xsl:call-template name="tag_214" />
455
        <xsl:when test="$OpenURLText != ''">
453
456
          <xsl:value-of select="$OpenURLText" />
454
455
<xsl:if test="marc:datafield[@tag=210]/marc:subfield[@code='s']">
456
<span class="results_summary">
457
<span class="label">Colophon&nbsp;: </span>
458
<xsl:for-each select="marc:datafield[@tag=210]">
459
<xsl:value-of select="marc:subfield[@code='s']"/>
460
<xsl:choose>
461
<xsl:when test="position()=last()">
462
<xsl:text>.</xsl:text>
463
</xsl:when>
464
<xsl:otherwise><xsl:text>, </xsl:text>
465
</xsl:otherwise>
466
</xsl:choose>
467
</xsl:for-each>
468
</span>
469
</xsl:if>
470
471
<!--210$s et $r Colophon et Adresse transcrite-->
472
<xsl:if test="marc:datafield[@tag=210]/marc:subfield[@code='r']">
473
<span class="results_summary">
474
<span class="label">Address&nbsp;: </span>
475
<xsl:for-each select="marc:datafield[@tag=210]">
476
<xsl:value-of select="marc:subfield[@code='s']"/>
477
<xsl:choose>
478
<xsl:when test="position()=last()">
479
<xsl:text>.</xsl:text>
480
</xsl:when>
481
<xsl:otherwise><xsl:text>, </xsl:text>
482
</xsl:otherwise>
483
</xsl:choose>
484
</xsl:for-each>
485
</span>
486
</xsl:if>
487
488
489
<!--ISBN-->
490
<xsl:if test="(marc:datafield[@tag=010]/marc:subfield[@code='a']) or (marc:datafield[@tag=010]/marc:subfield[@code='b']) or (marc:datafield[@tag=010]/marc:subfield[@code='z'])">
491
 <span class="results_summary">
492
<span class="label">ISBN&nbsp;: </span>
493
 <xsl:for-each select="marc:datafield[@tag=010]">
494
495
 <xsl:choose>
496
 <xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='b']) and (marc:subfield[@code='z'])">
497
 <xsl:value-of select="marc:subfield[@code='a']"/>
498
 <xsl:text> ; </xsl:text>
499
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text>(erroné)</xsl:text>
500
<xsl:text>  </xsl:text>
501
<xsl:text>(</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
502
 </xsl:when>
503
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='b'])">
504
 <xsl:value-of select="marc:subfield[@code='a']"/>
505
<xsl:text>  </xsl:text>
506
<xsl:text>(</xsl:text><xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
507
 </xsl:when>
508
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='z'])">
509
 <xsl:value-of select="marc:subfield[@code='a']"/>
510
<xsl:text> ; </xsl:text>
511
<xsl:value-of select="marc:subfield[@code='z']"/><xsl:text>(erroné)</xsl:text>
512
</xsl:when>
513
<xsl:when test="(marc:subfield[@code='b']) and (marc:subfield[@code='z'])">
514
 <xsl:value-of select="marc:subfield[@code='z']"/>
515
<xsl:text>(erroné) </xsl:text><xsl:text>(</xsl:text>
516
<xsl:value-of select="marc:subfield[@code='b']"/><xsl:text>)</xsl:text>
517
</xsl:when>
518
 <xsl:when test="(marc:subfield[@code='a'])">
519
 <xsl:value-of select="marc:subfield[@code='a']"/>
520
 </xsl:when>
521
<xsl:when test="(marc:subfield[@code='b'])">
522
 <xsl:value-of select="marc:subfield[@code='b']"/>
523
 </xsl:when>
524
<xsl:when test="(marc:subfield[@code='d'])">
525
 <xsl:value-of select="marc:subfield[@code='d']"/>
526
 </xsl:when>
527
</xsl:choose>
528
<xsl:choose>
529
<xsl:when test="position()=last()">
530
<xsl:text> </xsl:text>
531
</xsl:when>
532
<xsl:otherwise><xsl:text> .- </xsl:text>
533
</xsl:otherwise>
534
</xsl:choose>
535
</xsl:for-each>
536
</span>
537
</xsl:if>
538
539
540
541
542
<xsl:if test="marc:datafield[@tag=010]/marc:subfield[@code='d']">
543
<span class="results_summary">
544
<span class="label">Price&nbsp;: </span>
545
<xsl:for-each select="marc:datafield[@tag=010]">
546
<xsl:variable name="isbn" select="marc:subfield[@code='d']"/>
547
<xsl:value-of select="marc:subfield[@code='d']"/>
548
<xsl:choose>
549
<xsl:when test="position()=last()">
550
<xsl:text>.</xsl:text>
551
</xsl:when>
552
<xsl:otherwise>
553
<xsl:text> ; </xsl:text>
554
</xsl:otherwise>
555
</xsl:choose>
556
</xsl:for-each>
557
</span>
558
</xsl:if>
559
560
<xsl:if test="marc:datafield[@tag=011]">
561
<span class="results_summary">
562
<span class="label">ISSN&nbsp;: </span>
563
<xsl:for-each select="marc:datafield[@tag=011]">
564
<xsl:value-of select="marc:subfield[@code='a']"/>
565
<xsl:choose>
566
<xsl:when test="position()=last()">
567
<xsl:text>.</xsl:text>
568
</xsl:when>
569
<xsl:otherwise>
570
<xsl:text>; </xsl:text>
571
</xsl:otherwise>
572
</xsl:choose>
573
</xsl:for-each>
574
</span>
575
</xsl:if>
576
577
 <xsl:call-template name="tag_title">
578
 <xsl:with-param name="tag">225</xsl:with-param>
579
 <xsl:with-param name="label">Collection</xsl:with-param>
580
 </xsl:call-template>
581
582
583
<!--410 Collection-->
584
<xsl:for-each select="marc:datafield[@tag=410]">
585
<span class="results_summary">
586
<span class="label">Collection&nbsp;: </span>
587
<xsl:choose>
588
<xsl:when test="(marc:subfield[@code='9']) and (marc:subfield[@code='x']) and (marc:subfield[@code='v'])">
589
<xsl:element name="a">
590
        <xsl:attribute name="href">
591
     /cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
592
<xsl:value-of select="marc:subfield[@code='t']"/>
593
</xsl:element>
594
<xsl:text>, ISSN </xsl:text>
595
<xsl:element name="a">
596
        <xsl:attribute name="href">
597
     /cgi-bin/koha/opac-search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
598
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
599
<xsl:text> ; </xsl:text>
600
<xsl:value-of select="marc:subfield[@code='v']"/>
601
</xsl:when>
602
<xsl:when test="(marc:subfield[@code='9'])  and (marc:subfield[@code='v'])">
603
<xsl:element name="a">
604
        <xsl:attribute name="href">
605
     /cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
606
<xsl:value-of select="marc:subfield[@code='t']"/>
607
</xsl:element>
608
<xsl:text> ; </xsl:text>
609
<xsl:value-of select="marc:subfield[@code='v']"/>
610
      </xsl:when>
611
<xsl:when test="(marc:subfield[@code='9']) and (marc:subfield[@code='x'])">
612
<xsl:element name="a">
613
        <xsl:attribute name="href">
614
     /cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/></xsl:attribute>
615
<xsl:value-of select="marc:subfield[@code='t']"/>
616
</xsl:element>
617
<xsl:text>, ISSN </xsl:text>
618
<xsl:element name="a">
619
        <xsl:attribute name="href">
620
     /cgi-bin/koha/opac-search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
621
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
622
</xsl:when>
623
<xsl:when test="(marc:subfield[@code='t']) and (marc:subfield[@code='x']) and (marc:subfield[@code='v'])">
624
<xsl:element name="a">
625
        <xsl:attribute name="href">
626
     /cgi-bin/koha/opac-search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
627
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
628
<xsl:text>, ISSN </xsl:text>
629
<xsl:element name="a">
630
        <xsl:attribute name="href">
631
     /cgi-bin/koha/opac-search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x']"/>
632
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x']"/></xsl:element>
633
<xsl:text> ; </xsl:text>
634
<xsl:value-of select="marc:subfield[@code='v']"/>
635
</xsl:when>
636
<xsl:when test="(marc:subfield[@code='t'])  and (marc:subfield[@code='v'])">
637
<xsl:element name="a">
638
        <xsl:attribute name="href">
639
     /cgi-bin/koha/opac-search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
640
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
641
<xsl:text> ; </xsl:text>
642
<xsl:value-of select="marc:subfield[@code='v']"/>
643
</xsl:when>
644
<xsl:when test="(marc:subfield[@code='t'])">
645
<xsl:element name="a">
646
        <xsl:attribute name="href">
647
     /cgi-bin/koha/opac-search.pl?idx=Title-series&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
648
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
649
</xsl:when>
650
 </xsl:choose>
651
</span>
652
</xsl:for-each>
653
654
655
656
<!--500 DE UNIFORME-->
657
<xsl:for-each select="marc:datafield[@tag=500]">
658
<span class="results_summary">
659
<span class="label">Uniform title&nbsp;: </span>
660
 <xsl:if test="marc:subfield[@code='a']">
661
<xsl:text>[</xsl:text>
662
<xsl:value-of select="marc:subfield[@code='a']"/>
663
<xsl:choose>
664
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='m']) and  (marc:subfield[@code='k'])">
665
 <xsl:text>. </xsl:text>
666
 <xsl:value-of select="marc:subfield[@code='i']"/>
667
<xsl:text>. </xsl:text>
668
 <xsl:value-of select="marc:subfield[@code='m']"/>
669
<xsl:text>. </xsl:text>
670
<xsl:value-of select="marc:subfield[@code='k']"/>
671
 <xsl:text>]</xsl:text>
672
</xsl:when>
673
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='l'])">
674
 <xsl:text>. </xsl:text>
675
 <xsl:value-of select="marc:subfield[@code='i']"/>
676
<xsl:text>. </xsl:text>
677
 <xsl:value-of select="marc:subfield[@code='l']"/>
678
 <xsl:text>]</xsl:text>
679
</xsl:when>
680
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='k'])">
681
 <xsl:text>. </xsl:text>
682
 <xsl:value-of select="marc:subfield[@code='m']"/>
683
 <xsl:text>. </xsl:text>
684
<xsl:value-of select="marc:subfield[@code='k']"/>
685
 <xsl:text>]</xsl:text>
686
</xsl:when>
687
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='k'])">
688
 <xsl:text>. </xsl:text>
689
 <xsl:value-of select="marc:subfield[@code='i']"/>
690
 <xsl:text>. </xsl:text>
691
<xsl:value-of select="marc:subfield[@code='k']"/>
692
 <xsl:text>]</xsl:text>
693
</xsl:when>
694
<xsl:when test="(marc:subfield[@code='i'][3])">
695
 <xsl:text>. </xsl:text>
696
 <xsl:value-of select="marc:subfield[@code='i'][1]"/>
697
 <xsl:text>. </xsl:text>
698
 <xsl:value-of select="marc:subfield[@code='i'][2]"/>
699
 <xsl:text>. </xsl:text>
700
 <xsl:value-of select="marc:subfield[@code='i'][3]"/>
701
 <xsl:text>]</xsl:text>
702
</xsl:when>
703
<xsl:when test="(marc:subfield[@code='i'][2])">
704
 <xsl:text>. </xsl:text>
705
 <xsl:value-of select="marc:subfield[@code='i'][1]"/>
706
 <xsl:text>. </xsl:text>
707
 <xsl:value-of select="marc:subfield[@code='i'][2]"/>
708
 <xsl:text>]</xsl:text>
709
</xsl:when>
710
<xsl:when test="(marc:subfield[@code='l'])">
711
 <xsl:text>. </xsl:text>
712
 <xsl:value-of select="marc:subfield[@code='l']"/>
713
 <xsl:text>]</xsl:text>
714
</xsl:when>
715
<xsl:otherwise>
716
<xsl:text>]</xsl:text>
717
</xsl:otherwise>
718
</xsl:choose>
719
</xsl:if>
720
 </span>
721
 </xsl:for-each>
722
723
724
<!--503 FORM TITLE-->
725
<xsl:for-each select="marc:datafield[@tag=503]">
726
 <span class="results_summary">
727
<span class="label">Form title&nbsp;: </span>
728
 <xsl:if test="marc:subfield[@code='a']">
729
<xsl:text>[</xsl:text>
730
<xsl:value-of select="marc:subfield[@code='a']"/>
731
<xsl:choose>
732
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='i']) and  (marc:subfield[@code='m']) and  (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
733
 <xsl:text>. </xsl:text>
734
 <xsl:value-of select="marc:subfield[@code='e']"/>
735
<xsl:text>. </xsl:text>
736
 <xsl:value-of select="marc:subfield[@code='i']"/>
737
<xsl:text>. </xsl:text>
738
<xsl:value-of select="marc:subfield[@code='m']"/>
739
<xsl:text>. </xsl:text>
740
<xsl:value-of select="marc:subfield[@code='n']"/>
741
<xsl:text>. </xsl:text>
742
<xsl:value-of select="marc:subfield[@code='o']"/>
743
<xsl:text>. </xsl:text>
744
<xsl:value-of select="marc:subfield[@code='j']"/>
745
 <xsl:text>]</xsl:text>
746
</xsl:when>
747
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
748
 <xsl:text>. </xsl:text>
749
 <xsl:value-of select="marc:subfield[@code='e']"/>
750
<xsl:text>. </xsl:text>
751
 <xsl:value-of select="marc:subfield[@code='m']"/>
752
<xsl:text>. </xsl:text>
753
 <xsl:value-of select="marc:subfield[@code='n']"/>
754
<xsl:text>. </xsl:text>
755
 <xsl:value-of select="marc:subfield[@code='o']"/>
756
<xsl:text>. </xsl:text>
757
 <xsl:value-of select="marc:subfield[@code='j']"/>
758
 <xsl:text>]</xsl:text>
759
</xsl:when>
760
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='o']) and (marc:subfield[@code='j'])">
761
 <xsl:text>. </xsl:text>
762
 <xsl:value-of select="marc:subfield[@code='m']"/>
763
 <xsl:text>. </xsl:text>
764
<xsl:value-of select="marc:subfield[@code='n']"/>
765
<xsl:text>. </xsl:text>
766
<xsl:value-of select="marc:subfield[@code='o']"/>
767
<xsl:text>. </xsl:text>
768
<xsl:value-of select="marc:subfield[@code='j']"/>
769
 <xsl:text>]</xsl:text>
770
</xsl:when>
771
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='j'])">
772
 <xsl:text>. </xsl:text>
773
 <xsl:value-of select="marc:subfield[@code='e']"/>
774
 <xsl:text>. </xsl:text>
775
<xsl:value-of select="marc:subfield[@code='m']"/>
776
 <xsl:text>. </xsl:text>
777
<xsl:value-of select="marc:subfield[@code='n']"/>
778
 <xsl:text>. </xsl:text>
779
<xsl:value-of select="marc:subfield[@code='j']"/>
780
<xsl:text>]</xsl:text>
781
</xsl:when>
782
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n']) and (marc:subfield[@code='j'])">
783
 <xsl:text>. </xsl:text>
784
<xsl:value-of select="marc:subfield[@code='m']"/>
785
 <xsl:text>. </xsl:text>
786
<xsl:value-of select="marc:subfield[@code='n']"/>
787
 <xsl:text>. </xsl:text>
788
<xsl:value-of select="marc:subfield[@code='j']"/>
789
<xsl:text>]</xsl:text>
790
</xsl:when>
791
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='h']) and (marc:subfield[@code='j'])">
792
 <xsl:text>. </xsl:text>
793
<xsl:value-of select="marc:subfield[@code='e']"/>
794
 <xsl:text>. </xsl:text>
795
<xsl:value-of select="marc:subfield[@code='h']"/>
796
 <xsl:text>. </xsl:text>
797
<xsl:value-of select="marc:subfield[@code='j']"/>
798
<xsl:text>]</xsl:text>
799
</xsl:when>
800
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='f']) and (marc:subfield[@code='h'])">
801
 <xsl:text>. </xsl:text>
802
<xsl:value-of select="marc:subfield[@code='e']"/>
803
 <xsl:text>. </xsl:text>
804
<xsl:value-of select="marc:subfield[@code='f']"/>
805
 <xsl:text>. </xsl:text>
806
<xsl:value-of select="marc:subfield[@code='h']"/>
807
<xsl:text>]</xsl:text>
808
</xsl:when>
809
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='f'])">
810
 <xsl:text>. </xsl:text>
811
<xsl:value-of select="marc:subfield[@code='e']"/>
812
 <xsl:text>. </xsl:text>
813
<xsl:value-of select="marc:subfield[@code='f']"/>
814
<xsl:text>]</xsl:text>
815
</xsl:when>
816
<xsl:when test="(marc:subfield[@code='i']) and (marc:subfield[@code='n'])">
817
 <xsl:text>. </xsl:text>
818
<xsl:value-of select="marc:subfield[@code='i']"/>
819
 <xsl:text>. </xsl:text>
820
<xsl:value-of select="marc:subfield[@code='n']"/>
821
<xsl:text>]</xsl:text>
822
</xsl:when>
823
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='n'])">
824
 <xsl:text>. </xsl:text>
825
<xsl:value-of select="marc:subfield[@code='m']"/>
826
 <xsl:text>. </xsl:text>
827
<xsl:value-of select="marc:subfield[@code='n']"/>
828
<xsl:text>]</xsl:text>
829
</xsl:when>
830
<xsl:when test="(marc:subfield[@code='m']) and (marc:subfield[@code='j'])">
831
 <xsl:text>. </xsl:text>
832
<xsl:value-of select="marc:subfield[@code='m']"/>
833
 <xsl:text>. </xsl:text>
834
<xsl:value-of select="marc:subfield[@code='j']"/>
835
<xsl:text>]</xsl:text>
836
</xsl:when>
837
<xsl:when test="(marc:subfield[@code='m'])">
838
 <xsl:text>. </xsl:text>
839
<xsl:value-of select="marc:subfield[@code='m']"/>
840
<xsl:text>]</xsl:text>
841
</xsl:when>
842
<xsl:otherwise>
843
<xsl:text>]</xsl:text>
844
</xsl:otherwise>
845
</xsl:choose>
846
</xsl:if>
847
</span>
848
</xsl:for-each>
849
850
851
<!--517 OTHER TITLE-->
852
<xsl:for-each select="marc:datafield[@tag=517]">
853
<span class="results_summary">
854
<span class="label">Other title&nbsp;: </span>
855
 <xsl:if test="marc:subfield[@code='a']">
856
<xsl:value-of select="marc:subfield[@code='a']"/>
857
<xsl:choose>
858
<xsl:when test="(marc:subfield[@code='e']) and (marc:subfield[@code='h']) and  (marc:subfield[@code='i'])">
859
 <xsl:text>: </xsl:text>
860
 <xsl:value-of select="marc:subfield[@code='e']"/>
861
<xsl:text>. </xsl:text>
862
 <xsl:value-of select="marc:subfield[@code='h']"/>
863
<xsl:text>, </xsl:text>
864
<xsl:value-of select="marc:subfield[@code='i']"/>
865
</xsl:when>
866
<xsl:when test="(marc:subfield[@code='e'])">
867
 <xsl:text>: </xsl:text>
868
 <xsl:value-of select="marc:subfield[@code='e']"/>
869
</xsl:when>
870
<xsl:when test="(marc:subfield[@code='j'])">
871
 <xsl:text>. </xsl:text>
872
 <xsl:value-of select="marc:subfield[@code='j']"/>
873
</xsl:when>
874
</xsl:choose>
875
</xsl:if>
876
</span>
877
</xsl:for-each>
878
879
<!--506 identification of work-->
880
<xsl:if test="marc:datafield[@tag=506]">
881
<span class="results_summary">
882
<span class="label">Identification of a work&nbsp;: </span>
883
<xsl:for-each select="marc:datafield[@tag=506]">
884
<xsl:for-each select="marc:subfield">
885
<xsl:value-of select="text()"/>
886
<xsl:choose>
887
<xsl:when test="position()=last()">
888
<xsl:text>.</xsl:text>
889
</xsl:when>
890
<xsl:otherwise><xsl:text>. </xsl:text>
891
</xsl:otherwise>
892
</xsl:choose>
893
</xsl:for-each>
894
</xsl:for-each>
895
</span>
896
</xsl:if>
897
 
898
 
899
<!--507 identification of an exception expression-->
900
<xsl:if test="marc:datafield[@tag=507]">
901
<span class="results_summary">
902
<span class="label">Identification of an exception expression&nbsp;: </span>
903
<xsl:for-each select="marc:datafield[@tag=507]">
904
<xsl:for-each select="marc:subfield">
905
<xsl:value-of select="text()"/>
906
<xsl:choose>
907
<xsl:when test="position()=last()">
908
<xsl:text>.</xsl:text>
909
</xsl:when>
910
<xsl:otherwise><xsl:text>. </xsl:text>
911
</xsl:otherwise>
912
</xsl:choose>
913
</xsl:for-each>
914
</xsl:for-each>
915
</span>
916
</xsl:if>
917
918
<!--576 identification of an exception expression-->
919
 <xsl:if test="marc:datafield[@tag=576]">
920
<span class="results_summary">
921
<span class="label">Name prefered access point -Identification of a work&nbsp;: </span>
922
 <xsl:for-each select="marc:datafield[@tag=576]">
923
 <xsl:for-each select="marc:subfield">
924
 <xsl:value-of select="text()"/>
925
 <xsl:choose>
926
 <xsl:when test="position()=last()">
927
 <xsl:text>.</xsl:text>
928
 </xsl:when>
929
 <xsl:otherwise><xsl:text>. </xsl:text>
930
 </xsl:otherwise>
931
 </xsl:choose>
932
 </xsl:for-each>
933
 </xsl:for-each>
934
 </span>
935
 </xsl:if>
936
937
<!--577 identification of an exception expression-->
938
<xsl:if test="marc:datafield[@tag=577]">
939
<span class="results_summary">
940
<span class="label">Name prefered access point -Identification of an expression&nbsp;: </span>
941
<xsl:for-each select="marc:datafield[@tag=577]">
942
<xsl:for-each select="marc:subfield">
943
<xsl:value-of select="text()"/>
944
<xsl:choose>
945
<xsl:when test="position()=last()">
946
<xsl:text>.</xsl:text>
947
</xsl:when>
948
<xsl:otherwise><xsl:text>. </xsl:text>
949
</xsl:otherwise>
950
</xsl:choose>
951
</xsl:for-each>
952
</xsl:for-each>
953
</span>
954
</xsl:if>
955
956
<!--623 Character-->
957
<xsl:if test="marc:datafield[@tag=623]">
958
<span class="results_summary">
959
<span class="label">Character&nbsp;: </span>
960
<xsl:for-each select="marc:datafield[@tag=623]">
961
<xsl:for-each select="marc:subfield">
962
<xsl:value-of select="text()"/>
963
<xsl:choose>
964
<xsl:when test="position()=last()">
965
<xsl:text>.</xsl:text>
966
</xsl:when>
967
<xsl:otherwise><xsl:text>. </xsl:text>
968
</xsl:otherwise>
969
</xsl:choose>
970
</xsl:for-each>
971
</xsl:for-each>
972
</span>
973
</xsl:if>
974
975
976
<xsl:if test="marc:datafield[@tag=686]">
977
<span class="results_summary">
978
<span class="label">Other classification&nbsp;:  </span>
979
<xsl:for-each select="marc:datafield[@tag=686]">
980
<xsl:value-of select="marc:subfield[@code='a']"/>
981
<xsl:if test="marc:subfield[@code='2']">
982
<xsl:text>, </xsl:text>
983
<xsl:value-of select="marc:subfield[@code='2']"/>
984
</xsl:if>
985
<xsl:if test="marc:subfield[@code='z']">
986
<xsl:text>, </xsl:text>
987
<xsl:value-of select="marc:subfield[@code='z']"/>
988
</xsl:if>
989
<xsl:if test="not (position()=last())">
990
<xsl:text> ; </xsl:text>
991
</xsl:if>
992
</xsl:for-each>
993
</span>
994
</xsl:if>
995
996
<xsl:if test="marc:datafield[@tag=675]">
997
<span class="results_summary">
998
<span class="label">Classification - CDU&nbsp;: </span>
999
<xsl:for-each select="marc:datafield[@tag=675]">
1000
<xsl:value-of select="marc:subfield[@code='a']"/>
1001
<xsl:if test="marc:subfield[@code='b']">
1002
<xsl:text>, </xsl:text>
1003
<xsl:value-of select="marc:subfield[@code='b']"/>
1004
</xsl:if>
1005
<xsl:if test="marc:subfield[@code='c']">
1006
<xsl:text>, </xsl:text>
1007
<xsl:value-of select="marc:subfield[@code='c']"/>
1008
</xsl:if>
1009
<xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
1010
</xsl:for-each>
1011
</span>
1012
</xsl:if>
1013
1014
1015
<xsl:if test="marc:datafield[@tag=676]">
1016
<span class="results_summary">
1017
<span class="label">Classification - Dewey&nbsp;: </span>
1018
<xsl:for-each select="marc:datafield[@tag=676]">
1019
<xsl:value-of select="marc:subfield[@code='a']"/>
1020
<xsl:if test="marc:subfield[@code='b']">
1021
<xsl:text>, </xsl:text>
1022
<xsl:value-of select="marc:subfield[@code='b']"/>
1023
</xsl:if>
1024
<xsl:if test="marc:subfield[@code='c']">
1025
<xsl:text>, </xsl:text>
1026
<xsl:value-of select="marc:subfield[@code='c']"/>
1027
</xsl:if>
1028
<xsl:if test="not (position()=last())"><xsl:text> ; </xsl:text></xsl:if>
1029
</xsl:for-each>
1030
</span>
1031
</xsl:if>
1032
1033
1034
<xsl:if test="marc:datafield[@tag=327]">
1035
<span class="results_summary">
1036
<span class="label">Note(s) of content&nbsp;: </span>
1037
<xsl:for-each select="marc:datafield[@tag=327]">
1038
<xsl:call-template name="chopPunctuation">
1039
<xsl:with-param name="chopString">
1040
<xsl:call-template name="subfieldSelect">
1041
<xsl:with-param name="codes">a</xsl:with-param>
1042
<xsl:with-param name="subdivCodes">a</xsl:with-param>
1043
<xsl:with-param name="subdivDelimiter"> | </xsl:with-param>
1044
</xsl:call-template>
1045
</xsl:with-param>
1046
</xsl:call-template>
1047
</xsl:for-each>
1048
</span>
1049
</xsl:if>
1050
1051
<xsl:if test="marc:datafield[@tag=330]">
1052
<span class="results_summary">
1053
<span class="label">Résumé&nbsp;: </span>
1054
<xsl:for-each select="marc:datafield[@tag=330]">
1055
<a class="voir_resume" href="#descriptions">
1056
<xsl:text>Voir le résumé</xsl:text>
1057
</a>
1058
<xsl:choose>
1059
<xsl:when test="position()=last()">
1060
<xsl:text> </xsl:text>
1061
</xsl:when>
1062
<xsl:otherwise>
1063
<xsl:text> </xsl:text>
1064
</xsl:otherwise>
1065
</xsl:choose>
1066
</xsl:for-each>
1067
</span>
1068
</xsl:if>
1069
1070
<xsl:if test="marc:datafield[@tag=326]">
1071
<span class="results_summary">
1072
<span class="label">Périodicity&nbsp;: </span>
1073
<xsl:for-each select="marc:datafield[@tag=326]">
1074
<xsl:value-of select="marc:subfield[@code='a']"/>
1075
<xsl:choose>
1076
<xsl:when test="position()=last()">
1077
<xsl:text> </xsl:text>
1078
</xsl:when>
1079
<xsl:otherwise>
1080
<xsl:text>; </xsl:text>
1081
</xsl:otherwise>
1082
</xsl:choose>
1083
</xsl:for-each>
1084
</span>
1085
</xsl:if>
1086
1087
1088
<xsl:if test="marc:datafield[@tag=310]">
1089
<span class="results_summary">
1090
<span class="label">Note(s) about the availablity&nbsp;: </span>
1091
<xsl:for-each select="marc:datafield[@tag=310]">
1092
<xsl:value-of select="marc:subfield[@code='a']"/>
1093
<xsl:choose>
1094
<xsl:when test="position()=last()">
1095
<xsl:text> </xsl:text>
1096
</xsl:when>
1097
<xsl:otherwise>
1098
<xsl:text>; </xsl:text>
1099
</xsl:otherwise>
1100
</xsl:choose>
1101
</xsl:for-each>
1102
</span>
1103
</xsl:if>
1104
1105
<xsl:if test="marc:datafield[@tag=317]">
1106
<span class="results_summary">
1107
<span class="label">Note(s) of provenance&nbsp;: </span>
1108
<xsl:for-each select="marc:datafield[@tag=317]">
1109
<xsl:value-of select="marc:subfield[@code='a']"/>
1110
</xsl:for-each>
1111
</span>
1112
</xsl:if>
1113
1114
<xsl:if test="marc:datafield[@tag=320]">
1115
<span class="results_summary">
1116
<span class="label">Note(s)&nbsp;: </span>
1117
<xsl:for-each select="marc:datafield[@tag=320]">
1118
<xsl:value-of select="marc:subfield[@code='a']"/>
1119
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
1120
</xsl:for-each>
1121
</span>
1122
</xsl:if>
1123
1124
<xsl:if test="marc:datafield[@tag=328]">
1125
<span class="results_summary">
1126
<span class="label">Note(s) of thesis&nbsp;: </span>
1127
<xsl:for-each select="marc:datafield[@tag=328]">
1128
<xsl:value-of select="marc:subfield[@code='a']"/>
1129
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
1130
</xsl:for-each>
1131
</span>
1132
</xsl:if>
1133
1134
<xsl:if test="marc:datafield[@tag=333]">
1135
<span class="results_summary">
1136
<span class="label">Abstract&nbsp;: </span>
1137
<xsl:for-each select="marc:datafield[@tag=333]">
1138
<xsl:value-of select="marc:subfield[@code='a']"/>
1139
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
1140
</xsl:for-each>
1141
</span>
1142
</xsl:if>
1143
1144
1145
<xsl:if test="marc:datafield[@tag=610]">
1146
<span class="results_summary">
1147
<span class="label">Subject&nbsp;: </span>
1148
<xsl:for-each select="marc:datafield[@tag=610]">
1149
<xsl:variable name="chp_610" select="marc:datafield[@tag=610]/marc:subfield[@code='a']"/>
1150
<xsl:variable name="between" select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')"/>
1151
<xsl:choose>
1152
<xsl:when test="contains($chp_610,'(')">
1153
<a>
1154
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su,phr:<xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')"/> <xsl:value-of select="$between"/></xsl:attribute>
1155
<xsl:value-of select="marc:subfield[@code='a']"/>
1156
</a>
1157
</xsl:when>
1158
<xsl:otherwise>
1159
<a>
1160
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su,phr:<xsl:value-of select="marc:subfield[@code='a']"/>
1161
</xsl:attribute>
1162
<xsl:value-of select="marc:subfield[@code='a']"/>
1163
</a>
1164
</xsl:otherwise>
1165
</xsl:choose>
1166
<xsl:choose>
1167
<xsl:when test="position()=last()">
1168
<xsl:text> </xsl:text>
1169
</xsl:when>
1170
<xsl:otherwise>
1171
<xsl:text> .  </xsl:text>
1172
</xsl:otherwise>
1173
</xsl:choose>
1174
</xsl:for-each>
1175
</span>
1176
</xsl:if>
1177
1178
1179
1180
<xsl:for-each select="marc:datafield[@tag=600]">
1181
<span class="results_summary">
1182
<span class="label">Subject - name&nbsp;: </span>
1183
<xsl:if test="marc:subfield[@code='a']">
1184
<xsl:element name="a">
1185
<xsl:attribute name="href">
1186
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1187
<xsl:text>+</xsl:text> <xsl:if test="marc:subfield[@code='b']!=''"><xsl:value-of select="marc:subfield[@code='b']"/></xsl:if>
1188
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1189
</xsl:if>
1190
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1191
<xsl:text>, </xsl:text>
1192
<xsl:value-of select="marc:subfield[@code='b']"/>
1193
</xsl:if>
1194
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='d']">
1195
<xsl:text>, </xsl:text>
1196
<xsl:value-of select="marc:subfield[@code='d']"/>
1197
</xsl:if>
1198
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='c']">
1199
<xsl:text>, </xsl:text>
1200
<xsl:element name="a">
1201
<xsl:attribute name="href">
1202
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='c']"/>
1203
</xsl:attribute><xsl:value-of select="marc:subfield[@code='c']"/></xsl:element>
1204
</xsl:if>
1205
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='f']">
1206
<xsl:text> (</xsl:text>
1207
<xsl:value-of select="marc:subfield[@code='f']"/>
1208
<xsl:text>) </xsl:text>
1209
</xsl:if>
1210
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1211
<xsl:text> -- </xsl:text>
1212
<xsl:element name="a">
1213
<xsl:attribute name="href">
1214
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1215
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1216
<xsl:if test="marc:subfield[@code='x'][2]">
1217
<xsl:text> -- </xsl:text>
1218
<xsl:element name="a">
1219
<xsl:attribute name="href">
1220
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1221
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1222
</xsl:if>
1223
<xsl:if test="marc:subfield[@code='x'][3]">
1224
<xsl:text> -- </xsl:text>
1225
<xsl:element name="a">
1226
<xsl:attribute name="href">
1227
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1228
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
1229
</xsl:if>
1230
</xsl:if>
1231
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1232
<xsl:text> -- </xsl:text>
1233
<xsl:value-of select="marc:subfield[@code='y']"/>
1234
</xsl:if>
1235
<xsl:if test="marc:subfield[@code='z']">
1236
<xsl:text> -- </xsl:text>
1237
<xsl:value-of select="marc:subfield[@code='z']"/>
1238
</xsl:if>
1239
<xsl:text> | </xsl:text>
1240
<!-- recherche sur tous les mots-->  <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1241
<xsl:choose>
1242
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1243
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1244
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1245
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
457
        </xsl:when>
1246
        </xsl:when>
458
        <xsl:otherwise>
1247
        <xsl:otherwise>
459
          <xsl:text>OpenURL</xsl:text>
1248
          <xsl:value-of select="marc:subfield[@code='a']" />
460
        </xsl:otherwise>
1249
        </xsl:otherwise>
461
      </xsl:choose>
1250
      </xsl:choose> 
462
    </xsl:variable>
1251
463
1252
<xsl:if test="marc:subfield[@code='b'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b']!=''"><xsl:value-of select="marc:subfield[@code='b']"/></xsl:if>
464
    <span class="results_summary"><a>
1253
<xsl:if test="marc:subfield[@code='c'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='c']!=''"><xsl:value-of select="marc:subfield[@code='c']"/></xsl:if>
465
      <xsl:attribute name="href">
1254
<xsl:if test="marc:subfield[@code='d'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='d']!=''"><xsl:value-of select="marc:subfield[@code='d']"/></xsl:if><xsl:if test="marc:subfield[@code='x'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
466
        <xsl:value-of select="$OpenURLResolverURL" />
1255
<xsl:if test="marc:subfield[@code='x'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
467
      </xsl:attribute>
1256
<xsl:if test="marc:subfield[@code='x'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
468
      <xsl:attribute name="title">
1257
<xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if>
469
        <xsl:value-of select="$openurltext" />
1258
 </xsl:attribute><xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Search all the subject words</xsl:attribute></xsl:element> </xsl:element>
470
      </xsl:attribute>
1259
</span>
471
      <xsl:attribute name="class">
1260
</xsl:for-each>
472
        <xsl:text>OpenURL</xsl:text>
1261
473
      </xsl:attribute>
1262
474
      <xsl:if test="$OPACURLOpenInNewWindow='1'">
1263
<xsl:for-each select="marc:datafield[@tag=601]">
475
        <xsl:attribute name="target">
1264
<span class="results_summary">
476
          <xsl:text>_blank</xsl:text>
1265
<span class="label">Subject - Collectivities&nbsp;: </span>
477
        </xsl:attribute>
1266
<xsl:if test="marc:subfield[@code='a']">
478
      </xsl:if>
1267
<xsl:element name="a">
479
      <xsl:choose>
1268
<xsl:attribute name="href">
480
        <xsl:when test="$OpenURLImageLocation != ''">
1269
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
481
          <img>
1270
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
482
            <xsl:attribute name="src">
1271
</xsl:if>
483
              <xsl:value-of select="$OpenURLImageLocation" />
1272
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
484
            </xsl:attribute>
1273
<xsl:text>. </xsl:text>
485
          </img>
1274
<xsl:element name="a">
1275
        <xsl:attribute name="href">
1276
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1277
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1278
<xsl:if test="marc:subfield[@code='b'][2]">
1279
<xsl:text>. </xsl:text>
1280
<xsl:element name="a">
1281
        <xsl:attribute name="href">
1282
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1283
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1284
</xsl:if>
1285
1286
<xsl:if test="marc:subfield[@code='b'][3]">
1287
<xsl:text>. </xsl:text>
1288
<xsl:element name="a">
1289
        <xsl:attribute name="href">
1290
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1291
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1292
</xsl:if>
1293
1294
</xsl:if>
1295
<xsl:if test="marc:subfield[@code='c']">
1296
<xsl:text>. </xsl:text>
1297
<xsl:value-of select="marc:subfield[@code='c']"/>
1298
 </xsl:if>
1299
1300
<xsl:choose>
1301
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1302
 <xsl:text> ( </xsl:text>
1303
 <xsl:value-of select="marc:subfield[@code='d']"/>
1304
<xsl:text> ; </xsl:text>
1305
 <xsl:value-of select="marc:subfield[@code='f']"/>
1306
<xsl:text> ; </xsl:text>
1307
<xsl:value-of select="marc:subfield[@code='e']"/>
1308
 <xsl:text> ) </xsl:text>
1309
</xsl:when>
1310
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1311
 <xsl:text> ( </xsl:text>
1312
 <xsl:value-of select="marc:subfield[@code='d']"/>
1313
<xsl:text> ; </xsl:text>
1314
 <xsl:value-of select="marc:subfield[@code='f']"/>
1315
 <xsl:text> ) </xsl:text>
1316
</xsl:when>
1317
<xsl:when test="marc:subfield[@code='d']">
1318
 <xsl:text> ( </xsl:text>
1319
 <xsl:value-of select="marc:subfield[@code='d']"/>
1320
 <xsl:text> ) </xsl:text>
1321
</xsl:when>
1322
</xsl:choose>
1323
1324
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1325
<xsl:text> -- </xsl:text>
1326
<xsl:element name="a">
1327
<xsl:attribute name="href">
1328
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1329
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1330
<xsl:if test="marc:subfield[@code='x'][2]">
1331
<xsl:text> -- </xsl:text>
1332
<xsl:element name="a">
1333
<xsl:attribute name="href">
1334
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1335
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1336
</xsl:if>
1337
<xsl:if test="marc:subfield[@code='x'][3]">
1338
<xsl:text> -- </xsl:text>
1339
<xsl:element name="a">
1340
<xsl:attribute name="href">
1341
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1342
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1343
</xsl:if>
1344
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1345
<xsl:text> -- </xsl:text>
1346
<xsl:element name="a">
1347
<xsl:attribute name="href">
1348
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1349
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1350
</xsl:if>
1351
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1352
<xsl:text> -- </xsl:text>
1353
<xsl:element name="a">
1354
<xsl:attribute name="href">
1355
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1356
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1357
</xsl:if>
1358
<xsl:text> | </xsl:text>
1359
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1360
<xsl:choose>
1361
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1362
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1363
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1364
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
486
        </xsl:when>
1365
        </xsl:when>
487
        <xsl:otherwise>
1366
        <xsl:otherwise>
488
          <xsl:value-of select="$openurltext" />
1367
          <xsl:value-of select="marc:subfield[@code='a']" />
489
        </xsl:otherwise>
1368
        </xsl:otherwise>
490
      </xsl:choose>
1369
      </xsl:choose> 
491
    </a></span>
1370
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
492
  </xsl:if>
1371
<xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:if>
493
  <!-- End of OpenURL -->
1372
<xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:if>
494
1373
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
495
  <xsl:variable name="OPACShowMusicalInscripts" select="marc:sysprefs/marc:syspref[@name='OPACShowMusicalInscripts']" />
1374
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
496
  <xsl:variable name="OPACPlayMusicalInscripts" select="marc:sysprefs/marc:syspref[@name='OPACPlayMusicalInscripts']" />
1375
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
497
1376
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
498
  <xsl:if test="$OPACShowMusicalInscripts and marc:datafield[@tag=036]">
1377
</span>
499
      <xsl:for-each select="marc:datafield[@tag=031]">
1378
</xsl:for-each>
500
501
        <span class="results_summary musical_inscripts">
502
            <xsl:if test="marc:subfield[@code='u']">
503
                <span class="uri">
504
                    <a>
505
                        <xsl:attribute name="href">
506
                            <xsl:value-of select="marc:subfield[@code='u']"/>
507
                        </xsl:attribute>
508
                        <xsl:text>Audio file</xsl:text>
509
                    </a>
510
                </span>
511
            </xsl:if>
512
            <xsl:if test="marc:subfield[@code='2'] and marc:subfield[@code='2']/text() = 'pe' and marc:subfield[@code='g'] and marc:subfield[@code='n'] and marc:subfield[@code='o'] and marc:subfield[@code='p']">
513
                <div class="inscript" data-system="pae">
514
                    <xsl:attribute name="data-clef">
515
                        <xsl:value-of select="marc:subfield[@code='g']"/>
516
                    </xsl:attribute>
517
                    <xsl:attribute name="data-keysig">
518
                        <xsl:value-of select="marc:subfield[@code='n']"/>
519
                    </xsl:attribute>
520
                    <xsl:attribute name="data-timesig">
521
                        <xsl:value-of select="marc:subfield[@code='o']"/>
522
                    </xsl:attribute>
523
                    <xsl:attribute name="data-notation">
524
                        <xsl:value-of select="marc:subfield[@code='p']"/>
525
                    </xsl:attribute>
526
                </div>
527
                <xsl:if test="$OPACPlayMusicalInscripts = 1">
528
                    <div class="audio_controls">
529
                        <button class="btn play_btn">
530
                            <i id="carticon" class="fa fa-play"></i>
531
                            <xsl:text> Play this sample</xsl:text>
532
                        </button>
533
                    </div>
534
                </xsl:if>
535
            </xsl:if>
536
        </span>
537
    </xsl:for-each>
538
    <xsl:if test="$OPACPlayMusicalInscripts = 1">
539
        <div class="results_summary">
540
            <span class="inscript_audio hide"></span>
541
        </div>
542
    </xsl:if>
543
  </xsl:if>
544
1379
545
</xsl:template>
546
1380
547
    <xsl:template name="nameABCDQ">
1381
<xsl:for-each select="marc:datafield[@tag=602]">
548
            <xsl:call-template name="chopPunctuation">
1382
<span class="results_summary">
549
                <xsl:with-param name="chopString">
1383
<span class="label">Subject –  Name of family&nbsp;: </span>
550
                    <xsl:call-template name="subfieldSelect">
1384
<xsl:if test="marc:subfield[@code='a']">
551
                        <xsl:with-param name="codes">aq</xsl:with-param>
1385
<xsl:element name="a">
552
                    </xsl:call-template>
1386
<xsl:attribute name="href">
553
                </xsl:with-param>
1387
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
554
                <xsl:with-param name="punctuation">
1388
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
555
                    <xsl:text>:,;/ </xsl:text>
1389
</xsl:if>
556
                </xsl:with-param>
1390
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
557
            </xsl:call-template>
1391
<xsl:text>. </xsl:text>
558
        <xsl:call-template name="termsOfAddress"/>
1392
<xsl:element name="a">
559
    </xsl:template>
1393
        <xsl:attribute name="href">
560
1394
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
561
    <xsl:template name="nameABCDN">
1395
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
562
        <xsl:for-each select="marc:subfield[@code='a']">
1396
<xsl:if test="marc:subfield[@code='b'][2]">
563
                <xsl:call-template name="chopPunctuation">
1397
<xsl:text>. </xsl:text>
564
                    <xsl:with-param name="chopString" select="."/>
1398
<xsl:element name="a">
565
                </xsl:call-template>
1399
        <xsl:attribute name="href">
566
        </xsl:for-each>
1400
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
567
        <xsl:for-each select="marc:subfield[@code='b']">
1401
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
568
                <xsl:value-of select="."/>
1402
</xsl:if>
569
        </xsl:for-each>
1403
570
        <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
1404
<xsl:if test="marc:subfield[@code='b'][3]">
571
                <xsl:call-template name="subfieldSelect">
1405
<xsl:text>. </xsl:text>
572
                    <xsl:with-param name="codes">cdn</xsl:with-param>
1406
<xsl:element name="a">
573
                </xsl:call-template>
1407
        <xsl:attribute name="href">
574
        </xsl:if>
1408
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
575
    </xsl:template>
1409
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
576
1410
</xsl:if>
577
    <xsl:template name="nameACDEQ">
1411
578
            <xsl:call-template name="subfieldSelect">
1412
       </xsl:if>
579
                <xsl:with-param name="codes">acdeq</xsl:with-param>
1413
<xsl:if test="marc:subfield[@code='c']">
580
            </xsl:call-template>
1414
<xsl:text>. </xsl:text>
581
    </xsl:template>
1415
<xsl:value-of select="marc:subfield[@code='c']"/>
582
    <xsl:template name="termsOfAddress">
1416
 </xsl:if>
583
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
1417
584
            <xsl:call-template name="chopPunctuation">
1418
<xsl:choose>
585
                <xsl:with-param name="chopString">
1419
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
586
                    <xsl:call-template name="subfieldSelect">
1420
 <xsl:text> ( </xsl:text>
587
                        <xsl:with-param name="codes">bc</xsl:with-param>
1421
 <xsl:value-of select="marc:subfield[@code='d']"/>
588
                    </xsl:call-template>
1422
<xsl:text> ; </xsl:text>
589
                </xsl:with-param>
1423
 <xsl:value-of select="marc:subfield[@code='f']"/>
590
            </xsl:call-template>
1424
<xsl:text> ; </xsl:text>
591
        </xsl:if>
1425
<xsl:value-of select="marc:subfield[@code='e']"/>
592
    </xsl:template>
1426
 <xsl:text> ) </xsl:text>
593
1427
</xsl:when>
594
    <xsl:template name="part">
1428
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
595
        <xsl:variable name="partNumber">
1429
 <xsl:text> ( </xsl:text>
596
            <xsl:call-template name="specialSubfieldSelect">
1430
</xsl:when>
597
                <xsl:with-param name="axis">n</xsl:with-param>
1431
<xsl:when test="marc:subfield[@code='d']">
598
                <xsl:with-param name="anyCodes">n</xsl:with-param>
1432
 <xsl:text> ( </xsl:text>
599
                <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
1433
 <xsl:value-of select="marc:subfield[@code='d']"/>
600
            </xsl:call-template>
1434
 <xsl:text> ) </xsl:text>
601
        </xsl:variable>
1435
</xsl:when>
602
        <xsl:variable name="partName">
1436
</xsl:choose>
603
            <xsl:call-template name="specialSubfieldSelect">
1437
604
                <xsl:with-param name="axis">p</xsl:with-param>
1438
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
605
                <xsl:with-param name="anyCodes">p</xsl:with-param>
1439
<xsl:text> -- </xsl:text>
606
                <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
1440
<xsl:value-of select="marc:subfield[@code='t']"/>
607
            </xsl:call-template>
1441
</xsl:if>
608
        </xsl:variable>
1442
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
609
        <xsl:if test="string-length(normalize-space($partNumber))">
1443
<xsl:text> -- </xsl:text>
610
                <xsl:call-template name="chopPunctuation">
1444
<xsl:element name="a">
611
                    <xsl:with-param name="chopString" select="$partNumber"/>
1445
<xsl:attribute name="href">
612
                </xsl:call-template>
1446
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
613
        </xsl:if>
1447
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
614
        <xsl:if test="string-length(normalize-space($partName))">
1448
<xsl:if test="marc:subfield[@code='x'][2]">
615
                <xsl:call-template name="chopPunctuation">
1449
<xsl:text> -- </xsl:text>
616
                    <xsl:with-param name="chopString" select="$partName"/>
1450
<xsl:element name="a">
617
                </xsl:call-template>
1451
<xsl:attribute name="href">
618
        </xsl:if>
1452
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
619
    </xsl:template>
1453
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
620
1454
</xsl:if>
621
    <xsl:template name="specialSubfieldSelect">
1455
<xsl:if test="marc:subfield[@code='x'][3]">
622
        <xsl:param name="anyCodes"/>
1456
<xsl:text> -- </xsl:text>
623
        <xsl:param name="axis"/>
1457
<xsl:element name="a">
624
        <xsl:param name="beforeCodes"/>
1458
<xsl:attribute name="href">
625
        <xsl:param name="afterCodes"/>
1459
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
626
        <xsl:variable name="str">
1460
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
627
            <xsl:for-each select="marc:subfield">
1461
</xsl:if>
628
                <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])">
1462
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
629
                    <xsl:value-of select="text()"/>
1463
<xsl:text> -- </xsl:text>
630
                    <xsl:text> </xsl:text>
1464
<xsl:element name="a">
631
                </xsl:if>
1465
<xsl:attribute name="href">
632
            </xsl:for-each>
1466
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
633
        </xsl:variable>
1467
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
634
        <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
1468
</xsl:if>
635
    </xsl:template>
1469
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
636
1470
<xsl:text> -- </xsl:text>
637
</xsl:stylesheet>
1471
<xsl:element name="a">
1472
<xsl:attribute name="href">
1473
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1474
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1475
</xsl:if>
1476
<xsl:text> | </xsl:text>
1477
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1478
<xsl:choose>
1479
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1480
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1481
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1482
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1483
        </xsl:when>
1484
        <xsl:otherwise>
1485
          <xsl:value-of select="marc:subfield[@code='a']" />
1486
        </xsl:otherwise>
1487
      </xsl:choose> 
1488
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1489
<xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][2]!=''"><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:if>
1490
<xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][3]!=''"><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:if>
1491
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1492
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1493
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1494
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1495
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
1496
</span>
1497
</xsl:for-each>
1498
1499
1500
<xsl:for-each select="marc:datafield[@tag=604]">
1501
<span class="results_summary">
1502
<span class="label">Subject –  Author/Title&nbsp;: </span>
1503
<xsl:if test="marc:subfield[@code='a']">
1504
<xsl:element name="a">
1505
<xsl:attribute name="href">
1506
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1507
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1508
</xsl:if>
1509
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1510
<xsl:text>. </xsl:text>
1511
<xsl:element name="a">
1512
        <xsl:attribute name="href">
1513
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1514
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1515
<xsl:if test="marc:subfield[@code='b'][2]">
1516
<xsl:text>. </xsl:text>
1517
<xsl:element name="a">
1518
        <xsl:attribute name="href">
1519
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1520
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1521
</xsl:if>
1522
1523
<xsl:if test="marc:subfield[@code='b'][3]">
1524
<xsl:text>. </xsl:text>
1525
<xsl:element name="a">
1526
        <xsl:attribute name="href">
1527
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1528
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1529
</xsl:if>
1530
1531
       </xsl:if>
1532
<xsl:if test="marc:subfield[@code='c']">
1533
<xsl:text>. </xsl:text>
1534
<xsl:value-of select="marc:subfield[@code='c']"/>
1535
 </xsl:if>
1536
1537
<xsl:choose>
1538
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1539
 <xsl:text> ( </xsl:text>
1540
 <xsl:value-of select="marc:subfield[@code='d']"/>
1541
<xsl:text> ; </xsl:text>
1542
 <xsl:value-of select="marc:subfield[@code='f']"/>
1543
<xsl:text> ; </xsl:text>
1544
<xsl:value-of select="marc:subfield[@code='e']"/>
1545
 <xsl:text> ) </xsl:text>
1546
</xsl:when>
1547
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1548
 <xsl:text> ( </xsl:text>
1549
</xsl:when>
1550
<xsl:when test="marc:subfield[@code='d']">
1551
 <xsl:text> ( </xsl:text>
1552
 <xsl:value-of select="marc:subfield[@code='d']"/>
1553
 <xsl:text> ) </xsl:text>
1554
</xsl:when>
1555
</xsl:choose>
1556
1557
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1558
<xsl:text> -- </xsl:text>
1559
<xsl:value-of select="marc:subfield[@code='t']"/>
1560
</xsl:if>
1561
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1562
<xsl:text> -- </xsl:text>
1563
<xsl:element name="a">
1564
<xsl:attribute name="href">
1565
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1566
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1567
<xsl:if test="marc:subfield[@code='x'][2]">
1568
<xsl:text> -- </xsl:text>
1569
<xsl:element name="a">
1570
<xsl:attribute name="href">
1571
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1572
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1573
</xsl:if>
1574
<xsl:if test="marc:subfield[@code='x'][3]">
1575
<xsl:text> -- </xsl:text>
1576
<xsl:element name="a">
1577
<xsl:attribute name="href">
1578
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1579
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1580
</xsl:if>
1581
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1582
<xsl:text> -- </xsl:text>
1583
<xsl:element name="a">
1584
<xsl:attribute name="href">
1585
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1586
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1587
</xsl:if>
1588
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1589
<xsl:text> -- </xsl:text>
1590
<xsl:element name="a">
1591
<xsl:attribute name="href">
1592
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1593
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1594
</xsl:if>
1595
<xsl:text> | </xsl:text>
1596
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1597
<xsl:choose>
1598
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1599
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1600
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1601
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1602
        </xsl:when>
1603
        <xsl:otherwise>
1604
          <xsl:value-of select="marc:subfield[@code='a']" />
1605
        </xsl:otherwise>
1606
      </xsl:choose> 
1607
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1608
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1609
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1610
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1611
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1612
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
1613
</span>
1614
</xsl:for-each>
1615
1616
1617
<xsl:for-each select="marc:datafield[@tag=605]">
1618
<span class="results_summary">
1619
<span class="label">Subject –  Uniform title&nbsp;: </span>
1620
<xsl:if test="marc:subfield[@code='a']">
1621
<xsl:element name="a">
1622
<xsl:attribute name="href">
1623
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1624
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1625
</xsl:if>
1626
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1627
<xsl:text>. </xsl:text>
1628
<xsl:element name="a">
1629
        <xsl:attribute name="href">
1630
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1631
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1632
<xsl:if test="marc:subfield[@code='b'][2]">
1633
<xsl:text>. </xsl:text>
1634
<xsl:element name="a">
1635
        <xsl:attribute name="href">
1636
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1637
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1638
</xsl:if>
1639
1640
<xsl:if test="marc:subfield[@code='b'][3]">
1641
<xsl:text>. </xsl:text>
1642
<xsl:element name="a">
1643
        <xsl:attribute name="href">
1644
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1645
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1646
</xsl:if>
1647
1648
       </xsl:if>
1649
<xsl:if test="marc:subfield[@code='c']">
1650
<xsl:text>. </xsl:text>
1651
<xsl:value-of select="marc:subfield[@code='c']"/>
1652
 </xsl:if>
1653
1654
<xsl:choose>
1655
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1656
 <xsl:text> ( </xsl:text>
1657
 <xsl:value-of select="marc:subfield[@code='d']"/>
1658
<xsl:text> ; </xsl:text>
1659
 <xsl:value-of select="marc:subfield[@code='f']"/>
1660
<xsl:text> ; </xsl:text>
1661
<xsl:value-of select="marc:subfield[@code='e']"/>
1662
 <xsl:text> ) </xsl:text>
1663
</xsl:when>
1664
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1665
 <xsl:text> ( </xsl:text>
1666
</xsl:when>
1667
<xsl:when test="marc:subfield[@code='d']">
1668
 <xsl:text> ( </xsl:text>
1669
 <xsl:value-of select="marc:subfield[@code='d']"/>
1670
 <xsl:text> ) </xsl:text>
1671
</xsl:when>
1672
</xsl:choose>
1673
1674
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1675
<xsl:text> -- </xsl:text>
1676
<xsl:value-of select="marc:subfield[@code='t']"/>
1677
</xsl:if>
1678
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1679
<xsl:text> -- </xsl:text>
1680
<xsl:element name="a">
1681
<xsl:attribute name="href">
1682
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1683
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1684
<xsl:if test="marc:subfield[@code='x'][2]">
1685
<xsl:text> -- </xsl:text>
1686
<xsl:element name="a">
1687
<xsl:attribute name="href">
1688
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1689
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1690
</xsl:if>
1691
<xsl:if test="marc:subfield[@code='x'][3]">
1692
<xsl:text> -- </xsl:text>
1693
<xsl:element name="a">
1694
<xsl:attribute name="href">
1695
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1696
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
1697
</xsl:if>
1698
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1699
<xsl:text> -- </xsl:text>
1700
<xsl:element name="a">
1701
<xsl:attribute name="href">
1702
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
1703
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
1704
</xsl:if>
1705
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1706
<xsl:text> -- </xsl:text>
1707
<xsl:element name="a">
1708
<xsl:attribute name="href">
1709
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1710
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1711
</xsl:if>
1712
<xsl:text> | </xsl:text>
1713
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1714
<xsl:choose>
1715
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1716
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1717
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1718
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1719
        </xsl:when>
1720
        <xsl:otherwise>
1721
          <xsl:value-of select="marc:subfield[@code='a']" />
1722
        </xsl:otherwise>
1723
      </xsl:choose> 
1724
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
1725
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1726
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1727
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1728
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
1729
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
1730
</span>
1731
</xsl:for-each>
1732
1733
1734
1735
1736
<xsl:for-each select="marc:datafield[@tag=606]">
1737
<span class="results_summary">
1738
<span class="label">Subject&nbsp;: </span>
1739
<xsl:if test="marc:subfield[@code='a']">
1740
<xsl:element name="a">
1741
<xsl:attribute name="href">
1742
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1743
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1744
</xsl:if>
1745
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='j']">
1746
<xsl:text> -- </xsl:text>
1747
<xsl:element name="a">
1748
<xsl:attribute name="href">
1749
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='j'][1]"/>
1750
</xsl:attribute><xsl:value-of select="marc:subfield[@code='j'][1]"/></xsl:element>
1751
</xsl:if>
1752
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1753
<xsl:text> -- </xsl:text>
1754
<xsl:element name="a">
1755
<xsl:attribute name="href">
1756
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1757
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1758
<xsl:if test="marc:subfield[@code='x'][2]">
1759
<xsl:text> -- </xsl:text>
1760
<xsl:element name="a">
1761
<xsl:attribute name="href">
1762
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1763
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1764
</xsl:if>
1765
<xsl:if test="marc:subfield[@code='x'][3]">
1766
<xsl:text> -- </xsl:text>
1767
<xsl:element name="a">
1768
<xsl:attribute name="href">
1769
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1770
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
1771
</xsl:if>
1772
</xsl:if>
1773
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1774
<xsl:text> -- </xsl:text>
1775
<xsl:element name="a">
1776
<xsl:attribute name="href">
1777
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
1778
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
1779
<xsl:if test="marc:subfield[@code='y'][2]">
1780
<xsl:text> -- </xsl:text>
1781
<xsl:element name="a">
1782
<xsl:attribute name="href">
1783
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][2]"/>
1784
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:element>
1785
</xsl:if>
1786
<xsl:if test="marc:subfield[@code='y'][3]">
1787
<xsl:text> -- </xsl:text>
1788
<xsl:element name="a">
1789
<xsl:attribute name="href">
1790
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][3]"/>
1791
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:element>
1792
</xsl:if>
1793
</xsl:if>
1794
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1795
<xsl:text> -- </xsl:text>
1796
<xsl:element name="a">
1797
<xsl:attribute name="href">
1798
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1799
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1800
</xsl:if>
1801
<xsl:text> | </xsl:text>
1802
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1803
<xsl:choose>
1804
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1805
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1806
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1807
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1808
        </xsl:when>
1809
        <xsl:otherwise>
1810
          <xsl:value-of select="marc:subfield[@code='a']" />
1811
        </xsl:otherwise>
1812
      </xsl:choose> 
1813
<xsl:if test="marc:subfield[@code='x'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"> <xsl:value-of select="marc:subfield[@code='x'][2]"/>  </xsl:if><xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
1814
</span>
1815
</xsl:for-each>
1816
1817
1818
<xsl:for-each select="marc:datafield[@tag=607]">
1819
<span class="results_summary">
1820
<span class="label">Subject - geographical : </span>
1821
<xsl:if test="marc:subfield[@code='a']">
1822
<xsl:element name="a">
1823
<xsl:attribute name="href">
1824
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1825
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1826
</xsl:if>
1827
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1828
<xsl:text> -- </xsl:text>
1829
<xsl:element name="a">
1830
<xsl:attribute name="href">
1831
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1832
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1833
<xsl:if test="marc:subfield[@code='x'][2]">
1834
<xsl:text> -- </xsl:text>
1835
<xsl:element name="a">
1836
<xsl:attribute name="href">
1837
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1838
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1839
</xsl:if>
1840
<xsl:if test="marc:subfield[@code='x'][3]">
1841
<xsl:text> -- </xsl:text>
1842
<xsl:element name="a">
1843
<xsl:attribute name="href">
1844
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1845
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element>
1846
</xsl:if>
1847
</xsl:if>
1848
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
1849
<xsl:text> -- </xsl:text>
1850
<xsl:element name="a">
1851
<xsl:attribute name="href">
1852
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
1853
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
1854
<xsl:if test="marc:subfield[@code='y'][2]">
1855
<xsl:text> -- </xsl:text>
1856
<xsl:element name="a">
1857
<xsl:attribute name="href">
1858
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][2]"/>
1859
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:element>
1860
</xsl:if>
1861
<xsl:if test="marc:subfield[@code='y'][3]">
1862
<xsl:text> -- </xsl:text>
1863
<xsl:element name="a">
1864
<xsl:attribute name="href">
1865
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][3]"/>
1866
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:element>
1867
</xsl:if>
1868
<xsl:if test="marc:subfield[@code='y'][4]">
1869
<xsl:text> -- </xsl:text>
1870
<xsl:element name="a">
1871
<xsl:attribute name="href">
1872
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][4]"/>
1873
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][4]"/></xsl:element>
1874
</xsl:if>
1875
<xsl:if test="marc:subfield[@code='y'][5]">
1876
<xsl:text> -- </xsl:text>
1877
<xsl:element name="a">
1878
<xsl:attribute name="href">
1879
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][5]"/>
1880
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][5]"/></xsl:element>
1881
</xsl:if>
1882
<xsl:if test="marc:subfield[@code='y'][6]">
1883
<xsl:text> -- </xsl:text>
1884
<xsl:element name="a">
1885
<xsl:attribute name="href">
1886
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y'][6]"/>
1887
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][6]"/></xsl:element>
1888
</xsl:if>
1889
</xsl:if>
1890
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
1891
<xsl:text> -- </xsl:text>
1892
<xsl:element name="a">
1893
<xsl:attribute name="href">
1894
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
1895
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
1896
</xsl:if>
1897
<xsl:text> | </xsl:text>
1898
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
1899
<xsl:choose>
1900
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
1901
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
1902
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
1903
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
1904
        </xsl:when>
1905
        <xsl:otherwise>
1906
          <xsl:value-of select="marc:subfield[@code='a']" />
1907
        </xsl:otherwise>
1908
      </xsl:choose> 
1909
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
1910
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
1911
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
1912
<xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][1] !=''"><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:if>
1913
<xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][2] !=''"><xsl:value-of select="marc:subfield[@code='y'][2]"/></xsl:if>
1914
<xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y'][3] !=''"><xsl:value-of select="marc:subfield[@code='y'][3]"/></xsl:if>
1915
<xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
1916
</span> 
1917
</xsl:for-each>
1918
1919
1920
<xsl:for-each select="marc:datafield[@tag=608]">
1921
<span class="results_summary">
1922
<span class="label">Subject - Form, physical types&nbsp;: </span>
1923
<xsl:if test="marc:subfield[@code='a']">
1924
<xsl:element name="a">
1925
<xsl:attribute name="href">
1926
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='a']"/>
1927
</xsl:attribute><xsl:value-of select="marc:subfield[@code='a']"/></xsl:element>
1928
</xsl:if>
1929
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='b']">
1930
<xsl:text>. </xsl:text>
1931
<xsl:element name="a">
1932
        <xsl:attribute name="href">
1933
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][1]"/>
1934
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:element>
1935
<xsl:if test="marc:subfield[@code='b'][2]">
1936
<xsl:text>. </xsl:text>
1937
<xsl:element name="a">
1938
        <xsl:attribute name="href">
1939
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][2]"/>
1940
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][2]"/></xsl:element>
1941
</xsl:if>
1942
1943
<xsl:if test="marc:subfield[@code='b'][3]">
1944
<xsl:text>. </xsl:text>
1945
<xsl:element name="a">
1946
        <xsl:attribute name="href">
1947
     /cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='b'][3]"/>
1948
</xsl:attribute><xsl:value-of select="marc:subfield[@code='b'][3]"/></xsl:element>
1949
</xsl:if>
1950
1951
       </xsl:if>
1952
<xsl:if test="marc:subfield[@code='c']">
1953
<xsl:text>. </xsl:text>
1954
<xsl:value-of select="marc:subfield[@code='c']"/>
1955
 </xsl:if>
1956
1957
<xsl:choose>
1958
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1959
 <xsl:text> ( </xsl:text>
1960
 <xsl:value-of select="marc:subfield[@code='d']"/>
1961
<xsl:text> ; </xsl:text>
1962
 <xsl:value-of select="marc:subfield[@code='f']"/>
1963
<xsl:text> ; </xsl:text>
1964
<xsl:value-of select="marc:subfield[@code='e']"/>
1965
 <xsl:text> ) </xsl:text>
1966
</xsl:when>
1967
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1968
 <xsl:text> ( </xsl:text>
1969
</xsl:when>
1970
<xsl:when test="marc:subfield[@code='d']">
1971
 <xsl:text> ( </xsl:text>
1972
 <xsl:value-of select="marc:subfield[@code='d']"/>
1973
 <xsl:text> ) </xsl:text>
1974
</xsl:when>
1975
</xsl:choose>
1976
1977
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='t']">
1978
<xsl:text> -- </xsl:text>
1979
<xsl:value-of select="marc:subfield[@code='t']"/>
1980
</xsl:if>
1981
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='x']">
1982
<xsl:text> -- </xsl:text>
1983
<xsl:element name="a">
1984
<xsl:attribute name="href">
1985
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1986
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1987
<xsl:if test="marc:subfield[@code='x'][2]">
1988
<xsl:text> -- </xsl:text>
1989
<xsl:element name="a">
1990
<xsl:attribute name="href">
1991
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][2]"/>
1992
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:element>
1993
</xsl:if>
1994
<xsl:if test="marc:subfield[@code='x'][3]">
1995
<xsl:text> -- </xsl:text>
1996
<xsl:element name="a">
1997
<xsl:attribute name="href">
1998
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='x'][3]"/>
1999
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:element></xsl:if>
2000
</xsl:if>
2001
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='y']">
2002
<xsl:text> -- </xsl:text>
2003
<xsl:element name="a">
2004
<xsl:attribute name="href">
2005
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='y']"/>
2006
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y']"/></xsl:element>
2007
</xsl:if>
2008
<xsl:if test="marc:subfield[@code='a'] and  marc:subfield[@code='z']">
2009
<xsl:text> -- </xsl:text>
2010
<xsl:element name="a">
2011
<xsl:attribute name="href">
2012
/cgi-bin/koha/opac-search.pl?idx=su,phr&amp;q=<xsl:value-of select="marc:subfield[@code='z']"/>
2013
</xsl:attribute><xsl:value-of select="marc:subfield[@code='z']"/></xsl:element>
2014
</xsl:if>
2015
<xsl:text> | </xsl:text>
2016
<!-- recherche sur tous les mots --> <xsl:element name="a"><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=su&amp;q=
2017
<xsl:choose>
2018
        <xsl:when test="contains(marc:subfield[@code='a'],'(')">
2019
          <xsl:value-of select="substring-before(marc:subfield[@code='a'], '(')" />
2020
          <xsl:value-of select="substring-before(substring-after(marc:subfield[@code='a'], '('), ')')" />
2021
          <xsl:value-of select="substring-after(marc:subfield[@code='a'], ')')" />
2022
        </xsl:when>
2023
        <xsl:otherwise>
2024
          <xsl:value-of select="marc:subfield[@code='a']" />
2025
        </xsl:otherwise>
2026
      </xsl:choose> 
2027
<xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='b'][1]!=''"><xsl:value-of select="marc:subfield[@code='b'][1]"/></xsl:if>
2028
<xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][1]!=''"><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:if>
2029
<xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][2]!=''"><xsl:value-of select="marc:subfield[@code='x'][2]"/></xsl:if>
2030
<xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='x'][3]!=''"><xsl:value-of select="marc:subfield[@code='x'][3]"/></xsl:if>
2031
<xsl:if test="marc:subfield[@code='t']!=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='t']!=''"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if>
2032
<xsl:if test="marc:subfield[@code='y'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='y']!=''"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:if><xsl:if test="marc:subfield[@code='z'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='z']!=''"><xsl:value-of select="marc:subfield[@code='z']"/></xsl:if><xsl:if test="marc:subfield[@code='j'] !=''"><xsl:text>+</xsl:text></xsl:if> <xsl:if test="marc:subfield[@code='j']!=''"><xsl:value-of select="marc:subfield[@code='j']"/></xsl:if></xsl:attribute> <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute><xsl:attribute name="title">Lancer une recherche sur tous les mots sujet</xsl:attribute></xsl:element> </xsl:element>
2033
</span>
2034
</xsl:for-each>
2035
2036
2037
 <xsl:call-template name="tag_subject">
2038
 <xsl:with-param name="tag">615</xsl:with-param>
2039
 <xsl:with-param name="label">Category of subject</xsl:with-param>
2040
 </xsl:call-template>
2041
2042
 <xsl:call-template name="tag_subject">
2043
 <xsl:with-param name="tag">616</xsl:with-param>
2044
 <xsl:with-param name="label">Trademark</xsl:with-param>
2045
 </xsl:call-template>
2046
2047
2048
<xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
2049
<span class="results_summary">
2050
<span class="label">Online resource&nbsp;: </span>
2051
<xsl:for-each select="marc:datafield[@tag=856]">
2052
<xsl:variable name="url" select="substring-before(marc:subfield[@code='u'], '//')"/>
2053
<xsl:if test="contains($url,'http:')">
2054
<a>
2055
<xsl:attribute name="href">
2056
<xsl:value-of select="marc:subfield[@code='u']"/>
2057
</xsl:attribute>
2058
<xsl:choose>
2059
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
2060
<xsl:call-template name="subfieldSelect">
2061
<xsl:with-param name="codes">y3z</xsl:with-param>
2062
</xsl:call-template>
2063
</xsl:when>
2064
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
2065
Cliquer ici
2066
</xsl:when>
2067
</xsl:choose>
2068
</a>
2069
</xsl:if>
2070
<xsl:if test="not(contains($url,'http:'))">
2071
<a>
2072
<xsl:attribute name="href">
2073
http://<xsl:value-of select="marc:subfield[@code='u']"/>
2074
</xsl:attribute>
2075
<xsl:choose>
2076
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
2077
<xsl:call-template name="subfieldSelect">
2078
<xsl:with-param name="codes">y3z</xsl:with-param>
2079
</xsl:call-template>
2080
</xsl:when>
2081
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
2082
Cliquer ici
2083
</xsl:when>
2084
</xsl:choose>
2085
</a>
2086
</xsl:if>
2087
<xsl:choose>
2088
<xsl:when test="position()=last()"/>
2089
<xsl:otherwise> | </xsl:otherwise>
2090
</xsl:choose>
2091
</xsl:for-each>
2092
</span>
2093
</xsl:if>
2094
2095
<!--
2096
<xsl:if test="marc:datafield[@tag=901]">
2097
2098
 <span class="results_summary">
2099
<span class="label">Type:</span>
2100
 <xsl:for-each select="marc:datafield[@tag=901]">
2101
 <xsl:for-each select="marc:subfield">
2102
 <xsl:value-of select="text()"/>
2103
 <xsl:choose>
2104
 <xsl:when test="position()=last()">
2105
 <xsl:text>.</xsl:text>
2106
 </xsl:when>
2107
 <xsl:otherwise><xsl:text>, </xsl:text>
2108
 </xsl:otherwise>
2109
 </xsl:choose>
2110
 </xsl:for-each>
2111
 </xsl:for-each>
2112
 </span>
2113
 </xsl:if>
2114
-->
2115
2116
 <!-- 780 -->
2117
 <xsl:if test="marc:datafield[@tag=780]">
2118
 <xsl:for-each select="marc:datafield[@tag=780]">
2119
 <li>
2120
 <xsl:choose>
2121
 <xsl:when test="@ind2=0">
2122
 <strong>Continue&nbsp;: </strong>
2123
 </xsl:when>
2124
 <xsl:when test="@ind2=1">
2125
 <strong>Continue in part&nbsp;: </strong>
2126
 </xsl:when>
2127
 <xsl:when test="@ind2=2">
2128
 <strong>Replace&nbsp;: </strong>
2129
 </xsl:when>
2130
 <xsl:when test="@ind2=3">
2131
 <strong>Replace in part&nbsp;: </strong>
2132
 </xsl:when>
2133
 <xsl:when test="@ind2=4">
2134
 <strong>Merged ... and: ...</strong>
2135
 </xsl:when>
2136
 <xsl:when test="@ind2=5">
2137
 <strong>Absorbed&nbsp;: </strong>
2138
 </xsl:when>
2139
 <xsl:when test="@ind2=6">
2140
 <strong>Absorbed in part&nbsp;:</strong>
2141
 </xsl:when>
2142
 <xsl:when test="@ind2=7">
2143
 <strong>Separed &nbsp;:</strong>
2144
 </xsl:when>
2145
 </xsl:choose>
2146
2147
 <xsl:variable name="f780">
2148
 <xsl:call-template name="subfieldSelect">
2149
 <xsl:with-param name="codes">à</xsl:with-param>
2150
 </xsl:call-template>
2151
 </xsl:variable>
2152
 <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
2153
 <xsl:value-of select="translate($f780, '()', '')"/>
2154
 </a>
2155
 </li>
2156
2157
 <xsl:choose>
2158
 <xsl:when test="@ind1=0">
2159
 <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
2160
 </xsl:when>
2161
 </xsl:choose>
2162
2163
 </xsl:for-each>
2164
 </xsl:if>
2165
2166
 <!-- 785 -->
2167
 <xsl:if test="marc:datafield[@tag=785]">
2168
 <xsl:for-each select="marc:datafield[@tag=785]">
2169
 <li>
2170
 <xsl:choose>
2171
 <xsl:when test="@ind2=0">
2172
 <strong>Continue by&nbsp;:</strong>
2173
 </xsl:when>
2174
 <xsl:when test="@ind2=1">
2175
 <strong>Continue in part&nbsp;:</strong>
2176
 </xsl:when>
2177
 <xsl:when test="@ind2=2">
2178
 <strong>Replace by&nbsp;:</strong>
2179
 </xsl:when>
2180
 <xsl:when test="@ind2=3">
2181
 <strong>Replace by&nbsp;:</strong>
2182
 </xsl:when>
2183
 <xsl:when test="@ind2=4">
2184
 <strong>Absorbed by&nbsp;:</strong>
2185
 </xsl:when>
2186
 <xsl:when test="@ind2=5">
2187
 <strong>Absorbé partiellement par:</strong>
2188
 </xsl:when>
2189
 <xsl:when test="@ind2=6">
2190
 <strong>Explode of ... at ... :</strong>
2191
 </xsl:when>
2192
 <xsl:when test="@ind2=7">
2193
 <strong>Merged with ... to train ...</strong>
2194
 </xsl:when>
2195
 <xsl:when test="@ind2=8">
2196
 <strong>Redevient:</strong>
2197
 </xsl:when>
2198
 </xsl:choose>
2199
 <xsl:variable name="f785">
2200
 <xsl:call-template name="subfieldSelect">
2201
 <xsl:with-param name="codes">à</xsl:with-param>
2202
 </xsl:call-template>
2203
 </xsl:variable>
2204
2205
 <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
2206
 <xsl:value-of select="translate($f785, '()', '')"/>
2207
 </a>
2208
2209
 </li>
2210
 </xsl:for-each>
2211
 </xsl:if>
2212
2213
 <xsl:if test="marc:datafield[@tag=033]/marc:subfield[@code='a']">
2214
 <span class="results_summary">
2215
 <span class="label">Other System Persistent Identifier&nbsp;: </span>
2216
 <xsl:for-each select="marc:datafield[@tag=033]">
2217
 <xsl:variable name="url" select="substring-before(marc:subfield[@code='a'], '//')"/>
2218
 <xsl:if test="contains($url,'http:')">
2219
 <a>
2220
 <xsl:attribute name="href">
2221
 <xsl:value-of select="marc:subfield[@code='a']"/>
2222
 </xsl:attribute>
2223
 <xsl:value-of select="marc:subfield[@code='a']"/>
2224
 </a>
2225
 </xsl:if>
2226
 <xsl:choose>
2227
 <xsl:when test="position()=last()"/>
2228
 <xsl:otherwise> | </xsl:otherwise>
2229
 </xsl:choose>
2230
 </xsl:for-each>
2231
 </span>
2232
 </xsl:if>
2233
 
2234
 </xsl:template>
2235
2236
 <xsl:template name="nameABCDQ">
2237
 <xsl:call-template name="chopPunctuation">
2238
 <xsl:with-param name="chopString">
2239
 <xsl:call-template name="subfieldSelect">
2240
 <xsl:with-param name="codes">aq</xsl:with-param>
2241
 </xsl:call-template>
2242
 </xsl:with-param>
2243
 <xsl:with-param name="punctuation">
2244
 <xsl:text>:,;/ </xsl:text>
2245
 </xsl:with-param>
2246
 </xsl:call-template>
2247
 <xsl:call-template name="termsOfAddress"/>
2248
 </xsl:template>
2249
2250
 <xsl:template name="nameABCDN">
2251
 <xsl:for-each select="marc:subfield[@code='a']">
2252
 <xsl:call-template name="chopPunctuation">
2253
 <xsl:with-param name="chopString" select="."/>
2254
 </xsl:call-template>
2255
 </xsl:for-each>
2256
 <xsl:for-each select="marc:subfield[@code='b']">
2257
 <xsl:value-of select="."/>
2258
 </xsl:for-each>
2259
 <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
2260
 <xsl:call-template name="subfieldSelect">
2261
 <xsl:with-param name="codes">cdn</xsl:with-param>
2262
 </xsl:call-template>
2263
 </xsl:if>
2264
 </xsl:template>
2265
2266
 <xsl:template name="nameACDEQ">
2267
 <xsl:call-template name="subfieldSelect">
2268
 <xsl:with-param name="codes">acdeq</xsl:with-param>
2269
 </xsl:call-template>
2270
 </xsl:template>
2271
 <xsl:template name="termsOfAddress">
2272
 <xsl:if test="marc:subfield[@code='b' or @code='c']">
2273
 <xsl:call-template name="chopPunctuation">
2274
 <xsl:with-param name="chopString">
2275
 <xsl:call-template name="subfieldSelect">
2276
 <xsl:with-param name="codes">bc</xsl:with-param>
2277
 </xsl:call-template>
2278
 </xsl:with-param>
2279
 </xsl:call-template>
2280
 </xsl:if>
2281
 </xsl:template>
2282
2283
 <xsl:template name="part">
2284
 <xsl:variable name="partNumber">
2285
 <xsl:call-template name="specialSubfieldSelect">
2286
 <xsl:with-param name="axis">n</xsl:with-param>
2287
 <xsl:with-param name="anyCodes">n</xsl:with-param>
2288
 <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2289
 </xsl:call-template>
2290
 </xsl:variable>
2291
 <xsl:variable name="partName">
2292
 <xsl:call-template name="specialSubfieldSelect">
2293
 <xsl:with-param name="axis">p</xsl:with-param>
2294
 <xsl:with-param name="anyCodes">p</xsl:with-param>
2295
 <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
2296
 </xsl:call-template>
2297
 </xsl:variable>
2298
 <xsl:if test="string-length(normalize-space($partNumber))">
2299
 <xsl:call-template name="chopPunctuation">
2300
 <xsl:with-param name="chopString" select="$partNumber"/>
2301
 </xsl:call-template>
2302
 </xsl:if>
2303
 <xsl:if test="string-length(normalize-space($partName))">
2304
 <xsl:call-template name="chopPunctuation">
2305
 <xsl:with-param name="chopString" select="$partName"/>
2306
 </xsl:call-template>
2307
 </xsl:if>
2308
 </xsl:template>
2309
2310
 <xsl:template name="specialSubfieldSelect">
2311
 <xsl:param name="anyCodes"/>
2312
 <xsl:param name="axis"/>
2313
 <xsl:param name="beforeCodes"/>
2314
 <xsl:param name="afterCodes"/>
2315
 <xsl:variable name="str">
2316
 <xsl:for-each select="marc:subfield">
2317
 <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])">
2318
 <xsl:value-of select="text()"/>
2319
 <xsl:text> </xsl:text>
2320
 </xsl:if>
2321
 </xsl:for-each>
2322
 </xsl:variable>
2323
 <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
2324
 </xsl:template>
2325
2326
 </xsl:stylesheet>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (-1 / +1 lines)
Lines 151-157 Link Here
151
  </xsl:call-template>
151
  </xsl:call-template>
152
152
153
  <xsl:call-template name="tag_210" />
153
  <xsl:call-template name="tag_210" />
154
154
  <xsl:call-template name="tag_214" />
155
  <xsl:call-template name="tag_215" />
155
  <xsl:call-template name="tag_215" />
156
156
157
  <span class="results_summary availability">
157
  <span class="results_summary availability">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl (-404 / +1656 lines)
Lines 1-411 Link Here
1
<?xml version='1.0'?>
2
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
1
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
2
5
<xsl:stylesheet version="1.0"
3
<xsl:stylesheet version="1.0"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
4
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:items="http://www.koha-community.org/items"
5
  xmlns:items="http://www.koha-community.org/items"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  xmlns:str="http://exslt.org/strings"
7
  exclude-result-prefixes="marc items">
10
  exclude-result-prefixes="marc items str">
8
11
9
 <xsl:template name="datafield">
12
  <xsl:template name="datafield">
10
 <xsl:param name="tag"/>
13
    <xsl:param name="tag"/>
11
 <xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
14
    <xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
12
 <xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
15
    <xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
13
 <xsl:param name="subfields"/>
16
    <xsl:param name="subfields"/>
14
 <xsl:element name="datafield">
17
    <xsl:element name="datafield">
15
 <xsl:attribute name="tag">
18
      <xsl:attribute name="tag">
16
 <xsl:value-of select="$tag"/>
19
        <xsl:value-of select="$tag"/>
17
 </xsl:attribute>
20
      </xsl:attribute>
18
 <xsl:attribute name="ind1">
21
      <xsl:attribute name="ind1">
19
 <xsl:value-of select="$ind1"/>
22
        <xsl:value-of select="$ind1"/>
20
 </xsl:attribute>
23
      </xsl:attribute>
21
 <xsl:attribute name="ind2">
24
      <xsl:attribute name="ind2">
22
 <xsl:value-of select="$ind2"/>
25
       <xsl:value-of select="$ind2"/>
23
 </xsl:attribute>
26
         </xsl:attribute>
24
 <xsl:copy-of select="$subfields"/>
27
       <xsl:copy-of select="$subfields"/>
25
 </xsl:element>
28
    </xsl:element>
26
 </xsl:template>
29
  </xsl:template>
27
30
28
 <xsl:template name="subfieldSelect">
31
  <xsl:template name="subfieldSelect">
29
 <xsl:param name="codes"/>
32
    <xsl:param name="codes"/>
30
 <xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
33
    <xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
31
 <xsl:param name="subdivCodes"/>
34
    <xsl:param name="subdivCodes"/>
32
 <xsl:param name="subdivDelimiter"/>
35
    <xsl:param name="subdivDelimiter"/>
33
 <xsl:variable name="str">
36
    <xsl:param name="urlencode"/>
34
 <xsl:for-each select="marc:subfield">
37
    <xsl:variable name="str">
35
 <xsl:if test="contains($codes, @code)">
38
      <xsl:for-each select="marc:subfield">
36
 <xsl:if test="contains($subdivCodes, @code)">
39
        <xsl:if test="contains($codes, @code)">
37
 <xsl:value-of select="$subdivDelimiter"/>
40
          <xsl:if test="contains($subdivCodes, @code)">
38
 </xsl:if>
41
            <xsl:value-of select="$subdivDelimiter"/>
39
 <xsl:value-of select="text()"/><xsl:value-of select="$delimeter"/>
42
          </xsl:if>
40
 </xsl:if>
43
          <xsl:value-of select="text()"/><xsl:value-of select="$delimeter"/>
41
 </xsl:for-each>
44
        </xsl:if>
42
 </xsl:variable>
45
      </xsl:for-each>
43
 <xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
46
    </xsl:variable>
44
 </xsl:template>
47
    <xsl:choose>
45
48
      <xsl:when test="$urlencode=1">
46
 <xsl:template name="buildSpaces">
49
        <xsl:value-of select="str:encode-uri(substring($str,1,string-length($str)-string-length($delimeter)), true())"/>
47
 <xsl:param name="spaces"/>
50
      </xsl:when>
48
 <xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
51
      <xsl:otherwise>
49
 <xsl:if test="$spaces>0">
52
        <xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
50
 <xsl:value-of select="$char"/>
53
      </xsl:otherwise>
51
 <xsl:call-template name="buildSpaces">
54
    </xsl:choose>
52
 <xsl:with-param name="spaces" select="$spaces - 1"/>
55
  </xsl:template>
53
 <xsl:with-param name="char" select="$char"/>
56
54
 </xsl:call-template>
57
  <xsl:template name="buildSpaces">
55
 </xsl:if>
58
    <xsl:param name="spaces"/>
56
 </xsl:template>
59
    <xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
57
60
    <xsl:if test="$spaces>0">
58
 <xsl:template name="buildBiblioDefaultViewURL">
61
      <xsl:value-of select="$char"/>
59
 <xsl:param name="BiblioDefaultView"/>
62
      <xsl:call-template name="buildSpaces">
60
 <xsl:choose>
63
        <xsl:with-param name="spaces" select="$spaces - 1"/>
61
 <xsl:when test="$BiblioDefaultView='normal'">
64
        <xsl:with-param name="char" select="$char"/>
62
 <xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
65
      </xsl:call-template>
63
 </xsl:when>
66
    </xsl:if>
64
 <xsl:when test="$BiblioDefaultView='isbd'">
67
  </xsl:template>
65
 <xsl:text>/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=</xsl:text>
68
66
 </xsl:when>
69
  <xsl:template name="buildBiblioDefaultViewURL">
67
 <xsl:when test="$BiblioDefaultView='marc'">
70
    <xsl:param name="BiblioDefaultView"/>
68
 <xsl:text>/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=</xsl:text>
71
    <xsl:choose>
69
 </xsl:when>
72
        <xsl:when test="$BiblioDefaultView='normal'">
70
 <xsl:otherwise>
73
            <xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
71
 <xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
74
        </xsl:when>
72
 </xsl:otherwise>
75
        <xsl:when test="$BiblioDefaultView='isbd'">
73
 </xsl:choose>
76
            <xsl:text>/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=</xsl:text>
74
 </xsl:template>
77
        </xsl:when>
75
78
        <xsl:when test="$BiblioDefaultView='marc'">
76
79
            <xsl:text>/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=</xsl:text>
77
 <xsl:template name="chopPunctuation">
80
        </xsl:when>
78
 <xsl:param name="chopString"/>
81
        <xsl:otherwise>
79
 <xsl:variable name="length" select="string-length($chopString)"/>
82
            <xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
80
 <xsl:choose>
83
        </xsl:otherwise>
81
 <xsl:when test="$length=0"/>
84
    </xsl:choose>
82
 <xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
85
  </xsl:template>
83
 <xsl:call-template name="chopPunctuation">
86
84
 <xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
87
85
 </xsl:call-template>
88
  <xsl:template name="chopPunctuation">
86
 </xsl:when>
89
    <xsl:param name="chopString"/>
87
 <xsl:when test="not($chopString)"/>
90
    <xsl:variable name="length" select="string-length($chopString)"/>
88
 <xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
91
    <xsl:choose>
89
 </xsl:choose>
92
      <xsl:when test="$length=0"/>
90
 <xsl:text> </xsl:text>
93
      <xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
91
 </xsl:template>
94
        <xsl:call-template name="chopPunctuation">
92
95
          <xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
93
 <xsl:template name="addClassRtl">
96
        </xsl:call-template>
94
 <xsl:variable name="lang" select="marc:subfield[@code='7']" />
97
      </xsl:when>
95
 <xsl:if test="$lang = 'ha' or $lang = 'Hebrew' or $lang = 'fa' or $lang = 'Arabe'">
98
      <xsl:when test="not($chopString)"/>
96
 <xsl:attribute name="class">rtl</xsl:attribute>
99
      <xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
97
 </xsl:if>
100
    </xsl:choose>
98
 </xsl:template>
101
    <xsl:text> </xsl:text>
99
102
  </xsl:template>
100
 <xsl:template name="tag_title">
103
101
 <xsl:param name="tag" />
104
  <xsl:template name="addClassRtl">
102
 <xsl:param name="label" />
105
    <xsl:variable name="lang" select="marc:subfield[@code='7']" />
103
 <xsl:param name="spanclass" />
106
    <xsl:if test="$lang = 'ha' or $lang = 'Hebrew' or $lang = 'fa' or $lang = 'Arabe'">
104
 <xsl:if test="marc:datafield[@tag=$tag]">
107
      <xsl:attribute name="class">rtl</xsl:attribute>
105
 <span class="results_summary">
108
    </xsl:if>
106
 <span class="label">
109
  </xsl:template>
107
 <xsl:value-of select="$label"/>: </span>
110
108
 <xsl:for-each select="marc:datafield[@tag=$tag]">
111
  <xsl:template name="tag_title">
109
 <xsl:call-template name="addClassRtl" />
112
    <xsl:param name="tag" />
110
 <xsl:for-each select="marc:subfield">
113
    <xsl:param name="label" />
111
 <xsl:choose>
114
    <xsl:param name="spanclass" />
112
 <xsl:when test="@code='a'">
115
    <xsl:if test="marc:datafield[@tag=$tag]">
113
 <xsl:variable name="title" select="."/>
116
      <span class="results_summary {$spanclass}">
114
 <xsl:variable name="ntitle"
117
        <span class="label">
115
 select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
118
        <xsl:value-of select="$label"/>: </span>
116
 <xsl:value-of select="$ntitle" />
119
        <xsl:for-each select="marc:datafield[@tag=$tag]">
117
 </xsl:when>
120
          <xsl:call-template name="addClassRtl" />
118
 <xsl:when test="@code='b'">
121
          <xsl:for-each select="marc:subfield">
119
 <xsl:text>[</xsl:text>
122
            <xsl:choose>
120
 <xsl:value-of select="."/>
123
              <xsl:when test="@code='a'">
121
 <xsl:text>]</xsl:text>
124
                <xsl:variable name="title" select="."/>
122
 </xsl:when>
125
                <xsl:variable name="ntitle"
123
 <xsl:when test="@code='d'">
126
                 select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
124
 <xsl:text> = </xsl:text>
127
                <xsl:value-of select="$ntitle" />
125
 <xsl:value-of select="."/>
128
              </xsl:when>
126
 </xsl:when>
129
              <xsl:when test="@code='b'">
127
 <xsl:when test="@code='e'">
130
                <xsl:text>[</xsl:text>
128
 <xsl:text> : </xsl:text>
131
                <xsl:value-of select="."/>
129
 <xsl:value-of select="."/>
132
                <xsl:text>]</xsl:text>
130
 </xsl:when>
133
              </xsl:when>
131
 <xsl:when test="@code='f'">
134
              <xsl:when test="@code='d'">
132
 <xsl:text> / </xsl:text>
135
                <xsl:text> = </xsl:text>
133
 <xsl:value-of select="."/>
136
                <xsl:value-of select="."/>
134
 </xsl:when>
137
              </xsl:when>
135
 <xsl:when test="@code='g'">
138
              <xsl:when test="@code='e'">
136
 <xsl:text> ; </xsl:text>
139
                <xsl:text> : </xsl:text>
137
 <xsl:value-of select="."/>
140
                <xsl:value-of select="."/>
138
 </xsl:when>
141
              </xsl:when>
139
 <xsl:otherwise>
142
              <xsl:when test="@code='f'">
140
 <xsl:if test="position()>1">
143
                <xsl:text> / </xsl:text>
141
 <xsl:text>, </xsl:text>
144
                <xsl:value-of select="."/>
142
 </xsl:if>
145
              </xsl:when>
143
 <xsl:value-of select="."/>
146
              <xsl:when test="@code='g'">
144
 </xsl:otherwise>
147
                <xsl:text> ; </xsl:text>
145
 </xsl:choose>
148
                <xsl:value-of select="."/>
146
 </xsl:for-each>
149
              </xsl:when>
147
 <xsl:if test="not (position() = last())">
150
              <xsl:otherwise>
148
 <xsl:text> • </xsl:text>
151
                <xsl:if test="position()>1">
149
 </xsl:if>
152
                  <xsl:text>, </xsl:text>
150
 </xsl:for-each>
153
                </xsl:if>
151
 </span>
154
                <xsl:value-of select="."/>
152
 </xsl:if>
155
              </xsl:otherwise>
153
 </xsl:template>
156
            </xsl:choose>
154
157
          </xsl:for-each>
155
 <xsl:template name="tag_comma">
158
          <xsl:if test="not (position() = last())">
156
 <xsl:param name="tag" />
159
            <xsl:text> • </xsl:text>
157
 <xsl:param name="label" />
160
          </xsl:if>
158
 <xsl:param name="spanclass" />
161
        </xsl:for-each>
159
 <xsl:if test="marc:datafield[@tag=$tag]">
162
      </span>
160
 <span class="results_summary {$spanclass}">
163
    </xsl:if>
161
 <span class="label">
164
  </xsl:template>
162
 <xsl:value-of select="$label"/>: </span>
165
163
 <xsl:for-each select="marc:datafield[@tag=$tag]">
166
  <xsl:template name="tag_comma">
164
 <xsl:call-template name="addClassRtl" />
167
    <xsl:param name="tag" />
165
 <xsl:for-each select="marc:subfield">
168
    <xsl:param name="label" />
166
 <xsl:if test="position()>1">
169
    <xsl:param name="spanclass" />
167
 <xsl:text>, </xsl:text>
170
    <xsl:if test="marc:datafield[@tag=$tag]">
168
 </xsl:if>
171
      <span class="results_summary {$spanclass}">
169
 <xsl:value-of select="."/>
172
        <span class="label">
170
 </xsl:for-each>
173
        <xsl:value-of select="$label"/>: </span>
171
 <xsl:if test="not (position() = last())">
174
        <xsl:for-each select="marc:datafield[@tag=$tag]">
172
 <xsl:text> • </xsl:text>
175
          <xsl:call-template name="addClassRtl" />
173
 </xsl:if>
176
          <xsl:for-each select="marc:subfield">
174
 </xsl:for-each>
177
            <xsl:if test="position()>1">
175
 </span>
178
              <xsl:text>, </xsl:text>
176
 </xsl:if>
179
            </xsl:if>
177
 </xsl:template>
180
            <xsl:value-of select="."/>
178
181
          </xsl:for-each>
179
 <xsl:template name="tag_210">
182
          <xsl:if test="not (position() = last())">
180
<xsl:for-each select="marc:datafield[@tag=210]">
183
            <xsl:text> • </xsl:text>
181
<span class="results_summary">
184
          </xsl:if>
182
<span class="label">Publication&nbsp;: </span>
185
        </xsl:for-each>
183
<xsl:choose>
186
      </span>
184
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
187
    </xsl:if>
185
<xsl:value-of select="marc:subfield[@code='a'][1]"/>
188
  </xsl:template>
186
<xsl:text> : </xsl:text>
189
187
<xsl:element name="a">
190
  <xsl:template name="tag_210">
188
<xsl:attribute name="href">
191
    <span class="results_summary publication">
189
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
192
      <span class="label">Publication: </span>
190
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
193
      <xsl:for-each select="marc:datafield[@tag=210]">
191
</xsl:attribute>
194
        <span>
192
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
195
          <xsl:call-template name="addClassRtl" />
193
</xsl:element>
196
          <xsl:for-each select="marc:subfield">
194
<xsl:text> ; </xsl:text>
197
            <xsl:choose>
195
<xsl:value-of select="marc:subfield[@code='a'][2]"/>
198
              <xsl:when test="@code='c' or @code='g'">
196
<xsl:text> : </xsl:text>
199
                <xsl:if test="position()>1">
197
<xsl:element name="a">
200
                  <xsl:text> : </xsl:text>
198
<xsl:attribute name="href">
201
                </xsl:if>
199
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
202
                <xsl:value-of select="."/>
200
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
203
              </xsl:when>
201
</xsl:attribute>
204
              <xsl:otherwise>
202
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
205
                <xsl:if test="position()>1">
203
</xsl:element>
206
                  <xsl:text>, </xsl:text>
204
<xsl:if test="marc:subfield[@code='a'][3]">
207
                </xsl:if>
205
<xsl:text> ; </xsl:text>
208
                <xsl:value-of select="."/>
206
<xsl:value-of select="marc:subfield[@code='a'][3]"/>
209
              </xsl:otherwise>
207
</xsl:if>
210
            </xsl:choose>
208
<xsl:if test="marc:subfield[@code='c'][3]">
211
          </xsl:for-each>
209
<xsl:text> : </xsl:text>
212
          <xsl:if test="not (position() = last())">
210
<xsl:element name="a">
213
            <xsl:text> • </xsl:text>
211
<xsl:attribute name="href">
214
          </xsl:if>
212
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
215
        </span>
213
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
216
      </xsl:for-each>
214
</xsl:attribute>
217
    </span>
215
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
218
  </xsl:template>
216
</xsl:element>
219
217
</xsl:if>
220
  <xsl:template name="tag_215">
218
<xsl:text>, </xsl:text>
221
    <xsl:for-each select="marc:datafield[@tag=215]">
219
<xsl:value-of select="marc:subfield[@code='d']"/>
222
	  <span class="results_summary description">
220
<xsl:if test="marc:subfield[@code='e']">
223
        <span class="label">Description: </span>
221
<xsl:text> (</xsl:text>
224
        <xsl:if test="marc:subfield[@code='a']">
222
<xsl:value-of select="marc:subfield[@code='e']"/>
225
          <xsl:value-of select="marc:subfield[@code='a']"/>
223
<xsl:if test="marc:subfield[@code='g']">
226
        </xsl:if>
224
<xsl:text> : </xsl:text>
227
        <xsl:if test="marc:subfield[@code='c']"> :
225
<xsl:value-of select="marc:subfield[@code='g']"/>
228
          <xsl:value-of select="marc:subfield[@code='c']"/>
226
</xsl:if>
229
        </xsl:if>
227
<xsl:text>)</xsl:text>
230
        <xsl:if test="marc:subfield[@code='d']"> ;
228
</xsl:if>
231
          <xsl:value-of select="marc:subfield[@code='d']"/>
229
</xsl:when>
232
        </xsl:if>
230
233
        <xsl:if test="marc:subfield[@code='e']"> +
231
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
234
          <xsl:value-of select="marc:subfield[@code='e']"/>
232
<xsl:value-of select="marc:subfield[@code='a']"/>
235
        </xsl:if>
233
<xsl:if test="position()!=last()">
236
      </span>
234
<xsl:text> ; </xsl:text>
237
    </xsl:for-each>
235
</xsl:if>
238
  </xsl:template>
236
<xsl:if test="position()=last()">
239
237
<xsl:text> : </xsl:text>
240
  <xsl:template name="tag_onesubject">
238
</xsl:if>
241
    <xsl:choose>
239
<xsl:for-each select="marc:subfield[@code='c']">
242
      <xsl:when test="marc:subfield[@code=9]">
240
<xsl:element name="a">
243
        <xsl:for-each select="marc:subfield">
241
<xsl:attribute name="href">
244
          <xsl:if test="@code='9'">
242
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
245
            <xsl:variable name="start" select="position()"/>
243
<xsl:value-of select="text()"/>
246
            <xsl:variable name="ends">
244
</xsl:attribute>
247
              <xsl:for-each select="../marc:subfield[position() &gt; $start]">
245
<xsl:value-of select="text()"/>
248
                <xsl:if test="@code=9">
246
</xsl:element>
249
                  <xsl:variable name="end" select="position() + $start"/>
247
<xsl:if test="position()!=last()">
250
                  <xsl:value-of select="$end"/>
248
<xsl:text> : </xsl:text>
251
                  <xsl:text>,</xsl:text>
249
</xsl:if>
252
                </xsl:if>
250
<xsl:if test="position()=last()">
253
              </xsl:for-each>
251
<xsl:text></xsl:text>
254
            </xsl:variable>
252
</xsl:if>
255
            <xsl:variable name="end">
253
</xsl:for-each>
256
              <xsl:choose>
254
<xsl:text>, </xsl:text>
257
                <xsl:when test="string-length($ends) > 0">
255
<xsl:value-of select="marc:subfield[@code='d']"/>
258
                  <xsl:value-of select="substring-before($ends,',')"/>
256
<xsl:if test="marc:subfield[@code='e']">
259
                </xsl:when>
257
<xsl:text> (</xsl:text>
260
                <xsl:otherwise>
258
<xsl:value-of select="marc:subfield[@code='e']"/>
261
                  <xsl:text>1000</xsl:text>
259
<xsl:if test="marc:subfield[@code='g']">
262
                </xsl:otherwise>
260
<xsl:text> : </xsl:text>
263
              </xsl:choose>
261
<xsl:value-of select="marc:subfield[@code='g']"/>
264
            </xsl:variable>
262
</xsl:if>
265
            <xsl:variable name="display">
263
<xsl:text>)</xsl:text>
266
              <xsl:for-each select="../marc:subfield[position() &gt; $start and position() &lt; $end and @code!=2 and @code!=3]">
264
</xsl:if>
267
                <xsl:value-of select="."/>
265
</xsl:when>
268
                <xsl:if test="not(position()=last())">
266
269
                  <xsl:text>, </xsl:text>
267
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
270
                </xsl:if>
268
<xsl:for-each select="marc:subfield[@code='a']">
271
              </xsl:for-each>
269
<xsl:value-of select="text()"/>
272
            </xsl:variable>
270
<xsl:if test="position()!=last()">
273
            <a>
271
<xsl:text> ; </xsl:text>
274
              <xsl:attribute name="href">
272
</xsl:if>
275
                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
273
<xsl:if test="position()=last()">
276
                <xsl:value-of select="str:encode-uri(., true())"/>
274
<xsl:text> : </xsl:text>
277
              </xsl:attribute>
275
</xsl:if>
278
              <xsl:choose>
276
</xsl:for-each>
279
                <xsl:when test="string-length($display) &gt; 0">
277
<xsl:element name="a">
280
                  <xsl:call-template name="chopPunctuation">
278
<xsl:attribute name="href">
281
                    <xsl:with-param name="chopString">
279
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
282
                      <xsl:value-of select="$display"/>
280
<xsl:value-of select="marc:subfield[@code='c']"/>
283
                    </xsl:with-param>
281
</xsl:attribute>
284
                  </xsl:call-template>
282
<xsl:value-of select="marc:subfield[@code='c']"/>
285
                </xsl:when>
283
</xsl:element>
286
                <xsl:otherwise>
284
<xsl:if test="position()!=last()">
287
                  <xsl:value-of select="."/>
285
<xsl:text> : </xsl:text>
288
                </xsl:otherwise>
286
</xsl:if>
289
              </xsl:choose>
287
<xsl:if test="position()=last()">
290
            </a>
288
<xsl:text></xsl:text>
291
            <xsl:variable name="ncommas"
289
</xsl:if>
292
                 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
290
<xsl:text>, </xsl:text>
293
            <xsl:if test="$ncommas &gt; 1">
291
<xsl:value-of select="marc:subfield[@code='d']"/>
294
              <xsl:text> -- </xsl:text>
292
<xsl:if test="marc:subfield[@code='e']">
295
            </xsl:if>
293
<xsl:text> (</xsl:text>
296
          </xsl:if>
294
<xsl:value-of select="marc:subfield[@code='e']"/>
297
        </xsl:for-each>
295
<xsl:if test="marc:subfield[@code='g']">
298
      </xsl:when>
296
<xsl:text> : </xsl:text>
299
      <xsl:when test="marc:subfield[@code='a']">
297
<xsl:value-of select="marc:subfield[@code='g']"/>
300
        <a>
298
</xsl:if>
301
          <xsl:attribute name="href">
299
<xsl:text>)</xsl:text>
302
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
300
</xsl:if>
303
            <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
301
</xsl:when>
304
          </xsl:attribute>
302
305
          <xsl:call-template name="chopPunctuation">
303
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
306
            <xsl:with-param name="chopString">
304
<xsl:value-of select="marc:subfield[@code='a']"/>
307
              <xsl:call-template name="subfieldSelect">
305
<xsl:text> : </xsl:text>
308
                <xsl:with-param name="codes">abcdfijkmnptvxyz</xsl:with-param>
306
<xsl:element name="a">
309
                <xsl:with-param name="subdivCodes">ijknpxyz</xsl:with-param>
307
<xsl:attribute name="href">
310
                <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
308
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
311
              </xsl:call-template>
309
<xsl:value-of select="marc:subfield[@code='c']"/>
312
            </xsl:with-param>
310
</xsl:attribute>
313
          </xsl:call-template>
311
<xsl:value-of select="marc:subfield[@code='c']"/>
314
        </a>
312
</xsl:element>
315
      </xsl:when>
313
<xsl:text>, </xsl:text>
316
      <xsl:otherwise/>
314
<xsl:value-of select="marc:subfield[@code='d']"/>
317
    </xsl:choose>
315
<xsl:if test="marc:subfield[@code='e']">
318
    <xsl:if test="not(position()=last())">
316
<xsl:text> (</xsl:text>
319
      <xsl:text> | </xsl:text>
317
<xsl:value-of select="marc:subfield[@code='e']"/>
320
    </xsl:if>
318
<xsl:if test="marc:subfield[@code='g']">
321
  </xsl:template>
319
<xsl:text> : </xsl:text>
322
320
<xsl:value-of select="marc:subfield[@code='g']"/>
323
  <xsl:template name="tag_subject">
321
</xsl:if>
324
    <xsl:param name="tag" />
322
<xsl:text>)</xsl:text>
325
    <xsl:param name="label" />
323
</xsl:if>
326
    <xsl:param name="spanclass" />
324
</xsl:when>
327
    <xsl:if test="marc:datafield[@tag=$tag]">
325
328
      <span class="results_summary subjects {$spanclass}">
326
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2])">
329
        <span class="label">
327
<xsl:value-of select="marc:subfield[@code='a']"/>
330
          <xsl:value-of select="$label"/>
328
<xsl:text> : </xsl:text>
331
          <xsl:text>: </xsl:text>
329
<xsl:for-each select="marc:subfield[@code='c']">
332
        </span>
330
<xsl:element name="a">
333
        <span class="value">
331
<xsl:attribute name="href">
334
          <xsl:for-each select="marc:datafield[@tag=$tag]">
332
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
335
            <xsl:call-template name="tag_onesubject">
333
<xsl:value-of select="text()"/>
336
            </xsl:call-template>
334
</xsl:attribute>
337
          </xsl:for-each>
335
<xsl:value-of select="text()"/>
338
        </span>
336
</xsl:element>
339
      </span>
337
<xsl:if test="position()!=last()">
340
    </xsl:if>
338
<xsl:text> : </xsl:text>
341
  </xsl:template>
339
</xsl:if>
342
340
<xsl:if test="position()=last()">
343
  <xsl:template name="tag_7xx">
341
<xsl:text></xsl:text>
344
    <xsl:param name="tag" />
342
</xsl:if>
345
    <xsl:param name="label" />
343
</xsl:for-each>
346
    <xsl:param name="spanclass" />
344
<xsl:if test="marc:subfield[@code='e']">
347
    <xsl:variable name="IdRef" select="marc:sysprefs/marc:syspref[@name='IdRef']"/>
345
<xsl:text> (</xsl:text>
348
    <xsl:if test="marc:datafield[@tag=$tag]">
346
<xsl:value-of select="marc:subfield[@code='e']"/>
349
      <span class="results_summary author {$spanclass}">
347
<xsl:if test="marc:subfield[@code='g']">
350
        <span class="label">
348
<xsl:text> : </xsl:text>
351
          <xsl:value-of select="$label" />
349
<xsl:value-of select="marc:subfield[@code='g']"/>
352
          <xsl:text>: </xsl:text>
350
</xsl:if>
353
        </span>
351
<xsl:text>)</xsl:text>
354
        <span class="value">
352
</xsl:if>
355
          <xsl:for-each select="marc:datafield[@tag=$tag]">
353
</xsl:when>
356
            <a>
354
357
              <xsl:choose>
355
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
358
                <xsl:when test="marc:subfield[@code=9]">
356
<xsl:value-of select="marc:subfield[@code='a']"/>
359
                  <xsl:attribute name="href">
357
<xsl:text> : </xsl:text>
360
                    <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
358
<xsl:element name="a">
361
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>
359
<xsl:attribute name="href">
362
                  </xsl:attribute>
360
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
363
                </xsl:when>
361
<xsl:value-of select="marc:subfield[@code='c']"/>
364
                <xsl:otherwise>
362
</xsl:attribute>
365
                  <xsl:attribute name="href">
363
<xsl:value-of select="marc:subfield[@code='c']"/>
366
                    <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:</xsl:text>
364
</xsl:element>
367
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
365
<xsl:if test="marc:subfield[@code='e']">
368
                    <xsl:text>%20</xsl:text>
366
<xsl:text> (</xsl:text>
369
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code='b'], true())"/>
367
<xsl:value-of select="marc:subfield[@code='e']"/>
370
                  </xsl:attribute>
368
<xsl:if test="marc:subfield[@code='g']">
371
                </xsl:otherwise>
369
<xsl:text> : </xsl:text>
372
              </xsl:choose>
370
<xsl:value-of select="marc:subfield[@code='g']"/>
373
              <xsl:for-each select="marc:subfield[@code='a' or @code='b' or @code='4' or @code='c' or @code='d' or @code='f' or @code='g' or @code='p']">
371
</xsl:if>
374
                <xsl:choose>
372
<xsl:text>)</xsl:text>
375
                  <xsl:when test="@code='9'">
373
</xsl:if>
376
                  </xsl:when>
374
</xsl:when>
377
                  <xsl:otherwise>
375
378
                    <xsl:value-of select="."/>
376
<xsl:when test="(marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
379
                  </xsl:otherwise>
377
<xsl:for-each select="marc:subfield[@code='c']">
380
                </xsl:choose>
378
<xsl:element name="a">
381
                <xsl:if test="not(position() = last())">
379
<xsl:attribute name="href">
382
                  <xsl:text>, </xsl:text>
380
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
383
                </xsl:if>
381
<xsl:value-of select="text()"/>
384
              </xsl:for-each>
382
</xsl:attribute>
385
            </a>
383
<xsl:value-of select="text()"/>
386
            <xsl:if test="$IdRef = '1'">
384
</xsl:element>
387
              <xsl:if test="marc:subfield[@code=3]">
385
<xsl:if test="position()!=last()">
388
                <xsl:text> </xsl:text>
386
<xsl:text> : </xsl:text>
389
                <a>
387
</xsl:if>
390
                  <xsl:attribute name="href">
388
<xsl:if test="position()=last()">
391
                    <xsl:text>/cgi-bin/koha/opac-idref.pl?unimarc3=</xsl:text>
389
<xsl:text>, </xsl:text>
392
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code=3], true())"/>
390
</xsl:if>
393
                  </xsl:attribute>
391
</xsl:for-each>
394
                  <xsl:attribute name="title">IdRef</xsl:attribute>
392
<xsl:value-of select="marc:subfield[@code='d']"/>
395
                  <xsl:attribute name="rel">gb_page_center[600,500]</xsl:attribute>
393
<xsl:if test="marc:subfield[@code='e']">
396
                  <xsl:text>Idref</xsl:text>
394
<xsl:text> (</xsl:text>
397
                </a>
395
<xsl:value-of select="marc:subfield[@code='e']"/>
398
              </xsl:if>
396
<xsl:if test="marc:subfield[@code='g']">
399
            </xsl:if>
397
<xsl:text> : </xsl:text>
400
            <xsl:if test="not(position() = last())">
398
<xsl:value-of select="marc:subfield[@code='g']"/>
401
              <span style="padding: 3px;">
399
</xsl:if>
402
                <xsl:text>;</xsl:text>
400
<xsl:text>)</xsl:text>
403
              </span>
401
</xsl:if>
404
            </xsl:if>
402
</xsl:when>
405
          </xsl:for-each>
403
<xsl:when test="(marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
406
        </span>
404
<xsl:element name="a">
407
      </span>
405
<xsl:attribute name="href">
408
    </xsl:if>
406
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
409
  </xsl:template>
407
<xsl:value-of select="marc:subfield[@code='c']"/>
408
</xsl:attribute>
409
<xsl:value-of select="marc:subfield[@code='c']"/>
410
</xsl:element>
411
<xsl:text>, </xsl:text>
412
<xsl:value-of select="marc:subfield[@code='d']"/>
413
<xsl:if test="marc:subfield[@code='e']">
414
<xsl:text> (</xsl:text>
415
<xsl:value-of select="marc:subfield[@code='e']"/>
416
<xsl:if test="marc:subfield[@code='g']">
417
<xsl:text> : </xsl:text>
418
<xsl:value-of select="marc:subfield[@code='g']"/>
419
</xsl:if>
420
<xsl:text>)</xsl:text>
421
</xsl:if>
422
</xsl:when>
423
424
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='d'])">
425
<xsl:for-each select="marc:subfield[@code='a']">
426
<xsl:value-of select="text()"/>
427
<xsl:if test="position()!=last()">
428
<xsl:text> ; </xsl:text>
429
</xsl:if>
430
<xsl:if test="position()=last()">
431
<xsl:text>, </xsl:text>
432
</xsl:if>
433
</xsl:for-each>
434
<xsl:value-of select="marc:subfield[@code='d']"/>
435
<xsl:if test="marc:subfield[@code='e']">
436
<xsl:text> (</xsl:text>
437
<xsl:value-of select="marc:subfield[@code='e']"/>
438
<xsl:if test="marc:subfield[@code='g']">
439
<xsl:text> : </xsl:text>
440
<xsl:value-of select="marc:subfield[@code='g']"/>
441
</xsl:if>
442
<xsl:text>)</xsl:text>
443
</xsl:if>
444
</xsl:when>
445
446
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
447
<xsl:value-of select="marc:subfield[@code='a']"/>
448
<xsl:text>, </xsl:text>
449
<xsl:value-of select="marc:subfield[@code='d']"/>
450
<xsl:if test="marc:subfield[@code='e']">
451
<xsl:text> (</xsl:text>
452
<xsl:value-of select="marc:subfield[@code='e']"/>
453
<xsl:if test="marc:subfield[@code='g']">
454
<xsl:text> : </xsl:text>
455
<xsl:value-of select="marc:subfield[@code='g']"/>
456
</xsl:if>
457
<xsl:text>)</xsl:text>
458
</xsl:if>
459
</xsl:when>
460
461
<xsl:when test="(marc:subfield[@code='a'])">
462
<xsl:value-of select="marc:subfield[@code='a']"/>
463
<xsl:if test="marc:subfield[@code='e']">
464
<xsl:text> (</xsl:text>
465
<xsl:value-of select="marc:subfield[@code='e']"/>
466
<xsl:if test="marc:subfield[@code='g']">
467
<xsl:text> : </xsl:text>
468
<xsl:value-of select="marc:subfield[@code='g']"/>
469
</xsl:if>
470
<xsl:text>)</xsl:text>
471
</xsl:if>
472
</xsl:when>
473
474
<xsl:when test="(marc:subfield[@code='d'])">
475
<xsl:value-of select="marc:subfield[@code='d']"/>
476
<xsl:if test="marc:subfield[@code='e']">
477
<xsl:text> (</xsl:text>
478
<xsl:value-of select="marc:subfield[@code='e']"/>
479
<xsl:if test="marc:subfield[@code='g']">
480
<xsl:text> : </xsl:text>
481
<xsl:value-of select="marc:subfield[@code='g']"/>
482
</xsl:if>
483
<xsl:text>)</xsl:text>
484
</xsl:if>
485
</xsl:when>
486
487
<xsl:when test="(marc:subfield[@code='e'])">
488
<xsl:value-of select="marc:subfield[@code='e']"/>
489
<xsl:if test="marc:subfield[@code='g']">
490
<xsl:text> : </xsl:text>
491
<xsl:value-of select="marc:subfield[@code='g']"/>
492
</xsl:if>
493
<xsl:if test="marc:subfield[@code='h']">
494
<xsl:text> , </xsl:text>
495
<xsl:value-of select="marc:subfield[@code='h']"/>
496
</xsl:if>
497
</xsl:when>
498
<xsl:when test="(marc:subfield[@code='g'])">
499
<xsl:value-of select="marc:subfield[@code='g']"/>
500
<xsl:if test="marc:subfield[@code='h']">
501
<xsl:text> , </xsl:text>
502
<xsl:value-of select="marc:subfield[@code='h']"/>
503
</xsl:if>
504
</xsl:when>
505
<xsl:when test="(marc:subfield[@code='h'])">
506
<xsl:value-of select="marc:subfield[@code='h']"/>
507
</xsl:when>
508
509
510
511
</xsl:choose>
512
</span>
513
</xsl:for-each>
514
 </xsl:template>
515
516
517
 <xsl:template name="tag_214">
518
<xsl:for-each select="marc:datafield[@tag=214]">
519
<span class="results_summary">
520
<span class="label">Publication&nbsp;: </span>
521
<xsl:choose>
522
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
523
<xsl:value-of select="marc:subfield[@code='a'][1]"/>
524
<xsl:text> : </xsl:text>
525
<xsl:element name="a">
526
<xsl:attribute name="href">
527
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
528
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
529
</xsl:attribute>
530
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
531
</xsl:element>
532
<xsl:text> ; </xsl:text>
533
<xsl:value-of select="marc:subfield[@code='a'][2]"/>
534
<xsl:text> : </xsl:text>
535
<xsl:element name="a">
536
<xsl:attribute name="href">
537
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
538
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
539
</xsl:attribute>
540
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
541
</xsl:element>
542
<xsl:if test="marc:subfield[@code='a'][3]">
543
<xsl:text> ; </xsl:text>
544
<xsl:value-of select="marc:subfield[@code='a'][3]"/>
545
</xsl:if>
546
<xsl:if test="marc:subfield[@code='c'][3]">
547
<xsl:text> : </xsl:text>
548
<xsl:element name="a">
549
<xsl:attribute name="href">
550
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
551
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
552
</xsl:attribute>
553
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
554
</xsl:element>
555
</xsl:if>
556
<xsl:text>, </xsl:text>
557
<xsl:value-of select="marc:subfield[@code='d']"/>
558
<xsl:if test="marc:subfield[@code='e']">
559
<xsl:text> (</xsl:text>
560
<xsl:value-of select="marc:subfield[@code='e']"/>
561
<xsl:if test="marc:subfield[@code='g']">
562
<xsl:text> : </xsl:text>
563
<xsl:value-of select="marc:subfield[@code='g']"/>
564
</xsl:if>
565
<xsl:text>)</xsl:text>
566
</xsl:if>
567
</xsl:when>
568
569
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
570
<xsl:value-of select="marc:subfield[@code='a']"/>
571
<xsl:if test="position()!=last()">
572
<xsl:text> ; </xsl:text>
573
</xsl:if>
574
<xsl:if test="position()=last()">
575
<xsl:text> : </xsl:text>
576
</xsl:if>
577
<xsl:for-each select="marc:subfield[@code='c']">
578
<xsl:element name="a">
579
<xsl:attribute name="href">
580
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
581
<xsl:value-of select="text()"/>
582
</xsl:attribute>
583
<xsl:value-of select="text()"/>
584
</xsl:element>
585
<xsl:if test="position()!=last()">
586
<xsl:text> : </xsl:text>
587
</xsl:if>
588
<xsl:if test="position()=last()">
589
<xsl:text></xsl:text>
590
</xsl:if>
591
</xsl:for-each>
592
<xsl:text>, </xsl:text>
593
<xsl:value-of select="marc:subfield[@code='d']"/>
594
<xsl:if test="marc:subfield[@code='e']">
595
<xsl:text> (</xsl:text>
596
<xsl:value-of select="marc:subfield[@code='e']"/>
597
<xsl:if test="marc:subfield[@code='g']">
598
<xsl:text> : </xsl:text>
599
<xsl:value-of select="marc:subfield[@code='g']"/>
600
</xsl:if>
601
<xsl:text>)</xsl:text>
602
</xsl:if>
603
</xsl:when>
604
605
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
606
<xsl:for-each select="marc:subfield[@code='a']">
607
<xsl:value-of select="text()"/>
608
<xsl:if test="position()!=last()">
609
<xsl:text> ; </xsl:text>
610
</xsl:if>
611
<xsl:if test="position()=last()">
612
<xsl:text> : </xsl:text>
613
</xsl:if>
614
</xsl:for-each>
615
<xsl:element name="a">
616
<xsl:attribute name="href">
617
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
618
<xsl:value-of select="marc:subfield[@code='c']"/>
619
</xsl:attribute>
620
<xsl:value-of select="marc:subfield[@code='c']"/>
621
</xsl:element>
622
<xsl:if test="position()!=last()">
623
<xsl:text> : </xsl:text>
624
</xsl:if>
625
<xsl:if test="position()=last()">
626
<xsl:text></xsl:text>
627
</xsl:if>
628
<xsl:text>, </xsl:text>
629
<xsl:value-of select="marc:subfield[@code='d']"/>
630
<xsl:if test="marc:subfield[@code='e']">
631
<xsl:text> (</xsl:text>
632
<xsl:value-of select="marc:subfield[@code='e']"/>
633
<xsl:if test="marc:subfield[@code='g']">
634
<xsl:text> : </xsl:text>
635
<xsl:value-of select="marc:subfield[@code='g']"/>
636
</xsl:if>
637
<xsl:text>)</xsl:text>
638
</xsl:if>
639
</xsl:when>
640
641
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
642
<xsl:value-of select="marc:subfield[@code='a']"/>
643
<xsl:text> : </xsl:text>
644
<xsl:element name="a">
645
<xsl:attribute name="href">
646
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
647
<xsl:value-of select="marc:subfield[@code='c']"/>
648
</xsl:attribute>
649
<xsl:value-of select="marc:subfield[@code='c']"/>
650
</xsl:element>
651
<xsl:text>, </xsl:text>
652
<xsl:value-of select="marc:subfield[@code='d']"/>
653
<xsl:if test="marc:subfield[@code='e']">
654
<xsl:text> (</xsl:text>
655
<xsl:value-of select="marc:subfield[@code='e']"/>
656
<xsl:if test="marc:subfield[@code='g']">
657
<xsl:text> : </xsl:text>
658
<xsl:value-of select="marc:subfield[@code='g']"/>
659
</xsl:if>
660
<xsl:text>)</xsl:text>
661
</xsl:if>
662
</xsl:when>
663
664
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2])">
665
<xsl:value-of select="marc:subfield[@code='a']"/>
666
<xsl:text> : </xsl:text>
667
<xsl:for-each select="marc:subfield[@code='c']">
668
<xsl:element name="a">
669
<xsl:attribute name="href">
670
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
671
<xsl:value-of select="text()"/>
672
</xsl:attribute>
673
<xsl:value-of select="text()"/>
674
</xsl:element>
675
<xsl:if test="position()!=last()">
676
<xsl:text> : </xsl:text>
677
</xsl:if>
678
<xsl:if test="position()=last()">
679
<xsl:text></xsl:text>
680
</xsl:if>
681
</xsl:for-each>
682
<xsl:if test="marc:subfield[@code='e']">
683
<xsl:text> (</xsl:text>
684
<xsl:value-of select="marc:subfield[@code='e']"/>
685
<xsl:if test="marc:subfield[@code='g']">
686
<xsl:text> : </xsl:text>
687
<xsl:value-of select="marc:subfield[@code='g']"/>
688
</xsl:if>
689
<xsl:text>)</xsl:text>
690
</xsl:if>
691
</xsl:when>
692
693
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
694
<xsl:value-of select="marc:subfield[@code='a']"/>
695
<xsl:text> : </xsl:text>
696
<xsl:element name="a">
697
<xsl:attribute name="href">
698
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
699
<xsl:value-of select="marc:subfield[@code='c']"/>
700
</xsl:attribute>
701
<xsl:value-of select="marc:subfield[@code='c']"/>
702
</xsl:element>
703
<xsl:if test="marc:subfield[@code='e']">
704
<xsl:text> (</xsl:text>
705
<xsl:value-of select="marc:subfield[@code='e']"/>
706
<xsl:if test="marc:subfield[@code='g']">
707
<xsl:text> : </xsl:text>
708
<xsl:value-of select="marc:subfield[@code='g']"/>
709
</xsl:if>
710
<xsl:text>)</xsl:text>
711
</xsl:if>
712
</xsl:when>
713
714
<xsl:when test="(marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
715
<xsl:for-each select="marc:subfield[@code='c']">
716
<xsl:element name="a">
717
<xsl:attribute name="href">
718
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
719
<xsl:value-of select="text()"/>
720
</xsl:attribute>
721
<xsl:value-of select="text()"/>
722
</xsl:element>
723
<xsl:if test="position()!=last()">
724
<xsl:text> : </xsl:text>
725
</xsl:if>
726
<xsl:if test="position()=last()">
727
<xsl:text>, </xsl:text>
728
</xsl:if>
729
</xsl:for-each>
730
<xsl:value-of select="marc:subfield[@code='d']"/>
731
<xsl:if test="marc:subfield[@code='e']">
732
<xsl:text> (</xsl:text>
733
<xsl:value-of select="marc:subfield[@code='e']"/>
734
<xsl:if test="marc:subfield[@code='g']">
735
<xsl:text> : </xsl:text>
736
<xsl:value-of select="marc:subfield[@code='g']"/>
737
</xsl:if>
738
<xsl:text>)</xsl:text>
739
</xsl:if>
740
</xsl:when>
741
<xsl:when test="(marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
742
<xsl:element name="a">
743
<xsl:attribute name="href">
744
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
745
<xsl:value-of select="marc:subfield[@code='c']"/>
746
</xsl:attribute>
747
<xsl:value-of select="marc:subfield[@code='c']"/>
748
</xsl:element>
749
<xsl:text>, </xsl:text>
750
<xsl:value-of select="marc:subfield[@code='d']"/>
751
<xsl:if test="marc:subfield[@code='e']">
752
<xsl:text> (</xsl:text>
753
<xsl:value-of select="marc:subfield[@code='e']"/>
754
<xsl:if test="marc:subfield[@code='g']">
755
<xsl:text> : </xsl:text>
756
<xsl:value-of select="marc:subfield[@code='g']"/>
757
</xsl:if>
758
<xsl:text>)</xsl:text>
759
</xsl:if>
760
</xsl:when>
761
762
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='d'])">
763
<xsl:for-each select="marc:subfield[@code='a']">
764
<xsl:value-of select="text()"/>
765
<xsl:if test="position()!=last()">
766
<xsl:text> ; </xsl:text>
767
</xsl:if>
768
<xsl:if test="position()=last()">
769
<xsl:text>, </xsl:text>
770
</xsl:if>
771
</xsl:for-each>
772
<xsl:value-of select="marc:subfield[@code='d']"/>
773
<xsl:if test="marc:subfield[@code='e']">
774
<xsl:text> (</xsl:text>
775
<xsl:value-of select="marc:subfield[@code='e']"/>
776
<xsl:if test="marc:subfield[@code='g']">
777
<xsl:text> : </xsl:text>
778
<xsl:value-of select="marc:subfield[@code='g']"/>
779
</xsl:if>
780
<xsl:text>)</xsl:text>
781
</xsl:if>
782
</xsl:when>
783
784
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
785
<xsl:value-of select="marc:subfield[@code='a']"/>
786
<xsl:text>, </xsl:text>
787
<xsl:value-of select="marc:subfield[@code='d']"/>
788
<xsl:if test="marc:subfield[@code='e']">
789
<xsl:text> (</xsl:text>
790
<xsl:value-of select="marc:subfield[@code='e']"/>
791
<xsl:if test="marc:subfield[@code='g']">
792
<xsl:text> : </xsl:text>
793
<xsl:value-of select="marc:subfield[@code='g']"/>
794
</xsl:if>
795
<xsl:text>)</xsl:text>
796
</xsl:if>
797
</xsl:when>
798
799
<xsl:when test="(marc:subfield[@code='a'])">
800
<xsl:value-of select="marc:subfield[@code='a']"/>
801
<xsl:if test="marc:subfield[@code='e']">
802
<xsl:text> (</xsl:text>
803
<xsl:value-of select="marc:subfield[@code='e']"/>
804
<xsl:if test="marc:subfield[@code='g']">
805
<xsl:text> : </xsl:text>
806
<xsl:value-of select="marc:subfield[@code='g']"/>
807
</xsl:if>
808
<xsl:text>)</xsl:text>
809
</xsl:if>
810
</xsl:when>
811
812
<xsl:when test="(marc:subfield[@code='d'])">
813
<xsl:value-of select="marc:subfield[@code='d']"/>
814
<xsl:if test="marc:subfield[@code='e']">
815
<xsl:text> (</xsl:text>
816
<xsl:value-of select="marc:subfield[@code='e']"/>
817
<xsl:if test="marc:subfield[@code='g']">
818
<xsl:text> : </xsl:text>
819
<xsl:value-of select="marc:subfield[@code='g']"/>
820
</xsl:if>
821
<xsl:text>)</xsl:text>
822
</xsl:if>
823
</xsl:when>
824
825
<xsl:when test="(marc:subfield[@code='e'])">
826
<xsl:value-of select="marc:subfield[@code='e']"/>
827
<xsl:if test="marc:subfield[@code='g']">
828
<xsl:text> : </xsl:text>
829
<xsl:value-of select="marc:subfield[@code='g']"/>
830
</xsl:if>
831
<xsl:if test="marc:subfield[@code='h']">
832
<xsl:text> , </xsl:text>
833
<xsl:value-of select="marc:subfield[@code='h']"/>
834
</xsl:if>
835
</xsl:when>
836
<xsl:when test="(marc:subfield[@code='g'])">
837
<xsl:value-of select="marc:subfield[@code='g']"/>
838
<xsl:if test="marc:subfield[@code='h']">
839
<xsl:text> , </xsl:text>
840
<xsl:value-of select="marc:subfield[@code='h']"/>
841
</xsl:if>
842
</xsl:when>
843
<xsl:when test="(marc:subfield[@code='h'])">
844
<xsl:value-of select="marc:subfield[@code='h']"/>
845
</xsl:when>
846
847
848
849
</xsl:choose>
850
</span>
851
</xsl:for-each>
852
 </xsl:template>
853
854
 <xsl:template name="tag_219">
855
<xsl:for-each select="marc:datafield[@tag=219]">
856
<span class="results_summary">
857
<span class="label">Publication&nbsp;: </span>
858
<xsl:choose>
859
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
860
<xsl:value-of select="marc:subfield[@code='a'][1]"/>
861
<xsl:text> : </xsl:text>
862
<xsl:element name="a">
863
<xsl:attribute name="href">
864
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
865
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
866
</xsl:attribute>
867
<xsl:value-of select="marc:subfield[@code='c'][1]"/>
868
</xsl:element>
869
<xsl:text> ; </xsl:text>
870
<xsl:value-of select="marc:subfield[@code='a'][2]"/>
871
<xsl:text> : </xsl:text>
872
<xsl:element name="a">
873
<xsl:attribute name="href">
874
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
875
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
876
</xsl:attribute>
877
<xsl:value-of select="marc:subfield[@code='c'][2]"/>
878
</xsl:element>
879
<xsl:if test="marc:subfield[@code='a'][3]">
880
<xsl:text> ; </xsl:text>
881
<xsl:value-of select="marc:subfield[@code='a'][3]"/>
882
</xsl:if>
883
<xsl:if test="marc:subfield[@code='c'][3]">
884
<xsl:text> : </xsl:text>
885
<xsl:element name="a">
886
<xsl:attribute name="href">
887
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
888
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
889
</xsl:attribute>
890
<xsl:value-of select="marc:subfield[@code='c'][3]"/>
891
</xsl:element>
892
</xsl:if>
893
<xsl:text>, </xsl:text>
894
<xsl:value-of select="marc:subfield[@code='d']"/>
895
<xsl:if test="marc:subfield[@code='e']">
896
<xsl:text> (</xsl:text>
897
<xsl:value-of select="marc:subfield[@code='e']"/>
898
<xsl:if test="marc:subfield[@code='g']">
899
<xsl:text> : </xsl:text>
900
<xsl:value-of select="marc:subfield[@code='g']"/>
901
</xsl:if>
902
<xsl:text>)</xsl:text>
903
</xsl:if>
904
</xsl:when>
905
906
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
907
<xsl:value-of select="marc:subfield[@code='a']"/>
908
<xsl:if test="position()!=last()">
909
<xsl:text> ; </xsl:text>
910
</xsl:if>
911
<xsl:if test="position()=last()">
912
<xsl:text> : </xsl:text>
913
</xsl:if>
914
<xsl:for-each select="marc:subfield[@code='c']">
915
<xsl:element name="a">
916
<xsl:attribute name="href">
917
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
918
<xsl:value-of select="text()"/>
919
</xsl:attribute>
920
<xsl:value-of select="text()"/>
921
</xsl:element>
922
<xsl:if test="position()!=last()">
923
<xsl:text> : </xsl:text>
924
</xsl:if>
925
<xsl:if test="position()=last()">
926
<xsl:text></xsl:text>
927
</xsl:if>
928
</xsl:for-each>
929
<xsl:text>, </xsl:text>
930
<xsl:value-of select="marc:subfield[@code='d']"/>
931
<xsl:if test="marc:subfield[@code='e']">
932
<xsl:text> (</xsl:text>
933
<xsl:value-of select="marc:subfield[@code='e']"/>
934
<xsl:if test="marc:subfield[@code='g']">
935
<xsl:text> : </xsl:text>
936
<xsl:value-of select="marc:subfield[@code='g']"/>
937
</xsl:if>
938
<xsl:text>)</xsl:text>
939
</xsl:if>
940
</xsl:when>
941
942
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
943
<xsl:for-each select="marc:subfield[@code='a']">
944
<xsl:value-of select="text()"/>
945
<xsl:if test="position()!=last()">
946
<xsl:text> ; </xsl:text>
947
</xsl:if>
948
<xsl:if test="position()=last()">
949
<xsl:text> : </xsl:text>
950
</xsl:if>
951
</xsl:for-each>
952
<xsl:element name="a">
953
<xsl:attribute name="href">
954
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
955
<xsl:value-of select="marc:subfield[@code='c']"/>
956
</xsl:attribute>
957
<xsl:value-of select="marc:subfield[@code='c']"/>
958
</xsl:element>
959
<xsl:if test="position()!=last()">
960
<xsl:text> : </xsl:text>
961
</xsl:if>
962
<xsl:if test="position()=last()">
963
<xsl:text></xsl:text>
964
</xsl:if>
965
<xsl:text>, </xsl:text>
966
<xsl:value-of select="marc:subfield[@code='d']"/>
967
<xsl:if test="marc:subfield[@code='e']">
968
<xsl:text> (</xsl:text>
969
<xsl:value-of select="marc:subfield[@code='e']"/>
970
<xsl:if test="marc:subfield[@code='g']">
971
<xsl:text> : </xsl:text>
972
<xsl:value-of select="marc:subfield[@code='g']"/>
973
</xsl:if>
974
<xsl:text>)</xsl:text>
975
</xsl:if>
976
</xsl:when>
977
978
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
979
<xsl:value-of select="marc:subfield[@code='a']"/>
980
<xsl:text> : </xsl:text>
981
<xsl:element name="a">
982
<xsl:attribute name="href">
983
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
984
<xsl:value-of select="marc:subfield[@code='c']"/>
985
</xsl:attribute>
986
<xsl:value-of select="marc:subfield[@code='c']"/>
987
</xsl:element>
988
<xsl:text>, </xsl:text>
989
<xsl:value-of select="marc:subfield[@code='d']"/>
990
<xsl:if test="marc:subfield[@code='e']">
991
<xsl:text> (</xsl:text>
992
<xsl:value-of select="marc:subfield[@code='e']"/>
993
<xsl:if test="marc:subfield[@code='g']">
994
<xsl:text> : </xsl:text>
995
<xsl:value-of select="marc:subfield[@code='g']"/>
996
</xsl:if>
997
<xsl:text>)</xsl:text>
998
</xsl:if>
999
</xsl:when>
1000
1001
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'][2])">
1002
<xsl:value-of select="marc:subfield[@code='a']"/>
1003
<xsl:text> : </xsl:text>
1004
<xsl:for-each select="marc:subfield[@code='c']">
1005
<xsl:element name="a">
1006
<xsl:attribute name="href">
1007
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
1008
<xsl:value-of select="text()"/>
1009
</xsl:attribute>
1010
<xsl:value-of select="text()"/>
1011
</xsl:element>
1012
<xsl:if test="position()!=last()">
1013
<xsl:text> : </xsl:text>
1014
</xsl:if>
1015
<xsl:if test="position()=last()">
1016
<xsl:text></xsl:text>
1017
</xsl:if>
1018
</xsl:for-each>
1019
<xsl:if test="marc:subfield[@code='e']">
1020
<xsl:text> (</xsl:text>
1021
<xsl:value-of select="marc:subfield[@code='e']"/>
1022
<xsl:if test="marc:subfield[@code='g']">
1023
<xsl:text> : </xsl:text>
1024
<xsl:value-of select="marc:subfield[@code='g']"/>
1025
</xsl:if>
1026
<xsl:text>)</xsl:text>
1027
</xsl:if>
1028
</xsl:when>
1029
1030
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
1031
<xsl:value-of select="marc:subfield[@code='a']"/>
1032
<xsl:text> : </xsl:text>
1033
<xsl:element name="a">
1034
<xsl:attribute name="href">
1035
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
1036
<xsl:value-of select="marc:subfield[@code='c']"/>
1037
</xsl:attribute>
1038
<xsl:value-of select="marc:subfield[@code='c']"/>
1039
</xsl:element>
1040
<xsl:if test="marc:subfield[@code='e']">
1041
<xsl:text> (</xsl:text>
1042
<xsl:value-of select="marc:subfield[@code='e']"/>
1043
<xsl:if test="marc:subfield[@code='g']">
1044
<xsl:text> : </xsl:text>
1045
<xsl:value-of select="marc:subfield[@code='g']"/>
1046
</xsl:if>
1047
<xsl:text>)</xsl:text>
1048
</xsl:if>
1049
</xsl:when>
1050
1051
<xsl:when test="(marc:subfield[@code='c'][2]) and (marc:subfield[@code='d'])">
1052
<xsl:for-each select="marc:subfield[@code='c']">
1053
<xsl:element name="a">
1054
<xsl:attribute name="href">
1055
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
1056
<xsl:value-of select="text()"/>
1057
</xsl:attribute>
1058
<xsl:value-of select="text()"/>
1059
</xsl:element>
1060
<xsl:if test="position()!=last()">
1061
<xsl:text> : </xsl:text>
1062
</xsl:if>
1063
<xsl:if test="position()=last()">
1064
<xsl:text>, </xsl:text>
1065
</xsl:if>
1066
</xsl:for-each>
1067
<xsl:value-of select="marc:subfield[@code='d']"/>
1068
<xsl:if test="marc:subfield[@code='e']">
1069
<xsl:text> (</xsl:text>
1070
<xsl:value-of select="marc:subfield[@code='e']"/>
1071
<xsl:if test="marc:subfield[@code='g']">
1072
<xsl:text> : </xsl:text>
1073
<xsl:value-of select="marc:subfield[@code='g']"/>
1074
</xsl:if>
1075
<xsl:text>)</xsl:text>
1076
</xsl:if>
1077
</xsl:when>
1078
<xsl:when test="(marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
1079
<xsl:element name="a">
1080
<xsl:attribute name="href">
1081
/cgi-bin/koha/opac-search.pl?idx=Publisher&amp;q=
1082
<xsl:value-of select="marc:subfield[@code='c']"/>
1083
</xsl:attribute>
1084
<xsl:value-of select="marc:subfield[@code='c']"/>
1085
</xsl:element>
1086
<xsl:text>, </xsl:text>
1087
<xsl:value-of select="marc:subfield[@code='d']"/>
1088
<xsl:if test="marc:subfield[@code='e']">
1089
<xsl:text> (</xsl:text>
1090
<xsl:value-of select="marc:subfield[@code='e']"/>
1091
<xsl:if test="marc:subfield[@code='g']">
1092
<xsl:text> : </xsl:text>
1093
<xsl:value-of select="marc:subfield[@code='g']"/>
1094
</xsl:if>
1095
<xsl:text>)</xsl:text>
1096
</xsl:if>
1097
</xsl:when>
1098
1099
<xsl:when test="(marc:subfield[@code='a'][2]) and (marc:subfield[@code='d'])">
1100
<xsl:for-each select="marc:subfield[@code='a']">
1101
<xsl:value-of select="text()"/>
1102
<xsl:if test="position()!=last()">
1103
<xsl:text> ; </xsl:text>
1104
</xsl:if>
1105
<xsl:if test="position()=last()">
1106
<xsl:text>, </xsl:text>
1107
</xsl:if>
1108
</xsl:for-each>
1109
<xsl:value-of select="marc:subfield[@code='d']"/>
1110
<xsl:if test="marc:subfield[@code='e']">
1111
<xsl:text> (</xsl:text>
1112
<xsl:value-of select="marc:subfield[@code='e']"/>
1113
<xsl:if test="marc:subfield[@code='g']">
1114
<xsl:text> : </xsl:text>
1115
<xsl:value-of select="marc:subfield[@code='g']"/>
1116
</xsl:if>
1117
<xsl:text>)</xsl:text>
1118
</xsl:if>
1119
</xsl:when>
1120
1121
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='d'])">
1122
<xsl:value-of select="marc:subfield[@code='a']"/>
1123
<xsl:text>, </xsl:text>
1124
<xsl:value-of select="marc:subfield[@code='d']"/>
1125
<xsl:if test="marc:subfield[@code='e']">
1126
<xsl:text> (</xsl:text>
1127
<xsl:value-of select="marc:subfield[@code='e']"/>
1128
<xsl:if test="marc:subfield[@code='g']">
1129
<xsl:text> : </xsl:text>
1130
<xsl:value-of select="marc:subfield[@code='g']"/>
1131
</xsl:if>
1132
<xsl:text>)</xsl:text>
1133
</xsl:if>
1134
</xsl:when>
1135
1136
<xsl:when test="(marc:subfield[@code='a'])">
1137
<xsl:value-of select="marc:subfield[@code='a']"/>
1138
<xsl:if test="marc:subfield[@code='e']">
1139
<xsl:text> (</xsl:text>
1140
<xsl:value-of select="marc:subfield[@code='e']"/>
1141
<xsl:if test="marc:subfield[@code='g']">
1142
<xsl:text> : </xsl:text>
1143
<xsl:value-of select="marc:subfield[@code='g']"/>
1144
</xsl:if>
1145
<xsl:text>)</xsl:text>
1146
</xsl:if>
1147
</xsl:when>
1148
1149
<xsl:when test="(marc:subfield[@code='d'])">
1150
<xsl:value-of select="marc:subfield[@code='d']"/>
1151
<xsl:if test="marc:subfield[@code='e']">
1152
<xsl:text> (</xsl:text>
1153
<xsl:value-of select="marc:subfield[@code='e']"/>
1154
<xsl:if test="marc:subfield[@code='g']">
1155
<xsl:text> : </xsl:text>
1156
<xsl:value-of select="marc:subfield[@code='g']"/>
1157
</xsl:if>
1158
<xsl:text>)</xsl:text>
1159
</xsl:if>
1160
</xsl:when>
1161
1162
<xsl:when test="(marc:subfield[@code='e'])">
1163
<xsl:value-of select="marc:subfield[@code='e']"/>
1164
<xsl:if test="marc:subfield[@code='g']">
1165
<xsl:text> : </xsl:text>
1166
<xsl:value-of select="marc:subfield[@code='g']"/>
1167
</xsl:if>
1168
<xsl:if test="marc:subfield[@code='h']">
1169
<xsl:text> , </xsl:text>
1170
<xsl:value-of select="marc:subfield[@code='h']"/>
1171
</xsl:if>
1172
</xsl:when>
1173
<xsl:when test="(marc:subfield[@code='g'])">
1174
<xsl:value-of select="marc:subfield[@code='g']"/>
1175
<xsl:if test="marc:subfield[@code='h']">
1176
<xsl:text> , </xsl:text>
1177
<xsl:value-of select="marc:subfield[@code='h']"/>
1178
</xsl:if>
1179
</xsl:when>
1180
<xsl:when test="(marc:subfield[@code='h'])">
1181
<xsl:value-of select="marc:subfield[@code='h']"/>
1182
</xsl:when>
1183
1184
</xsl:choose>
1185
</span>
1186
</xsl:for-each>
1187
 </xsl:template>
1188
1189
1190
 <xsl:template name="tag_215">
1191
 <xsl:for-each select="marc:datafield[@tag=215]">
1192
 <span class="results_summary">
1193
 <span class="label">Description&nbsp;: </span>
1194
<xsl:choose>
1195
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d']) and (marc:subfield[@code='e'])">
1196
<xsl:value-of select="marc:subfield[@code='a']"/>
1197
<xsl:text> : </xsl:text>
1198
<xsl:value-of select="marc:subfield[@code='c']"/>
1199
<xsl:text> ; </xsl:text>
1200
<xsl:value-of select="marc:subfield[@code='d']"/>
1201
<xsl:text> + </xsl:text>
1202
<xsl:value-of select="marc:subfield[@code='e']"/>
1203
</xsl:when>
1204
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c']) and (marc:subfield[@code='d'])">
1205
<xsl:value-of select="marc:subfield[@code='a']"/>
1206
<xsl:text> : </xsl:text>
1207
<xsl:value-of select="marc:subfield[@code='c']"/>
1208
<xsl:text> ; </xsl:text>
1209
<xsl:value-of select="marc:subfield[@code='d']"/>
1210
</xsl:when>
1211
<xsl:when test="(marc:subfield[@code='a']) and (marc:subfield[@code='c'])">
1212
<xsl:value-of select="marc:subfield[@code='a']"/>
1213
<xsl:text> : </xsl:text>
1214
<xsl:value-of select="marc:subfield[@code='c']"/>
1215
</xsl:when>
1216
<xsl:when test="(marc:subfield[@code='a'])">
1217
<xsl:value-of select="marc:subfield[@code='a']"/>
1218
</xsl:when>
1219
<xsl:when test="(marc:subfield[@code='c'])">
1220
<xsl:value-of select="marc:subfield[@code='c']"/>
1221
</xsl:when>
1222
<xsl:when test="(marc:subfield[@code='d'])">
1223
<xsl:value-of select="marc:subfield[@code='d']"/>
1224
</xsl:when>
1225
<xsl:when test="(marc:subfield[@code='e'])">
1226
<xsl:value-of select="marc:subfield[@code='e']"/>
1227
</xsl:when>
1228
</xsl:choose>
1229
 </span>
1230
 </xsl:for-each>
1231
 </xsl:template>
1232
1233
<!--Titre de serie - autorité 461-->
1234
<xsl:template name="tag_461">
1235
<xsl:for-each select="marc:datafield[@tag=461]">
1236
<span class="results_summary">
1237
<span class="label">Title of serie&nbsp; : </span>
1238
<xsl:call-template name="addClassRtl" />
1239
<xsl:choose>
1240
<xsl:when test="marc:subfield[@code='9']">
1241
<xsl:element name="a"><xsl:attribute name="href">
1242
/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code='9']"/>
1243
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1244
</xsl:when>
1245
<xsl:otherwise>
1246
<xsl:element name="a"><xsl:attribute name="href">
1247
/cgi-bin/koha/opac-search.pl?idx=index-title-serie,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
1248
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1249
</xsl:otherwise>
1250
</xsl:choose>
1251
<xsl:if test="marc:subfield[@code='e']"> :
1252
<xsl:value-of select="marc:subfield[@code='e']"/>
1253
</xsl:if>
1254
<xsl:if test="marc:subfield[@code='f']"> /
1255
<xsl:value-of select="marc:subfield[@code='f']"/>
1256
</xsl:if>
1257
<xsl:if test="marc:subfield[@code='d']"> ,
1258
<xsl:value-of select="marc:subfield[@code='d']"/>
1259
</xsl:if>
1260
<xsl:if test="marc:subfield[@code='p']"> ,
1261
<xsl:value-of select="marc:subfield[@code='p']"/>
1262
</xsl:if>
1263
<xsl:if test="marc:subfield[@code='v']">,
1264
<xsl:value-of select="marc:subfield[@code='v']"/>
1265
</xsl:if>
1266
</span>
1267
</xsl:for-each>
1268
</xsl:template>
1269
1270
1271
<!--Titre de serie non autorité 461-->
1272
<xsl:template name="tag_461bis">
1273
<xsl:for-each select="marc:datafield[@tag=461]">
1274
<span class="results_summary">
1275
<span class="label">Titre of serie&nbsp; : </span>
1276
<xsl:call-template name="addClassRtl" />
1277
<xsl:if test="marc:subfield[@code='a']">
1278
<xsl:value-of select="marc:subfield[@code='a']"/>
1279
</xsl:if>
1280
<xsl:choose>
1281
<xsl:when test="marc:subfield[@code='9']">
1282
<xsl:element name="a"><xsl:attribute name="href">
1283
/cgi-bin/koha/opac-search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
1284
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1285
</xsl:when>
1286
<xsl:otherwise>
1287
<xsl:element name="a"><xsl:attribute name="href">
1288
/cgi-bin/koha/opac-search.pl?idx=index-title-serie,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
1289
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1290
</xsl:otherwise>
1291
</xsl:choose>
1292
<xsl:if test="marc:subfield[@code='e']"> :
1293
<xsl:value-of select="marc:subfield[@code='e']"/>
1294
</xsl:if>
1295
<xsl:if test="marc:subfield[@code='f']"> /
1296
<xsl:value-of select="marc:subfield[@code='f']"/>
1297
</xsl:if>
1298
<xsl:if test="marc:subfield[@code='d']"> ,
1299
<xsl:value-of select="marc:subfield[@code='d']"/>
1300
</xsl:if>
1301
<xsl:if test="marc:subfield[@code='p']"> ,
1302
<xsl:value-of select="marc:subfield[@code='p']"/>
1303
</xsl:if>
1304
<xsl:if test="marc:subfield[@code='v']">,
1305
<xsl:value-of select="marc:subfield[@code='v']"/>
1306
</xsl:if>
1307
<xsl:if test="marc:subfield[@code='w']"> - 
1308
<xsl:value-of select="marc:subfield[@code='w']"/>
1309
</xsl:if>
1310
</span>
1311
</xsl:for-each>
1312
</xsl:template>
1313
1314
<!--Titre dépouillé 463-->
1315
<xsl:template name="tag_463">
1316
<xsl:for-each select="marc:datafield[@tag=463][1]">
1317
<span class="results_summary">
1318
<span class="label">Title of periodical&nbsp;: </span>
1319
<xsl:call-template name="addClassRtl" />
1320
<xsl:if test="marc:subfield[@code='a']">
1321
<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text>. </xsl:text>
1322
</xsl:if>
1323
<xsl:choose>
1324
<xsl:when test="marc:subfield[@code='9']">
1325
<xsl:element name="a"><xsl:attribute name="href">
1326
/cgi-bin/koha/opac-search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
1327
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1328
</xsl:when>
1329
<xsl:otherwise>
1330
<xsl:element name="a"><xsl:attribute name="href">
1331
/cgi-bin/koha/opac-search.pl?idx=index-title-article,phr&amp;q=<xsl:value-of select="marc:subfield[@code='t']"/>
1332
</xsl:attribute> <xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1333
</xsl:otherwise>
1334
</xsl:choose>
1335
<xsl:if test="marc:subfield[@code='e']"> :
1336
<xsl:value-of select="marc:subfield[@code='e']"/>
1337
</xsl:if>
1338
<xsl:if test="marc:subfield[@code='f']"> /
1339
<xsl:value-of select="marc:subfield[@code='f']"/>
1340
</xsl:if>
1341
<xsl:if test="marc:subfield[@code='d']"> ,
1342
<xsl:value-of select="marc:subfield[@code='d']"/>
1343
</xsl:if>
1344
<xsl:if test="marc:subfield[@code='p']"> ,
1345
<xsl:value-of select="marc:subfield[@code='p']"/>
1346
</xsl:if>
1347
<xsl:if test="marc:subfield[@code='v']">,
1348
<xsl:value-of select="marc:subfield[@code='v']"/>
1349
</xsl:if>
1350
<xsl:if test="marc:subfield[@code='w']"> -
1351
<xsl:value-of select="marc:subfield[@code='w']"/>
1352
</xsl:if>
1353
</span>
1354
</xsl:for-each>
1355
</xsl:template>
1356
1357
1358
1359
<xsl:template name="tag_4xx">
1360
<xsl:param name="tag" />
1361
<xsl:param name="label" />
1362
<xsl:if test="marc:datafield[@tag=$tag]">
1363
<span class="results_summary">
1364
<span class="label"><xsl:value-of select="$label" /> : </span>
1365
<xsl:for-each select="marc:datafield[@tag=$tag]">
1366
<xsl:call-template name="addClassRtl" />
1367
<xsl:choose>
1368
<xsl:when test="marc:subfield[@code='9']">
1369
<xsl:element name="a"><xsl:attribute name="href">
1370
/cgi-bin/koha/opac-search.pl?idx=Local-number,phr&amp;q=<xsl:value-of select="marc:subfield[@code='9']"/>
1371
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1372
</xsl:when>
1373
<xsl:when test="marc:subfield[@code='0']">
1374
<xsl:element name="a"><xsl:attribute name="href">
1375
/cgi-bin/koha/opac-search.pl?idx=kw,phr&amp;q=<xsl:value-of select="marc:subfield[@code='0']"/>
1376
</xsl:attribute><xsl:value-of select="marc:subfield[@code='t']"/></xsl:element>
1377
</xsl:when>
1378
<xsl:otherwise>
1379
<xsl:value-of select="marc:subfield[@code='t']"/>
1380
</xsl:otherwise>
1381
</xsl:choose>
1382
<xsl:if test="marc:subfield[@code='c']"> : <xsl:value-of select="marc:subfield[@code='c']"/>
1383
</xsl:if>
1384
<xsl:if test="marc:subfield[@code='d']"> ; <xsl:value-of select="marc:subfield[@code='d']"/>
1385
</xsl:if>
1386
<xsl:if test="marc:subfield[@code='e'][1]"> - <xsl:value-of select="marc:subfield[@code='e'][1]"/>
1387
</xsl:if>
1388
<xsl:if test="marc:subfield[@code='f'][1]"> - <xsl:value-of select="marc:subfield[@code='f'][1]"/>
1389
</xsl:if>
1390
<xsl:if test="marc:subfield[@code='g'][1]"> - <xsl:value-of select="marc:subfield[@code='g'][1]"/>
1391
</xsl:if>
1392
<xsl:if test="marc:subfield[@code='h'][1]"> - <xsl:value-of select="marc:subfield[@code='h'][1]"/>
1393
</xsl:if>
1394
<xsl:if test="marc:subfield[@code='i'][1]"> - <xsl:value-of select="marc:subfield[@code='i'][1]"/>
1395
</xsl:if>
1396
<xsl:if test="marc:subfield[@code='l'][1]"> - <xsl:value-of select="marc:subfield[@code='l'][1]"/>
1397
</xsl:if>
1398
<xsl:if test="marc:subfield[@code='v'][1]"> , <xsl:value-of select="marc:subfield[@code='v'][1]"/>
1399
</xsl:if>
1400
<xsl:if test="marc:subfield[@code='x']">,
1401
<xsl:element name="a">
1402
<xsl:attribute name="href">
1403
/cgi-bin/koha/opac-search.pl?idx=ns&amp;q=<xsl:value-of select="marc:subfield[@code='x'][1]"/>
1404
</xsl:attribute><xsl:value-of select="marc:subfield[@code='x'][1]"/></xsl:element>
1405
</xsl:if>
1406
<xsl:if test="marc:subfield[@code='y']">,
1407
<xsl:element name="a">
1408
<xsl:attribute name="href">
1409
/cgi-bin/koha/opac-search.pl?idx=nb&amp;q=<xsl:value-of select="marc:subfield[@code='y'][1]"/>
1410
</xsl:attribute><xsl:value-of select="marc:subfield[@code='y'][1]"/></xsl:element>
1411
</xsl:if>
1412
<xsl:if test="not (position() = last())">
1413
<xsl:text> ; </xsl:text>
1414
</xsl:if>
1415
</xsl:for-each>
1416
</span>
1417
</xsl:if>
1418
</xsl:template>
1419
1420
 <xsl:template name="tag_onesubject">
1421
 <xsl:choose>
1422
 <xsl:when test="marc:subfield[@code=9]">
1423
 <xsl:for-each select="marc:subfield">
1424
 <xsl:if test="@code='9'">
1425
 <xsl:variable name="start" select="position()"/>
1426
 <xsl:variable name="ends">
1427
 <xsl:for-each select="../marc:subfield[position() &gt; $start]">
1428
 <xsl:if test="@code=9">
1429
 <xsl:variable name="end" select="position() + $start"/>
1430
 <xsl:value-of select="$end"/>
1431
 <xsl:text>,</xsl:text>
1432
 </xsl:if>
1433
 </xsl:for-each>
1434
 </xsl:variable>
1435
 <xsl:variable name="end">
1436
 <xsl:choose>
1437
 <xsl:when test="string-length($ends) > 0">
1438
 <xsl:value-of select="substring-before($ends,',')"/>
1439
 </xsl:when>
1440
 <xsl:otherwise>
1441
 <xsl:text>1000</xsl:text>
1442
 </xsl:otherwise>
1443
 </xsl:choose>
1444
 </xsl:variable>
1445
 <xsl:variable name="display">
1446
 <xsl:for-each select="../marc:subfield[position() &gt; $start and position() &lt; $end and @code!=2 and @code!=3]">
1447
 <xsl:value-of select="."/>
1448
 <xsl:if test="not(position()=last())">
1449
 <xsl:text>, </xsl:text>
1450
 </xsl:if>
1451
 </xsl:for-each>
1452
 </xsl:variable>
1453
 <a>
1454
 <xsl:attribute name="href">
1455
 <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
1456
 <xsl:value-of select="."/>
1457
 </xsl:attribute>
1458
 <xsl:choose>
1459
 <xsl:when test="string-length($display) &gt; 0">
1460
 <xsl:call-template name="chopPunctuation">
1461
 <xsl:with-param name="chopString">
1462
 <xsl:value-of select="$display"/>
1463
 </xsl:with-param>
1464
 </xsl:call-template>
1465
 </xsl:when>
1466
 <xsl:otherwise>
1467
 <xsl:value-of select="."/>
1468
 </xsl:otherwise>
1469
 </xsl:choose>
1470
 </a>
1471
 <xsl:variable name="ncommas"
1472
 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
1473
 <xsl:if test="$ncommas &gt; 1">
1474
 <xsl:text> -- </xsl:text>
1475
 </xsl:if>
1476
 </xsl:if>
1477
 </xsl:for-each>
1478
 </xsl:when>
1479
 <xsl:when test="marc:subfield[@code='a']">
1480
 <a>
1481
 <xsl:attribute name="href">
1482
 <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
1483
 <xsl:value-of select="marc:subfield[@code='a']"/>
1484
 </xsl:attribute>
1485
 <xsl:call-template name="chopPunctuation">
1486
 <xsl:with-param name="chopString">
1487
 <xsl:call-template name="subfieldSelect">
1488
 <xsl:with-param name="codes">abcdfijkmnpvxyz</xsl:with-param>
1489
 <xsl:with-param name="subdivCodes">ijknpxyz</xsl:with-param>
1490
 <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
1491
 </xsl:call-template>
1492
 </xsl:with-param>
1493
 </xsl:call-template>
1494
 </a>
1495
 </xsl:when>
1496
 <xsl:otherwise/>
1497
 </xsl:choose>
1498
 <xsl:if test="not(position()=last())">
1499
 <xsl:text> | </xsl:text>
1500
 </xsl:if>
1501
 </xsl:template>
1502
1503
 <xsl:template name="tag_subject">
1504
 <xsl:param name="tag" />
1505
 <xsl:param name="label" />
1506
 <xsl:param name="spanclass" />
1507
 <xsl:if test="marc:datafield[@tag=$tag]">
1508
 <span class="results_summary subjects {$spanclass}">
1509
 <span class="label">
1510
 <xsl:value-of select="$label"/>
1511
 <xsl:text> : </xsl:text>
1512
 </span>
1513
 <span class="value">
1514
 <xsl:for-each select="marc:datafield[@tag=$tag]">
1515
 <xsl:call-template name="tag_onesubject">
1516
 </xsl:call-template>
1517
 </xsl:for-each>
1518
 </span>
1519
 </span>
1520
 </xsl:if>
1521
 </xsl:template>
1522
1523
1524
 <xsl:template name="tag_71x">
1525
 <xsl:param name="tag" />
1526
 <xsl:param name="label" />
1527
 <xsl:param name="spanclass" />
1528
 <xsl:if test="marc:datafield[@tag=$tag]">
1529
 <span class="results_summary author {$spanclass}">
1530
 <span class="label">
1531
 <xsl:value-of select="$label" />
1532
 <xsl:text>: </xsl:text>
1533
 </span>
1534
 <span class="value">
1535
 <xsl:for-each select="marc:datafield[@tag=$tag]">
1536
 <a>
1537
 <xsl:choose>
1538
 <xsl:when test="marc:subfield[@code=9]">
1539
 <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
1540
 </xsl:when>
1541
 <xsl:otherwise>
1542
 <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
1543
 </xsl:otherwise>
1544
 </xsl:choose>
1545
 <xsl:if test="marc:subfield[@code='a']">
1546
 <xsl:value-of select="marc:subfield[@code='a']"/>
1547
 </xsl:if>
1548
 <xsl:if test="marc:subfield[@code='b']">
1549
 <xsl:text>. </xsl:text>
1550
 <xsl:value-of select="marc:subfield[@code='b']"/>
1551
 </xsl:if>
1552
 <xsl:if test="marc:subfield[@code='b'][2]">
1553
 <xsl:text>. </xsl:text>
1554
 <xsl:value-of select="marc:subfield[@code='b'][2]"/>
1555
 </xsl:if>
1556
 <xsl:if test="marc:subfield[@code='b'][3]">
1557
 <xsl:text>. </xsl:text>
1558
 <xsl:value-of select="marc:subfield[@code='b'][3]"/>
1559
 </xsl:if>
1560
 <xsl:if test="marc:subfield[@code='c']">
1561
 <xsl:text>. </xsl:text>
1562
 <xsl:value-of select="marc:subfield[@code='c']"/>
1563
 </xsl:if>
1564
<xsl:choose>
1565
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f']) and (marc:subfield[@code='e'])">
1566
 <xsl:text> ( </xsl:text>
1567
 <xsl:value-of select="marc:subfield[@code='d']"/>
1568
<xsl:text> ; </xsl:text>
1569
 <xsl:value-of select="marc:subfield[@code='f']"/>
1570
<xsl:text> ; </xsl:text>
1571
<xsl:value-of select="marc:subfield[@code='e']"/>
1572
 <xsl:text> ) </xsl:text>
1573
</xsl:when>
1574
<xsl:when test="(marc:subfield[@code='d']) and (marc:subfield[@code='f'])">
1575
 <xsl:text> ( </xsl:text>
1576
 <xsl:value-of select="marc:subfield[@code='d']"/>
1577
<xsl:text> ; </xsl:text>
1578
 <xsl:value-of select="marc:subfield[@code='f']"/>
1579
 <xsl:text> ) </xsl:text>
1580
</xsl:when>
1581
<xsl:when test="marc:subfield[@code='d']">
1582
 <xsl:text> ( </xsl:text>
1583
 <xsl:value-of select="marc:subfield[@code='d']"/>
1584
 <xsl:text> ) </xsl:text>
1585
</xsl:when>
1586
</xsl:choose>
1587
<xsl:if test="marc:subfield[@code='4']">
1588
 <xsl:text> ( </xsl:text>
1589
 <xsl:value-of select="marc:subfield[@code='4']"/>
1590
<xsl:text> ) </xsl:text>
1591
 </xsl:if>
1592
 </a>
1593
 <xsl:if test="not (position() = last())">
1594
 <xsl:text> ; </xsl:text>
1595
 </xsl:if>
1596
 </xsl:for-each>
1597
 </span></span>
1598
 </xsl:if>
1599
 </xsl:template>
1600
1601
1602
 <xsl:template name="tag_7xx">
1603
 <xsl:param name="tag" />
1604
 <xsl:param name="label" />
1605
 <xsl:param name="spanclass" />
1606
 <xsl:if test="marc:datafield[@tag=$tag]">
1607
 <span class="results_summary author {$spanclass}">
1608
 <span class="label">
1609
 <xsl:value-of select="$label" />
1610
 <xsl:text> : </xsl:text>
1611
 </span>
1612
 <span class="value">
1613
 <xsl:for-each select="marc:datafield[@tag=$tag]">
1614
 <a>
1615
 <xsl:choose>
1616
 <xsl:when test="marc:subfield[@code=9]">
1617
 <xsl:attribute name="href">
1618
 <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
1619
 <xsl:value-of select="marc:subfield[@code=9]"/>
1620
 </xsl:attribute>
1621
 </xsl:when>
1622
 <xsl:otherwise>
1623
 <xsl:attribute name="href">
1624
 <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:</xsl:text>
1625
 <xsl:value-of select="marc:subfield[@code='a']"/>
1626
 <xsl:text> </xsl:text>
1627
 <xsl:value-of select="marc:subfield[@code='b']"/>
1628
 </xsl:attribute>
1629
 </xsl:otherwise>
1630
 </xsl:choose>
1631
 <xsl:for-each select="marc:subfield[@code='a' or @code='b' or @code='4' or @code='c' or @code='d' or @code='f' or @code='g' or @code='p']">
1632
 <xsl:choose>
1633
 <xsl:when test="@code='9'">
1634
 </xsl:when>
1635
 <xsl:otherwise>
1636
 <xsl:value-of select="."/>
1637
 </xsl:otherwise>
1638
 </xsl:choose>
1639
 <xsl:if test="not(position() = last())">
1640
 <xsl:text>, </xsl:text>
1641
 </xsl:if>
1642
 </xsl:for-each>
1643
 </a>
1644
 <xsl:if test="not(position() = last())">
1645
 <span style="padding: 3px;">
1646
 <xsl:text>;</xsl:text>
1647
 </span>
1648
 </xsl:if>
1649
 </xsl:for-each>
1650
 </span>
1651
 </span>
1652
 </xsl:if>
1653
 </xsl:template>
1654
1655
<xsl:template name="RCR">
1656
  <xsl:param name="code"/>
1657
  <xsl:choose>
1658
    <xsl:when test="$code='xxxxxxxxx'">Bibliothèque xxxxxxxxx</xsl:when>
1659
    <xsl:when test="$code='yyyyyyyyy'">Bibliothèque yyyyyyyyy</xsl:when>
1660
    <xsl:otherwise><xsl:value-of select="$code"/></xsl:otherwise>
1661
  </xsl:choose>
1662
</xsl:template>
410
1663
411
</xsl:stylesheet>
1664
</xsl:stylesheet>
412
- 

Return to bug 23702