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

(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (-1019 lines)
Lines 1-1019 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
4
  <id>marc:datafield[@tag='999']/marc:subfield[@code='c']</id>
5
  <!--record.abs line 64: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
6
  <index_leader offset="0" length="5">
7
    <target_index>llength:w</target_index>
8
  </index_leader>
9
  <index_leader offset="6" length="1">
10
    <target_index>rtype:w</target_index>
11
  </index_leader>
12
  <index_leader offset="7" length="1">
13
    <target_index>Bib-level:w</target_index>
14
  </index_leader>
15
  <!--record.abs line 67: melm 001        Control-number-->
16
  <index_control_field tag="001">
17
    <target_index>Control-number:w</target_index>
18
  </index_control_field>
19
  <!--record.abs line 71: melm 007        Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)-->
20
  <index_control_field tag="007" offset="11" length="1">
21
    <target_index>Microform-generation:n</target_index>
22
  </index_control_field>
23
  <index_control_field tag="007">
24
    <target_index>Material-type:w</target_index>
25
  </index_control_field>
26
  <index_control_field tag="007" offset="0" length="1">
27
    <target_index>ff7-00:w</target_index>
28
  </index_control_field>
29
  <index_control_field tag="007" offset="1" length="1">
30
    <target_index>ff7-01:w</target_index>
31
  </index_control_field>
32
  <index_control_field tag="007" offset="2" length="1">
33
    <target_index>ff7-02:w</target_index>
34
  </index_control_field>
35
  <index_control_field tag="007" offset="0" length="2">
36
    <target_index>ff7-01-02:w</target_index>
37
  </index_control_field>
38
  <!--record.abs line 74: melm 008        date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:w:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)-->
39
  <index_control_field tag="008" offset="0" length="5">
40
    <target_index>date-entered-on-file:n</target_index>
41
  </index_control_field>
42
  <index_control_field tag="008" offset="0" length="5">
43
    <target_index>date-entered-on-file:s</target_index>
44
  </index_control_field>
45
  <index_control_field tag="008" offset="7" length="4">
46
    <target_index>pubdate:w</target_index>
47
  </index_control_field>
48
  <index_control_field tag="008" offset="7" length="4">
49
    <target_index>pubdate:n</target_index>
50
  </index_control_field>
51
  <index_control_field tag="008" offset="7" length="4">
52
    <target_index>pubdate:y</target_index>
53
  </index_control_field>
54
  <index_control_field tag="008" offset="7" length="4">
55
    <target_index>pubdate:s</target_index>
56
  </index_control_field>
57
  <index_control_field tag="008" offset="15" length="3">
58
    <target_index>pl:w</target_index>
59
  </index_control_field>
60
  <index_control_field tag="008" offset="22" length="1">
61
    <target_index>ta:w</target_index>
62
  </index_control_field>
63
  <index_control_field tag="008" offset="23" length="1">
64
    <target_index>ff8-23:w</target_index>
65
  </index_control_field>
66
  <index_control_field tag="008" offset="29" length="1">
67
    <target_index>ff8-29:w</target_index>
68
  </index_control_field>
69
  <index_control_field tag="008" offset="33" length="1">
70
    <target_index>lf:w</target_index>
71
  </index_control_field>
72
  <index_control_field tag="008" offset="34" length="1">
73
    <target_index>bio:w</target_index>
74
  </index_control_field>
75
  <index_control_field tag="008" offset="35" length="3">
76
    <target_index>ln:w</target_index>
77
  </index_control_field>
78
  <index_control_field tag="008" offset="24" length="4">
79
    <target_index>ctype:w</target_index>
80
  </index_control_field>
81
  <index_control_field tag="008" offset="39" length="0">
82
    <target_index>Record-source:w</target_index>
83
  </index_control_field>
84
  <!--record.abs line 76: melm 010        LC-card-number,Identifier-standard-->
85
  <index_data_field tag="010">
86
    <target_index>LC-card-number:w</target_index>
87
    <target_index>Identifier-standard:w</target_index>
88
  </index_data_field>
89
  <!--record.abs line 78: melm 015        BNB-card-number,BGF-number,Number-db,Number-natl-biblio,Identifier-standard-->
90
  <index_data_field tag="015">
91
    <target_index>BNB-card-number:w</target_index>
92
    <target_index>BGF-number:w</target_index>
93
    <target_index>Number-db:w</target_index>
94
    <target_index>Number-natl-biblio:w</target_index>
95
    <target_index>Identifier-standard:w</target_index>
96
  </index_data_field>
97
  <!--record.abs line 81: melm 020$a      ISBN:w,Identifier-standard:w-->
98
  <index_subfields tag="020" subfields="a">
99
    <target_index>ISBN:w</target_index>
100
    <target_index>Identifier-standard:w</target_index>
101
  </index_subfields>
102
  <!--record.abs line 82: melm 020        ISBN,Identifier-standard-->
103
  <index_data_field tag="020">
104
    <target_index>ISBN:w</target_index>
105
    <target_index>Identifier-standard:w</target_index>
106
  </index_data_field>
107
  <!--record.abs line 83: melm 022$a      ISSN:w,ISBN:w-->
108
  <index_subfields tag="022" subfields="a">
109
    <target_index>ISSN:w</target_index>
110
    <target_index>ISBN:w</target_index>
111
  </index_subfields>
112
  <!--record.abs line 84: melm 022        ISSN,Identifier-standard-->
113
  <index_data_field tag="022">
114
    <target_index>ISSN:w</target_index>
115
    <target_index>Identifier-standard:w</target_index>
116
  </index_data_field>
117
  <!--record.abs line 86: melm 024        Identifier-standard-->
118
  <index_data_field tag="024">
119
    <target_index>Identifier-standard:w</target_index>
120
  </index_data_field>
121
  <!--record.abs line 87: melm 025        Identifier-standard-->
122
  <index_data_field tag="025">
123
    <target_index>Identifier-standard:w</target_index>
124
  </index_data_field>
125
  <!--record.abs line 88: melm 027        Report-number,Identifier-standard-->
126
  <index_data_field tag="027">
127
    <target_index>Report-number:w</target_index>
128
    <target_index>Identifier-standard:w</target_index>
129
  </index_data_field>
130
  <!--record.abs line 89: melm 028        Identifier-publisher-for-music,Identifier-standard-->
131
  <index_data_field tag="028">
132
    <target_index>Identifier-publisher-for-music:w</target_index>
133
    <target_index>Identifier-standard:w</target_index>
134
  </index_data_field>
135
  <!--record.abs line 90: melm 030        CODEN,Identifier-standard-->
136
  <index_data_field tag="030">
137
    <target_index>CODEN:w</target_index>
138
    <target_index>Identifier-standard:w</target_index>
139
  </index_data_field>
140
  <!--record.abs line 95: melm 040        Code-institution,Record-source-->
141
  <index_data_field tag="040">
142
    <target_index>Code-institution:w</target_index>
143
    <target_index>Record-source:w</target_index>
144
  </index_data_field>
145
  <!--record.abs line 96: melm 041        ln-->
146
  <index_data_field tag="041">
147
    <target_index>ln:w</target_index>
148
  </index_data_field>
149
  <!--record.abs line 97: melm 043        Code-geographic-->
150
  <index_data_field tag="043">
151
    <target_index>Code-geographic:w</target_index>
152
  </index_data_field>
153
  <!--record.abs line 102: melm 060        NLM-call-number-->
154
  <index_data_field tag="060">
155
    <target_index>NLM-call-number:w</target_index>
156
  </index_data_field>
157
  <!--record.abs line 104: melm 080        UDC-classification-->
158
  <index_data_field tag="080">
159
    <target_index>UDC-classification:w</target_index>
160
  </index_data_field>
161
  <!--record.abs line 105: melm 082        Dewey-classification:w,Dewey-classification:s-->
162
  <index_data_field tag="082">
163
    <target_index>Dewey-classification:w</target_index>
164
    <target_index>Dewey-classification:s</target_index>
165
  </index_data_field>
166
  <!--record.abs line 113: melm 100$9      Cross-Reference:w,Koha-Auth-Number-->
167
  <index_subfields tag="100" subfields="9">
168
    <target_index>Cross-Reference:w</target_index>
169
    <target_index>Koha-Auth-Number:w</target_index>
170
  </index_subfields>
171
  <!--record.abs line 114: melm 100$a      Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s-->
172
  <index_subfields tag="100" subfields="a">
173
    <target_index>Author:w</target_index>
174
    <target_index>Author:p</target_index>
175
    <target_index>Author:s</target_index>
176
    <target_index>Editor:w</target_index>
177
    <target_index>Author-personal-bibliography:w</target_index>
178
    <target_index>Author-personal-bibliography:p</target_index>
179
    <target_index>Author-personal-bibliography:s</target_index>
180
  </index_subfields>
181
  <!--record.abs line 115: melm 100        Author,Author-title,Author-name-personal,Name,Name-and-title,Personal-name-->
182
  <index_data_field tag="100">
183
    <target_index>Author:w</target_index>
184
    <target_index>Author-title:w</target_index>
185
    <target_index>Author-name-personal:w</target_index>
186
    <target_index>Name:w</target_index>
187
    <target_index>Name-and-title:w</target_index>
188
    <target_index>Personal-name:w</target_index>
189
  </index_data_field>
190
  <!--record.abs line 116: melm 110$9      Koha-Auth-Number-->
191
  <index_subfields tag="110" subfields="9">
192
    <target_index>Koha-Auth-Number:w</target_index>
193
  </index_subfields>
194
  <!--record.abs line 117: melm 110        Author,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name-->
195
  <index_data_field tag="110">
196
    <target_index>Author:w</target_index>
197
    <target_index>Author-title:w</target_index>
198
    <target_index>Author-name-corporate:w</target_index>
199
    <target_index>Name:w</target_index>
200
    <target_index>Name-and-title:w</target_index>
201
    <target_index>Corporate-name:w</target_index>
202
  </index_data_field>
203
  <!--record.abs line 118: melm 111$9      Koha-Auth-Number-->
204
  <index_subfields tag="111" subfields="9">
205
    <target_index>Koha-Auth-Number:w</target_index>
206
  </index_subfields>
207
  <!--record.abs line 119: melm 111        Author,Author-title,Author-name-corporate,Name,Name-and-title,Conference-name-->
208
  <index_data_field tag="111">
209
    <target_index>Author:w</target_index>
210
    <target_index>Author-title:w</target_index>
211
    <target_index>Author-name-corporate:w</target_index>
212
    <target_index>Name:w</target_index>
213
    <target_index>Name-and-title:w</target_index>
214
    <target_index>Conference-name:w</target_index>
215
  </index_data_field>
216
  <!--record.abs line 120: melm 130$i      Thematic-number-->
217
  <index_subfields tag="130" subfields="i">
218
    <target_index>Thematic-number:w</target_index>
219
  </index_subfields>
220
  <!--record.abs line 121: melm 130$n      Thematic-number-->
221
  <index_subfields tag="130" subfields="n">
222
    <target_index>Thematic-number:w</target_index>
223
  </index_subfields>
224
  <!--record.abs line 122: melm 130$r      Music-key-->
225
  <index_subfields tag="130" subfields="r">
226
    <target_index>Music-key:w</target_index>
227
  </index_subfields>
228
  <!--record.abs line 123: melm 130$9      Koha-Auth-Number-->
229
  <index_subfields tag="130" subfields="9">
230
    <target_index>Koha-Auth-Number:w</target_index>
231
  </index_subfields>
232
  <!--record.abs line 124: melm 130        Title,Title-uniform-->
233
  <index_data_field tag="130">
234
    <target_index>Title:w</target_index>
235
    <target_index>Title-uniform:w</target_index>
236
  </index_data_field>
237
  <!--record.abs line 126: melm 210        Title,Title-abbreviated-->
238
  <index_data_field tag="210">
239
    <target_index>Title:w</target_index>
240
    <target_index>Title-abbreviated:w</target_index>
241
  </index_data_field>
242
  <!--record.abs line 130: melm 222        Title,Title-key-->
243
  <index_data_field tag="222">
244
    <target_index>Title:w</target_index>
245
    <target_index>Title-key:w</target_index>
246
  </index_data_field>
247
  <!--record.abs line 131: melm 240$i      Thematic-number-->
248
  <index_subfields tag="240" subfields="i">
249
    <target_index>Thematic-number:w</target_index>
250
  </index_subfields>
251
  <!--record.abs line 132: melm 240$r      Music-key-->
252
  <index_subfields tag="240" subfields="r">
253
    <target_index>Music-key:w</target_index>
254
  </index_subfields>
255
  <!--record.abs line 133: melm 240$n      Thematic-number-->
256
  <index_subfields tag="240" subfields="n">
257
    <target_index>Thematic-number:w</target_index>
258
  </index_subfields>
259
  <!--record.abs line 134: melm 240        Title:w,Title:p,Title-uniform-->
260
  <index_data_field tag="240">
261
    <target_index>Title:w</target_index>
262
    <target_index>Title:p</target_index>
263
    <target_index>Title-uniform:w</target_index>
264
  </index_data_field>
265
  <!--record.abs line 138: melm 245$a      Title-cover:w,Title-cover:p,Title-cover:s,Title:w,Title:p,Title:s-->
266
  <index_subfields tag="245" subfields="a">
267
    <target_index>Title-cover:w</target_index>
268
    <target_index>Title-cover:p</target_index>
269
    <target_index>Title-cover:s</target_index>
270
    <target_index>Title:w</target_index>
271
    <target_index>Title:p</target_index>
272
    <target_index>Title:s</target_index>
273
  </index_subfields>
274
  <!--record.abs line 139: melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s-->
275
  <index_subfields tag="245" subfields="c">
276
    <target_index>Author:w</target_index>
277
    <target_index>Author-in-order:w</target_index>
278
    <target_index>Author-in-order:p</target_index>
279
    <target_index>Author-in-order:s</target_index>
280
  </index_subfields>
281
  <!--record.abs line 140: melm 245$9      Cross-Reference:w,Koha-Auth-Number-->
282
  <index_subfields tag="245" subfields="9">
283
    <target_index>Cross-Reference:w</target_index>
284
    <target_index>Koha-Auth-Number:w</target_index>
285
  </index_subfields>
286
  <!--record.abs line 141: melm 245        Title:w,Title:p-->
287
  <index_data_field tag="245">
288
    <target_index>Title:w</target_index>
289
    <target_index>Title:p</target_index>
290
  </index_data_field>
291
  <!--record.abs line 142: melm 246        Title,Title:p,Title-abbreviated,Title-expanded,Title-former-->
292
  <index_data_field tag="246">
293
    <target_index>Title:w</target_index>
294
    <target_index>Title:p</target_index>
295
    <target_index>Title-abbreviated:w</target_index>
296
    <target_index>Title-expanded:w</target_index>
297
    <target_index>Title-former:w</target_index>
298
  </index_data_field>
299
  <!--record.abs line 144: melm 260$a      pl:w,pl:p-->
300
  <index_subfields tag="260" subfields="a">
301
    <target_index>pl:w</target_index>
302
    <target_index>pl:p</target_index>
303
  </index_subfields>
304
  <!--record.abs line 145: melm 260$b      Publisher:w,Publisher:p-->
305
  <index_subfields tag="260" subfields="b">
306
    <target_index>Publisher:w</target_index>
307
    <target_index>Publisher:p</target_index>
308
  </index_subfields>
309
  <!--record.abs line 146: melm 260$c      copydate,copydate:s-->
310
  <index_subfields tag="260" subfields="c">
311
    <target_index>copydate:w</target_index>
312
    <target_index>copydate:s</target_index>
313
  </index_subfields>
314
  <!--record.abs line 147: melm 260        pl-->
315
  <index_data_field tag="260">
316
    <target_index>pl:w</target_index>
317
  </index_data_field>
318
  <!--record.abs line 148: melm 300        Extent:w,Extent:p-->
319
  <index_data_field tag="300">
320
    <target_index>Extent:w</target_index>
321
    <target_index>Extent:p</target_index>
322
  </index_data_field>
323
  <!--record.abs line 164: melm 440$a      Title-series:w,Title-series:p-->
324
  <index_subfields tag="440" subfields="a">
325
    <target_index>Title-series:w</target_index>
326
    <target_index>Title-series:p</target_index>
327
  </index_subfields>
