1 <?xml version=
"1.0" encoding=
"UTF-8"?>
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).
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_heading"/>
16 <xslo:template match=
"text()" mode=
"index_heading_conditional"/>
17 <xslo:template match=
"text()" mode=
"index_match_heading"/>
18 <xslo:template match=
"text()" mode=
"index_subject_thesaurus"/>
19 <xslo:template match=
"/">
20 <xslo:if test=
"marc:collection">
22 <xslo:apply-templates select=
"marc:collection/marc:record"/>
25 <xslo:if test=
"marc:record">
26 <xslo:apply-templates select=
"marc:record"/>
29 <xslo:template match=
"marc:record">
30 <xslo:variable name=
"idfield" select=
"normalize-space()"/>
31 <z:record type=
"update">
32 <xslo:attribute name=
"z:id">
33 <xslo:value-of select=
"$idfield"/>
35 <xslo:apply-templates/>
36 <xslo:apply-templates mode=
"index_subfields"/>
37 <xslo:apply-templates mode=
"index_data_field"/>
38 <xslo:apply-templates mode=
"index_heading"/>
39 <xslo:apply-templates mode=
"index_heading_conditional"/>
40 <xslo:apply-templates mode=
"index_match_heading"/>
41 <xslo:apply-templates mode=
"index_subject_thesaurus"/>
42 <xslo:apply-templates mode=
"index_all"/>
45 <xslo:template match=
"marc:leader">
46 <z:index name=
"llength:w">
47 <xslo:value-of select=
"substring(., 1, 5)"/>
49 <z:index name=
"rtype:w">
50 <xslo:value-of select=
"substring(., 7, 1)"/>
52 <z:index name=
"Bib-level:w">
53 <xslo:value-of select=
"substring(., 8, 1)"/>
56 <xslo:template match=
"marc:controlfield[@tag='001']">
57 <z:index name=
"Control-number:w">
58 <xslo:value-of select=
"."/>
61 <xslo:template match=
"marc:controlfield[@tag='007']">
62 <z:index name=
"Microform-generation:n">
63 <xslo:value-of select=
"substring(., 12, 1)"/>
65 <z:index name=
"Material-type:w">
66 <xslo:value-of select=
"."/>
68 <z:index name=
"ff7-00:w">
69 <xslo:value-of select=
"substring(., 1, 1)"/>
71 <z:index name=
"ff7-01:w">
72 <xslo:value-of select=
"substring(., 2, 1)"/>
74 <z:index name=
"ff7-02:w">
75 <xslo:value-of select=
"substring(., 3, 1)"/>
77 <z:index name=
"ff7-01-02:w">
78 <xslo:value-of select=
"substring(., 1, 2)"/>
81 <xslo:template match=
"marc:controlfield[@tag='008']">
82 <z:index name=
"date-entered-on-file:n">
83 <xslo:value-of select=
"substring(., 1, 5)"/>
85 <z:index name=
"date-entered-on-file:s">
86 <xslo:value-of select=
"substring(., 1, 5)"/>
88 <z:index name=
"pubdate:w">
89 <xslo:value-of select=
"substring(., 8, 4)"/>
91 <z:index name=
"pubdate:n">
92 <xslo:value-of select=
"substring(., 8, 4)"/>
94 <z:index name=
"pubdate:y">
95 <xslo:value-of select=
"substring(., 8, 4)"/>
97 <z:index name=
"pubdate:s">
98 <xslo:value-of select=
"substring(., 8, 4)"/>
100 <z:index name=
"pl:w">
101 <xslo:value-of select=
"substring(., 16, 3)"/>
103 <z:index name=
"ta:w">
104 <xslo:value-of select=
"substring(., 23, 1)"/>
106 <z:index name=
"ff8-23:w">
107 <xslo:value-of select=
"substring(., 24, 1)"/>
109 <z:index name=
"ff8-29:w">
110 <xslo:value-of select=
"substring(., 30, 1)"/>
112 <z:index name=
"lf:w">
113 <xslo:value-of select=
"substring(., 34, 1)"/>
115 <z:index name=
"bio:w">
116 <xslo:value-of select=
"substring(., 35, 1)"/>
118 <z:index name=
"ln:n">
119 <xslo:value-of select=
"substring(., 36, 3)"/>
121 <z:index name=
"ctype:w">
122 <xslo:value-of select=
"substring(., 25, 4)"/>
124 <z:index name=
"Record-source:w">
125 <xslo:value-of select=
"substring(., 40, 0)"/>
128 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='020']">
129 <xslo:for-each select=
"marc:subfield">
130 <xslo:if test=
"contains('a', @code)">
131 <z:index name=
"ISBN:w Identifier-standard:w">
132 <xslo:value-of select=
"."/>
137 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='022']">
138 <xslo:for-each select=
"marc:subfield">
139 <xslo:if test=
"contains('a', @code)">
140 <z:index name=
"ISSN:w ISBN:w">
141 <xslo:value-of select=
"."/>
146 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='100']">
147 <xslo:for-each select=
"marc:subfield">
148 <xslo:if test=
"contains('9', @code)">
149 <z:index name=
"Cross-Reference:w Koha-Auth-Number:w">
150 <xslo:value-of select=
"."/>
154 <xslo:for-each select=
"marc:subfield">
155 <xslo:if test=
"contains('a', @code)">
156 <z:index name=
"Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s">
157 <xslo:value-of select=
"."/>
162 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='110']">
163 <xslo:for-each select=
"marc:subfield">
164 <xslo:if test=
"contains('9', @code)">
165 <z:index name=
"Koha-Auth-Number:w">
166 <xslo:value-of select=
"."/>
171 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='111']">
172 <xslo:for-each select=
"marc:subfield">
173 <xslo:if test=
"contains('9', @code)">
174 <z:index name=
"Koha-Auth-Number:w">
175 <xslo:value-of select=
"."/>
180 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='130']">
181 <xslo:for-each select=
"marc:subfield">
182 <xslo:if test=
"contains('i', @code)">
183 <z:index name=
"Thematic-number:w">
184 <xslo:value-of select=
"."/>
188 <xslo:for-each select=
"marc:subfield">
189 <xslo:if test=
"contains('n', @code)">
190 <z:index name=
"Thematic-number:w">
191 <xslo:value-of select=
"."/>
195 <xslo:for-each select=
"marc:subfield">
196 <xslo:if test=
"contains('r', @code)">
197 <z:index name=
"Music-key:w">
198 <xslo:value-of select=
"."/>
202 <xslo:for-each select=
"marc:subfield">
203 <xslo:if test=
"contains('9', @code)">
204 <z:index name=
"Koha-Auth-Number:w">
205 <xslo:value-of select=
"."/>
210 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='240']">
211 <xslo:for-each select=
"marc:subfield">
212 <xslo:if test=
"contains('i', @code)">
213 <z:index name=
"Thematic-number:w">
214 <xslo:value-of select=
"."/>
218 <xslo:for-each select=
"marc:subfield">
219 <xslo:if test=
"contains('r', @code)">
220 <z:index name=
"Music-key:w">
221 <xslo:value-of select=
"."/>
225 <xslo:for-each select=
"marc:subfield">
226 <xslo:if test=
"contains('n', @code)">
227 <z:index name=
"Thematic-number:w">
228 <xslo:value-of select=
"."/>
233 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='245']">
234 <xslo:for-each select=
"marc:subfield">
235 <xslo:if test=
"contains('a', @code)">
236 <z:index name=
"Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
237 <xslo:value-of select=
"."/>
241 <xslo:for-each select=
"marc:subfield">
242 <xslo:if test=
"contains('c', @code)">
243 <z:index name=
"Author:w Author-in-order:w Author-in-order:p Author-in-order:s">
244 <xslo:value-of select=
"."/>
248 <xslo:for-each select=
"marc:subfield">
249 <xslo:if test=
"contains('9', @code)">
250 <z:index name=
"Cross-Reference:w Koha-Auth-Number:w">
251 <xslo:value-of select=
"."/>
256 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='260']">
257 <xslo:for-each select=
"marc:subfield">
258 <xslo:if test=
"contains('a', @code)">
259 <z:index name=
"pl:w pl:p">
260 <xslo:value-of select=
"."/>
264 <xslo:for-each select=
"marc:subfield">
265 <xslo:if test=
"contains('b', @code)">
266 <z:index name=
"Publisher:w Publisher:p">
267 <xslo:value-of select=
"."/>
271 <xslo:for-each select=
"marc:subfield">
272 <xslo:if test=
"contains('c', @code)">
273 <z:index name=
"copydate:w copydate:s">
274 <xslo:value-of select=
"."/>
279 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='440']">
280 <xslo:for-each select=
"marc:subfield">
281 <xslo:if test=
"contains('a', @code)">
282 <z:index name=
"Title-series:w Title-series:p">
283 <xslo:value-of select=
"."/>
287 <xslo:for-each select=
"marc:subfield">
288 <xslo:if test=
"contains('9', @code)">
289 <z:index name=
"Koha-Auth-Number:w">
290 <xslo:value-of select=
"."/>
295 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='490']">
296 <xslo:for-each select=
"marc:subfield">
297 <xslo:if test=
"contains('a', @code)">
298 <z:index name=
"Title-series:w Title-series:p">
299 <xslo:value-of select=
"."/>
303 <xslo:for-each select=
"marc:subfield">
304 <xslo:if test=
"contains('9', @code)">
305 <z:index name=
"Koha-Auth-Number:w">
306 <xslo:value-of select=
"."/>
311 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='600']">
312 <xslo:for-each select=
"marc:subfield">
313 <xslo:if test=
"contains('a', @code)">
314 <z:index name=
"Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
315 <xslo:value-of select=
"."/>
319 <xslo:for-each select=
"marc:subfield">
320 <xslo:if test=
"contains('t', @code)">
321 <z:index name=
"Name-and-title:w Title:w Subject:w Subject:p">
322 <xslo:value-of select=
"."/>
326 <xslo:for-each select=
"marc:subfield">
327 <xslo:if test=
"contains('9', @code)">
328 <z:index name=
"Koha-Auth-Number:w">
329 <xslo:value-of select=
"."/>
334 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='610']">
335 <xslo:for-each select=
"marc:subfield">
336 <xslo:if test=
"contains('a', @code)">
337 <z:index name=
"Name-and-title:w Subject:w Subject:p">
338 <xslo:value-of select=
"."/>
342 <xslo:for-each select=
"marc:subfield">
343 <xslo:if test=
"contains('t', @code)">
344 <z:index name=
"Name-and-title:w Title:w Subject:w Subject:p">
345 <xslo:value-of select=
"."/>
349 <xslo:for-each select=
"marc:subfield">
350 <xslo:if test=
"contains('9', @code)">
351 <z:index name=
"Koha-Auth-Number:w">
352 <xslo:value-of select=
"."/>
357 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='611']">
358 <xslo:for-each select=
"marc:subfield">
359 <xslo:if test=
"contains('a', @code)">
360 <z:index name=
"Name-and-title:w Subject:w Subject:p">
361 <xslo:value-of select=
"."/>
365 <xslo:for-each select=
"marc:subfield">
366 <xslo:if test=
"contains('t', @code)">
367 <z:index name=
"Name-and-title:w Title:w Subject:w Subject:p">
368 <xslo:value-of select=
"."/>
372 <xslo:for-each select=
"marc:subfield">
373 <xslo:if test=
"contains('9', @code)">
374 <z:index name=
"Koha-Auth-Number:w">
375 <xslo:value-of select=
"."/>
380 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='630']">
381 <xslo:for-each select=
"marc:subfield">
382 <xslo:if test=
"contains('i', @code)">
383 <z:index name=
"Thematic-number:w Subject:w Subject:p">
384 <xslo:value-of select=
"."/>
388 <xslo:for-each select=
"marc:subfield">
389 <xslo:if test=
"contains('n', @code)">
390 <z:index name=
"Thematic-number:w Subject:w Subject:p">
391 <xslo:value-of select=
"."/>
395 <xslo:for-each select=
"marc:subfield">
396 <xslo:if test=
"contains('r', @code)">
397 <z:index name=
"Music-key:w Subject:w Subject:p">
398 <xslo:value-of select=
"."/>
402 <xslo:for-each select=
"marc:subfield">
403 <xslo:if test=
"contains('9', @code)">
404 <z:index name=
"Koha-Auth-Number:w">
405 <xslo:value-of select=
"."/>
410 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='650']">
411 <xslo:for-each select=
"marc:subfield">
412 <xslo:if test=
"contains('9', @code)">
413 <z:index name=
"Koha-Auth-Number:w">
414 <xslo:value-of select=
"."/>
419 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='651']">
420 <xslo:for-each select=
"marc:subfield">
421 <xslo:if test=
"contains('9', @code)">
422 <z:index name=
"Koha-Auth-Number:w">
423 <xslo:value-of select=
"."/>
428 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='652']">
429 <xslo:for-each select=
"marc:subfield">
430 <xslo:if test=
"contains('9', @code)">
431 <z:index name=
"Koha-Auth-Number:w">
432 <xslo:value-of select=
"."/>
437 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='653']">
438 <xslo:for-each select=
"marc:subfield">
439 <xslo:if test=
"contains('9', @code)">
440 <z:index name=
"Koha-Auth-Number:w">
441 <xslo:value-of select=
"."/>
446 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='654']">
447 <xslo:for-each select=
"marc:subfield">
448 <xslo:if test=
"contains('9', @code)">
449 <z:index name=
"Koha-Auth-Number:w">
450 <xslo:value-of select=
"."/>
455 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='655']">
456 <xslo:for-each select=
"marc:subfield">
457 <xslo:if test=
"contains('9', @code)">
458 <z:index name=
"Koha-Auth-Number:w">
459 <xslo:value-of select=
"."/>
464 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='656']">
465 <xslo:for-each select=
"marc:subfield">
466 <xslo:if test=
"contains('9', @code)">
467 <z:index name=
"Koha-Auth-Number:w">
468 <xslo:value-of select=
"."/>
473 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='657']">
474 <xslo:for-each select=
"marc:subfield">
475 <xslo:if test=
"contains('9', @code)">
476 <z:index name=
"Koha-Auth-Number:w">
477 <xslo:value-of select=
"."/>
482 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='690']">
483 <xslo:for-each select=
"marc:subfield">
484 <xslo:if test=
"contains('9', @code)">
485 <z:index name=
"Koha-Auth-Number:w">
486 <xslo:value-of select=
"."/>
491 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='700']">
492 <xslo:for-each select=
"marc:subfield">
493 <xslo:if test=
"contains('9', @code)">
494 <z:index name=
"Cross-Reference:w Koha-Auth-Number:w">
495 <xslo:value-of select=
"."/>
499 <xslo:for-each select=
"marc:subfield">
500 <xslo:if test=
"contains('a', @code)">
501 <z:index name=
"Author:w Author:p">
502 <xslo:value-of select=
"."/>
506 <xslo:for-each select=
"marc:subfield">
507 <xslo:if test=
"contains('i', @code)">
508 <z:index name=
"Thematic-number:w">
509 <xslo:value-of select=
"."/>
513 <xslo:for-each select=
"marc:subfield">
514 <xslo:if test=
"contains('n', @code)">
515 <z:index name=
"Thematic-number:w">
516 <xslo:value-of select=
"."/>
520 <xslo:for-each select=
"marc:subfield">
521 <xslo:if test=
"contains('r', @code)">
522 <z:index name=
"Music-key:w">
523 <xslo:value-of select=
"."/>
527 <xslo:for-each select=
"marc:subfield">
528 <xslo:if test=
"contains('t', @code)">
529 <z:index name=
"Author-title:w Name-and-title:w Title:w Title-uniform:w">
530 <xslo:value-of select=
"."/>
535 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='710']">
536 <xslo:for-each select=
"marc:subfield">
537 <xslo:if test=
"contains('t', @code)">
538 <z:index name=
"Author-title:w Name-and-title:w Title:w Title-uniform:w">
539 <xslo:value-of select=
"."/>
543 <xslo:for-each select=
"marc:subfield">
544 <xslo:if test=
"contains('a', @code)">
545 <z:index name=
"Name-and-title:w">
546 <xslo:value-of select=
"."/>
550 <xslo:for-each select=
"marc:subfield">
551 <xslo:if test=
"contains('i', @code)">
552 <z:index name=
"Thematic-number:w">
553 <xslo:value-of select=
"."/>
557 <xslo:for-each select=
"marc:subfield">
558 <xslo:if test=
"contains('9', @code)">
559 <z:index name=
"Koha-Auth-Number:w">
560 <xslo:value-of select=
"."/>
565 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='711']">
566 <xslo:for-each select=
"marc:subfield">
567 <xslo:if test=
"contains('a', @code)">
568 <z:index name=
"Name-and-title:w">
569 <xslo:value-of select=
"."/>
573 <xslo:for-each select=
"marc:subfield">
574 <xslo:if test=
"contains('t', @code)">
575 <z:index name=
"Author-title:w Title:w Title-uniform:w">
576 <xslo:value-of select=
"."/>
580 <xslo:for-each select=
"marc:subfield">
581 <xslo:if test=
"contains('9', @code)">
582 <z:index name=
"Koha-Auth-Number:w">
583 <xslo:value-of select=
"."/>
588 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='730']">
589 <xslo:for-each select=
"marc:subfield">
590 <xslo:if test=
"contains('i', @code)">
591 <z:index name=
"Thematic-number:w">
592 <xslo:value-of select=
"."/>
596 <xslo:for-each select=
"marc:subfield">
597 <xslo:if test=
"contains('n', @code)">
598 <z:index name=
"Thematic-number:w">
599 <xslo:value-of select=
"."/>
603 <xslo:for-each select=
"marc:subfield">
604 <xslo:if test=
"contains('r', @code)">
605 <z:index name=
"Music-key:w">
606 <xslo:value-of select=
"."/>
610 <xslo:for-each select=
"marc:subfield">
611 <xslo:if test=
"contains('9', @code)">
612 <z:index name=
"Koha-Auth-Number:w">
613 <xslo:value-of select=
"."/>
618 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='773']">
619 <xslo:for-each select=
"marc:subfield">
620 <xslo:if test=
"contains('a', @code)">
621 <z:index name=
"Host-item:w">
622 <xslo:value-of select=
"."/>
626 <xslo:for-each select=
"marc:subfield">
627 <xslo:if test=
"contains('9', @code)">
628 <z:index name=
"Host-Item-Number:w">
629 <xslo:value-of select=
"."/>
633 <xslo:for-each select=
"marc:subfield">
634 <xslo:if test=
"contains('t', @code)">
635 <z:index name=
"Host-item:w">
636 <xslo:value-of select=
"."/>
640 <xslo:for-each select=
"marc:subfield">
641 <xslo:if test=
"contains('w', @code)">
642 <z:index name=
"Record-control-number:w">
643 <xslo:value-of select=
"."/>
648 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='780']">
649 <xslo:for-each select=
"marc:subfield">
650 <xslo:if test=
"contains('t', @code)">
651 <z:index name=
"Title:w">
652 <xslo:value-of select=
"."/>
657 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='800']">
658 <xslo:for-each select=
"marc:subfield">
659 <xslo:if test=
"contains('a', @code)">
660 <z:index name=
"Name-and-title:w">
661 <xslo:value-of select=
"."/>
665 <xslo:for-each select=
"marc:subfield">
666 <xslo:if test=
"contains('t', @code)">
667 <z:index name=
"Author-title:w Name-and-title:w Title:w Title-series:w">
668 <xslo:value-of select=
"."/>
672 <xslo:for-each select=
"marc:subfield">
673 <xslo:if test=
"contains('9', @code)">
674 <z:index name=
"Koha-Auth-Number:w">
675 <xslo:value-of select=
"."/>
680 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='810']">
681 <xslo:for-each select=
"marc:subfield">
682 <xslo:if test=
"contains('a', @code)">
683 <z:index name=
"Name-and-title:w">
684 <xslo:value-of select=
"."/>
688 <xslo:for-each select=
"marc:subfield">
689 <xslo:if test=
"contains('t', @code)">
690 <z:index name=
"Author-title:w Name-and-title:w Title:w Title-series:w">
691 <xslo:value-of select=
"."/>
695 <xslo:for-each select=
"marc:subfield">
696 <xslo:if test=
"contains('9', @code)">
697 <z:index name=
"Koha-Auth-Number:w">
698 <xslo:value-of select=
"."/>
703 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='811']">
704 <xslo:for-each select=
"marc:subfield">
705 <xslo:if test=
"contains('a', @code)">
706 <z:index name=
"Name-and-title:w">
707 <xslo:value-of select=
"."/>
711 <xslo:for-each select=
"marc:subfield">
712 <xslo:if test=
"contains('9', @code)">
713 <z:index name=
"Koha-Auth-Number:w">
714 <xslo:value-of select=
"."/>
718 <xslo:for-each select=
"marc:subfield">
719 <xslo:if test=
"contains('t', @code)">
720 <z:index name=
"Author-title:w Name-and-title:w Title:w Title-series:w">
721 <xslo:value-of select=
"."/>
726 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='830']">
727 <xslo:for-each select=
"marc:subfield">
728 <xslo:if test=
"contains('9', @code)">
729 <z:index name=
"Koha-Auth-Number:w">
730 <xslo:value-of select=
"."/>
735 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='999']">
736 <xslo:for-each select=
"marc:subfield">
737 <xslo:if test=
"contains('c', @code)">
738 <z:index name=
"Local-Number:n Local-Number:w Local-Number:s">
739 <xslo:value-of select=
"."/>
743 <xslo:for-each select=
"marc:subfield">
744 <xslo:if test=
"contains('d', @code)">
745 <z:index name=
"biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
746 <xslo:value-of select=
"."/>
751 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='942']">
752 <xslo:for-each select=
"marc:subfield">
753 <xslo:if test=
"contains('0', @code)">
754 <z:index name=
"totalissues:n totalissues:s">
755 <xslo:value-of select=
"."/>
759 <xslo:for-each select=
"marc:subfield">
760 <xslo:if test=
"contains('2', @code)">
761 <z:index name=
"cn-bib-source:w">
762 <xslo:value-of select=
"."/>
766 <xslo:for-each select=
"marc:subfield">
767 <xslo:if test=
"contains('6', @code)">
768 <z:index name=
"cn-bib-sort:n cn-bib-sort:s">
769 <xslo:value-of select=
"."/>
773 <xslo:for-each select=
"marc:subfield">
774 <xslo:if test=
"contains('c', @code)">
775 <z:index name=
"itemtype:w">
776 <xslo:value-of select=
"."/>
780 <xslo:for-each select=
"marc:subfield">
781 <xslo:if test=
"contains('n', @code)">
782 <z:index name=
"Suppress:w Suppress:n">
783 <xslo:value-of select=
"."/>
787 <xslo:for-each select=
"marc:subfield">
788 <xslo:if test=
"contains('h', @code)">
789 <z:index name=
"cn-class:w">
790 <xslo:value-of select=
"."/>
794 <xslo:for-each select=
"marc:subfield">
795 <xslo:if test=
"contains('i', @code)">
796 <z:index name=
"cn-item:w">
797 <xslo:value-of select=
"."/>
801 <xslo:for-each select=
"marc:subfield">
802 <xslo:if test=
"contains('k', @code)">
803 <z:index name=
"cn-prefix:w">
804 <xslo:value-of select=
"."/>
808 <xslo:for-each select=
"marc:subfield">
809 <xslo:if test=
"contains('m', @code)">
810 <z:index name=
"cn-suffix:w">
811 <xslo:value-of select=
"."/>
816 <xslo:template mode=
"index_subfields" match=
"marc:datafield[@tag='952']">
817 <xslo:for-each select=
"marc:subfield">
818 <xslo:if test=
"contains('0', @code)">
819 <z:index name=
"withdrawn:n withdrawn:w">
820 <xslo:value-of select=
"."/>
824 <xslo:for-each select=
"marc:subfield">
825 <xslo:if test=
"contains('1', @code)">
826 <z:index name=
"lost:w lost:n">
827 <xslo:value-of select=
"."/>
831 <xslo:for-each select=
"marc:subfield">
832 <xslo:if test=
"contains('2', @code)">
833 <z:index name=
"classification-source:w">
834 <xslo:value-of select=
"."/>
838 <xslo:for-each select=
"marc:subfield">
839 <xslo:if test=
"contains('3', @code)">
840 <z:index name=
"materials-specified:w">
841 <xslo:value-of select=
"."/>
845 <xslo:for-each select=
"marc:subfield">
846 <xslo:if test=
"contains('4', @code)">
847 <z:index name=
"damaged:n damaged:w">
848 <xslo:value-of select=
"."/>
852 <xslo:for-each select=
"marc:subfield">
853 <xslo:if test=
"contains('5', @code)">
854 <z:index name=
"restricted:n restricted:w">
855 <xslo:value-of select=
"."/>
859 <xslo:for-each select=
"marc:subfield">
860 <xslo:if test=
"contains('6', @code)">
861 <z:index name=
"cn-sort:n cn-sort:s">
862 <xslo:value-of select=
"."/>
866 <xslo:for-each select=
"marc:subfield">
867 <xslo:if test=
"contains('7', @code)">
868 <z:index name=
"notforloan:n notforloan:w">
869 <xslo:value-of select=
"."/>
873 <xslo:for-each select=
"marc:subfield">
874 <xslo:if test=
"contains('8', @code)">
875 <z:index name=
"ccode:w">
876 <xslo:value-of select=
"."/>
880 <xslo:for-each select=
"marc:subfield">
881 <xslo:if test=
"contains('9', @code)">
882 <z:index name=
"itemnumber:n itemnumber:s">
883 <xslo:value-of select=
"."/>
887 <xslo:for-each select=
"marc:subfield">
888 <xslo:if test=
"contains('a', @code)">
889 <z:index name=
"homebranch:w">
890 <xslo:value-of select=
"."/>
894 <xslo:for-each select=
"marc:subfield">
895 <xslo:if test=
"contains('b', @code)">
896 <z:index name=
"holdingbranch:w">
897 <xslo:value-of select=
"."/>
901 <xslo:for-each select=
"marc:subfield">
902 <xslo:if test=
"contains('c', @code)">
903 <z:index name=
"location:w">
904 <xslo:value-of select=
"."/>
908 <xslo:for-each select=
"marc:subfield">
909 <xslo:if test=
"contains('d', @code)">
910 <z:index name=
"Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
911 <xslo:value-of select=
"."/>
915 <xslo:for-each select=
"marc:subfield">
916 <xslo:if test=
"contains('e', @code)">
917 <z:index name=
"acqsource:w">
918 <xslo:value-of select=
"."/>
922 <xslo:for-each select=
"marc:subfield">
923 <xslo:if test=
"contains('f', @code)">
924 <z:index name=
"coded-location-qualifier:w">
925 <xslo:value-of select=
"."/>
929 <xslo:for-each select=
"marc:subfield">
930 <xslo:if test=
"contains('g', @code)">
931 <z:index name=
"price:w">
932 <xslo:value-of select=
"."/>
936 <xslo:for-each select=
"marc:subfield">
937 <xslo:if test=
"contains('j', @code)">
938 <z:index name=
"stack:n stack:w">
939 <xslo:value-of select=
"."/>
943 <xslo:for-each select=
"marc:subfield">
944 <xslo:if test=
"contains('l', @code)">
945 <z:index name=
"issues:n issues:w issues:s">
946 <xslo:value-of select=
"."/>
950 <xslo:for-each select=
"marc:subfield">
951 <xslo:if test=
"contains('m', @code)">
952 <z:index name=
"renewals:n renewals:w">
953 <xslo:value-of select=
"."/>
957 <xslo:for-each select=
"marc:subfield">
958 <xslo:if test=
"contains('n', @code)">
959 <z:index name=
"reserves:n reserves:w">
960 <xslo:value-of select=
"."/>
964 <xslo:for-each select=
"marc:subfield">
965 <xslo:if test=
"contains('o', @code)">
966 <z:index name=
"Local-classification:w Local-classification:p Local-classification:s">
967 <xslo:value-of select=
"."/>
971 <xslo:for-each select=
"marc:subfield">
972 <xslo:if test=
"contains('p', @code)">
973 <z:index name=
"barcode:w barcode:n">
974 <xslo:value-of select=
"."/>
978 <xslo:for-each select=
"marc:subfield">
979 <xslo:if test=
"contains('q', @code)">
980 <z:index name=
"onloan:n onloan:w">
981 <xslo:value-of select=
"."/>
985 <xslo:for-each select=
"marc:subfield">
986 <xslo:if test=
"contains('r', @code)">
987 <z:index name=
"datelastseen:w">
988 <xslo:value-of select=
"."/>
992 <xslo:for-each select=
"marc:subfield">
993 <xslo:if test=
"contains('s', @code)">
994 <z:index name=
"datelastborrowed:w">
995 <xslo:value-of select=
"."/>
999 <xslo:for-each select=
"marc:subfield">
1000 <xslo:if test=
"contains('t', @code)">
1001 <z:index name=
"copynumber:w">
1002 <xslo:value-of select=
"."/>
1006 <xslo:for-each select=
"marc:subfield">
1007 <xslo:if test=
"contains('u', @code)">
1008 <z:index name=
"uri:u">
1009 <xslo:value-of select=
"."/>
1013 <xslo:for-each select=
"marc:subfield">
1014 <xslo:if test=
"contains('v', @code)">
1015 <z:index name=
"replacementprice:w">
1016 <xslo:value-of select=
"."/>
1020 <xslo:for-each select=
"marc:subfield">
1021 <xslo:if test=
"contains('w', @code)">
1022 <z:index name=
"replacementpricedate:w">
1023 <xslo:value-of select=
"."/>
1027 <xslo:for-each select=
"marc:subfield">
1028 <xslo:if test=
"contains('y', @code)">
1029 <z:index name=
"itype:w">
1030 <xslo:value-of select=
"."/>
1035 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='010']">
1036 <z:index name=
"LC-card-number:w Identifier-standard:w">
1037 <xslo:variable name=
"raw_heading">
1038 <xslo:for-each select=
"marc:subfield">
1039 <xslo:if test=
"position() > 1">
1040 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1042 <xslo:value-of select=
"."/>
1045 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1048 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='015']">
1049 <z:index name=
"BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1050 <xslo:variable name=
"raw_heading">
1051 <xslo:for-each select=
"marc:subfield">
1052 <xslo:if test=
"position() > 1">
1053 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1055 <xslo:value-of select=
"."/>
1058 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1061 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='020']">
1062 <z:index name=
"ISBN:w Identifier-standard:w">
1063 <xslo:variable name=
"raw_heading">
1064 <xslo:for-each select=
"marc:subfield">
1065 <xslo:if test=
"position() > 1">
1066 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1068 <xslo:value-of select=
"."/>
1071 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1074 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='022']">
1075 <z:index name=
"ISSN:w Identifier-standard:w">
1076 <xslo:variable name=
"raw_heading">
1077 <xslo:for-each select=
"marc:subfield">
1078 <xslo:if test=
"position() > 1">
1079 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1081 <xslo:value-of select=
"."/>
1084 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1087 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='024']">
1088 <z:index name=
"Identifier-standard:w">
1089 <xslo:variable name=
"raw_heading">
1090 <xslo:for-each select=
"marc:subfield">
1091 <xslo:if test=
"position() > 1">
1092 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1094 <xslo:value-of select=
"."/>
1097 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1100 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='025']">
1101 <z:index name=
"Identifier-standard:w">
1102 <xslo:variable name=
"raw_heading">
1103 <xslo:for-each select=
"marc:subfield">
1104 <xslo:if test=
"position() > 1">
1105 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1107 <xslo:value-of select=
"."/>
1110 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1113 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='027']">
1114 <z:index name=
"Report-number:w Identifier-standard:w">
1115 <xslo:variable name=
"raw_heading">
1116 <xslo:for-each select=
"marc:subfield">
1117 <xslo:if test=
"position() > 1">
1118 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1120 <xslo:value-of select=
"."/>
1123 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1126 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='028']">
1127 <z:index name=
"Number-music-publisher:w Identifier-standard:w">
1128 <xslo:variable name=
"raw_heading">
1129 <xslo:for-each select=
"marc:subfield">
1130 <xslo:if test=
"position() > 1">
1131 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1133 <xslo:value-of select=
"."/>
1136 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1139 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='030']">
1140 <z:index name=
"CODEN:w Identifier-standard:w">
1141 <xslo:variable name=
"raw_heading">
1142 <xslo:for-each select=
"marc:subfield">
1143 <xslo:if test=
"position() > 1">
1144 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1146 <xslo:value-of select=
"."/>
1149 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1152 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='040']">
1153 <z:index name=
"Code-institution:w Record-source:w">
1154 <xslo:variable name=
"raw_heading">
1155 <xslo:for-each select=
"marc:subfield">
1156 <xslo:if test=
"position() > 1">
1157 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1159 <xslo:value-of select=
"."/>
1162 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1165 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='041']">
1166 <z:index name=
"ln:w">
1167 <xslo:variable name=
"raw_heading">
1168 <xslo:for-each select=
"marc:subfield">
1169 <xslo:if test=
"position() > 1">
1170 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1172 <xslo:value-of select=
"."/>
1175 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1178 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='043']">
1179 <z:index name=
"Code-geographic:w">
1180 <xslo:variable name=
"raw_heading">
1181 <xslo:for-each select=
"marc:subfield">
1182 <xslo:if test=
"position() > 1">
1183 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1185 <xslo:value-of select=
"."/>
1188 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1191 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='060']">
1192 <z:index name=
"NLM-call-number:w">
1193 <xslo:variable name=
"raw_heading">
1194 <xslo:for-each select=
"marc:subfield">
1195 <xslo:if test=
"position() > 1">
1196 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1198 <xslo:value-of select=
"."/>
1201 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1204 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='080']">
1205 <z:index name=
"UDC-classification:w">
1206 <xslo:variable name=
"raw_heading">
1207 <xslo:for-each select=
"marc:subfield">
1208 <xslo:if test=
"position() > 1">
1209 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1211 <xslo:value-of select=
"."/>
1214 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1217 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='082']">
1218 <z:index name=
"Dewey-classification:w Dewey-classification:s">
1219 <xslo:variable name=
"raw_heading">
1220 <xslo:for-each select=
"marc:subfield">
1221 <xslo:if test=
"position() > 1">
1222 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1224 <xslo:value-of select=
"."/>
1227 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1230 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='100']">
1231 <z:index name=
"Author:w Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w">
1232 <xslo:variable name=
"raw_heading">
1233 <xslo:for-each select=
"marc:subfield">
1234 <xslo:if test=
"position() > 1">
1235 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1237 <xslo:value-of select=
"."/>
1240 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1243 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='110']">
1244 <z:index name=
"Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w">
1245 <xslo:variable name=
"raw_heading">
1246 <xslo:for-each select=
"marc:subfield">
1247 <xslo:if test=
"position() > 1">
1248 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1250 <xslo:value-of select=
"."/>
1253 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1256 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='111']">
1257 <z:index name=
"Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w">
1258 <xslo:variable name=
"raw_heading">
1259 <xslo:for-each select=
"marc:subfield">
1260 <xslo:if test=
"position() > 1">
1261 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1263 <xslo:value-of select=
"."/>
1266 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1269 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='130']">
1270 <z:index name=
"Title:w Title-uniform:w">
1271 <xslo:variable name=
"raw_heading">
1272 <xslo:for-each select=
"marc:subfield">
1273 <xslo:if test=
"position() > 1">
1274 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1276 <xslo:value-of select=
"."/>
1279 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1282 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='210']">
1283 <z:index name=
"Title:w Title-abbreviated:w">
1284 <xslo:variable name=
"raw_heading">
1285 <xslo:for-each select=
"marc:subfield">
1286 <xslo:if test=
"position() > 1">
1287 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1289 <xslo:value-of select=
"."/>
1292 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1295 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='222']">
1296 <z:index name=
"Title:w Title-key:w">
1297 <xslo:variable name=
"raw_heading">
1298 <xslo:for-each select=
"marc:subfield">
1299 <xslo:if test=
"position() > 1">
1300 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1302 <xslo:value-of select=
"."/>
1305 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1308 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='240']">
1309 <z:index name=
"Title:w Title:p Title-uniform:w">
1310 <xslo:variable name=
"raw_heading">
1311 <xslo:for-each select=
"marc:subfield">
1312 <xslo:if test=
"position() > 1">
1313 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1315 <xslo:value-of select=
"."/>
1318 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1321 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='245']">
1322 <z:index name=
"Title:w Title:p">
1323 <xslo:variable name=
"raw_heading">
1324 <xslo:for-each select=
"marc:subfield">
1325 <xslo:if test=
"position() > 1">
1326 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1328 <xslo:value-of select=
"."/>
1331 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1334 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='246']">
1335 <z:index name=
"Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
1336 <xslo:variable name=
"raw_heading">
1337 <xslo:for-each select=
"marc:subfield">
1338 <xslo:if test=
"position() > 1">
1339 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1341 <xslo:value-of select=
"."/>
1344 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1347 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='260']">
1348 <z:index name=
"pl:w">
1349 <xslo:variable name=
"raw_heading">
1350 <xslo:for-each select=
"marc:subfield">
1351 <xslo:if test=
"position() > 1">
1352 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1354 <xslo:value-of select=
"."/>
1357 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1360 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='300']">
1361 <z:index name=
"Extent:w Extent:p">
1362 <xslo:variable name=
"raw_heading">
1363 <xslo:for-each select=
"marc:subfield">
1364 <xslo:if test=
"position() > 1">
1365 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1367 <xslo:value-of select=
"."/>
1370 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1373 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='440']">
1374 <z:index name=
"Title-series:w Title-series:p Title:w Title-series:w">
1375 <xslo:variable name=
"raw_heading">
1376 <xslo:for-each select=
"marc:subfield">
1377 <xslo:if test=
"position() > 1">
1378 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1380 <xslo:value-of select=
"."/>
1383 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1386 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='490']">
1387 <z:index name=
"Title:w Title-series:w">
1388 <xslo:variable name=
"raw_heading">
1389 <xslo:for-each select=
"marc:subfield">
1390 <xslo:if test=
"position() > 1">
1391 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1393 <xslo:value-of select=
"."/>
1396 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1399 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='502']">
1400 <z:index name=
"Material-type:w">
1401 <xslo:variable name=
"raw_heading">
1402 <xslo:for-each select=
"marc:subfield">
1403 <xslo:if test=
"position() > 1">
1404 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1406 <xslo:value-of select=
"."/>
1409 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1412 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='505']">
1413 <z:index name=
"Note:w Note:p">
1414 <xslo:variable name=
"raw_heading">
1415 <xslo:for-each select=
"marc:subfield">
1416 <xslo:if test=
"position() > 1">
1417 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1419 <xslo:value-of select=
"."/>
1422 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1425 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='510']">
1426 <z:index name=
"Indexed-by:w">
1427 <xslo:variable name=
"raw_heading">
1428 <xslo:for-each select=
"marc:subfield">
1429 <xslo:if test=
"position() > 1">
1430 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1432 <xslo:value-of select=
"."/>
1435 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1438 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='520']">
1439 <z:index name=
"Abstract:w Abstract:p">
1440 <xslo:variable name=
"raw_heading">
1441 <xslo:for-each select=
"marc:subfield">
1442 <xslo:if test=
"position() > 1">
1443 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1445 <xslo:value-of select=
"."/>
1448 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1451 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='600']">
1452 <z:index name=
"Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
1453 <xslo:variable name=
"raw_heading">
1454 <xslo:for-each select=
"marc:subfield">
1455 <xslo:if test=
"position() > 1">
1456 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1458 <xslo:value-of select=
"."/>
1461 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1464 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='610']">
1465 <z:index name=
"Name:w Subject:w Corporate-name:w Subject:w Subject:p">
1466 <xslo:variable name=
"raw_heading">
1467 <xslo:for-each select=
"marc:subfield">
1468 <xslo:if test=
"position() > 1">
1469 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1471 <xslo:value-of select=
"."/>
1474 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1477 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='611']">
1478 <z:index name=
"Conference-name:w Subject:w Subject:p">
1479 <xslo:variable name=
"raw_heading">
1480 <xslo:for-each select=
"marc:subfield">
1481 <xslo:if test=
"position() > 1">
1482 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1484 <xslo:value-of select=
"."/>
1487 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1489 <z:index name=
"Name:w Subject:w Subject:p">
1490 <xslo:variable name=
"raw_heading">
1491 <xslo:for-each select=
"marc:subfield">
1492 <xslo:if test=
"position() > 1">
1493 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1495 <xslo:value-of select=
"."/>
1498 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1501 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='630']">
1502 <z:index name=
"Subject:w Subject:p">
1503 <xslo:variable name=
"raw_heading">
1504 <xslo:for-each select=
"marc:subfield">
1505 <xslo:if test=
"position() > 1">
1506 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1508 <xslo:value-of select=
"."/>
1511 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1514 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='650']">
1515 <z:index name=
"Subject:w Subject:p">
1516 <xslo:variable name=
"raw_heading">
1517 <xslo:for-each select=
"marc:subfield">
1518 <xslo:if test=
"position() > 1">
1519 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1521 <xslo:value-of select=
"."/>
1524 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1527 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='651']">
1528 <z:index name=
"Name-geographic:w Subject:w Subject:p">
1529 <xslo:variable name=
"raw_heading">
1530 <xslo:for-each select=
"marc:subfield">
1531 <xslo:if test=
"position() > 1">
1532 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1534 <xslo:value-of select=
"."/>
1537 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1540 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='653']">
1541 <z:index name=
"Subject:w Subject:p">
1542 <xslo:variable name=
"raw_heading">
1543 <xslo:for-each select=
"marc:subfield">
1544 <xslo:if test=
"position() > 1">
1545 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1547 <xslo:value-of select=
"."/>
1550 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1553 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='654']">
1554 <z:index name=
"Subject:w Subject:p">
1555 <xslo:variable name=
"raw_heading">
1556 <xslo:for-each select=
"marc:subfield">
1557 <xslo:if test=
"position() > 1">
1558 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1560 <xslo:value-of select=
"."/>
1563 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1566 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='655']">
1567 <z:index name=
"Subject:w Subject:p">
1568 <xslo:variable name=
"raw_heading">
1569 <xslo:for-each select=
"marc:subfield">
1570 <xslo:if test=
"position() > 1">
1571 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1573 <xslo:value-of select=
"."/>
1576 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1579 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='656']">
1580 <z:index name=
"Subject:w Subject:p">
1581 <xslo:variable name=
"raw_heading">
1582 <xslo:for-each select=
"marc:subfield">
1583 <xslo:if test=
"position() > 1">
1584 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1586 <xslo:value-of select=
"."/>
1589 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1592 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='657']">
1593 <z:index name=
"Subject:w Subject:p">
1594 <xslo:variable name=
"raw_heading">
1595 <xslo:for-each select=
"marc:subfield">
1596 <xslo:if test=
"position() > 1">
1597 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1599 <xslo:value-of select=
"."/>
1602 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1605 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='690']">
1606 <z:index name=
"Subject:w Subject:p">
1607 <xslo:variable name=
"raw_heading">
1608 <xslo:for-each select=
"marc:subfield">
1609 <xslo:if test=
"position() > 1">
1610 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1612 <xslo:value-of select=
"."/>
1615 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1618 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='700']">
1619 <z:index name=
"Author:w Author-name-corporate:w Author-name-personal:w Name:w Editor:w Personal-name:w">
1620 <xslo:variable name=
"raw_heading">
1621 <xslo:for-each select=
"marc:subfield">
1622 <xslo:if test=
"position() > 1">
1623 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1625 <xslo:value-of select=
"."/>
1628 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1631 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='710']">
1632 <z:index name=
"Author:w Corporate-name:w">
1633 <xslo:variable name=
"raw_heading">
1634 <xslo:for-each select=
"marc:subfield">
1635 <xslo:if test=
"position() > 1">
1636 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1638 <xslo:value-of select=
"."/>
1641 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1643 <z:index name=
"Author:w Name:w">
1644 <xslo:variable name=
"raw_heading">
1645 <xslo:for-each select=
"marc:subfield">
1646 <xslo:if test=
"position() > 1">
1647 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1649 <xslo:value-of select=
"."/>
1652 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1655 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='711']">
1656 <z:index name=
"Author-name-corporate:w Name:w Conference-name:w">
1657 <xslo:variable name=
"raw_heading">
1658 <xslo:for-each select=
"marc:subfield">
1659 <xslo:if test=
"position() > 1">
1660 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1662 <xslo:value-of select=
"."/>
1665 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1668 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='730']">
1669 <z:index name=
"Title:w Title-uniform:w">
1670 <xslo:variable name=
"raw_heading">
1671 <xslo:for-each select=
"marc:subfield">
1672 <xslo:if test=
"position() > 1">
1673 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1675 <xslo:value-of select=
"."/>
1678 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1681 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='740']">
1682 <z:index name=
"Title:w Title-other-variant:w">
1683 <xslo:variable name=
"raw_heading">
1684 <xslo:for-each select=
"marc:subfield">
1685 <xslo:if test=
"position() > 1">
1686 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1688 <xslo:value-of select=
"."/>
1691 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1694 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='780']">
1695 <z:index name=
"Title:w Title-former:w Related-periodical:w">
1696 <xslo:variable name=
"raw_heading">
1697 <xslo:for-each select=
"marc:subfield">
1698 <xslo:if test=
"position() > 1">
1699 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1701 <xslo:value-of select=
"."/>
1704 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1707 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='785']">
1708 <z:index name=
"Related-periodical:w">
1709 <xslo:variable name=
"raw_heading">
1710 <xslo:for-each select=
"marc:subfield">
1711 <xslo:if test=
"position() > 1">
1712 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1714 <xslo:value-of select=
"."/>
1717 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1720 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='800']">
1721 <z:index name=
"Author:w Author-name-personal:w Name:w Personal-name:w">
1722 <xslo:variable name=
"raw_heading">
1723 <xslo:for-each select=
"marc:subfield">
1724 <xslo:if test=
"position() > 1">
1725 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1727 <xslo:value-of select=
"."/>
1730 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1733 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='810']">
1734 <z:index name=
"Author:w Corporate-name:w Author-name-corporate:w Name:w">
1735 <xslo:variable name=
"raw_heading">
1736 <xslo:for-each select=
"marc:subfield">
1737 <xslo:if test=
"position() > 1">
1738 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1740 <xslo:value-of select=
"."/>
1743 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1746 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='811']">
1747 <z:index name=
"Author:w Author-name-corporate:w Name:w Conference-name:w">
1748 <xslo:variable name=
"raw_heading">
1749 <xslo:for-each select=
"marc:subfield">
1750 <xslo:if test=
"position() > 1">
1751 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1753 <xslo:value-of select=
"."/>
1756 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1759 <xslo:template mode=
"index_data_field" match=
"marc:datafield[@tag='830']">
1760 <z:index name=
"Title:w Title-series:w">
1761 <xslo:variable name=
"raw_heading">
1762 <xslo:for-each select=
"marc:subfield">
1763 <xslo:if test=
"position() > 1">
1764 <xslo:value-of select=
"substring(' ', 1, 1)"/>
1766 <xslo:value-of select=
"."/>
1769 <xslo:value-of select=
"normalize-space($raw_heading)"/>
1772 <xslo:template mode=
"index_all" match=
"text()">
1773 <z:index name=
"Any:w Any:p">
1774 <xslo:value-of select=
"."/>
1777 <xslo:template name=
"chopPunctuation">
1778 <xslo:param name=
"chopString"/>
1779 <xslo:variable name=
"length" select=
"string-length($chopString)"/>
1781 <xslo:when test=
"$length=0"/>
1782 <xslo:when test=
"contains('-,.:=;!%/', substring($chopString,$length,1))">
1783 <xslo:call-template name=
"chopPunctuation">
1784 <xslo:with-param name=
"chopString" select=
"substring($chopString,1,$length - 1)"/>
1785 </xslo:call-template>
1787 <xslo:when test=
"not($chopString)"/>
1789 <xslo:value-of select=
"$chopString"/>