328
  <!--record.abs line 165: melm 440$9      Koha-Auth-Number-->
329
  <index_subfields tag="440" subfields="9">
330
    <target_index>Koha-Auth-Number:w</target_index>
331
  </index_subfields>
332
  <!--record.abs line 166: melm 440        Title-series:w,Title-series:p,Title,Title-series-->
333
  <index_data_field tag="440">
334
    <target_index>Title-series:w</target_index>
335
    <target_index>Title-series:p</target_index>
336
    <target_index>Title:w</target_index>
337
    <target_index>Title-series:w</target_index>
338
  </index_data_field>
339
  <!--record.abs line 167: melm 490$a      Title-series:w,Title-series:p-->
340
  <index_subfields tag="490" subfields="a">
341
    <target_index>Title-series:w</target_index>
342
    <target_index>Title-series:p</target_index>
343
  </index_subfields>
344
  <!--record.abs line 168: melm 490        Title,Title-series-->
345
  <index_data_field tag="490">
346
    <target_index>Title:w</target_index>
347
    <target_index>Title-series:w</target_index>
348
  </index_data_field>
349
  <!--record.abs line 169: melm 490$9      Koha-Auth-Number-->
350
  <index_subfields tag="490" subfields="9">
351
    <target_index>Koha-Auth-Number:w</target_index>
352
  </index_subfields>
353
  <!--record.abs line 171: melm 502        Material-type-->
354
  <index_data_field tag="502">
355
    <target_index>Material-type:w</target_index>
356
  </index_data_field>
357
  <!--record.abs line 174: melm 505        Note:w,Note:p-->
358
  <index_data_field tag="505">
359
    <target_index>Note:w</target_index>
360
    <target_index>Note:p</target_index>
361
  </index_data_field>
362
  <!--record.abs line 175: melm 510        Indexed-by-->
363
  <index_data_field tag="510">
364
    <target_index>Indexed-by:w</target_index>
365
  </index_data_field>
366
  <!--record.abs line 176: melm 520        Abstract:w,Abstract:p-->
367
  <index_data_field tag="520">
368
    <target_index>Abstract:w</target_index>
369
    <target_index>Abstract:p</target_index>
370
  </index_data_field>
371
  <!--record.abs line 180: melm 600$a      Name-and-title,Name,Personal-name,Subject-name-personal,Subject,Subject:p-->
372
  <index_subfields tag="600" subfields="a">
373
    <target_index>Name-and-title:w</target_index>
374
    <target_index>Name:w</target_index>
375
    <target_index>Personal-name:w</target_index>
376
    <target_index>Subject-name-personal:w</target_index>
377
    <target_index>Subject:w</target_index>
378
    <target_index>Subject:p</target_index>
379
  </index_subfields>
380
  <!--record.abs line 181: melm 600$t      Name-and-title,Title,Subject,Subject:p-->
381
  <index_subfields tag="600" subfields="t">
382
    <target_index>Name-and-title:w</target_index>
383
    <target_index>Title:w</target_index>
384
    <target_index>Subject:w</target_index>
385
    <target_index>Subject:p</target_index>
386
  </index_subfields>
387
  <!--record.abs line 182: melm 600$9      Koha-Auth-Number-->
388
  <index_subfields tag="600" subfields="9">
389
    <target_index>Koha-Auth-Number:w</target_index>
390
  </index_subfields>
391
  <!--record.abs line 184: melm 600        Name,Personal-name,Subject-name-personal,Subject,Subject:p-->
392
  <index_data_field tag="600">
393
    <target_index>Name:w</target_index>
394
    <target_index>Personal-name:w</target_index>
395
    <target_index>Subject-name-personal:w</target_index>
396
    <target_index>Subject:w</target_index>
397
    <target_index>Subject:p</target_index>
398
  </index_data_field>
399
  <!--record.abs line 185: melm 610$a      Name-and-title,Subject,Subject:p-->
400
  <index_subfields tag="610" subfields="a">
401
    <target_index>Name-and-title:w</target_index>
402
    <target_index>Subject:w</target_index>
403
    <target_index>Subject:p</target_index>
404
  </index_subfields>
405
  <!--record.abs line 186: melm 610$t      Name-and-title,Title,Subject,Subject:p-->
406
  <index_subfields tag="610" subfields="t">
407
    <target_index>Name-and-title:w</target_index>
408
    <target_index>Title:w</target_index>
409
    <target_index>Subject:w</target_index>
410
    <target_index>Subject:p</target_index>
411
  </index_subfields>
412
  <!--record.abs line 187: melm 610$9      Koha-Auth-Number-->
413
  <index_subfields tag="610" subfields="9">
414
    <target_index>Koha-Auth-Number:w</target_index>
415
  </index_subfields>
416
  <!--record.abs line 188: melm 610        Name,Subject,Corporate-name,Subject,Subject:p-->
417
  <index_data_field tag="610">
418
    <target_index>Name:w</target_index>
419
    <target_index>Subject:w</target_index>
420
    <target_index>Corporate-name:w</target_index>
421
    <target_index>Subject:w</target_index>
422
    <target_index>Subject:p</target_index>
423
  </index_data_field>
424
  <!--record.abs line 189: melm 611        Conference-name,Subject,Subject:p-->
425
  <index_data_field tag="611">
426
    <target_index>Conference-name:w</target_index>
427
    <target_index>Subject:w</target_index>
428
    <target_index>Subject:p</target_index>
429
  </index_data_field>
430
  <!--record.abs line 190: melm 611$a      Name-and-title,Subject,Subject:p-->
431
  <index_subfields tag="611" subfields="a">
432
    <target_index>Name-and-title:w</target_index>
433
    <target_index>Subject:w</target_index>
434
    <target_index>Subject:p</target_index>
435
  </index_subfields>
436
  <!--record.abs line 191: melm 611$t      Name-and-title,Title,Subject,Subject:p-->
437
  <index_subfields tag="611" subfields="t">
438
    <target_index>Name-and-title:w</target_index>
439
    <target_index>Title:w</target_index>
440
    <target_index>Subject:w</target_index>
441
    <target_index>Subject:p</target_index>
442
  </index_subfields>
443
  <!--record.abs line 192: melm 611$9      Koha-Auth-Number-->
444
  <index_subfields tag="611" subfields="9">
445
    <target_index>Koha-Auth-Number:w</target_index>
446
  </index_subfields>
447
  <!--record.abs line 193: melm 611        Name,Subject,Subject:p-->
448
  <index_data_field tag="611">
449
    <target_index>Name:w</target_index>
450
    <target_index>Subject:w</target_index>
451
    <target_index>Subject:p</target_index>
452
  </index_data_field>
453
  <!--record.abs line 194: melm 630$i      Thematic-number,Subject,Subject:p-->
454
  <index_subfields tag="630" subfields="i">
455
    <target_index>Thematic-number:w</target_index>
456
    <target_index>Subject:w</target_index>
457
    <target_index>Subject:p</target_index>
458
  </index_subfields>
459
  <!--record.abs line 195: melm 630$n      Thematic-number,Subject,Subject:p-->
460
  <index_subfields tag="630" subfields="n">
461
    <target_index>Thematic-number:w</target_index>
462
    <target_index>Subject:w</target_index>
463
    <target_index>Subject:p</target_index>
464
  </index_subfields>
465
  <!--record.abs line 196: melm 630$r      Music-key,Subject,Subject:p-->
466
  <index_subfields tag="630" subfields="r">
467
    <target_index>Music-key:w</target_index>
468
    <target_index>Subject:w</target_index>
469
    <target_index>Subject:p</target_index>
470
  </index_subfields>
471
  <!--record.abs line 197: melm 630$9      Koha-Auth-Number-->
472
  <index_subfields tag="630" subfields="9">
473
    <target_index>Koha-Auth-Number:w</target_index>
474
  </index_subfields>
475
  <!--record.abs line 198: melm 630        Subject,Subject:p-->
476
  <index_data_field tag="630">
477
    <target_index>Subject:w</target_index>
478
    <target_index>Subject:p</target_index>
479
  </index_data_field>
480
  <index_subfields tag="648" subfields="9">
481
    <target_index>Koha-Auth-Number:w</target_index>
482
  </index_subfields>
483
  <!--record.abs line 199: melm 650$9      Koha-Auth-Number-->
484
  <index_subfields tag="650" subfields="9">
485
    <target_index>Koha-Auth-Number:w</target_index>
486
  </index_subfields>
487
  <!--record.abs line 200: melm 650        Subject,Subject:p-->
488
  <index_data_field tag="650">
489
    <target_index>Subject:w</target_index>
490
    <target_index>Subject:p</target_index>
491
  </index_data_field>
492
  <!--record.abs line 201: melm 651$9      Koha-Auth-Number-->
493
  <index_subfields tag="651" subfields="9">
494
    <target_index>Koha-Auth-Number:w</target_index>
495
  </index_subfields>
496
  <!--record.abs line 202: melm 651        Name-geographic,Subject,Subject:p-->
497
  <index_data_field tag="651">
498
    <target_index>Name-geographic:w</target_index>
499
    <target_index>Subject:w</target_index>
500
    <target_index>Subject:p</target_index>
501
  </index_data_field>
502
  <!--record.abs line 203: melm 652$9      Koha-Auth-Number-->
503
  <index_subfields tag="652" subfields="9">
504
    <target_index>Koha-Auth-Number:w</target_index>
505
  </index_subfields>
506
  <!--record.abs line 205: melm 653$9      Koha-Auth-Number-->
507
  <index_subfields tag="653" subfields="9">
508
    <target_index>Koha-Auth-Number:w</target_index>
509
  </index_subfields>
510
  <!--record.abs line 206: melm 653        Subject,Subject:p-->
511
  <index_data_field tag="653">
512
    <target_index>Subject:w</target_index>
513
    <target_index>Subject:p</target_index>
514
  </index_data_field>
515
  <!--record.abs line 207: melm 654$9      Koha-Auth-Number-->
516
  <index_subfields tag="654" subfields="9">
517
    <target_index>Koha-Auth-Number:w</target_index>
518
  </index_subfields>
519
  <!--record.abs line 208: melm 654        Subject,Subject:p-->
520
  <index_data_field tag="654">
521
    <target_index>Subject:w</target_index>
522
    <target_index>Subject:p</target_index>
523
  </index_data_field>
524
  <!--record.abs line 209: melm 655$9      Koha-Auth-Number-->
525
  <index_subfields tag="655" subfields="9">
526
    <target_index>Koha-Auth-Number:w</target_index>
527
  </index_subfields>
528
  <!--record.abs line 210: melm 655        Subject,Subject:p-->
529
  <index_data_field tag="655">
530
    <target_index>Subject:w</target_index>
531
    <target_index>Subject:p</target_index>
532
  </index_data_field>
533
  <!--record.abs line 211: melm 656$9      Koha-Auth-Number-->
534
  <index_subfields tag="656" subfields="9">
535
    <target_index>Koha-Auth-Number:w</target_index>
536
  </index_subfields>
537
  <!--record.abs line 212: melm 656        Subject,Subject:p-->
538
  <index_data_field tag="656">
539
    <target_index>Subject:w</target_index>
540
    <target_index>Subject:p</target_index>
541
  </index_data_field>
542
  <!--record.abs line 213: melm 657$9      Koha-Auth-Number-->
543
  <index_subfields tag="657" subfields="9">
544
    <target_index>Koha-Auth-Number:w</target_index>
545
  </index_subfields>
546
  <!--record.abs line 214: melm 657        Subject,Subject:p-->
547
  <index_data_field tag="657">
548
    <target_index>Subject:w</target_index>
549
    <target_index>Subject:p</target_index>
550
  </index_data_field>
551
  <!--record.abs line 215: melm 690$9      Koha-Auth-Number-->
552
  <index_subfields tag="690" subfields="9">
553
    <target_index>Koha-Auth-Number:w</target_index>
554
  </index_subfields>
555
  <!--record.abs line 216: melm 690        Subject,Subject:p-->
556
  <index_data_field tag="690">
557
    <target_index>Subject:w</target_index>
558
    <target_index>Subject:p</target_index>
559
  </index_data_field>
560
  <!--record.abs line 218: melm 700$9      Cross-Reference,Koha-Auth-Number-->
561
  <index_subfields tag="700" subfields="9">
562
    <target_index>Cross-Reference:w</target_index>
563
    <target_index>Koha-Auth-Number:w</target_index>
564
  </index_subfields>
565
  <!--record.abs line 219: melm 700$a      Author,Author:p-->
566
  <index_subfields tag="700" subfields="a">
567
    <target_index>Author:w</target_index>
568
    <target_index>Author:p</target_index>
569
  </index_subfields>
570
  <!--record.abs line 220: melm 700$i      Thematic-number-->
571
  <index_subfields tag="700" subfields="i">
572
    <target_index>Thematic-number:w</target_index>
573
  </index_subfields>
574
  <!--record.abs line 221: melm 700$n      Thematic-number-->
575
  <index_subfields tag="700" subfields="n">
576
    <target_index>Thematic-number:w</target_index>
577
  </index_subfields>
578
  <!--record.abs line 222: melm 700$r      Music-key-->
579
  <index_subfields tag="700" subfields="r">
580
    <target_index>Music-key:w</target_index>
581
  </index_subfields>
582
  <!--record.abs line 224: melm 700$t      Author-title,Name-and-title,Title,Title-uniform-->
583
  <index_subfields tag="700" subfields="t">
584
    <target_index>Author-title:w</target_index>
585
    <target_index>Name-and-title:w</target_index>
586
    <target_index>Title:w</target_index>
587
    <target_index>Title-uniform:w</target_index>
588
  </index_subfields>
589
  <!--record.abs line 225: melm 700        Author,Author-name-corporate,Author-name-personal,Name,Editor,Personal-name-->
590
  <index_data_field tag="700">
591
    <target_index>Author:w</target_index>
592
    <target_index>Author-name-corporate:w</target_index>
593
    <target_index>Author-name-personal:w</target_index>
594
    <target_index>Name:w</target_index>
595
    <target_index>Editor:w</target_index>
596
    <target_index>Personal-name:w</target_index>
597
  </index_data_field>
598
  <!--record.abs line 226: melm 710        Author,Corporate-name-->
599
  <index_data_field tag="710">
600
    <target_index>Author:w</target_index>
601
    <target_index>Corporate-name:w</target_index>
602
  </index_data_field>
603
  <!--record.abs line 228: melm 710$t      Author-title,Name-and-title,Title,Title-uniform-->
604
  <index_subfields tag="710" subfields="t">
605
    <target_index>Author-title:w</target_index>
606
    <target_index>Name-and-title:w</target_index>
607
    <target_index>Title:w</target_index>
608
    <target_index>Title-uniform:w</target_index>
609
  </index_subfields>
610
  <!--record.abs line 230: melm 710$a      Name-and-title-->
611
  <index_subfields tag="710" subfields="a">
612
    <target_index>Name-and-title:w</target_index>
613
  </index_subfields>
614
  <!--record.abs line 231: melm 710$i      Thematic-number-->
615
  <index_subfields tag="710" subfields="i">
616
    <target_index>Thematic-number:w</target_index>
617
  </index_subfields>
618
  <!--record.abs line 232: melm 710$9      Koha-Auth-Number-->
619
  <index_subfields tag="710" subfields="9">
620
    <target_index>Koha-Auth-Number:w</target_index>
621
  </index_subfields>
622
  <!--record.abs line 234: melm 710        Author,Name-->
623
  <index_data_field tag="710">
624
    <target_index>Author:w</target_index>
625
    <target_index>Name:w</target_index>
626
  </index_data_field>
627
  <!--record.abs line 235: melm 711$a      Name-and-title-->
628
  <index_subfields tag="711" subfields="a">
629
    <target_index>Name-and-title:w</target_index>
630
  </index_subfields>
631
  <!--record.abs line 237: melm 711$t      Author-title,Title,Title-uniform-->
632
  <index_subfields tag="711" subfields="t">
633
    <target_index>Author-title:w</target_index>
634
    <target_index>Title:w</target_index>
635
    <target_index>Title-uniform:w</target_index>
636
  </index_subfields>
637
  <!--record.abs line 238: melm 711$9      Koha-Auth-Number-->
638
  <index_subfields tag="711" subfields="9">
639
    <target_index>Koha-Auth-Number:w</target_index>
640
  </index_subfields>
641
  <!--record.abs line 240: melm 711        Author-name-corporate,Name,Conference-name-->
642
  <index_data_field tag="711">
643
    <target_index>Author-name-corporate:w</target_index>
644
    <target_index>Name:w</target_index>
645
    <target_index>Conference-name:w</target_index>
646
  </index_data_field>
647
  <!--record.abs line 241: melm 730$i      Thematic-number-->
648
  <index_subfields tag="730" subfields="i">
649
    <target_index>Thematic-number:w</target_index>
650
  </index_subfields>
651
  <!--record.abs line 242: melm 730$n      Thematic-number-->
652
  <index_subfields tag="730" subfields="n">
653
    <target_index>Thematic-number:w</target_index>
654
  </index_subfields>
655
  <!--record.abs line 243: melm 730$r      Music-key-->
656
  <index_subfields tag="730" subfields="r">
657
    <target_index>Music-key:w</target_index>
658
  </index_subfields>
659
  <!--record.abs line 244: melm 730$9      Koha-Auth-Number-->
660
  <index_subfields tag="730" subfields="9">
661
    <target_index>Koha-Auth-Number:w</target_index>
662
  </index_subfields>
663
  <!--record.abs line 245: melm 730        Title,Title-uniform-->
664
  <index_data_field tag="730">
665
    <target_index>Title:w</target_index>
666
    <target_index>Title-uniform:w</target_index>
667
  </index_data_field>
668
  <!--record.abs line 246: melm 740        Title,Title-other-variant-->
669
  <index_data_field tag="740">
670
    <target_index>Title:w</target_index>
671
    <target_index>Title-other-variant:w</target_index>
672
  </index_data_field>
673
  <!--record.abs line 247: melm 773$a      Host-item-->
674
  <index_subfields tag="773" subfields="a">
675
    <target_index>Host-item:w</target_index>
676
  </index_subfields>
677
  <!--record.abs line 248: melm 773$9	    Host-Item-Number-->
678
  <index_subfields tag="773" subfields="9">
679
    <target_index>Host-Item-Number:w</target_index>
680
  </index_subfields>
681
  <!--record.abs line 249: melm 773$t      Host-item-->
682
  <index_subfields tag="773" subfields="t">
683
    <target_index>Host-item:w</target_index>
684
  </index_subfields>
685
  <!--record.abs line 250: melm 773$w      Record-control-number-->
686
  <index_subfields tag="773" subfields="w">
687
    <target_index>Record-control-number:w</target_index>
688
  </index_subfields>
689
  <!--record.abs line 251: melm 780$t      Title-->
690
  <index_subfields tag="780" subfields="t">
691
    <target_index>Title:w</target_index>
692
  </index_subfields>
693
  <!--record.abs line 252: melm 780        Title,Title-former,Related-periodical-->
694
  <index_data_field tag="780">
695
    <target_index>Title:w</target_index>
696
    <target_index>Title-former:w</target_index>
697
    <target_index>Related-periodical:w</target_index>
698
  </index_data_field>
699
  <!--record.abs line 253: melm 785        Related-periodical-->
700
  <index_data_field tag="785">
701
    <target_index>Related-periodical:w</target_index>
702
  </index_data_field>
703
  <!--record.abs line 255: melm 800$a      Name-and-title-->
704
  <index_subfields tag="800" subfields="a">
705
    <target_index>Name-and-title:w</target_index>
706
  </index_subfields>
707
  <!--record.abs line 257: melm 800$t      Author-title,Name-and-title,Title,Title-series-->
708
  <index_subfields tag="800" subfields="t">
709
    <target_index>Author-title:w</target_index>
710
    <target_index>Name-and-title:w</target_index>
711
    <target_index>Title:w</target_index>
712
    <target_index>Title-series:w</target_index>
713
  </index_subfields>
714
  <!--record.abs line 258: melm 800$9      Koha-Auth-Number-->
715
  <index_subfields tag="800" subfields="9">
716
    <target_index>Koha-Auth-Number:w</target_index>
717
  </index_subfields>
718
  <!--record.abs line 259: melm 800        Author,Author-name-personal,Name,Personal-name-->
719
  <index_data_field tag="800">
720
    <target_index>Author:w</target_index>
721
    <target_index>Author-name-personal:w</target_index>
722
    <target_index>Name:w</target_index>
723
    <target_index>Personal-name:w</target_index>
724
  </index_data_field>
725
  <!--record.abs line 260: melm 810$a      Name-and-title-->
726
  <index_subfields tag="810" subfields="a">
727
    <target_index>Name-and-title:w</target_index>
728
  </index_subfields>
729
  <!--record.abs line 261: melm 810$t      Author-title,Name-and-title,Title,Title-series-->
730
  <index_subfields tag="810" subfields="t">
731
    <target_index>Author-title:w</target_index>
732
    <target_index>Name-and-title:w</target_index>
733
    <target_index>Title:w</target_index>
734
    <target_index>Title-series:w</target_index>
735
  </index_subfields>
736
  <!--record.abs line 262: melm 810$9      Koha-Auth-Number-->
737
  <index_subfields tag="810" subfields="9">
738
    <target_index>Koha-Auth-Number:w</target_index>
739
  </index_subfields>
740
  <!--record.abs line 263: melm 810        Author,Corporate-name,Author-name-corporate,Name-->
741
  <index_data_field tag="810">
742
    <target_index>Author:w</target_index>
743
    <target_index>Corporate-name:w</target_index>
744
    <target_index>Author-name-corporate:w</target_index>
745
    <target_index>Name:w</target_index>
746
  </index_data_field>
747
  <!--record.abs line 264: melm 811$a      Name-and-title-->
748
  <index_subfields tag="811" subfields="a">
749
    <target_index>Name-and-title:w</target_index>
750
  </index_subfields>
751
  <!--record.abs line 265: melm 811$9      Koha-Auth-Number-->
752
  <index_subfields tag="811" subfields="9">
753
    <target_index>Koha-Auth-Number:w</target_index>
754
  </index_subfields>
755
  <!--record.abs line 267: melm 811$t      Author-title,Name-and-title,Title,Title-series-->
756
  <index_subfields tag="811" subfields="t">
757
    <target_index>Author-title:w</target_index>
758
    <target_index>Name-and-title:w</target_index>
759
    <target_index>Title:w</target_index>
760
    <target_index>Title-series:w</target_index>
761
  </index_subfields>
762
  <!--record.abs line 268: melm 811        Author,Author-name-corporate,Name,Conference-name-->
763
  <index_data_field tag="811">
764
    <target_index>Author:w</target_index>
765
    <target_index>Author-name-corporate:w</target_index>
766
    <target_index>Name:w</target_index>
767
    <target_index>Conference-name:w</target_index>
768
  </index_data_field>
769
  <!--record.abs line 269: melm 830$9      Koha-Auth-Number-->
770
  <index_subfields tag="830" subfields="9">
771
    <target_index>Koha-Auth-Number:w</target_index>
772
  </index_subfields>
773
  <!--record.abs line 270: melm 830        Title,Title-series-->
774
  <index_data_field tag="830">
775
    <target_index>Title:w</target_index>
776
    <target_index>Title-series:w</target_index>
777
  </index_data_field>
778
  <!--record.abs line 275: melm 999$c      Local-Number:n,Local-Number:w,Local-Number:s-->
779
  <index_subfields tag="999" subfields="c">
780
    <target_index>Local-Number:n</target_index>
781
    <target_index>Local-Number:w</target_index>
782
    <target_index>Local-Number:s</target_index>
783
  </index_subfields>
784
  <!--record.abs line 276: melm 999$d      biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s-->
785
  <index_subfields tag="999" subfields="d">
786
    <target_index>biblioitemnumber:n</target_index>
787
    <target_index>biblioitemnumber:w</target_index>
788
    <target_index>biblioitemnumber:s</target_index>
789
  </index_subfields>
790
  <!--record.abs line 277: melm 942$0      totalissues:n,totalissues:s-->
791
  <index_subfields tag="942" subfields="0">
792
    <target_index>totalissues:n</target_index>
793
    <target_index>totalissues:s</target_index>
794
  </index_subfields>
795
  <!--record.abs line 278: melm 942$2      cn-bib-source-->
796
  <index_subfields tag="942" subfields="2">
797
    <target_index>cn-bib-source:w</target_index>
798
  </index_subfields>
799
  <!--record.abs line 279: melm 942$6      cn-bib-sort:n,cn-bib-sort:s-->
800
  <index_subfields tag="942" subfields="6">
801
    <target_index>cn-bib-sort:n</target_index>
802
    <target_index>cn-bib-sort:s</target_index>
803
  </index_subfields>
804
  <!--record.abs line 280: melm 942$c      itemtype:w-->
805
  <index_subfields tag="942" subfields="c">
806
    <target_index>itemtype:w</target_index>
807
  </index_subfields>
808
  <!--record.abs line 281: melm 942$n      Suppress:w,Suppress:n-->
809
  <index_subfields tag="942" subfields="n">
810
    <target_index>Suppress:w</target_index>
811
    <target_index>Suppress:n</target_index>
812
  </index_subfields>
813
  <!--record.abs line 284: melm 942$h      cn-class-->
814
  <index_subfields tag="942" subfields="h">
815
    <target_index>cn-class:w</target_index>
816
  </index_subfields>
817
  <!--record.abs line 285: melm 942$i      cn-item-->
818
  <index_subfields tag="942" subfields="i">
819
    <target_index>cn-item:w</target_index>
820
  </index_subfields>
821
  <!--record.abs line 286: melm 942$k      cn-prefix-->
822
  <index_subfields tag="942" subfields="k">
823
    <target_index>cn-prefix:w</target_index>
824
  </index_subfields>
825
  <!--record.abs line 287: melm 942$m      cn-suffix-->
826
  <index_subfields tag="942" subfields="m">
827
    <target_index>cn-suffix:w</target_index>
828
  </index_subfields>
829
  <!--record.abs line 290: melm 952$0      withdrawn:n,withdrawn:w-->
830
  <index_subfields tag="952" subfields="0">
831
    <target_index>withdrawn:n</target_index>
832
    <target_index>withdrawn:w</target_index>
833
  </index_subfields>
834
  <!--record.abs line 291: melm 952$1      lost,lost:n-->
835
  <index_subfields tag="952" subfields="1">
836
    <target_index>lost:w</target_index>
837
    <target_index>lost:n</target_index>
838
  </index_subfields>
839
  <!--record.abs line 292: melm 952$2      classification-source-->
840
  <index_subfields tag="952" subfields="2">
841
    <target_index>classification-source:w</target_index>
842
  </index_subfields>
843
  <!--record.abs line 293: melm 952$3      materials-specified-->
844
  <index_subfields tag="952" subfields="3">
845
    <target_index>materials-specified:w</target_index>
846
  </index_subfields>
847
  <!--record.abs line 294: melm 952$4      damaged:n,damaged:w-->
848
  <index_subfields tag="952" subfields="4">
849
    <target_index>damaged:n</target_index>
850
    <target_index>damaged:w</target_index>
851
  </index_subfields>
852
  <!--record.abs line 295: melm 952$5      restricted:n,restricted:w-->
853
  <index_subfields tag="952" subfields="5">
854
    <target_index>restricted:n</target_index>
855
    <target_index>restricted:w</target_index>
856
  </index_subfields>
857
  <!--record.abs line 296: melm 952$6      cn-sort:n,cn-sort:s-->
858
  <index_subfields tag="952" subfields="6">
859
    <target_index>cn-sort:n</target_index>
860
    <target_index>cn-sort:s</target_index>
861
  </index_subfields>
862
  <!--record.abs line 297: melm 952$7      notforloan:n,notforloan:w-->
863
  <index_subfields tag="952" subfields="7">
864
    <target_index>notforloan:n</target_index>
865
    <target_index>notforloan:w</target_index>
866
  </index_subfields>
867
  <!--record.abs line 298: melm 952$8      ccode-->
868
  <index_subfields tag="952" subfields="8">
869
    <target_index>ccode:w</target_index>
870
  </index_subfields>
871
  <!--record.abs line 299: melm 952$9      itemnumber:n,itemnumber:s-->
872
  <index_subfields tag="952" subfields="9">
873
    <target_index>itemnumber:n</target_index>
874
    <target_index>itemnumber:s</target_index>
875
  </index_subfields>
876
  <!--record.abs line 300: melm 952$a      homebranch-->
877
  <index_subfields tag="952" subfields="a">
878
    <target_index>homebranch:w</target_index>
879
  </index_subfields>
880
  <!--record.abs line 301: melm 952$b      holdingbranch-->
881
  <index_subfields tag="952" subfields="b">
882
    <target_index>holdingbranch:w</target_index>
883
  </index_subfields>
884
  <!--record.abs line 302: melm 952$c      location-->
885
  <index_subfields tag="952" subfields="c">
886
    <target_index>location:w</target_index>
887
  </index_subfields>
888
  <!--record.abs line 305: melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s-->
889
  <index_subfields tag="952" subfields="d">
890
    <target_index>Date-of-acquisition:w</target_index>
891
    <target_index>Date-of-acquisition:d</target_index>
892
    <target_index>Date-of-acquisition:s</target_index>
893
  </index_subfields>
894
  <!--record.abs line 306: melm 952$e      acqsource-->
895
  <index_subfields tag="952" subfields="e">
896
    <target_index>acqsource:w</target_index>
897
  </index_subfields>
898
  <!--record.abs line 307: melm 952$f      coded-location-qualifier-->
899
  <index_subfields tag="952" subfields="f">
900
    <target_index>coded-location-qualifier:w</target_index>
901
  </index_subfields>
902
  <!--record.abs line 308: melm 952$g      price-->
903
  <index_subfields tag="952" subfields="g">
904
    <target_index>price:w</target_index>
905
  </index_subfields>
906
  <!--record.abs line 311: melm 952$j      stack:n,stack:w-->
907
  <index_subfields tag="952" subfields="j">
908
    <target_index>stack:n</target_index>
909
    <target_index>stack:w</target_index>
910
  </index_subfields>
911
  <!--record.abs line 313: melm 952$l      issues:n,issues:w,issues:s-->
912
  <index_subfields tag="952" subfields="l">
913
    <target_index>issues:n</target_index>
914
    <target_index>issues:w</target_index>
915
    <target_index>issues:s</target_index>
916
  </index_subfields>
917
  <!--record.abs line 314: melm 952$m      renewals:n,renewals:w-->
918
  <index_subfields tag="952" subfields="m">
919
    <target_index>renewals:n</target_index>
920
    <target_index>renewals:w</target_index>
921
  </index_subfields>
922
  <!--record.abs line 315: melm 952$n      reserves:n,reserves:w-->
923
  <index_subfields tag="952" subfields="n">
924
    <target_index>reserves:n</target_index>
925
    <target_index>reserves:w</target_index>
926
  </index_subfields>
927
  <!--record.abs line 316: melm 952$o      Local-classification:w,Local-classification:p,Local-classification:s-->
928
  <index_subfields tag="952" subfields="o">
929
    <target_index>Local-classification:w</target_index>
930
    <target_index>Local-classification:p</target_index>
931
    <target_index>Local-classification:s</target_index>
932
  </index_subfields>
933
  <!--record.abs line 317: melm 952$p      barcode,barcode:n-->
934
  <index_subfields tag="952" subfields="p">
935
    <target_index>barcode:w</target_index>
936
    <target_index>barcode:n</target_index>
937
  </index_subfields>
938
  <!--record.abs line 318: melm 952$q      onloan:n,onloan:w-->
939
  <index_subfields tag="952" subfields="q">
940
    <target_index>onloan:n</target_index>
941
    <target_index>onloan:w</target_index>
942
  </index_subfields>
943
  <!--record.abs line 319: melm 952$r      datelastseen-->
944
  <index_subfields tag="952" subfields="r">
945
    <target_index>datelastseen:w</target_index>
946
  </index_subfields>
947
  <!--record.abs line 320: melm 952$s      datelastborrowed-->
948
  <index_subfields tag="952" subfields="s">
949
    <target_index>datelastborrowed:w</target_index>
950
  </index_subfields>
951
  <!--record.abs line 321: melm 952$t      copynumber-->
952
  <index_subfields tag="952" subfields="t">
953
    <target_index>copynumber:w</target_index>
954
  </index_subfields>
955
  <!--record.abs line 322: melm 952$u      uri:u-->
956
  <index_subfields tag="952" subfields="u">
957
    <target_index>uri:u</target_index>
958
  </index_subfields>
959
  <!--record.abs line 323: melm 952$v      replacementprice-->
960
  <index_subfields tag="952" subfields="v">
961
    <target_index>replacementprice:w</target_index>
962
  </index_subfields>
963
  <!--record.abs line 324: melm 952$w      replacementpricedate-->
964
  <index_subfields tag="952" subfields="w">
965
    <target_index>replacementpricedate:w</target_index>
966
  </index_subfields>
967
  <!--record.abs line 326: melm 952$y      itype:w-->
968
  <index_subfields tag="952" subfields="y">
969
    <target_index>itype:w</target_index>
970
  </index_subfields>
971
972
  <index_subfields tag="999" subfields="x">
973
    <target_index>not-onloan-count:n</target_index>
974
  </index_subfields>
975
976
  <facet tag="100" subfields="a">
977
    <target_index>au:0</target_index>
978
  </facet>
979
  <facet tag="110" subfields="a">
980
    <target_index>au:0</target_index>
981
  </facet>
982
  <facet tag="440" subfields="a">
983
    <target_index>se:0</target_index>
984
  </facet>
985
  <facet tag="490" subfields="a">
986
    <target_index>>se:0</target_index>
987
  </facet>
988
  <facet tag="630" subfields="a">
989
    <target_index>su-ut:0</target_index>
990
  </facet>
991
  <facet tag="650" subfields="a">
992
    <target_index>su-to:0</target_index>
993
  </facet>
994
  <facet tag="651" subfields="a">
995
    <target_index>su-geo:0</target_index>
996
  </facet>
997
  <facet tag="700" subfields="a">
998
    <target_index>au:0</target_index>
999
  </facet>
1000
  <facet tag="942" subfields="c">
1001
    <target_index>itype:0</target_index>
1002
  </facet>
1003
  <facet tag="952" subfields="a">
1004
    <target_index>homebranch:0</target_index>
1005
  </facet>
1006
  <facet tag="952" subfields="b">
1007
    <target_index>holdingbranch:0</target_index>
1008
  </facet>
1009
  <facet tag="952" subfields="c">
1010
    <target_index>location:0</target_index>
1011
  </facet>
1012
  <facet tag="952" subfields="y">
1013
    <target_index>itype:0</target_index>
1014
  </facet>
1015
  <facet tag="952" subfields="8">
1016
    <target_index>ccode:0</target_index>
1017
  </facet>
1018
1019
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (-1909 lines)
Lines 1-1909 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
This file has been automatically generated from a Koha index definition file
4
with the stylesheet koha-indexdefs-to-zebra.xsl. Do not manually edit this file,
5
as it may be overwritten. To regenerate, edit the appropriate Koha index
6
definition file (probably something like {biblio,authority}-koha-indexdefs.xml) and run:
7
`xsltproc koha-indexdefs-to-zebra.xsl {biblio,authority}-koha-indexdefs.xml >
8
{biblio,authority}-zebra-indexdefs.xsl` (substituting the appropriate file names).
9
-->
10
<xslo:stylesheet xmlns:xslo="http://www.w3.org/1999/XSL/Transform" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:z="http://indexdata.com/zebra-2.0" xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs" version="1.0">
11
  <xslo:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
12
  <xslo:template match="text()"/>
13
  <xslo:template match="text()" mode="index_subfields"/>
14
  <xslo:template match="text()" mode="index_data_field"/>
15
  <xslo:template match="text()" mode="index_facets"/>
16
  <xslo:template match="text()" mode="index_heading"/>
17
  <xslo:template match="text()" mode="index_heading_conditional"/>
18
  <xslo:template match="text()" mode="index_match_heading"/>
19
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
20
  <xslo:template match="text()" mode="index_sort_tit"/>
21
  <xslo:template match="/">
22
    <xslo:if test="marc:collection">
23
      <collection>
24
        <xslo:apply-templates select="marc:collection/marc:record"/>
25
      </collection>
26
    </xslo:if>
27
    <xslo:if test="marc:record">
28
      <xslo:apply-templates select="marc:record"/>
29
    </xslo:if>
30
  </xslo:template>
31
  <xslo:template match="marc:record">
32
    <xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/>
33
    <z:record type="update">
34
      <xslo:attribute name="z:id">
35
        <xslo:value-of select="$idfield"/>
36
      </xslo:attribute>
37
      <xslo:apply-templates/>
38
      <xslo:apply-templates mode="index_subfields"/>
39
      <xslo:apply-templates mode="index_data_field"/>
40
      <xslo:apply-templates mode="index_facets"/>
41
      <xslo:apply-templates mode="index_heading"/>
42
      <xslo:apply-templates mode="index_heading_conditional"/>
43
      <xslo:apply-templates mode="index_match_heading"/>
44
      <xslo:apply-templates mode="index_subject_thesaurus"/>
45
      <xslo:apply-templates mode="index_all"/>
46
      <xslo:apply-templates mode="index_sort_tit"/>
47
    </z:record>
48
  </xslo:template>
49
  <xslo:template match="marc:leader">
50
    <z:index name="llength:w">
51
      <xslo:value-of select="substring(., 1, 5)"/>
52
    </z:index>
53
    <z:index name="rtype:w">
54
      <xslo:value-of select="substring(., 7, 1)"/>
55
    </z:index>
56
    <z:index name="Bib-level:w">
57
      <xslo:value-of select="substring(., 8, 1)"/>
58
    </z:index>
59
  </xslo:template>
60
  <xslo:template match="marc:controlfield[@tag='001']">
61
    <z:index name="Control-number:w">
62
      <xslo:value-of select="."/>
63
    </z:index>
64
  </xslo:template>
65
  <xslo:template match="marc:controlfield[@tag='007']">
66
    <z:index name="Microform-generation:n">
67
      <xslo:value-of select="substring(., 12, 1)"/>
68
    </z:index>
69
    <z:index name="Material-type:w">
70
      <xslo:value-of select="."/>
71
    </z:index>
72
    <z:index name="ff7-00:w">
73
      <xslo:value-of select="substring(., 1, 1)"/>
74
    </z:index>
75
    <z:index name="ff7-01:w">
76
      <xslo:value-of select="substring(., 2, 1)"/>
77
    </z:index>
78
    <z:index name="ff7-02:w">
79
      <xslo:value-of select="substring(., 3, 1)"/>
80
    </z:index>
81
    <z:index name="ff7-01-02:w">
82
      <xslo:value-of select="substring(., 1, 2)"/>
83
    </z:index>
84
  </xslo:template>
85
  <xslo:template match="marc:controlfield[@tag='008']">
86
    <z:index name="date-entered-on-file:n">
87
      <xslo:value-of select="substring(., 1, 5)"/>
88
    </z:index>
89
    <z:index name="date-entered-on-file:s">
90
      <xslo:value-of select="substring(., 1, 5)"/>
91
    </z:index>
92
    <z:index name="pubdate:w">
93
      <xslo:value-of select="substring(., 8, 4)"/>
94
    </z:index>
95
    <z:index name="pubdate:n">
96
      <xslo:value-of select="substring(., 8, 4)"/>
97
    </z:index>
98
    <z:index name="pubdate:y">
99
      <xslo:value-of select="substring(., 8, 4)"/>
100
    </z:index>
101
    <z:index name="pubdate:s">
102
      <xslo:value-of select="substring(., 8, 4)"/>
103
    </z:index>
104
    <z:index name="pl:w">
105
      <xslo:value-of select="substring(., 16, 3)"/>
106
    </z:index>
107
    <z:index name="ta:w">
108
      <xslo:value-of select="substring(., 23, 1)"/>
109
    </z:index>
110
    <z:index name="ff8-23:w">
111
      <xslo:value-of select="substring(., 24, 1)"/>
112
    </z:index>
113
    <z:index name="ff8-29:w">
114
      <xslo:value-of select="substring(., 30, 1)"/>
115
    </z:index>
116
    <z:index name="lf:w">
117
      <xslo:value-of select="substring(., 34, 1)"/>
118
    </z:index>
119
    <z:index name="bio:w">
120
      <xslo:value-of select="substring(., 35, 1)"/>
121
    </z:index>
122
    <z:index name="ln:w">
123
      <xslo:value-of select="substring(., 36, 3)"/>
124
    </z:index>
125
    <z:index name="ctype:w">
126
      <xslo:value-of select="substring(., 25, 4)"/>
127
    </z:index>
128
    <z:index name="Record-source:w">
129
      <xslo:value-of select="substring(., 40, 0)"/>
130
    </z:index>
131
  </xslo:template>
132
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
133
    <xslo:for-each select="marc:subfield">
134
      <xslo:if test="contains('a', @code)">
135
        <z:index name="ISBN:w Identifier-standard:w">
136
          <xslo:value-of select="."/>
137
        </z:index>
138
      </xslo:if>
139
    </xslo:for-each>
140
  </xslo:template>
141
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
142
    <xslo:for-each select="marc:subfield">
143
      <xslo:if test="contains('a', @code)">
144
        <z:index name="ISSN:w ISBN:w">
145
          <xslo:value-of select="."/>
146
        </z:index>
147
      </xslo:if>
148
    </xslo:for-each>
149
  </xslo:template>
150
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
151
    <xslo:for-each select="marc:subfield">
152
      <xslo:if test="contains('9', @code)">
153
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
154
          <xslo:value-of select="."/>
155
        </z:index>
156
      </xslo:if>
157
    </xslo:for-each>
158
    <xslo:for-each select="marc:subfield">
159
      <xslo:if test="contains('a', @code)">
160
        <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s">
161
          <xslo:value-of select="."/>
162
        </z:index>
163
      </xslo:if>
164
    </xslo:for-each>
165
  </xslo:template>
166
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
167
    <xslo:for-each select="marc:subfield">
168
      <xslo:if test="contains('9', @code)">
169
        <z:index name="Koha-Auth-Number:w">
170
          <xslo:value-of select="."/>
171
        </z:index>
172
      </xslo:if>
173
    </xslo:for-each>
174
  </xslo:template>
175
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
176
    <xslo:for-each select="marc:subfield">
177
      <xslo:if test="contains('9', @code)">
178
        <z:index name="Koha-Auth-Number:w">
179
          <xslo:value-of select="."/>
180
        </z:index>
181
      </xslo:if>
182
    </xslo:for-each>
183
  </xslo:template>
184
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
185
    <xslo:for-each select="marc:subfield">
186
      <xslo:if test="contains('i', @code)">
187
        <z:index name="Thematic-number:w">
188
          <xslo:value-of select="."/>
189
        </z:index>
190
      </xslo:if>
191
    </xslo:for-each>
192
    <xslo:for-each select="marc:subfield">
193
      <xslo:if test="contains('n', @code)">
194
        <z:index name="Thematic-number:w">
195
          <xslo:value-of select="."/>
196
        </z:index>
197
      </xslo:if>
198
    </xslo:for-each>
199
    <xslo:for-each select="marc:subfield">
200
      <xslo:if test="contains('r', @code)">
201
        <z:index name="Music-key:w">
202
          <xslo:value-of select="."/>
203
        </z:index>
204
      </xslo:if>
205
    </xslo:for-each>
206
    <xslo:for-each select="marc:subfield">
207
      <xslo:if test="contains('9', @code)">
208
        <z:index name="Koha-Auth-Number:w">
209
          <xslo:value-of select="."/>
210
        </z:index>
211
      </xslo:if>
212
    </xslo:for-each>
213
  </xslo:template>
214
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
215
    <xslo:for-each select="marc:subfield">
216
      <xslo:if test="contains('i', @code)">
217
        <z:index name="Thematic-number:w">
218
          <xslo:value-of select="."/>
219
        </z:index>
220
      </xslo:if>
221
    </xslo:for-each>
222
    <xslo:for-each select="marc:subfield">
223
      <xslo:if test="contains('r', @code)">
224
        <z:index name="Music-key:w">
225
          <xslo:value-of select="."/>
226
        </z:index>
227
      </xslo:if>
228
    </xslo:for-each>
229
    <xslo:for-each select="marc:subfield">
230
      <xslo:if test="contains('n', @code)">
231
        <z:index name="Thematic-number:w">
232
          <xslo:value-of select="."/>
233
        </z:index>
234
      </xslo:if>
235
    </xslo:for-each>
236
  </xslo:template>
237
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
238
    <xslo:for-each select="marc:subfield">
239
      <xslo:if test="contains('a', @code)">
240
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
241
          <xslo:value-of select="."/>
242
        </z:index>
243
      </xslo:if>
244
    </xslo:for-each>
245
    <xslo:for-each select="marc:subfield">
246
      <xslo:if test="contains('c', @code)">
247
        <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s">
248
          <xslo:value-of select="."/>
249
        </z:index>
250
      </xslo:if>
251
    </xslo:for-each>
252
    <xslo:for-each select="marc:subfield">
253
      <xslo:if test="contains('9', @code)">
254
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
255
          <xslo:value-of select="."/>
256
        </z:index>
257
      </xslo:if>
258
    </xslo:for-each>
259
  </xslo:template>
260
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
261
    <xslo:for-each select="marc:subfield">
262
      <xslo:if test="contains('a', @code)">
263
        <z:index name="pl:w pl:p">
264
          <xslo:value-of select="."/>
265
        </z:index>
266
      </xslo:if>
267
    </xslo:for-each>
268
    <xslo:for-each select="marc:subfield">
269
      <xslo:if test="contains('b', @code)">
270
        <z:index name="Publisher:w Publisher:p">
271
          <xslo:value-of select="."/>
272
        </z:index>
273
      </xslo:if>
274
    </xslo:for-each>
275
    <xslo:for-each select="marc:subfield">
276
      <xslo:if test="contains('c', @code)">
277
        <z:index name="copydate:w copydate:s">
278
          <xslo:value-of select="."/>
279
        </z:index>
280
      </xslo:if>
281
    </xslo:for-each>
282
  </xslo:template>
283
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
284
    <xslo:for-each select="marc:subfield">
285
      <xslo:if test="contains('a', @code)">
286
        <z:index name="Title-series:w Title-series:p">
287
          <xslo:value-of select="."/>
288
        </z:index>
289
      </xslo:if>
290
    </xslo:for-each>
291
    <xslo:for-each select="marc:subfield">
292
      <xslo:if test="contains('9', @code)">
293
        <z:index name="Koha-Auth-Number:w">
294
          <xslo:value-of select="."/>
295
        </z:index>
296
      </xslo:if>
297
    </xslo:for-each>
298
  </xslo:template>
299
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
300
    <xslo:for-each select="marc:subfield">
301
      <xslo:if test="contains('a', @code)">
302
        <z:index name="Title-series:w Title-series:p">
303
          <xslo:value-of select="."/>
304
        </z:index>
305
      </xslo:if>
306
    </xslo:for-each>
307
    <xslo:for-each select="marc:subfield">
308
      <xslo:if test="contains('9', @code)">
309
        <z:index name="Koha-Auth-Number:w">
310
          <xslo:value-of select="."/>
311
        </z:index>
312
      </xslo:if>
313
    </xslo:for-each>
314
  </xslo:template>
315
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
316
    <xslo:for-each select="marc:subfield">
317
      <xslo:if test="contains('a', @code)">
318
        <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
319
          <xslo:value-of select="."/>
320
        </z:index>
321
      </xslo:if>
322
    </xslo:for-each>
323
    <xslo:for-each select="marc:subfield">
324
      <xslo:if test="contains('t', @code)">
325
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
326
          <xslo:value-of select="."/>
327
        </z:index>
328
      </xslo:if>
329
    </xslo:for-each>
330
    <xslo:for-each select="marc:subfield">
331
      <xslo:if test="contains('9', @code)">
332
        <z:index name="Koha-Auth-Number:w">
333
          <xslo:value-of select="."/>
334
        </z:index>
335
      </xslo:if>
336
    </xslo:for-each>
337
  </xslo:template>
338
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
339
    <xslo:for-each select="marc:subfield">
340
      <xslo:if test="contains('a', @code)">
341
        <z:index name="Name-and-title:w Subject:w Subject:p">
342
          <xslo:value-of select="."/>
343
        </z:index>
344
      </xslo:if>
345
    </xslo:for-each>
346
    <xslo:for-each select="marc:subfield">
347
      <xslo:if test="contains('t', @code)">
348
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
349
          <xslo:value-of select="."/>
350
        </z:index>
351
      </xslo:if>
352
    </xslo:for-each>
353
    <xslo:for-each select="marc:subfield">
354
      <xslo:if test="contains('9', @code)">
355
        <z:index name="Koha-Auth-Number:w">
356
          <xslo:value-of select="."/>
357
        </z:index>
358
      </xslo:if>
359
    </xslo:for-each>
360
  </xslo:template>
361
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
362
    <xslo:for-each select="marc:subfield">
363
      <xslo:if test="contains('a', @code)">
364
        <z:index name="Name-and-title:w Subject:w Subject:p">
365
          <xslo:value-of select="."/>
366
        </z:index>
367
      </xslo:if>
368
    </xslo:for-each>
369
    <xslo:for-each select="marc:subfield">
370
      <xslo:if test="contains('t', @code)">
371
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
372
          <xslo:value-of select="."/>
373
        </z:index>
374
      </xslo:if>
375
    </xslo:for-each>
376
    <xslo:for-each select="marc:subfield">
377
      <xslo:if test="contains('9', @code)">
378
        <z:index name="Koha-Auth-Number:w">
379
          <xslo:value-of select="."/>
380
        </z:index>
381
      </xslo:if>
382
    </xslo:for-each>
383
  </xslo:template>
384
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
385
    <xslo:for-each select="marc:subfield">
386
      <xslo:if test="contains('i', @code)">
387
        <z:index name="Thematic-number:w Subject:w Subject:p">
388
          <xslo:value-of select="."/>
389
        </z:index>
390
      </xslo:if>
391
    </xslo:for-each>
392
    <xslo:for-each select="marc:subfield">
393
      <xslo:if test="contains('n', @code)">
394
        <z:index name="Thematic-number:w Subject:w Subject:p">
395
          <xslo:value-of select="."/>
396
        </z:index>
397
      </xslo:if>
398
    </xslo:for-each>
399
    <xslo:for-each select="marc:subfield">
400
      <xslo:if test="contains('r', @code)">
401
        <z:index name="Music-key:w Subject:w Subject:p">
402
          <xslo:value-of select="."/>
403
        </z:index>
404
      </xslo:if>
405
    </xslo:for-each>
406
    <xslo:for-each select="marc:subfield">
407
      <xslo:if test="contains('9', @code)">
408
        <z:index name="Koha-Auth-Number:w">
409
          <xslo:value-of select="."/>
410
        </z:index>
411
      </xslo:if>
412
    </xslo:for-each>
413
  </xslo:template>
414
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
415
    <xslo:for-each select="marc:subfield">
416
      <xslo:if test="contains('9', @code)">
417
        <z:index name="Koha-Auth-Number:w">
418
          <xslo:value-of select="."/>
419
        </z:index>
420
      </xslo:if>
421
    </xslo:for-each>
422
  </xslo:template>
423
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
424
    <xslo:for-each select="marc:subfield">
425
      <xslo:if test="contains('9', @code)">
426
        <z:index name="Koha-Auth-Number:w">
427
          <xslo:value-of select="."/>
428
        </z:index>
429
      </xslo:if>
430
    </xslo:for-each>
431
  </xslo:template>
432
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
433
    <xslo:for-each select="marc:subfield">
434
      <xslo:if test="contains('9', @code)">
435
        <z:index name="Koha-Auth-Number:w">
436
          <xslo:value-of select="."/>
437
        </z:index>
438
      </xslo:if>
439
    </xslo:for-each>
440
  </xslo:template>
441
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
442
    <xslo:for-each select="marc:subfield">
443
      <xslo:if test="contains('9', @code)">
444
        <z:index name="Koha-Auth-Number:w">
445
          <xslo:value-of select="."/>
446
        </z:index>
447
      </xslo:if>
448
    </xslo:for-each>
449
  </xslo:template>
450
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
451
    <xslo:for-each select="marc:subfield">
452
      <xslo:if test="contains('9', @code)">
453
        <z:index name="Koha-Auth-Number:w">
454
          <xslo:value-of select="."/>
455
        </z:index>
456
      </xslo:if>
457
    </xslo:for-each>
458
  </xslo:template>
459
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
460
    <xslo:for-each select="marc:subfield">
461
      <xslo:if test="contains('9', @code)">
462
        <z:index name="Koha-Auth-Number:w">
463
          <xslo:value-of select="."/>
464
        </z:index>
465
      </xslo:if>
466
    </xslo:for-each>
467
  </xslo:template>
468
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
469
    <xslo:for-each select="marc:subfield">
470
      <xslo:if test="contains('9', @code)">
471
        <z:index name="Koha-Auth-Number:w">
472
          <xslo:value-of select="."/>
473
        </z:index>
474
      </xslo:if>
475
    </xslo:for-each>
476
  </xslo:template>
477
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
478
    <xslo:for-each select="marc:subfield">
479
      <xslo:if test="contains('9', @code)">
480
        <z:index name="Koha-Auth-Number:w">
481
          <xslo:value-of select="."/>
482
        </z:index>
483
      </xslo:if>
484
    </xslo:for-each>
485
  </xslo:template>
486
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
487
    <xslo:for-each select="marc:subfield">
488
      <xslo:if test="contains('9', @code)">
489
        <z:index name="Koha-Auth-Number:w">
490
          <xslo:value-of select="."/>
491
        </z:index>
492
      </xslo:if>
493
    </xslo:for-each>
494
  </xslo:template>
495
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
496
    <xslo:for-each select="marc:subfield">
497
      <xslo:if test="contains('9', @code)">
498
        <z:index name="Koha-Auth-Number:w">
499
          <xslo:value-of select="."/>
500
        </z:index>
501
      </xslo:if>
502
    </xslo:for-each>
503
  </xslo:template>
504
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
505
    <xslo:for-each select="marc:subfield">
506
      <xslo:if test="contains('9', @code)">
507
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
508
          <xslo:value-of select="."/>
509
        </z:index>
510
      </xslo:if>
511
    </xslo:for-each>
512
    <xslo:for-each select="marc:subfield">
513
      <xslo:if test="contains('a', @code)">
514
        <z:index name="Author:w Author:p">
515
          <xslo:value-of select="."/>
516
        </z:index>
517
      </xslo:if>
518
    </xslo:for-each>
519
    <xslo:for-each select="marc:subfield">
520
      <xslo:if test="contains('i', @code)">
521
        <z:index name="Thematic-number:w">
522
          <xslo:value-of select="."/>
523
        </z:index>
524
      </xslo:if>
525
    </xslo:for-each>
526
    <xslo:for-each select="marc:subfield">
527
      <xslo:if test="contains('n', @code)">
528
        <z:index name="Thematic-number:w">
529
          <xslo:value-of select="."/>
530
        </z:index>
531
      </xslo:if>
532
    </xslo:for-each>
533
    <xslo:for-each select="marc:subfield">
534
      <xslo:if test="contains('r', @code)">
535
        <z:index name="Music-key:w">
536
          <xslo:value-of select="."/>
537
        </z:index>
538
      </xslo:if>
539
    </xslo:for-each>
540
    <xslo:for-each select="marc:subfield">
541
      <xslo:if test="contains('t', @code)">
542
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
543
          <xslo:value-of select="."/>
544
        </z:index>
545
      </xslo:if>
546
    </xslo:for-each>
547
  </xslo:template>
548
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
549
    <xslo:for-each select="marc:subfield">
550
      <xslo:if test="contains('t', @code)">
551
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
552
          <xslo:value-of select="."/>
553
        </z:index>
554
      </xslo:if>
555
    </xslo:for-each>
556
    <xslo:for-each select="marc:subfield">
557
      <xslo:if test="contains('a', @code)">
558
        <z:index name="Name-and-title:w">
559
          <xslo:value-of select="."/>
560
        </z:index>
561
      </xslo:if>
562
    </xslo:for-each>
563
    <xslo:for-each select="marc:subfield">
564
      <xslo:if test="contains('i', @code)">
565
        <z:index name="Thematic-number:w">
566
          <xslo:value-of select="."/>
567
        </z:index>
568
      </xslo:if>
569
    </xslo:for-each>
570
    <xslo:for-each select="marc:subfield">
571
      <xslo:if test="contains('9', @code)">
572
        <z:index name="Koha-Auth-Number:w">
573
          <xslo:value-of select="."/>
574
        </z:index>
575
      </xslo:if>
576
    </xslo:for-each>
577
  </xslo:template>
578
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
579
    <xslo:for-each select="marc:subfield">
580
      <xslo:if test="contains('a', @code)">
581
        <z:index name="Name-and-title:w">
582
          <xslo:value-of select="."/>
583
        </z:index>
584
      </xslo:if>
585
    </xslo:for-each>
586
    <xslo:for-each select="marc:subfield">
587
      <xslo:if test="contains('t', @code)">
588
        <z:index name="Author-title:w Title:w Title-uniform:w">
589
          <xslo:value-of select="."/>
590
        </z:index>
591
      </xslo:if>
592
    </xslo:for-each>
593
    <xslo:for-each select="marc:subfield">
594
      <xslo:if test="contains('9', @code)">
595
        <z:index name="Koha-Auth-Number:w">
596
          <xslo:value-of select="."/>
597
        </z:index>
598
      </xslo:if>
599
    </xslo:for-each>
600
  </xslo:template>
601
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
602
    <xslo:for-each select="marc:subfield">
603
      <xslo:if test="contains('i', @code)">
604
        <z:index name="Thematic-number:w">
605
          <xslo:value-of select="."/>
606
        </z:index>
607
      </xslo:if>
608
    </xslo:for-each>
609
    <xslo:for-each select="marc:subfield">
610
      <xslo:if test="contains('n', @code)">
611
        <z:index name="Thematic-number:w">
612
          <xslo:value-of select="."/>
613
        </z:index>
614
      </xslo:if>
615
    </xslo:for-each>
616
    <xslo:for-each select="marc:subfield">
617
      <xslo:if test="contains('r', @code)">
618
        <z:index name="Music-key:w">
619
          <xslo:value-of select="."/>
620
        </z:index>
621
      </xslo:if>
622
    </xslo:for-each>
623
    <xslo:for-each select="marc:subfield">
624
      <xslo:if test="contains('9', @code)">
625
        <z:index name="Koha-Auth-Number:w">
626
          <xslo:value-of select="."/>
627
        </z:index>
628
      </xslo:if>
629
    </xslo:for-each>
630
  </xslo:template>
631
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
632
    <xslo:for-each select="marc:subfield">
633
      <xslo:if test="contains('a', @code)">
634
        <z:index name="Host-item:w">
635
          <xslo:value-of select="."/>
636
        </z:index>
637
      </xslo:if>
638
    </xslo:for-each>
639
    <xslo:for-each select="marc:subfield">
640
      <xslo:if test="contains('9', @code)">
641
        <z:index name="Host-Item-Number:w">
642
          <xslo:value-of select="."/>
643
        </z:index>
644
      </xslo:if>
645
    </xslo:for-each>
646
    <xslo:for-each select="marc:subfield">
647
      <xslo:if test="contains('t', @code)">
648
        <z:index name="Host-item:w">
649
          <xslo:value-of select="."/>
650
        </z:index>
651
      </xslo:if>
652
    </xslo:for-each>
653
    <xslo:for-each select="marc:subfield">
654
      <xslo:if test="contains('w', @code)">
655
        <z:index name="Record-control-number:w">
656
          <xslo:value-of select="."/>
657
        </z:index>
658
      </xslo:if>
659
    </xslo:for-each>
660
  </xslo:template>
661
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
662
    <xslo:for-each select="marc:subfield">
663
      <xslo:if test="contains('t', @code)">
664
        <z:index name="Title:w">
665
          <xslo:value-of select="."/>
666
        </z:index>
667
      </xslo:if>
668
    </xslo:for-each>
669
  </xslo:template>
670
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
671
    <xslo:for-each select="marc:subfield">
672
      <xslo:if test="contains('a', @code)">
673
        <z:index name="Name-and-title:w">
674
          <xslo:value-of select="."/>
675
        </z:index>
676
      </xslo:if>
677
    </xslo:for-each>
678
    <xslo:for-each select="marc:subfield">
679
      <xslo:if test="contains('t', @code)">
680
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
681
          <xslo:value-of select="."/>
682
        </z:index>
683
      </xslo:if>
684
    </xslo:for-each>
685
    <xslo:for-each select="marc:subfield">
686
      <xslo:if test="contains('9', @code)">
687
        <z:index name="Koha-Auth-Number:w">
688
          <xslo:value-of select="."/>
689
        </z:index>
690
      </xslo:if>
691
    </xslo:for-each>
692
  </xslo:template>
693
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
694
    <xslo:for-each select="marc:subfield">
695
      <xslo:if test="contains('a', @code)">
696
        <z:index name="Name-and-title:w">
697
          <xslo:value-of select="."/>
698
        </z:index>
699
      </xslo:if>
700
    </xslo:for-each>
701
    <xslo:for-each select="marc:subfield">
702
      <xslo:if test="contains('t', @code)">
703
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
704
          <xslo:value-of select="."/>
705
        </z:index>
706
      </xslo:if>
707
    </xslo:for-each>
708
    <xslo:for-each select="marc:subfield">
709
      <xslo:if test="contains('9', @code)">
710
        <z:index name="Koha-Auth-Number:w">
711
          <xslo:value-of select="."/>
712
        </z:index>
713
      </xslo:if>
714
    </xslo:for-each>
715
  </xslo:template>
716
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
717
    <xslo:for-each select="marc:subfield">
718
      <xslo:if test="contains('a', @code)">
719
        <z:index name="Name-and-title:w">
720
          <xslo:value-of select="."/>
721
        </z:index>
722
      </xslo:if>
723
    </xslo:for-each>
724
    <xslo:for-each select="marc:subfield">
725
      <xslo:if test="contains('9', @code)">
726
        <z:index name="Koha-Auth-Number:w">
727
          <xslo:value-of select="."/>
728
        </z:index>
729
      </xslo:if>
730
    </xslo:for-each>
731
    <xslo:for-each select="marc:subfield">
732
      <xslo:if test="contains('t', @code)">
733
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
734
          <xslo:value-of select="."/>
735
        </z:index>
736
      </xslo:if>
737
    </xslo:for-each>
738
  </xslo:template>
739
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
740
    <xslo:for-each select="marc:subfield">
741
      <xslo:if test="contains('9', @code)">
742
        <z:index name="Koha-Auth-Number:w">
743
          <xslo:value-of select="."/>
744
        </z:index>
745
      </xslo:if>
746
    </xslo:for-each>
747
  </xslo:template>
748
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
749
    <xslo:for-each select="marc:subfield">
750
      <xslo:if test="contains('c', @code)">
751
        <z:index name="Local-Number:n Local-Number:w Local-Number:s">
752
          <xslo:value-of select="."/>
753
        </z:index>
754
      </xslo:if>
755
    </xslo:for-each>
756
    <xslo:for-each select="marc:subfield">
757
      <xslo:if test="contains('d', @code)">
758
        <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
759
          <xslo:value-of select="."/>
760
        </z:index>
761
      </xslo:if>
762
    </xslo:for-each>
763
    <xslo:for-each select="marc:subfield">
764
      <xslo:if test="contains('x', @code)">
765
        <z:index name="not-onloan-count:n">
766
          <xslo:value-of select="."/>
767
        </z:index>
768
      </xslo:if>
769
    </xslo:for-each>
770
  </xslo:template>
771
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
772
    <xslo:for-each select="marc:subfield">
773
      <xslo:if test="contains('0', @code)">
774
        <z:index name="totalissues:n totalissues:s">
775
          <xslo:value-of select="."/>
776
        </z:index>
777
      </xslo:if>
778
    </xslo:for-each>
779
    <xslo:for-each select="marc:subfield">
780
      <xslo:if test="contains('2', @code)">
781
        <z:index name="cn-bib-source:w">
782
          <xslo:value-of select="."/>
783
        </z:index>
784
      </xslo:if>
785
    </xslo:for-each>
786
    <xslo:for-each select="marc:subfield">
787
      <xslo:if test="contains('6', @code)">
788
        <z:index name="cn-bib-sort:n cn-bib-sort:s">
789
          <xslo:value-of select="."/>
790
        </z:index>
791
      </xslo:if>
792
    </xslo:for-each>
793
    <xslo:for-each select="marc:subfield">
794
      <xslo:if test="contains('c', @code)">
795
        <z:index name="itemtype:w">
796
          <xslo:value-of select="."/>
797
        </z:index>
798
      </xslo:if>
799
    </xslo:for-each>
800
    <xslo:for-each select="marc:subfield">
801
      <xslo:if test="contains('n', @code)">
802
        <z:index name="Suppress:w Suppress:n">
803
          <xslo:value-of select="."/>
804
        </z:index>
805
      </xslo:if>
806
    </xslo:for-each>
807
    <xslo:for-each select="marc:subfield">
808
      <xslo:if test="contains('h', @code)">
809
        <z:index name="cn-class:w">
810
          <xslo:value-of select="."/>
811
        </z:index>
812
      </xslo:if>
813
    </xslo:for-each>
814
    <xslo:for-each select="marc:subfield">
815
      <xslo:if test="contains('i', @code)">
816
        <z:index name="cn-item:w">
817
          <xslo:value-of select="."/>
818
        </z:index>
819
      </xslo:if>
820
    </xslo:for-each>
821
    <xslo:for-each select="marc:subfield">
822
      <xslo:if test="contains('k', @code)">
823
        <z:index name="cn-prefix:w">
824
          <xslo:value-of select="."/>
825
        </z:index>
826
      </xslo:if>
827
    </xslo:for-each>
828
    <xslo:for-each select="marc:subfield">
829
      <xslo:if test="contains('m', @code)">
830
        <z:index name="cn-suffix:w">
831
          <xslo:value-of select="."/>
832
        </z:index>
833
      </xslo:if>
834
    </xslo:for-each>
835
  </xslo:template>
836
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
837
    <xslo:for-each select="marc:subfield">
838
      <xslo:if test="contains('0', @code)">
839
        <z:index name="withdrawn:n withdrawn:w">
840
          <xslo:value-of select="."/>
841
        </z:index>
842
      </xslo:if>
843
    </xslo:for-each>
844
    <xslo:for-each select="marc:subfield">
845
      <xslo:if test="contains('1', @code)">
846
        <z:index name="lost:w lost:n">
847
          <xslo:value-of select="."/>
848
        </z:index>
849
      </xslo:if>
850
    </xslo:for-each>
851
    <xslo:for-each select="marc:subfield">
852
      <xslo:if test="contains('2', @code)">
853
        <z:index name="classification-source:w">
854
          <xslo:value-of select="."/>
855
        </z:index>
856
      </xslo:if>
857
    </xslo:for-each>
858
    <xslo:for-each select="marc:subfield">
859
      <xslo:if test="contains('3', @code)">
860
        <z:index name="materials-specified:w">
861
          <xslo:value-of select="."/>
862
        </z:index>
863
      </xslo:if>
864
    </xslo:for-each>
865
    <xslo:for-each select="marc:subfield">
866
      <xslo:if test="contains('4', @code)">
867
        <z:index name="damaged:n damaged:w">
868
          <xslo:value-of select="."/>
869
        </z:index>
870
      </xslo:if>
871
    </xslo:for-each>
872
    <xslo:for-each select="marc:subfield">
873
      <xslo:if test="contains('5', @code)">
874
        <z:index name="restricted:n restricted:w">
875
          <xslo:value-of select="."/>
876
        </z:index>
877
      </xslo:if>
878
    </xslo:for-each>
879
    <xslo:for-each select="marc:subfield">
880
      <xslo:if test="contains('6', @code)">
881
        <z:index name="cn-sort:n cn-sort:s">
882
          <xslo:value-of select="."/>
883
        </z:index>
884
      </xslo:if>
885
    </xslo:for-each>
886
    <xslo:for-each select="marc:subfield">
887
      <xslo:if test="contains('7', @code)">
888
        <z:index name="notforloan:n notforloan:w">
889
          <xslo:value-of select="."/>
890
        </z:index>
891
      </xslo:if>
892
    </xslo:for-each>
893
    <xslo:for-each select="marc:subfield">
894
      <xslo:if test="contains('8', @code)">
895
        <z:index name="ccode:w">
896
          <xslo:value-of select="."/>
897
        </z:index>
898
      </xslo:if>
899
    </xslo:for-each>
900
    <xslo:for-each select="marc:subfield">
901
      <xslo:if test="contains('9', @code)">
902
        <z:index name="itemnumber:n itemnumber:s">
903
          <xslo:value-of select="."/>
904
        </z:index>
905
      </xslo:if>
906
    </xslo:for-each>
907
    <xslo:for-each select="marc:subfield">
908
      <xslo:if test="contains('a', @code)">
909
        <z:index name="homebranch:w">
910
          <xslo:value-of select="."/>
911
        </z:index>
912
      </xslo:if>
913
    </xslo:for-each>
914
    <xslo:for-each select="marc:subfield">
915
      <xslo:if test="contains('b', @code)">
916
        <z:index name="holdingbranch:w">
917
          <xslo:value-of select="."/>
918
        </z:index>
919
      </xslo:if>
920
    </xslo:for-each>
921
    <xslo:for-each select="marc:subfield">
922
      <xslo:if test="contains('c', @code)">
923
        <z:index name="location:w">
924
          <xslo:value-of select="."/>
925
        </z:index>
926
      </xslo:if>
927
    </xslo:for-each>
928
    <xslo:for-each select="marc:subfield">
929
      <xslo:if test="contains('d', @code)">
930
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
931
          <xslo:value-of select="."/>
932
        </z:index>
933
      </xslo:if>
934
    </xslo:for-each>
935
    <xslo:for-each select="marc:subfield">
936
      <xslo:if test="contains('e', @code)">
937
        <z:index name="acqsource:w">
938
          <xslo:value-of select="."/>
939
        </z:index>
940
      </xslo:if>
941
    </xslo:for-each>
942
    <xslo:for-each select="marc:subfield">
943
      <xslo:if test="contains('f', @code)">
944
        <z:index name="coded-location-qualifier:w">
945
          <xslo:value-of select="."/>
946
        </z:index>
947
      </xslo:if>
948
    </xslo:for-each>
949
    <xslo:for-each select="marc:subfield">
950
      <xslo:if test="contains('g', @code)">
951
        <z:index name="price:w">
952
          <xslo:value-of select="."/>
953
        </z:index>
954
      </xslo:if>
955
    </xslo:for-each>
956
    <xslo:for-each select="marc:subfield">
957
      <xslo:if test="contains('j', @code)">
958
        <z:index name="stack:n stack:w">
959
          <xslo:value-of select="."/>
960
        </z:index>
961
      </xslo:if>
962
    </xslo:for-each>
963
    <xslo:for-each select="marc:subfield">
964
      <xslo:if test="contains('l', @code)">
965
        <z:index name="issues:n issues:w issues:s">
966
          <xslo:value-of select="."/>
967
        </z:index>
968
      </xslo:if>
969
    </xslo:for-each>
970
    <xslo:for-each select="marc:subfield">
971
      <xslo:if test="contains('m', @code)">
972
        <z:index name="renewals:n renewals:w">
973
          <xslo:value-of select="."/>
974
        </z:index>
975
      </xslo:if>
976
    </xslo:for-each>
977
    <xslo:for-each select="marc:subfield">
978
      <xslo:if test="contains('n', @code)">
979
        <z:index name="reserves:n reserves:w">
980
          <xslo:value-of select="."/>
981
        </z:index>
982
      </xslo:if>
983
    </xslo:for-each>
984
    <xslo:for-each select="marc:subfield">
985
      <xslo:if test="contains('o', @code)">
986
        <z:index name="Local-classification:w Local-classification:p Local-classification:s">
987
          <xslo:value-of select="."/>
988
        </z:index>
989
      </xslo:if>
990
    </xslo:for-each>
991
    <xslo:for-each select="marc:subfield">
992
      <xslo:if test="contains('p', @code)">
993
        <z:index name="barcode:w barcode:n">
994
          <xslo:value-of select="."/>
995
        </z:index>
996
      </xslo:if>
997
    </xslo:for-each>
998
    <xslo:for-each select="marc:subfield">
999
      <xslo:if test="contains('q', @code)">
1000
        <z:index name="onloan:n onloan:w">
1001
          <xslo:value-of select="."/>
1002
        </z:index>
1003
      </xslo:if>
1004
    </xslo:for-each>
1005
    <xslo:for-each select="marc:subfield">
1006
      <xslo:if test="contains('r', @code)">
1007
        <z:index name="datelastseen:w">
1008
          <xslo:value-of select="."/>
1009
        </z:index>
1010
      </xslo:if>
1011
    </xslo:for-each>
1012
    <xslo:for-each select="marc:subfield">
1013
      <xslo:if test="contains('s', @code)">
1014
        <z:index name="datelastborrowed:w">
1015
          <xslo:value-of select="."/>
1016
        </z:index>
1017
      </xslo:if>
1018
    </xslo:for-each>
1019
    <xslo:for-each select="marc:subfield">
1020
      <xslo:if test="contains('t', @code)">
1021
        <z:index name="copynumber:w">
1022
          <xslo:value-of select="."/>
1023
        </z:index>
1024
      </xslo:if>
1025
    </xslo:for-each>
1026
    <xslo:for-each select="marc:subfield">
1027
      <xslo:if test="contains('u', @code)">
1028
        <z:index name="uri:u">
1029
          <xslo:value-of select="."/>
1030
        </z:index>
1031
      </xslo:if>
1032
    </xslo:for-each>
1033
    <xslo:for-each select="marc:subfield">
1034
      <xslo:if test="contains('v', @code)">
1035
        <z:index name="replacementprice:w">
1036
          <xslo:value-of select="."/>
1037
        </z:index>
1038
      </xslo:if>
1039
    </xslo:for-each>
1040
    <xslo:for-each select="marc:subfield">
1041
      <xslo:if test="contains('w', @code)">
1042
        <z:index name="replacementpricedate:w">
1043
          <xslo:value-of select="."/>
1044
        </z:index>
1045
      </xslo:if>
1046
    </xslo:for-each>
1047
    <xslo:for-each select="marc:subfield">
1048
      <xslo:if test="contains('y', @code)">
1049
        <z:index name="itype:w">
1050
          <xslo:value-of select="."/>
1051
        </z:index>
1052
      </xslo:if>
1053
    </xslo:for-each>
1054
  </xslo:template>
1055
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1056
    <z:index name="LC-card-number:w Identifier-standard:w">
1057
      <xslo:variable name="raw_heading">
1058
        <xslo:for-each select="marc:subfield">
1059
          <xslo:if test="position() &gt; 1">
1060
            <xslo:value-of select="substring(' ', 1, 1)"/>
1061
          </xslo:if>
1062
          <xslo:value-of select="."/>
1063
        </xslo:for-each>
1064
      </xslo:variable>
1065
      <xslo:value-of select="normalize-space($raw_heading)"/>
1066
    </z:index>
1067
  </xslo:template>
1068
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1069
    <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1070
      <xslo:variable name="raw_heading">
1071
        <xslo:for-each select="marc:subfield">
1072
          <xslo:if test="position() &gt; 1">
1073
            <xslo:value-of select="substring(' ', 1, 1)"/>
1074
          </xslo:if>
1075
          <xslo:value-of select="."/>
1076
        </xslo:for-each>
1077
      </xslo:variable>
1078
      <xslo:value-of select="normalize-space($raw_heading)"/>
1079
    </z:index>
1080
  </xslo:template>
1081
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1082
    <z:index name="ISBN:w Identifier-standard:w">
1083
      <xslo:variable name="raw_heading">
1084
        <xslo:for-each select="marc:subfield">
1085
          <xslo:if test="position() &gt; 1">
1086
            <xslo:value-of select="substring(' ', 1, 1)"/>
1087
          </xslo:if>
1088
          <xslo:value-of select="."/>
1089
        </xslo:for-each>
1090
      </xslo:variable>
1091
      <xslo:value-of select="normalize-space($raw_heading)"/>
1092
    </z:index>
1093
  </xslo:template>
1094
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1095
    <z:index name="ISSN:w Identifier-standard:w">
1096
      <xslo:variable name="raw_heading">
1097
        <xslo:for-each select="marc:subfield">
1098
          <xslo:if test="position() &gt; 1">
1099
            <xslo:value-of select="substring(' ', 1, 1)"/>
1100
          </xslo:if>
1101
          <xslo:value-of select="."/>
1102
        </xslo:for-each>
1103
      </xslo:variable>
1104
      <xslo:value-of select="normalize-space($raw_heading)"/>
1105
    </z:index>
1106
  </xslo:template>
1107
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1108
    <z:index name="Identifier-standard:w">
1109
      <xslo:variable name="raw_heading">
1110
        <xslo:for-each select="marc:subfield">
1111
          <xslo:if test="position() &gt; 1">
1112
            <xslo:value-of select="substring(' ', 1, 1)"/>
1113
          </xslo:if>
1114
          <xslo:value-of select="."/>
1115
        </xslo:for-each>
1116
      </xslo:variable>
1117
      <xslo:value-of select="normalize-space($raw_heading)"/>
1118
    </z:index>
1119
  </xslo:template>
1120
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1121
    <z:index name="Identifier-standard:w">
1122
      <xslo:variable name="raw_heading">
1123
        <xslo:for-each select="marc:subfield">
1124
          <xslo:if test="position() &gt; 1">
1125
            <xslo:value-of select="substring(' ', 1, 1)"/>
1126
          </xslo:if>
1127
          <xslo:value-of select="."/>
1128
        </xslo:for-each>
1129
      </xslo:variable>
1130
      <xslo:value-of select="normalize-space($raw_heading)"/>
1131
    </z:index>
1132
  </xslo:template>
1133
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1134
    <z:index name="Report-number:w Identifier-standard:w">
1135
      <xslo:variable name="raw_heading">
1136
        <xslo:for-each select="marc:subfield">
1137
          <xslo:if test="position() &gt; 1">
1138
            <xslo:value-of select="substring(' ', 1, 1)"/>
1139
          </xslo:if>
1140
          <xslo:value-of select="."/>
1141
        </xslo:for-each>
1142
      </xslo:variable>
1143
      <xslo:value-of select="normalize-space($raw_heading)"/>
1144
    </z:index>
1145
  </xslo:template>
1146
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1147
    <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
1148
      <xslo:variable name="raw_heading">
1149
        <xslo:for-each select="marc:subfield">
1150
          <xslo:if test="position() &gt; 1">
1151
            <xslo:value-of select="substring(' ', 1, 1)"/>
1152
          </xslo:if>
1153
          <xslo:value-of select="."/>
1154
        </xslo:for-each>
1155
      </xslo:variable>
1156
      <xslo:value-of select="normalize-space($raw_heading)"/>
1157
    </z:index>
1158
  </xslo:template>
1159
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1160
    <z:index name="CODEN:w Identifier-standard:w">
1161
      <xslo:variable name="raw_heading">
1162
        <xslo:for-each select="marc:subfield">
1163
          <xslo:if test="position() &gt; 1">
1164
            <xslo:value-of select="substring(' ', 1, 1)"/>
1165
          </xslo:if>
1166
          <xslo:value-of select="."/>
1167
        </xslo:for-each>
1168
      </xslo:variable>
1169
      <xslo:value-of select="normalize-space($raw_heading)"/>
1170
    </z:index>
1171
  </xslo:template>
1172
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1173
    <z:index name="Code-institution:w Record-source:w">
1174
      <xslo:variable name="raw_heading">
1175
        <xslo:for-each select="marc:subfield">
1176
          <xslo:if test="position() &gt; 1">
1177
            <xslo:value-of select="substring(' ', 1, 1)"/>
1178
          </xslo:if>
1179
          <xslo:value-of select="."/>
1180
        </xslo:for-each>
1181
      </xslo:variable>
1182
      <xslo:value-of select="normalize-space($raw_heading)"/>
1183
    </z:index>
1184
  </xslo:template>
1185
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='041']">
1186
    <z:index name="ln:w">
1187
      <xslo:variable name="raw_heading">
1188
        <xslo:for-each select="marc:subfield">
1189
          <xslo:if test="position() &gt; 1">
1190
            <xslo:value-of select="substring(' ', 1, 1)"/>
1191
          </xslo:if>
1192
          <xslo:value-of select="."/>
1193
        </xslo:for-each>
1194
      </xslo:variable>
1195
      <xslo:value-of select="normalize-space($raw_heading)"/>
1196
    </z:index>
1197
  </xslo:template>
1198
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1199
    <z:index name="Code-geographic:w">
1200
      <xslo:variable name="raw_heading">
1201
        <xslo:for-each select="marc:subfield">
1202
          <xslo:if test="position() &gt; 1">
1203
            <xslo:value-of select="substring(' ', 1, 1)"/>
1204
          </xslo:if>
1205
          <xslo:value-of select="."/>
1206
        </xslo:for-each>
1207
      </xslo:variable>
1208
      <xslo:value-of select="normalize-space($raw_heading)"/>
1209
    </z:index>
1210
  </xslo:template>
1211
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1212
    <z:index name="NLM-call-number:w">
1213
      <xslo:variable name="raw_heading">
1214
        <xslo:for-each select="marc:subfield">
1215
          <xslo:if test="position() &gt; 1">
1216
            <xslo:value-of select="substring(' ', 1, 1)"/>
1217
          </xslo:if>
1218
          <xslo:value-of select="."/>
1219
        </xslo:for-each>
1220
      </xslo:variable>
1221
      <xslo:value-of select="normalize-space($raw_heading)"/>
1222
    </z:index>
1223
  </xslo:template>
1224
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1225
    <z:index name="UDC-classification:w">
1226
      <xslo:variable name="raw_heading">
1227
        <xslo:for-each select="marc:subfield">
1228
          <xslo:if test="position() &gt; 1">
1229
            <xslo:value-of select="substring(' ', 1, 1)"/>
1230
          </xslo:if>
1231
          <xslo:value-of select="."/>
1232
        </xslo:for-each>
1233
      </xslo:variable>
1234
      <xslo:value-of select="normalize-space($raw_heading)"/>
1235
    </z:index>
1236
  </xslo:template>
1237
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1238
    <z:index name="Dewey-classification:w Dewey-classification:s">
1239
      <xslo:variable name="raw_heading">
1240
        <xslo:for-each select="marc:subfield">
1241
          <xslo:if test="position() &gt; 1">
1242
            <xslo:value-of select="substring(' ', 1, 1)"/>
1243
          </xslo:if>
1244
          <xslo:value-of select="."/>
1245
        </xslo:for-each>
1246
      </xslo:variable>
1247
      <xslo:value-of select="normalize-space($raw_heading)"/>
1248
    </z:index>
1249
  </xslo:template>
1250
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1251
    <z:index name="Author:w Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w">
1252
      <xslo:variable name="raw_heading">
1253
        <xslo:for-each select="marc:subfield">
1254
          <xslo:if test="position() &gt; 1">
1255
            <xslo:value-of select="substring(' ', 1, 1)"/>
1256
          </xslo:if>
1257
          <xslo:value-of select="."/>
1258
        </xslo:for-each>
1259
      </xslo:variable>
1260
      <xslo:value-of select="normalize-space($raw_heading)"/>
1261
    </z:index>
1262
  </xslo:template>
1263
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1264
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w">
1265
      <xslo:variable name="raw_heading">
1266
        <xslo:for-each select="marc:subfield">
1267
          <xslo:if test="position() &gt; 1">
1268
            <xslo:value-of select="substring(' ', 1, 1)"/>
1269
          </xslo:if>
1270
          <xslo:value-of select="."/>
1271
        </xslo:for-each>
1272
      </xslo:variable>
1273
      <xslo:value-of select="normalize-space($raw_heading)"/>
1274
    </z:index>
1275
  </xslo:template>
1276
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1277
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w">
1278
      <xslo:variable name="raw_heading">
1279
        <xslo:for-each select="marc:subfield">
1280
          <xslo:if test="position() &gt; 1">
1281
            <xslo:value-of select="substring(' ', 1, 1)"/>
1282
          </xslo:if>
1283
          <xslo:value-of select="."/>
1284
        </xslo:for-each>
1285
      </xslo:variable>
1286
      <xslo:value-of select="normalize-space($raw_heading)"/>
1287
    </z:index>
1288
  </xslo:template>
1289
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1290
    <z:index name="Title:w Title-uniform:w">
1291
      <xslo:variable name="raw_heading">
1292
        <xslo:for-each select="marc:subfield">
1293
          <xslo:if test="position() &gt; 1">
1294
            <xslo:value-of select="substring(' ', 1, 1)"/>
1295
          </xslo:if>
1296
          <xslo:value-of select="."/>
1297
        </xslo:for-each>
1298
      </xslo:variable>
1299
      <xslo:value-of select="normalize-space($raw_heading)"/>
1300
    </z:index>
1301
  </xslo:template>
1302
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1303
    <z:index name="Title:w Title-abbreviated:w">
1304
      <xslo:variable name="raw_heading">
1305
        <xslo:for-each select="marc:subfield">
1306
          <xslo:if test="position() &gt; 1">
1307
            <xslo:value-of select="substring(' ', 1, 1)"/>
1308
          </xslo:if>
1309
          <xslo:value-of select="."/>
1310
        </xslo:for-each>
1311
      </xslo:variable>
1312
      <xslo:value-of select="normalize-space($raw_heading)"/>
1313
    </z:index>
1314
  </xslo:template>
1315
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1316
    <z:index name="Title:w Title-key:w">
1317
      <xslo:variable name="raw_heading">
1318
        <xslo:for-each select="marc:subfield">
1319
          <xslo:if test="position() &gt; 1">
1320
            <xslo:value-of select="substring(' ', 1, 1)"/>
1321
          </xslo:if>
1322
          <xslo:value-of select="."/>
1323
        </xslo:for-each>
1324
      </xslo:variable>
1325
      <xslo:value-of select="normalize-space($raw_heading)"/>
1326
    </z:index>
1327
  </xslo:template>
1328
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1329
    <z:index name="Title:w Title:p Title-uniform:w">
1330
      <xslo:variable name="raw_heading">
1331
        <xslo:for-each select="marc:subfield">
1332
          <xslo:if test="position() &gt; 1">
1333
            <xslo:value-of select="substring(' ', 1, 1)"/>
1334
          </xslo:if>
1335
          <xslo:value-of select="."/>
1336
        </xslo:for-each>
1337
      </xslo:variable>
1338
      <xslo:value-of select="normalize-space($raw_heading)"/>
1339
    </z:index>
1340
  </xslo:template>
1341
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1342
    <z:index name="Title:w Title:p">
1343
      <xslo:variable name="raw_heading">
1344
        <xslo:for-each select="marc:subfield">
1345
          <xslo:if test="position() &gt; 1">
1346
            <xslo:value-of select="substring(' ', 1, 1)"/>
1347
          </xslo:if>
1348
          <xslo:value-of select="."/>
1349
        </xslo:for-each>
1350
      </xslo:variable>
1351
      <xslo:value-of select="normalize-space($raw_heading)"/>
1352
    </z:index>
1353
  </xslo:template>
1354
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1355
    <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
1356
      <xslo:variable name="raw_heading">
1357
        <xslo:for-each select="marc:subfield">
1358
          <xslo:if test="position() &gt; 1">
1359
            <xslo:value-of select="substring(' ', 1, 1)"/>
1360
          </xslo:if>
1361
          <xslo:value-of select="."/>
1362
        </xslo:for-each>
1363
      </xslo:variable>
1364
      <xslo:value-of select="normalize-space($raw_heading)"/>
1365
    </z:index>
1366
  </xslo:template>
1367
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1368
    <z:index name="pl:w">
1369
      <xslo:variable name="raw_heading">
1370
        <xslo:for-each select="marc:subfield">
1371
          <xslo:if test="position() &gt; 1">
1372
            <xslo:value-of select="substring(' ', 1, 1)"/>
1373
          </xslo:if>
1374
          <xslo:value-of select="."/>
1375
        </xslo:for-each>
1376
      </xslo:variable>
1377
      <xslo:value-of select="normalize-space($raw_heading)"/>
1378
    </z:index>
1379
  </xslo:template>
1380
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1381
    <z:index name="Extent:w Extent:p">
1382
      <xslo:variable name="raw_heading">
1383
        <xslo:for-each select="marc:subfield">
1384
          <xslo:if test="position() &gt; 1">
1385
            <xslo:value-of select="substring(' ', 1, 1)"/>
1386
          </xslo:if>
1387
          <xslo:value-of select="."/>
1388
        </xslo:for-each>
1389
      </xslo:variable>
1390
      <xslo:value-of select="normalize-space($raw_heading)"/>
1391
    </z:index>
1392
  </xslo:template>
1393
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
1394
    <z:index name="Title-series:w Title-series:p Title:w Title-series:w">
1395
      <xslo:variable name="raw_heading">
1396
        <xslo:for-each select="marc:subfield">
1397
          <xslo:if test="position() &gt; 1">
1398
            <xslo:value-of select="substring(' ', 1, 1)"/>
1399
          </xslo:if>
1400
          <xslo:value-of select="."/>
1401
        </xslo:for-each>
1402
      </xslo:variable>
1403
      <xslo:value-of select="normalize-space($raw_heading)"/>
1404
    </z:index>
1405
  </xslo:template>
1406
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
1407
    <z:index name="Title:w Title-series:w">
1408
      <xslo:variable name="raw_heading">
1409
        <xslo:for-each select="marc:subfield">
1410
          <xslo:if test="position() &gt; 1">
1411
            <xslo:value-of select="substring(' ', 1, 1)"/>
1412
          </xslo:if>
1413
          <xslo:value-of select="."/>
1414
        </xslo:for-each>
1415
      </xslo:variable>
1416
      <xslo:value-of select="normalize-space($raw_heading)"/>
1417
    </z:index>
1418
  </xslo:template>
1419
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
1420
    <z:index name="Material-type:w">
1421
      <xslo:variable name="raw_heading">
1422
        <xslo:for-each select="marc:subfield">
1423
          <xslo:if test="position() &gt; 1">
1424
            <xslo:value-of select="substring(' ', 1, 1)"/>
1425
          </xslo:if>
1426
          <xslo:value-of select="."/>
1427
        </xslo:for-each>
1428
      </xslo:variable>
1429
      <xslo:value-of select="normalize-space($raw_heading)"/>
1430
    </z:index>
1431
  </xslo:template>
1432
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
1433
    <z:index name="Note:w Note:p">
1434
      <xslo:variable name="raw_heading">
1435
        <xslo:for-each select="marc:subfield">
1436
          <xslo:if test="position() &gt; 1">
1437
            <xslo:value-of select="substring(' ', 1, 1)"/>
1438
          </xslo:if>
1439
          <xslo:value-of select="."/>
1440
        </xslo:for-each>
1441
      </xslo:variable>
1442
      <xslo:value-of select="normalize-space($raw_heading)"/>
1443
    </z:index>
1444
  </xslo:template>
1445
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
1446
    <z:index name="Indexed-by:w">
1447
      <xslo:variable name="raw_heading">
1448
        <xslo:for-each select="marc:subfield">
1449
          <xslo:if test="position() &gt; 1">
1450
            <xslo:value-of select="substring(' ', 1, 1)"/>
1451
          </xslo:if>
1452
          <xslo:value-of select="."/>
1453
        </xslo:for-each>
1454
      </xslo:variable>
1455
      <xslo:value-of select="normalize-space($raw_heading)"/>
1456
    </z:index>
1457
  </xslo:template>
1458
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
1459
    <z:index name="Abstract:w Abstract:p">
1460
      <xslo:variable name="raw_heading">
1461
        <xslo:for-each select="marc:subfield">
1462
          <xslo:if test="position() &gt; 1">
1463
            <xslo:value-of select="substring(' ', 1, 1)"/>
1464
          </xslo:if>
1465
          <xslo:value-of select="."/>
1466
        </xslo:for-each>
1467
      </xslo:variable>
1468
      <xslo:value-of select="normalize-space($raw_heading)"/>
1469
    </z:index>
1470
  </xslo:template>
1471
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
1472
    <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
1473
      <xslo:variable name="raw_heading">
1474
        <xslo:for-each select="marc:subfield">
1475
          <xslo:if test="position() &gt; 1">
1476
            <xslo:value-of select="substring(' ', 1, 1)"/>
1477
          </xslo:if>
1478
          <xslo:value-of select="."/>
1479
        </xslo:for-each>
1480
      </xslo:variable>
1481
      <xslo:value-of select="normalize-space($raw_heading)"/>
1482
    </z:index>
1483
  </xslo:template>
1484
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
1485
    <z:index name="Name:w Subject:w Corporate-name:w Subject:w Subject:p">
1486
      <xslo:variable name="raw_heading">
1487
        <xslo:for-each select="marc:subfield">
1488
          <xslo:if test="position() &gt; 1">
1489
            <xslo:value-of select="substring(' ', 1, 1)"/>
1490
          </xslo:if>
1491
          <xslo:value-of select="."/>
1492
        </xslo:for-each>
1493
      </xslo:variable>
1494
      <xslo:value-of select="normalize-space($raw_heading)"/>
1495
    </z:index>
1496
  </xslo:template>
1497
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
1498
    <z:index name="Conference-name:w Subject:w Subject:p">
1499
      <xslo:variable name="raw_heading">
1500
        <xslo:for-each select="marc:subfield">
1501
          <xslo:if test="position() &gt; 1">
1502
            <xslo:value-of select="substring(' ', 1, 1)"/>
1503
          </xslo:if>
1504
          <xslo:value-of select="."/>
1505
        </xslo:for-each>
1506
      </xslo:variable>
1507
      <xslo:value-of select="normalize-space($raw_heading)"/>
1508
    </z:index>
1509
    <z:index name="Name:w Subject:w Subject:p">
1510
      <xslo:variable name="raw_heading">
1511
        <xslo:for-each select="marc:subfield">
1512
          <xslo:if test="position() &gt; 1">
1513
            <xslo:value-of select="substring(' ', 1, 1)"/>
1514
          </xslo:if>
1515
          <xslo:value-of select="."/>
1516
        </xslo:for-each>
1517
      </xslo:variable>
1518
      <xslo:value-of select="normalize-space($raw_heading)"/>
1519
    </z:index>
1520
  </xslo:template>
1521
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
1522
    <z:index name="Subject:w Subject:p">
1523
      <xslo:variable name="raw_heading">
1524
        <xslo:for-each select="marc:subfield">
1525
          <xslo:if test="position() &gt; 1">
1526
            <xslo:value-of select="substring(' ', 1, 1)"/>
1527
          </xslo:if>
1528
          <xslo:value-of select="."/>
1529
        </xslo:for-each>
1530
      </xslo:variable>
1531
      <xslo:value-of select="normalize-space($raw_heading)"/>
1532
    </z:index>
1533
  </xslo:template>
1534
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
1535
    <z:index name="Subject:w Subject:p">
1536
      <xslo:variable name="raw_heading">
1537
        <xslo:for-each select="marc:subfield">
1538
          <xslo:if test="position() &gt; 1">
1539
            <xslo:value-of select="substring(' ', 1, 1)"/>
1540
          </xslo:if>
1541
          <xslo:value-of select="."/>
1542
        </xslo:for-each>
1543
      </xslo:variable>
1544
      <xslo:value-of select="normalize-space($raw_heading)"/>
1545
    </z:index>
1546
  </xslo:template>
1547
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
1548
    <z:index name="Name-geographic:w Subject:w Subject:p">
1549
      <xslo:variable name="raw_heading">
1550
        <xslo:for-each select="marc:subfield">
1551
          <xslo:if test="position() &gt; 1">
1552
            <xslo:value-of select="substring(' ', 1, 1)"/>
1553
          </xslo:if>
1554
          <xslo:value-of select="."/>
1555
        </xslo:for-each>
1556
      </xslo:variable>
1557
      <xslo:value-of select="normalize-space($raw_heading)"/>
1558
    </z:index>
1559
  </xslo:template>
1560
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
1561
    <z:index name="Subject:w Subject:p">
1562
      <xslo:variable name="raw_heading">
1563
        <xslo:for-each select="marc:subfield">
1564
          <xslo:if test="position() &gt; 1">
1565
            <xslo:value-of select="substring(' ', 1, 1)"/>
1566
          </xslo:if>
1567
          <xslo:value-of select="."/>
1568
        </xslo:for-each>
1569
      </xslo:variable>
1570
      <xslo:value-of select="normalize-space($raw_heading)"/>
1571
    </z:index>
1572
  </xslo:template>
1573
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
1574
    <z:index name="Subject:w Subject:p">
1575
      <xslo:variable name="raw_heading">
1576
        <xslo:for-each select="marc:subfield">
1577
          <xslo:if test="position() &gt; 1">
1578
            <xslo:value-of select="substring(' ', 1, 1)"/>
1579
          </xslo:if>
1580
          <xslo:value-of select="."/>
1581
        </xslo:for-each>
1582
      </xslo:variable>
1583
      <xslo:value-of select="normalize-space($raw_heading)"/>
1584
    </z:index>
1585
  </xslo:template>
1586
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
1587
    <z:index name="Subject:w Subject:p">
1588
      <xslo:variable name="raw_heading">
1589
        <xslo:for-each select="marc:subfield">
1590
          <xslo:if test="position() &gt; 1">
1591
            <xslo:value-of select="substring(' ', 1, 1)"/>
1592
          </xslo:if>
1593
          <xslo:value-of select="."/>
1594
        </xslo:for-each>
1595
      </xslo:variable>
1596
      <xslo:value-of select="normalize-space($raw_heading)"/>
1597
    </z:index>
1598
  </xslo:template>
1599
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
1600
    <z:index name="Subject:w Subject:p">
1601
      <xslo:variable name="raw_heading">
1602
        <xslo:for-each select="marc:subfield">
1603
          <xslo:if test="position() &gt; 1">
1604
            <xslo:value-of select="substring(' ', 1, 1)"/>
1605
          </xslo:if>
1606
          <xslo:value-of select="."/>
1607
        </xslo:for-each>
1608
      </xslo:variable>
1609
      <xslo:value-of select="normalize-space($raw_heading)"/>
1610
    </z:index>
1611
  </xslo:template>
1612
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
1613
    <z:index name="Subject:w Subject:p">
1614
      <xslo:variable name="raw_heading">
1615
        <xslo:for-each select="marc:subfield">
1616
          <xslo:if test="position() &gt; 1">
1617
            <xslo:value-of select="substring(' ', 1, 1)"/>
1618
          </xslo:if>
1619
          <xslo:value-of select="."/>
1620
        </xslo:for-each>
1621
      </xslo:variable>
1622
      <xslo:value-of select="normalize-space($raw_heading)"/>
1623
    </z:index>
1624
  </xslo:template>
1625
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
1626
    <z:index name="Subject:w Subject:p">
1627
      <xslo:variable name="raw_heading">
1628
        <xslo:for-each select="marc:subfield">
1629
          <xslo:if test="position() &gt; 1">
1630
            <xslo:value-of select="substring(' ', 1, 1)"/>
1631
          </xslo:if>
1632
          <xslo:value-of select="."/>
1633
        </xslo:for-each>
1634
      </xslo:variable>
1635
      <xslo:value-of select="normalize-space($raw_heading)"/>
1636
    </z:index>
1637
  </xslo:template>
1638
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
1639
    <z:index name="Author:w Author-name-corporate:w Author-name-personal:w Name:w Editor:w Personal-name:w">
1640
      <xslo:variable name="raw_heading">
1641
        <xslo:for-each select="marc:subfield">
1642
          <xslo:if test="position() &gt; 1">
1643
            <xslo:value-of select="substring(' ', 1, 1)"/>
1644
          </xslo:if>
1645
          <xslo:value-of select="."/>
1646
        </xslo:for-each>
1647
      </xslo:variable>
1648
      <xslo:value-of select="normalize-space($raw_heading)"/>
1649
    </z:index>
1650
  </xslo:template>
1651
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
1652
    <z:index name="Author:w Corporate-name:w">
1653
      <xslo:variable name="raw_heading">
1654
        <xslo:for-each select="marc:subfield">
1655
          <xslo:if test="position() &gt; 1">
1656
            <xslo:value-of select="substring(' ', 1, 1)"/>
1657
          </xslo:if>
1658
          <xslo:value-of select="."/>
1659
        </xslo:for-each>
1660
      </xslo:variable>
1661
      <xslo:value-of select="normalize-space($raw_heading)"/>
1662
    </z:index>
1663
    <z:index name="Author:w Name:w">
1664
      <xslo:variable name="raw_heading">
1665
        <xslo:for-each select="marc:subfield">
1666
          <xslo:if test="position() &gt; 1">
1667
            <xslo:value-of select="substring(' ', 1, 1)"/>
1668
          </xslo:if>
1669
          <xslo:value-of select="."/>
1670
        </xslo:for-each>
1671
      </xslo:variable>
1672
      <xslo:value-of select="normalize-space($raw_heading)"/>
1673
    </z:index>
1674
  </xslo:template>
1675
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
1676
    <z:index name="Author-name-corporate:w Name:w Conference-name:w">
1677
      <xslo:variable name="raw_heading">
1678
        <xslo:for-each select="marc:subfield">
1679
          <xslo:if test="position() &gt; 1">
1680
            <xslo:value-of select="substring(' ', 1, 1)"/>
1681
          </xslo:if>
1682
          <xslo:value-of select="."/>
1683
        </xslo:for-each>
1684
      </xslo:variable>
1685
      <xslo:value-of select="normalize-space($raw_heading)"/>
1686
    </z:index>
1687
  </xslo:template>
1688
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
1689
    <z:index name="Title:w Title-uniform:w">
1690
      <xslo:variable name="raw_heading">
1691
        <xslo:for-each select="marc:subfield">
1692
          <xslo:if test="position() &gt; 1">
1693
            <xslo:value-of select="substring(' ', 1, 1)"/>
1694
          </xslo:if>
1695
          <xslo:value-of select="."/>
1696
        </xslo:for-each>
1697
      </xslo:variable>
1698
      <xslo:value-of select="normalize-space($raw_heading)"/>
1699
    </z:index>
1700
  </xslo:template>
1701
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
1702
    <z:index name="Title:w Title-other-variant:w">
1703
      <xslo:variable name="raw_heading">
1704
        <xslo:for-each select="marc:subfield">
1705
          <xslo:if test="position() &gt; 1">
1706
            <xslo:value-of select="substring(' ', 1, 1)"/>
1707
          </xslo:if>
1708
          <xslo:value-of select="."/>
1709
        </xslo:for-each>
1710
      </xslo:variable>
1711
      <xslo:value-of select="normalize-space($raw_heading)"/>
1712
    </z:index>
1713
  </xslo:template>
1714
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
1715
    <z:index name="Title:w Title-former:w Related-periodical:w">
1716
      <xslo:variable name="raw_heading">
1717
        <xslo:for-each select="marc:subfield">
1718
          <xslo:if test="position() &gt; 1">
1719
            <xslo:value-of select="substring(' ', 1, 1)"/>
1720
          </xslo:if>
1721
          <xslo:value-of select="."/>
1722
        </xslo:for-each>
1723
      </xslo:variable>
1724
      <xslo:value-of select="normalize-space($raw_heading)"/>
1725
    </z:index>
1726
  </xslo:template>
1727
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
1728
    <z:index name="Related-periodical:w">
1729
      <xslo:variable name="raw_heading">
1730
        <xslo:for-each select="marc:subfield">
1731
          <xslo:if test="position() &gt; 1">
1732
            <xslo:value-of select="substring(' ', 1, 1)"/>
1733
          </xslo:if>
1734
          <xslo:value-of select="."/>
1735
        </xslo:for-each>
1736
      </xslo:variable>
1737
      <xslo:value-of select="normalize-space($raw_heading)"/>
1738
    </z:index>
1739
  </xslo:template>
1740
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
1741
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
1742
      <xslo:variable name="raw_heading">
1743
        <xslo:for-each select="marc:subfield">
1744
          <xslo:if test="position() &gt; 1">
1745
            <xslo:value-of select="substring(' ', 1, 1)"/>
1746
          </xslo:if>
1747
          <xslo:value-of select="."/>
1748
        </xslo:for-each>
1749
      </xslo:variable>
1750
      <xslo:value-of select="normalize-space($raw_heading)"/>
1751
    </z:index>
1752
  </xslo:template>
1753
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
1754
    <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w">
1755
      <xslo:variable name="raw_heading">
1756
        <xslo:for-each select="marc:subfield">
1757
          <xslo:if test="position() &gt; 1">
1758
            <xslo:value-of select="substring(' ', 1, 1)"/>
1759
          </xslo:if>
1760
          <xslo:value-of select="."/>
1761
        </xslo:for-each>
1762
      </xslo:variable>
1763
      <xslo:value-of select="normalize-space($raw_heading)"/>
1764
    </z:index>
1765
  </xslo:template>
1766
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
1767
    <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w">
1768
      <xslo:variable name="raw_heading">
1769
        <xslo:for-each select="marc:subfield">
1770
          <xslo:if test="position() &gt; 1">
1771
            <xslo:value-of select="substring(' ', 1, 1)"/>
1772
          </xslo:if>
1773
          <xslo:value-of select="."/>
1774
        </xslo:for-each>
1775
      </xslo:variable>
1776
      <xslo:value-of select="normalize-space($raw_heading)"/>
1777
    </z:index>
1778
  </xslo:template>
1779
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
1780
    <z:index name="Title:w Title-series:w">
1781
      <xslo:variable name="raw_heading">
1782
        <xslo:for-each select="marc:subfield">
1783
          <xslo:if test="position() &gt; 1">
1784
            <xslo:value-of select="substring(' ', 1, 1)"/>
1785
          </xslo:if>
1786
          <xslo:value-of select="."/>
1787
        </xslo:for-each>
1788
      </xslo:variable>
1789
      <xslo:value-of select="normalize-space($raw_heading)"/>
1790
    </z:index>
1791
  </xslo:template>
1792
  <xslo:template mode="index_facets" match="marc:datafield[@tag='100']">
1793
    <xslo:if test="not(@ind1='z')">
1794
      <z:index name="au:0">
1795
        <xslo:value-of select="marc:subfield[@code='a']"/>
1796
      </z:index>
1797
    </xslo:if>
1798
  </xslo:template>
1799
  <xslo:template mode="index_facets" match="marc:datafield[@tag='110']">
1800
    <xslo:if test="not(@ind1='z')">
1801
      <z:index name="au:0">
1802
        <xslo:value-of select="marc:subfield[@code='a']"/>
1803
      </z:index>
1804
    </xslo:if>
1805
  </xslo:template>
1806
  <xslo:template mode="index_facets" match="marc:datafield[@tag='440']">
1807
    <xslo:if test="not(@ind1='z')">
1808
      <z:index name="se:0">
1809
        <xslo:value-of select="marc:subfield[@code='a']"/>
1810
      </z:index>
1811
    </xslo:if>
1812
  </xslo:template>
1813
  <xslo:template mode="index_facets" match="marc:datafield[@tag='490']">
1814
    <xslo:if test="not(@ind1='z')">
1815
      <z:index name="&gt;se:0">
1816
        <xslo:value-of select="marc:subfield[@code='a']"/>
1817
      </z:index>
1818
    </xslo:if>
1819
  </xslo:template>
1820
  <xslo:template mode="index_facets" match="marc:datafield[@tag='630']">
1821
    <xslo:if test="not(@ind1='z')">
1822
      <z:index name="su-ut:0">
1823
        <xslo:value-of select="marc:subfield[@code='a']"/>
1824
      </z:index>
1825
    </xslo:if>
1826
  </xslo:template>
1827
  <xslo:template mode="index_facets" match="marc:datafield[@tag='650']">
1828
    <xslo:if test="not(@ind1='z')">
1829
      <z:index name="su-to:0">
1830
        <xslo:value-of select="marc:subfield[@code='a']"/>
1831
      </z:index>
1832
    </xslo:if>
1833
  </xslo:template>
1834
  <xslo:template mode="index_facets" match="marc:datafield[@tag='651']">
1835
    <xslo:if test="not(@ind1='z')">
1836
      <z:index name="su-geo:0">
1837
        <xslo:value-of select="marc:subfield[@code='a']"/>
1838
      </z:index>
1839
    </xslo:if>
1840
  </xslo:template>
1841
  <xslo:template mode="index_facets" match="marc:datafield[@tag='700']">
1842
    <xslo:if test="not(@ind1='z')">
1843
      <z:index name="au:0">
1844
        <xslo:value-of select="marc:subfield[@code='a']"/>
1845
      </z:index>
1846
    </xslo:if>
1847
  </xslo:template>
1848
  <xslo:template mode="index_facets" match="marc:datafield[@tag='942']">
1849
    <xslo:if test="not(@ind1='z')">
1850
      <z:index name="itype:0">
1851
        <xslo:value-of select="marc:subfield[@code='c']"/>
1852
      </z:index>
1853
    </xslo:if>
1854
  </xslo:template>
1855
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
1856
    <xslo:if test="not(@ind1='z')">
1857
      <z:index name="homebranch:0">
1858
        <xslo:value-of select="marc:subfield[@code='a']"/>
1859
      </z:index>
1860
      <z:index name="holdingbranch:0">
1861
        <xslo:value-of select="marc:subfield[@code='b']"/>
1862
      </z:index>
1863
      <z:index name="location:0">
1864
        <xslo:value-of select="marc:subfield[@code='c']"/>
1865
      </z:index>
1866
      <z:index name="itype:0">
1867
        <xslo:value-of select="marc:subfield[@code='y']"/>
1868
      </z:index>
1869
      <z:index name="ccode:0">
1870
        <xslo:value-of select="marc:subfield[@code='8']"/>
1871
      </z:index>
1872
    </xslo:if>
1873
  </xslo:template>
1874
  <xslo:template mode="index_all" match="text()">
1875
    <z:index name="Any:w Any:p">
1876
      <xslo:value-of select="."/>
1877
    </z:index>
1878
  </xslo:template>
1879
  <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
1880
    <xslo:variable name="chop">
1881
      <xslo:choose>
1882
        <xslo:when test="not(number(@ind2))">0</xslo:when>
1883
        <xslo:otherwise>
1884
          <xslo:value-of select="number(@ind2)"/>
1885
        </xslo:otherwise>
1886
      </xslo:choose>
1887
    </xslo:variable>
1888
    <z:index name="Title:s">
1889
      <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
1890
    </z:index>
1891
  </xslo:template>
1892
  <xslo:template name="chopPunctuation">
1893
    <xslo:param name="chopString"/>
1894
    <xslo:variable name="length" select="string-length($chopString)"/>
1895
    <xslo:choose>
1896
      <xslo:when test="$length=0"/>
1897
      <xslo:when test="contains('-,.:=;!%/', substring($chopString,$length,1))">
1898
        <xslo:call-template name="chopPunctuation">
1899
          <xslo:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
1900
        </xslo:call-template>
1901
      </xslo:when>
1902
      <xslo:when test="not($chopString)"/>
1903
      <xslo:otherwise>
1904
        <xslo:value-of select="$chopString"/>
1905
      </xslo:otherwise>
1906
    </xslo:choose>
1907
    <xslo:text/>
1908
  </xslo:template>
1909
</xslo:stylesheet>
(-)a/etc/zebradb/marc_defs/normarc/biblios/preprocess_marcxml.xsl (-24 lines)
Lines 1-23 Link Here
1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:marc="http://www.loc.gov/MARC21/slim"
2
 version="1.0">
3
<xsl:output indent="yes"
4
      method="xml"
5
      version="1.0"
6
      encoding="UTF-8"/>
7
8
 <xsl:template name="identity" match="node()|@*">
9
   <xsl:copy>
10
     <xsl:apply-templates select="@*|node()"/>
11
   </xsl:copy>
12
 </xsl:template>
13
14
 <xsl:template match="marc:datafield[@tag=880]">
15
    <xsl:element name="datafield" namespace="http://www.loc.gov/MARC21/slim">
16
        <xsl:attribute name="tag"><xsl:value-of select="substring(marc:subfield[@code=6],1,3)"/></xsl:attribute>
17
        <xsl:attribute name="ind1"><xsl:value-of select="@ind1"/></xsl:attribute>
18
        <xsl:attribute name="ind2"><xsl:value-of select="@ind2"/></xsl:attribute>
19
        <xsl:apply-templates select="marc:subfield[@code != '6']"/>
20
    </xsl:element>
21
</xsl:template>
22
23
</xsl:stylesheet>
24
- 

Return to bug 31581