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_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">
24 <xslo:apply-templates select="marc:collection/marc:record"/>
27 <xslo:if test="marc:record">
28 <xslo:apply-templates select="marc:record"/>
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"/>
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"/>
49 <xslo:template match="marc:leader">
50 <z:index name="llength:w">
51 <xslo:value-of select="substring(., 1, 5)"/>
53 <z:index name="rtype:w">
54 <xslo:value-of select="substring(., 7, 1)"/>
56 <z:index name="Bib-level:w">
57 <xslo:value-of select="substring(., 8, 1)"/>
60 <xslo:template match="marc:controlfield[@tag='001']">
61 <z:index name="Control-number:w">
62 <xslo:value-of select="."/>
65 <xslo:template match="marc:controlfield[@tag='005']">
66 <z:index name="Date/time-last-modified:w">
67 <xslo:value-of select="."/>
70 <xslo:template match="marc:controlfield[@tag='007']">
71 <z:index name="Microform-generation:n">
72 <xslo:value-of select="substring(., 12, 1)"/>
74 <z:index name="Material-type:w">
75 <xslo:value-of select="."/>
77 <z:index name="ff7-00:w">
78 <xslo:value-of select="substring(., 1, 1)"/>
80 <z:index name="ff7-01:w">
81 <xslo:value-of select="substring(., 2, 1)"/>
83 <z:index name="ff7-02:w">
84 <xslo:value-of select="substring(., 3, 1)"/>
86 <z:index name="ff7-01-02:w">
87 <xslo:value-of select="substring(., 1, 2)"/>
90 <xslo:template match="marc:controlfield[@tag='008']">
91 <z:index name="date-entered-on-file:n">
92 <xslo:value-of select="substring(., 1, 5)"/>
94 <z:index name="date-entered-on-file:s">
95 <xslo:value-of select="substring(., 1, 5)"/>
97 <z:index name="pubdate:w">
98 <xslo:value-of select="substring(., 8, 4)"/>
100 <z:index name="pubdate:n">
101 <xslo:value-of select="substring(., 8, 4)"/>
103 <z:index name="pubdate:y">
104 <xslo:value-of select="substring(., 8, 4)"/>
106 <z:index name="pubdate:s">
107 <xslo:value-of select="substring(., 8, 4)"/>
109 <z:index name="pl:w">
110 <xslo:value-of select="substring(., 16, 3)"/>
112 <z:index name="ta:w">
113 <xslo:value-of select="substring(., 23, 1)"/>
115 <z:index name="ff8-23:w">
116 <xslo:value-of select="substring(., 24, 1)"/>
118 <z:index name="ff8-29:w">
119 <xslo:value-of select="substring(., 30, 1)"/>
121 <z:index name="lf:w">
122 <xslo:value-of select="substring(., 34, 1)"/>
124 <z:index name="bio:w">
125 <xslo:value-of select="substring(., 35, 1)"/>
127 <z:index name="ln:w">
128 <xslo:value-of select="substring(., 36, 3)"/>
130 <z:index name="ctype:w">
131 <xslo:value-of select="substring(., 25, 4)"/>
133 <z:index name="Record-source:w">
134 <xslo:value-of select="substring(., 40, 0)"/>
137 <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
138 <xslo:for-each select="marc:subfield">
139 <xslo:if test="contains('a', @code)">
140 <z:index name="ISBN:w Identifier-standard:w">
141 <xslo:value-of select="."/>
145 <xslo:for-each select="marc:subfield">
146 <xslo:if test="contains('z', @code)">
147 <z:index name="ISBN:w Identifier-standard:w">
148 <xslo:value-of select="."/>
153 <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
154 <xslo:for-each select="marc:subfield">
155 <xslo:if test="contains('a', @code)">
156 <z:index name="ISSN:w Identifier-standard:w">
157 <xslo:value-of select="."/>
161 <xslo:for-each select="marc:subfield">
162 <xslo:if test="contains('y', @code)">
163 <z:index name="ISSN:w Identifier-standard:w">
164 <xslo:value-of select="."/>
168 <xslo:for-each select="marc:subfield">
169 <xslo:if test="contains('z', @code)">
170 <z:index name="ISSN:w Identifier-standard:w">
171 <xslo:value-of select="."/>
176 <xslo:template mode="index_subfields" match="marc:datafield[@tag='024']">
177 <xslo:for-each select="marc:subfield">
178 <xslo:if test="contains('a', @code)">
179 <z:index name="Identifier-other:w Identifier-other:p">
180 <xslo:value-of select="."/>
184 <xslo:if test="marc:subfield[@code='2' and text()='uri']">
185 <xslo:for-each select="marc:subfield">
186 <xslo:if test="contains('a', @code)">
187 <z:index name="Identifier-other:u">
188 <xslo:value-of select="."/>
194 <xslo:template mode="index_subfields" match="marc:datafield[@tag='041']">
195 <xslo:for-each select="marc:subfield">
196 <xslo:if test="contains('a', @code)">
197 <z:index name="ln:w ln-audio:w">
198 <xslo:value-of select="."/>
202 <xslo:for-each select="marc:subfield">
203 <xslo:if test="contains('d', @code)">
204 <z:index name="ln:w">
205 <xslo:value-of select="."/>
209 <xslo:for-each select="marc:subfield">
210 <xslo:if test="contains('e', @code)">
211 <z:index name="ln:w">
212 <xslo:value-of select="."/>
216 <xslo:for-each select="marc:subfield">
217 <xslo:if test="contains('h', @code)">
218 <z:index name="language-original:w">
219 <xslo:value-of select="."/>
223 <xslo:for-each select="marc:subfield">
224 <xslo:if test="contains('j', @code)">
225 <z:index name="ln:w ln-subtitle:w">
226 <xslo:value-of select="."/>
231 <xslo:template mode="index_subfields" match="marc:datafield[@tag='050']">
232 <xslo:for-each select="marc:subfield">
233 <xslo:if test="contains('b', @code)">
234 <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s">
235 <xslo:value-of select="."/>
240 <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
241 <xslo:for-each select="marc:subfield">
242 <xslo:if test="contains('9', @code)">
243 <z:index name="Cross-Reference:w Koha-Auth-Number:w">
244 <xslo:value-of select="."/>
248 <xslo:for-each select="marc:subfield">
249 <xslo:if test="contains('a', @code)">
250 <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s">
251 <xslo:value-of select="."/>
256 <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
257 <xslo:for-each select="marc:subfield">
258 <xslo:if test="contains('9', @code)">
259 <z:index name="Koha-Auth-Number:w">
260 <xslo:value-of select="."/>
265 <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
266 <xslo:for-each select="marc:subfield">
267 <xslo:if test="contains('9', @code)">
268 <z:index name="Koha-Auth-Number:w">
269 <xslo:value-of select="."/>
274 <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
275 <xslo:for-each select="marc:subfield">
276 <xslo:if test="contains('n', @code)">
277 <z:index name="Thematic-number:w">
278 <xslo:value-of select="."/>
282 <xslo:for-each select="marc:subfield">
283 <xslo:if test="contains('r', @code)">
284 <z:index name="Music-key:w">
285 <xslo:value-of select="."/>
289 <xslo:for-each select="marc:subfield">
290 <xslo:if test="contains('9', @code)">
291 <z:index name="Koha-Auth-Number:w">
292 <xslo:value-of select="."/>
297 <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
298 <xslo:for-each select="marc:subfield">
299 <xslo:if test="contains('r', @code)">
300 <z:index name="Music-key:w">
301 <xslo:value-of select="."/>
305 <xslo:for-each select="marc:subfield">
306 <xslo:if test="contains('n', @code)">
307 <z:index name="Thematic-number:w">
308 <xslo:value-of select="."/>
313 <xslo:template mode="index_subfields" match="marc:datafield[@tag='243']">
314 <xslo:for-each select="marc:subfield">
315 <xslo:if test="contains('n', @code)">
316 <z:index name="Thematic-number:w">
317 <xslo:value-of select="."/>
321 <xslo:for-each select="marc:subfield">
322 <xslo:if test="contains('r', @code)">
323 <z:index name="Music-key:w">
324 <xslo:value-of select="."/>
329 <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
330 <xslo:for-each select="marc:subfield">
331 <xslo:if test="contains('a', @code)">
332 <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p">
333 <xslo:value-of select="."/>
337 <xslo:for-each select="marc:subfield">
338 <xslo:if test="contains('c', @code)">
339 <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s">
340 <xslo:value-of select="."/>
344 <xslo:for-each select="marc:subfield">
345 <xslo:if test="contains('9', @code)">
346 <z:index name="Cross-Reference:w Koha-Auth-Number:w">
347 <xslo:value-of select="."/>
352 <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
353 <xslo:for-each select="marc:subfield">
354 <xslo:if test="contains('a', @code)">
355 <z:index name="pl:w pl:p">
356 <xslo:value-of select="."/>
360 <xslo:for-each select="marc:subfield">
361 <xslo:if test="contains('b', @code)">
362 <z:index name="Publisher:w Publisher:p">
363 <xslo:value-of select="."/>
367 <xslo:for-each select="marc:subfield">
368 <xslo:if test="contains('c', @code)">
369 <z:index name="copydate:w copydate:s">
370 <xslo:value-of select="."/>
375 <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
376 <xslo:for-each select="marc:subfield">
377 <xslo:if test="contains('a', @code)">
378 <z:index name="Name-and-title:w">
379 <xslo:value-of select="."/>
383 <xslo:for-each select="marc:subfield">
384 <xslo:if test="contains('t', @code)">
385 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
386 <xslo:value-of select="."/>
390 <xslo:for-each select="marc:subfield">
391 <xslo:if test="contains('9', @code)">
392 <z:index name="Koha-Auth-Number:w">
393 <xslo:value-of select="."/>
398 <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
399 <xslo:for-each select="marc:subfield">
400 <xslo:if test="contains('a', @code)">
401 <z:index name="Name-and-title:w">
402 <xslo:value-of select="."/>
406 <xslo:for-each select="marc:subfield">
407 <xslo:if test="contains('t', @code)">
408 <z:index name="Author-title:w Title:w Title-series:w">
409 <xslo:value-of select="."/>
413 <xslo:for-each select="marc:subfield">
414 <xslo:if test="contains('9', @code)">
415 <z:index name="Koha-Auth-Number:w">
416 <xslo:value-of select="."/>
421 <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
422 <xslo:for-each select="marc:subfield">
423 <xslo:if test="contains('a', @code)">
424 <z:index name="Name-and-title:w">
425 <xslo:value-of select="."/>
429 <xslo:for-each select="marc:subfield">
430 <xslo:if test="contains('t', @code)">
431 <z:index name="Author-title:w Title-series:w">
432 <xslo:value-of select="."/>
437 <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
438 <xslo:for-each select="marc:subfield">
439 <xslo:if test="contains('a', @code)">
440 <z:index name="Title-series:w Title-series:p">
441 <xslo:value-of select="."/>
445 <xslo:for-each select="marc:subfield">
446 <xslo:if test="contains('9', @code)">
447 <z:index name="Koha-Auth-Number:w">
448 <xslo:value-of select="."/>
453 <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
454 <xslo:for-each select="marc:subfield">
455 <xslo:if test="contains('a', @code)">
456 <z:index name="Title-series:w Title-series:p">
457 <xslo:value-of select="."/>
461 <xslo:for-each select="marc:subfield">
462 <xslo:if test="contains('9', @code)">
463 <z:index name="Koha-Auth-Number:w">
464 <xslo:value-of select="."/>
469 <xslo:template mode="index_subfields" match="marc:datafield[@tag='505']">
470 <xslo:for-each select="marc:subfield">
471 <xslo:if test="contains('r', @code)">
472 <z:index name="Author:w">
473 <xslo:value-of select="."/>
477 <xslo:for-each select="marc:subfield">
478 <xslo:if test="contains('t', @code)">
479 <z:index name="Title:w">
480 <xslo:value-of select="."/>
485 <xslo:template mode="index_subfields" match="marc:datafield[@tag='521']">
486 <xslo:if test="@ind1='0'">
487 <xslo:for-each select="marc:subfield">
488 <xslo:if test="contains('a', @code)">
489 <z:index name="Reading-grade-level:w Reading-grade-level:p Reading-grade-level:n">
490 <xslo:value-of select="."/>
495 <xslo:if test="@ind1='1'">
496 <xslo:for-each select="marc:subfield">
497 <xslo:if test="contains('a', @code)">
498 <z:index name="Interest-age-level:w Interest-age-level:p Interest-age-level:n">
499 <xslo:value-of select="."/>
504 <xslo:if test="@ind1='2'">
505 <xslo:for-each select="marc:subfield">
506 <xslo:if test="contains('a', @code)">
507 <z:index name="Interest-grade-level:w Interest-grade-level:p Interest-grade-level:n">
508 <xslo:value-of select="."/>
513 <xslo:if test="@ind1='8'">
514 <xslo:for-each select="marc:subfield">
515 <xslo:if test="contains('a', @code)">
516 <z:index name="lexile-number:w lexile-number:p lexile-number:n">
517 <xslo:value-of select="."/>
523 <xslo:template mode="index_subfields" match="marc:datafield[@tag='526']">
524 <xslo:for-each select="marc:subfield">
525 <xslo:if test="contains('c', @code)">
526 <z:index name="arl:w arl:n">
527 <xslo:value-of select="."/>
531 <xslo:for-each select="marc:subfield">
532 <xslo:if test="contains('d', @code)">
533 <z:index name="arp:w arp:n">
534 <xslo:value-of select="."/>
539 <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
540 <xslo:for-each select="marc:subfield">
541 <xslo:if test="contains('a', @code)">
542 <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
543 <xslo:value-of select="."/>
547 <xslo:for-each select="marc:subfield">
548 <xslo:if test="contains('t', @code)">
549 <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
550 <xslo:value-of select="."/>
554 <xslo:for-each select="marc:subfield">
555 <xslo:if test="contains('9', @code)">
556 <z:index name="Koha-Auth-Number:w">
557 <xslo:value-of select="."/>
562 <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
563 <xslo:for-each select="marc:subfield">
564 <xslo:if test="contains('a', @code)">
565 <z:index name="Name-and-title:w Subject:w Subject:p">
566 <xslo:value-of select="."/>
570 <xslo:for-each select="marc:subfield">
571 <xslo:if test="contains('t', @code)">
572 <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
573 <xslo:value-of select="."/>
577 <xslo:for-each select="marc:subfield">
578 <xslo:if test="contains('9', @code)">
579 <z:index name="Koha-Auth-Number:w">
580 <xslo:value-of select="."/>
585 <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
586 <xslo:for-each select="marc:subfield">
587 <xslo:if test="contains('a', @code)">
588 <z:index name="Name-and-title:w Subject:w Subject:p">
589 <xslo:value-of select="."/>
593 <xslo:for-each select="marc:subfield">
594 <xslo:if test="contains('t', @code)">
595 <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
596 <xslo:value-of select="."/>
600 <xslo:for-each select="marc:subfield">
601 <xslo:if test="contains('9', @code)">
602 <z:index name="Koha-Auth-Number:w">
603 <xslo:value-of select="."/>
608 <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
609 <xslo:for-each select="marc:subfield">
610 <xslo:if test="contains('n', @code)">
611 <z:index name="Thematic-number:w Subject:w Subject:p">
612 <xslo:value-of select="."/>
616 <xslo:for-each select="marc:subfield">
617 <xslo:if test="contains('r', @code)">
618 <z:index name="Music-key:w Subject:w Subject:p">
619 <xslo:value-of select="."/>
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="."/>
631 <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
632 <xslo:for-each select="marc:subfield">
633 <xslo:if test="contains('9', @code)">
634 <z:index name="Koha-Auth-Number:w">
635 <xslo:value-of select="."/>
640 <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
641 <xslo:for-each select="marc:subfield">
642 <xslo:if test="contains('9', @code)">
643 <z:index name="Koha-Auth-Number:w">
644 <xslo:value-of select="."/>
649 <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
650 <xslo:for-each select="marc:subfield">
651 <xslo:if test="contains('9', @code)">
652 <z:index name="Koha-Auth-Number:w">
653 <xslo:value-of select="."/>
658 <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
659 <xslo:for-each select="marc:subfield">
660 <xslo:if test="contains('9', @code)">
661 <z:index name="Koha-Auth-Number:w">
662 <xslo:value-of select="."/>
667 <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
668 <xslo:for-each select="marc:subfield">
669 <xslo:if test="contains('a', @code)">
670 <z:index name="Index-term-uncontrolled:w Index-term-uncontrolled:p Subject:w Subject:p">
671 <xslo:value-of select="."/>
675 <xslo:for-each select="marc:subfield">
676 <xslo:if test="contains('9', @code)">
677 <z:index name="Koha-Auth-Number:w">
678 <xslo:value-of select="."/>
683 <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
684 <xslo:for-each select="marc:subfield">
685 <xslo:if test="contains('9', @code)">
686 <z:index name="Koha-Auth-Number:w">
687 <xslo:value-of select="."/>
692 <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
693 <xslo:for-each select="marc:subfield">
694 <xslo:if test="contains('a', @code)">
695 <z:index name="Index-term-genre:w Index-term-genre:p Subject:w Subject:p">
696 <xslo:value-of select="."/>
700 <xslo:for-each select="marc:subfield">
701 <xslo:if test="contains('9', @code)">
702 <z:index name="Koha-Auth-Number:w">
703 <xslo:value-of select="."/>
708 <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
709 <xslo:for-each select="marc:subfield">
710 <xslo:if test="contains('9', @code)">
711 <z:index name="Koha-Auth-Number:w">
712 <xslo:value-of select="."/>
717 <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
718 <xslo:for-each select="marc:subfield">
719 <xslo:if test="contains('9', @code)">
720 <z:index name="Koha-Auth-Number:w">
721 <xslo:value-of select="."/>
726 <xslo:template mode="index_subfields" match="marc:datafield[@tag='658']">
727 <xslo:for-each select="marc:subfield">
728 <xslo:if test="contains('a', @code)">
729 <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
730 <xslo:value-of select="."/>
734 <xslo:for-each select="marc:subfield">
735 <xslo:if test="contains('b', @code)">
736 <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
737 <xslo:value-of select="."/>
741 <xslo:for-each select="marc:subfield">
742 <xslo:if test="contains('c', @code)">
743 <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
744 <xslo:value-of select="."/>
749 <xslo:template mode="index_subfields" match="marc:datafield[@tag='662']">
750 <xslo:for-each select="marc:subfield">
751 <xslo:if test="contains('9', @code)">
752 <z:index name="Koha-Auth-Number:w">
753 <xslo:value-of select="."/>
758 <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
759 <xslo:for-each select="marc:subfield">
760 <xslo:if test="contains('9', @code)">
761 <z:index name="Koha-Auth-Number:w">
762 <xslo:value-of select="."/>
767 <xslo:template mode="index_subfields" match="marc:datafield[@tag='691']">
768 <xslo:for-each select="marc:subfield">
769 <xslo:if test="contains('9', @code)">
770 <z:index name="Koha-Auth-Number:w">
771 <xslo:value-of select="."/>
776 <xslo:template mode="index_subfields" match="marc:datafield[@tag='696']">
777 <xslo:for-each select="marc:subfield">
778 <xslo:if test="contains('9', @code)">
779 <z:index name="Koha-Auth-Number:w">
780 <xslo:value-of select="."/>
785 <xslo:template mode="index_subfields" match="marc:datafield[@tag='697']">
786 <xslo:for-each select="marc:subfield">
787 <xslo:if test="contains('9', @code)">
788 <z:index name="Koha-Auth-Number:w">
789 <xslo:value-of select="."/>
794 <xslo:template mode="index_subfields" match="marc:datafield[@tag='698']">
795 <xslo:for-each select="marc:subfield">
796 <xslo:if test="contains('9', @code)">
797 <z:index name="Koha-Auth-Number:w">
798 <xslo:value-of select="."/>
803 <xslo:template mode="index_subfields" match="marc:datafield[@tag='699']">
804 <xslo:for-each select="marc:subfield">
805 <xslo:if test="contains('9', @code)">
806 <z:index name="Koha-Auth-Number:w">
807 <xslo:value-of select="."/>
812 <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
813 <xslo:for-each select="marc:subfield">
814 <xslo:if test="contains('9', @code)">
815 <z:index name="Cross-Reference:w Koha-Auth-Number:w">
816 <xslo:value-of select="."/>
820 <xslo:for-each select="marc:subfield">
821 <xslo:if test="contains('a', @code)">
822 <z:index name="Author:w Author:p">
823 <xslo:value-of select="."/>
827 <xslo:for-each select="marc:subfield">
828 <xslo:if test="contains('n', @code)">
829 <z:index name="Thematic-number:w">
830 <xslo:value-of select="."/>
834 <xslo:for-each select="marc:subfield">
835 <xslo:if test="contains('r', @code)">
836 <z:index name="Music-key:w">
837 <xslo:value-of select="."/>
841 <xslo:for-each select="marc:subfield">
842 <xslo:if test="contains('t', @code)">
843 <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
844 <xslo:value-of select="."/>
849 <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
850 <xslo:for-each select="marc:subfield">
851 <xslo:if test="contains('t', @code)">
852 <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
853 <xslo:value-of select="."/>
857 <xslo:for-each select="marc:subfield">
858 <xslo:if test="contains('a', @code)">
859 <z:index name="Name-and-title:w">
860 <xslo:value-of select="."/>
864 <xslo:for-each select="marc:subfield">
865 <xslo:if test="contains('9', @code)">
866 <z:index name="Koha-Auth-Number:w">
867 <xslo:value-of select="."/>
872 <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
873 <xslo:for-each select="marc:subfield">
874 <xslo:if test="contains('a', @code)">
875 <z:index name="Name-and-title:w">
876 <xslo:value-of select="."/>
880 <xslo:for-each select="marc:subfield">
881 <xslo:if test="contains('t', @code)">
882 <z:index name="Author-title:w Title:w Title-uniform:w">
883 <xslo:value-of select="."/>
887 <xslo:for-each select="marc:subfield">
888 <xslo:if test="contains('9', @code)">
889 <z:index name="Koha-Auth-Number:w">
890 <xslo:value-of select="."/>
895 <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
896 <xslo:for-each select="marc:subfield">
897 <xslo:if test="contains('n', @code)">
898 <z:index name="Thematic-number:w">
899 <xslo:value-of select="."/>
903 <xslo:for-each select="marc:subfield">
904 <xslo:if test="contains('r', @code)">
905 <z:index name="Music-key:w">
906 <xslo:value-of select="."/>
910 <xslo:for-each select="marc:subfield">
911 <xslo:if test="contains('9', @code)">
912 <z:index name="Koha-Auth-Number:w">
913 <xslo:value-of select="."/>
918 <xslo:template mode="index_subfields" match="marc:datafield[@tag='751']">
919 <xslo:for-each select="marc:subfield">
920 <xslo:if test="contains('a', @code)">
921 <z:index name="Name-geographic:w">
922 <xslo:value-of select="."/>
926 <xslo:for-each select="marc:subfield">
927 <xslo:if test="contains('9', @code)">
928 <z:index name="Koha-Auth-Number:w">
929 <xslo:value-of select="."/>
934 <xslo:template mode="index_subfields" match="marc:datafield[@tag='770']">
935 <xslo:for-each select="marc:subfield">
936 <xslo:if test="contains('w', @code)">
937 <z:index name="Record-control-number:w">
938 <xslo:value-of select="."/>
943 <xslo:template mode="index_subfields" match="marc:datafield[@tag='772']">
944 <xslo:for-each select="marc:subfield">
945 <xslo:if test="contains('w', @code)">
946 <z:index name="Record-control-number:w">
947 <xslo:value-of select="."/>
952 <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
953 <xslo:for-each select="marc:subfield">
954 <xslo:if test="contains('a', @code)">
955 <z:index name="Host-item:w">
956 <xslo:value-of select="."/>
960 <xslo:for-each select="marc:subfield">
961 <xslo:if test="contains('9', @code)">
962 <z:index name="Host-Item-Number:w">
963 <xslo:value-of select="."/>
967 <xslo:for-each select="marc:subfield">
968 <xslo:if test="contains('t', @code)">
969 <z:index name="Host-item:w">
970 <xslo:value-of select="."/>
974 <xslo:for-each select="marc:subfield">
975 <xslo:if test="contains('w', @code)">
976 <z:index name="Record-control-number:w">
977 <xslo:value-of select="."/>
982 <xslo:template mode="index_subfields" match="marc:datafield[@tag='774']">
983 <xslo:for-each select="marc:subfield">
984 <xslo:if test="contains('w', @code)">
985 <z:index name="Record-control-number:w">
986 <xslo:value-of select="."/>
991 <xslo:template mode="index_subfields" match="marc:datafield[@tag='775']">
992 <xslo:for-each select="marc:subfield">
993 <xslo:if test="contains('w', @code)">
994 <z:index name="Record-control-number:w">
995 <xslo:value-of select="."/>
1000 <xslo:template mode="index_subfields" match="marc:datafield[@tag='776']">
1001 <xslo:for-each select="marc:subfield">
1002 <xslo:if test="contains('w', @code)">
1003 <z:index name="Record-control-number:w">
1004 <xslo:value-of select="."/>
1009 <xslo:template mode="index_subfields" match="marc:datafield[@tag='777']">
1010 <xslo:for-each select="marc:subfield">
1011 <xslo:if test="contains('w', @code)">
1012 <z:index name="Record-control-number:w">
1013 <xslo:value-of select="."/>
1018 <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
1019 <xslo:for-each select="marc:subfield">
1020 <xslo:if test="contains('t', @code)">
1021 <z:index name="Title:w">
1022 <xslo:value-of select="."/>
1026 <xslo:for-each select="marc:subfield">
1027 <xslo:if test="contains('w', @code)">
1028 <z:index name="Record-control-number:w">
1029 <xslo:value-of select="."/>
1034 <xslo:template mode="index_subfields" match="marc:datafield[@tag='785']">
1035 <xslo:for-each select="marc:subfield">
1036 <xslo:if test="contains('w', @code)">
1037 <z:index name="Record-control-number:w">
1038 <xslo:value-of select="."/>
1043 <xslo:template mode="index_subfields" match="marc:datafield[@tag='787']">
1044 <xslo:for-each select="marc:subfield">
1045 <xslo:if test="contains('w', @code)">
1046 <z:index name="Record-control-number:w">
1047 <xslo:value-of select="."/>
1052 <xslo:template mode="index_subfields" match="marc:datafield[@tag='796']">
1053 <xslo:for-each select="marc:subfield">
1054 <xslo:if test="contains('9', @code)">
1055 <z:index name="Koha-Auth-Number:w">
1056 <xslo:value-of select="."/>
1061 <xslo:template mode="index_subfields" match="marc:datafield[@tag='797']">
1062 <xslo:for-each select="marc:subfield">
1063 <xslo:if test="contains('9', @code)">
1064 <z:index name="Koha-Auth-Number:w">
1065 <xslo:value-of select="."/>
1070 <xslo:template mode="index_subfields" match="marc:datafield[@tag='798']">
1071 <xslo:for-each select="marc:subfield">
1072 <xslo:if test="contains('9', @code)">
1073 <z:index name="Koha-Auth-Number:w">
1074 <xslo:value-of select="."/>
1079 <xslo:template mode="index_subfields" match="marc:datafield[@tag='799']">
1080 <xslo:for-each select="marc:subfield">
1081 <xslo:if test="contains('9', @code)">
1082 <z:index name="Koha-Auth-Number:w">
1083 <xslo:value-of select="."/>
1088 <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
1089 <xslo:for-each select="marc:subfield">
1090 <xslo:if test="contains('a', @code)">
1091 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1092 <xslo:value-of select="."/>
1096 <xslo:for-each select="marc:subfield">
1097 <xslo:if test="contains('t', @code)">
1098 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1099 <xslo:value-of select="."/>
1103 <xslo:for-each select="marc:subfield">
1104 <xslo:if test="contains('9', @code)">
1105 <z:index name="Koha-Auth-Number:w">
1106 <xslo:value-of select="."/>
1110 <xslo:for-each select="marc:subfield">
1111 <xslo:if test="contains('w', @code)">
1112 <z:index name="Record-control-number:w">
1113 <xslo:value-of select="."/>
1118 <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
1119 <xslo:for-each select="marc:subfield">
1120 <xslo:if test="contains('a', @code)">
1121 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1122 <xslo:value-of select="."/>
1126 <xslo:for-each select="marc:subfield">
1127 <xslo:if test="contains('t', @code)">
1128 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1129 <xslo:value-of select="."/>
1133 <xslo:for-each select="marc:subfield">
1134 <xslo:if test="contains('w', @code)">
1135 <z:index name="Record-control-number:w">
1136 <xslo:value-of select="."/>
1140 <xslo:for-each select="marc:subfield">
1141 <xslo:if test="contains('9', @code)">
1142 <z:index name="Koha-Auth-Number:w">
1143 <xslo:value-of select="."/>
1148 <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
1149 <xslo:for-each select="marc:subfield">
1150 <xslo:if test="contains('a', @code)">
1151 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1152 <xslo:value-of select="."/>
1156 <xslo:for-each select="marc:subfield">
1157 <xslo:if test="contains('9', @code)">
1158 <z:index name="Koha-Auth-Number:w">
1159 <xslo:value-of select="."/>
1163 <xslo:for-each select="marc:subfield">
1164 <xslo:if test="contains('t', @code)">
1165 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1166 <xslo:value-of select="."/>
1170 <xslo:for-each select="marc:subfield">
1171 <xslo:if test="contains('w', @code)">
1172 <z:index name="Record-control-number:w">
1173 <xslo:value-of select="."/>
1178 <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
1179 <xslo:for-each select="marc:subfield">
1180 <xslo:if test="contains('w', @code)">
1181 <z:index name="Record-control-number:w">
1182 <xslo:value-of select="."/>
1186 <xslo:for-each select="marc:subfield">
1187 <xslo:if test="contains('9', @code)">
1188 <z:index name="Koha-Auth-Number:w">
1189 <xslo:value-of select="."/>
1194 <xslo:template mode="index_subfields" match="marc:datafield[@tag='896']">
1195 <xslo:for-each select="marc:subfield">
1196 <xslo:if test="contains('9', @code)">
1197 <z:index name="Koha-Auth-Number:w">
1198 <xslo:value-of select="."/>
1203 <xslo:template mode="index_subfields" match="marc:datafield[@tag='897']">
1204 <xslo:for-each select="marc:subfield">
1205 <xslo:if test="contains('9', @code)">
1206 <z:index name="Koha-Auth-Number:w">
1207 <xslo:value-of select="."/>
1212 <xslo:template mode="index_subfields" match="marc:datafield[@tag='898']">
1213 <xslo:for-each select="marc:subfield">
1214 <xslo:if test="contains('9', @code)">
1215 <z:index name="Koha-Auth-Number:w">
1216 <xslo:value-of select="."/>
1221 <xslo:template mode="index_subfields" match="marc:datafield[@tag='899']">
1222 <xslo:for-each select="marc:subfield">
1223 <xslo:if test="contains('9', @code)">
1224 <z:index name="Koha-Auth-Number:w">
1225 <xslo:value-of select="."/>
1230 <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1231 <xslo:for-each select="marc:subfield">
1232 <xslo:if test="contains('c', @code)">
1233 <z:index name="Local-Number:n Local-Number:w Local-Number:s">
1234 <xslo:value-of select="."/>
1238 <xslo:for-each select="marc:subfield">
1239 <xslo:if test="contains('d', @code)">
1240 <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
1241 <xslo:value-of select="."/>
1245 <xslo:for-each select="marc:subfield">
1246 <xslo:if test="contains('x', @code)">
1247 <z:index name="not-onloan-count:n">
1248 <xslo:value-of select="."/>
1253 <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1254 <xslo:for-each select="marc:subfield">
1255 <xslo:if test="contains('0', @code)">
1256 <z:index name="totalissues:n totalissues:s">
1257 <xslo:value-of select="."/>
1261 <xslo:for-each select="marc:subfield">
1262 <xslo:if test="contains('2', @code)">
1263 <z:index name="cn-bib-source:w">
1264 <xslo:value-of select="."/>
1268 <xslo:for-each select="marc:subfield">
1269 <xslo:if test="contains('6', @code)">
1270 <z:index name="cn-bib-sort:n cn-bib-sort:s">
1271 <xslo:value-of select="."/>
1275 <xslo:for-each select="marc:subfield">
1276 <xslo:if test="contains('c', @code)">
1277 <z:index name="itemtype:w itemtype:p itype:w itype:p">
1278 <xslo:value-of select="."/>
1282 <xslo:for-each select="marc:subfield">
1283 <xslo:if test="contains('n', @code)">
1284 <z:index name="Suppress:w Suppress:n">
1285 <xslo:value-of select="."/>
1289 <xslo:for-each select="marc:subfield">
1290 <xslo:if test="contains('h', @code)">
1291 <z:index name="cn-class:w">
1292 <xslo:value-of select="."/>
1296 <xslo:for-each select="marc:subfield">
1297 <xslo:if test="contains('i', @code)">
1298 <z:index name="cn-item:w">
1299 <xslo:value-of select="."/>
1303 <xslo:for-each select="marc:subfield">
1304 <xslo:if test="contains('k', @code)">
1305 <z:index name="cn-prefix:w">
1306 <xslo:value-of select="."/>
1310 <xslo:for-each select="marc:subfield">
1311 <xslo:if test="contains('m', @code)">
1312 <z:index name="cn-suffix:w">
1313 <xslo:value-of select="."/>
1318 <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
1319 <xslo:for-each select="marc:subfield">
1320 <xslo:if test="contains('0', @code)">
1321 <z:index name="withdrawn:n withdrawn:w">
1322 <xslo:value-of select="."/>
1326 <xslo:for-each select="marc:subfield">
1327 <xslo:if test="contains('1', @code)">
1328 <z:index name="lost:w lost:n">
1329 <xslo:value-of select="."/>
1333 <xslo:for-each select="marc:subfield">
1334 <xslo:if test="contains('2', @code)">
1335 <z:index name="classification-source:w">
1336 <xslo:value-of select="."/>
1340 <xslo:for-each select="marc:subfield">
1341 <xslo:if test="contains('3', @code)">
1342 <z:index name="materials-specified:w">
1343 <xslo:value-of select="."/>
1347 <xslo:for-each select="marc:subfield">
1348 <xslo:if test="contains('4', @code)">
1349 <z:index name="damaged:n damaged:w">
1350 <xslo:value-of select="."/>
1354 <xslo:for-each select="marc:subfield">
1355 <xslo:if test="contains('5', @code)">
1356 <z:index name="restricted:n restricted:w">
1357 <xslo:value-of select="."/>
1361 <xslo:for-each select="marc:subfield">
1362 <xslo:if test="contains('6', @code)">
1363 <z:index name="cn-sort:n cn-sort:s">
1364 <xslo:value-of select="."/>
1368 <xslo:for-each select="marc:subfield">
1369 <xslo:if test="contains('7', @code)">
1370 <z:index name="notforloan:n notforloan:w">
1371 <xslo:value-of select="."/>
1375 <xslo:for-each select="marc:subfield">
1376 <xslo:if test="contains('8', @code)">
1377 <z:index name="ccode:w ccode:p">
1378 <xslo:value-of select="."/>
1382 <xslo:for-each select="marc:subfield">
1383 <xslo:if test="contains('9', @code)">
1384 <z:index name="itemnumber:n itemnumber:s">
1385 <xslo:value-of select="."/>
1389 <xslo:for-each select="marc:subfield">
1390 <xslo:if test="contains('a', @code)">
1391 <z:index name="homebranch:w">
1392 <xslo:value-of select="."/>
1396 <xslo:for-each select="marc:subfield">
1397 <xslo:if test="contains('b', @code)">
1398 <z:index name="holdingbranch:w">
1399 <xslo:value-of select="."/>
1403 <xslo:for-each select="marc:subfield">
1404 <xslo:if test="contains('c', @code)">
1405 <z:index name="location:w">
1406 <xslo:value-of select="."/>
1410 <xslo:for-each select="marc:subfield">
1411 <xslo:if test="contains('d', @code)">
1412 <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
1413 <xslo:value-of select="."/>
1417 <xslo:for-each select="marc:subfield">
1418 <xslo:if test="contains('e', @code)">
1419 <z:index name="acqsource:w">
1420 <xslo:value-of select="."/>
1424 <xslo:for-each select="marc:subfield">
1425 <xslo:if test="contains('f', @code)">
1426 <z:index name="coded-location-qualifier:w">
1427 <xslo:value-of select="."/>
1431 <xslo:for-each select="marc:subfield">
1432 <xslo:if test="contains('g', @code)">
1433 <z:index name="price:w">
1434 <xslo:value-of select="."/>
1438 <xslo:for-each select="marc:subfield">
1439 <xslo:if test="contains('i', @code)">
1440 <z:index name="Number-local-acquisition:w">
1441 <xslo:value-of select="."/>
1445 <xslo:for-each select="marc:subfield">
1446 <xslo:if test="contains('j', @code)">
1447 <z:index name="stack:n stack:w">
1448 <xslo:value-of select="."/>
1452 <xslo:for-each select="marc:subfield">
1453 <xslo:if test="contains('l', @code)">
1454 <z:index name="issues:n issues:w issues:s">
1455 <xslo:value-of select="."/>
1459 <xslo:for-each select="marc:subfield">
1460 <xslo:if test="contains('m', @code)">
1461 <z:index name="renewals:n renewals:w">
1462 <xslo:value-of select="."/>
1466 <xslo:for-each select="marc:subfield">
1467 <xslo:if test="contains('n', @code)">
1468 <z:index name="reserves:n reserves:w">
1469 <xslo:value-of select="."/>
1473 <xslo:for-each select="marc:subfield">
1474 <xslo:if test="contains('o', @code)">
1475 <z:index name="Local-classification:w Local-classification:p Local-classification:s">
1476 <xslo:value-of select="."/>
1480 <xslo:for-each select="marc:subfield">
1481 <xslo:if test="contains('p', @code)">
1482 <z:index name="barcode:w barcode:n">
1483 <xslo:value-of select="."/>
1487 <xslo:for-each select="marc:subfield">
1488 <xslo:if test="contains('q', @code)">
1489 <z:index name="onloan:n onloan:w">
1490 <xslo:value-of select="."/>
1494 <xslo:for-each select="marc:subfield">
1495 <xslo:if test="contains('r', @code)">
1496 <z:index name="datelastseen:w">
1497 <xslo:value-of select="."/>
1501 <xslo:for-each select="marc:subfield">
1502 <xslo:if test="contains('s', @code)">
1503 <z:index name="datelastborrowed:w">
1504 <xslo:value-of select="."/>
1508 <xslo:for-each select="marc:subfield">
1509 <xslo:if test="contains('t', @code)">
1510 <z:index name="copynumber:w">
1511 <xslo:value-of select="."/>
1515 <xslo:for-each select="marc:subfield">
1516 <xslo:if test="contains('u', @code)">
1517 <z:index name="uri:u">
1518 <xslo:value-of select="."/>
1522 <xslo:for-each select="marc:subfield">
1523 <xslo:if test="contains('v', @code)">
1524 <z:index name="replacementprice:w">
1525 <xslo:value-of select="."/>
1529 <xslo:for-each select="marc:subfield">
1530 <xslo:if test="contains('w', @code)">
1531 <z:index name="replacementpricedate:w">
1532 <xslo:value-of select="."/>
1536 <xslo:for-each select="marc:subfield">
1537 <xslo:if test="contains('y', @code)">
1538 <z:index name="itype:w itype:p">
1539 <xslo:value-of select="."/>
1543 <xslo:for-each select="marc:subfield">
1544 <xslo:if test="contains('z', @code)">
1545 <z:index name="Note:w Note:p">
1546 <xslo:value-of select="."/>
1551 <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1552 <z:index name="LC-card-number:w Identifier-standard:w">
1553 <xslo:variable name="raw_heading">
1554 <xslo:for-each select="marc:subfield">
1555 <xslo:if test="position() > 1">
1556 <xslo:value-of select="substring(' ', 1, 1)"/>
1558 <xslo:value-of select="."/>
1561 <xslo:value-of select="normalize-space($raw_heading)"/>
1564 <xslo:template mode="index_data_field" match="marc:datafield[@tag='011']">
1565 <z:index name="LC-card-number:w Identifier-standard:w">
1566 <xslo:variable name="raw_heading">
1567 <xslo:for-each select="marc:subfield">
1568 <xslo:if test="position() > 1">
1569 <xslo:value-of select="substring(' ', 1, 1)"/>
1571 <xslo:value-of select="."/>
1574 <xslo:value-of select="normalize-space($raw_heading)"/>
1577 <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1578 <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1579 <xslo:variable name="raw_heading">
1580 <xslo:for-each select="marc:subfield">
1581 <xslo:if test="position() > 1">
1582 <xslo:value-of select="substring(' ', 1, 1)"/>
1584 <xslo:value-of select="."/>
1587 <xslo:value-of select="normalize-space($raw_heading)"/>
1590 <xslo:template mode="index_data_field" match="marc:datafield[@tag='017']">
1591 <z:index name="Number-legal-deposit:w Identifier-standard:w">
1592 <xslo:variable name="raw_heading">
1593 <xslo:for-each select="marc:subfield">
1594 <xslo:if test="position() > 1">
1595 <xslo:value-of select="substring(' ', 1, 1)"/>
1597 <xslo:value-of select="."/>
1600 <xslo:value-of select="normalize-space($raw_heading)"/>
1603 <xslo:template mode="index_data_field" match="marc:datafield[@tag='018']">
1604 <z:index name="Identifier-standard:w">
1605 <xslo:variable name="raw_heading">
1606 <xslo:for-each select="marc:subfield">
1607 <xslo:if test="position() > 1">
1608 <xslo:value-of select="substring(' ', 1, 1)"/>
1610 <xslo:value-of select="."/>
1613 <xslo:value-of select="normalize-space($raw_heading)"/>
1616 <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1617 <z:index name="Identifier-standard:w">
1618 <xslo:variable name="raw_heading">
1619 <xslo:for-each select="marc:subfield">
1620 <xslo:if test="position() > 1">
1621 <xslo:value-of select="substring(' ', 1, 1)"/>
1623 <xslo:value-of select="."/>
1626 <xslo:value-of select="normalize-space($raw_heading)"/>
1629 <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1630 <z:index name="Identifier-standard:w">
1631 <xslo:variable name="raw_heading">
1632 <xslo:for-each select="marc:subfield">
1633 <xslo:if test="position() > 1">
1634 <xslo:value-of select="substring(' ', 1, 1)"/>
1636 <xslo:value-of select="."/>
1639 <xslo:value-of select="normalize-space($raw_heading)"/>
1642 <xslo:template mode="index_data_field" match="marc:datafield[@tag='023']">
1643 <z:index name="Identifier-standard: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='024']">
1656 <z:index name="Identifier-standard: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='025']">
1669 <z:index name="Identifier-standard: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='027']">
1682 <z:index name="Report-number:w Identifier-standard: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='028']">
1695 <z:index name="Identifier-publisher-for-music:w Identifier-standard: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='030']">
1708 <z:index name="CODEN:w Identifier-standard: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='034']">
1721 <z:index name="Map-scale: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='035']">
1734 <z:index name="Other-control-number: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='037']">
1747 <z:index name="Identifier-standard:w Stock-number: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='040']">
1760 <z:index name="Code-institution:w Record-source: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_data_field" match="marc:datafield[@tag='043']">
1773 <z:index name="Code-geographic:w">
1774 <xslo:variable name="raw_heading">
1775 <xslo:for-each select="marc:subfield">
1776 <xslo:if test="position() > 1">
1777 <xslo:value-of select="substring(' ', 1, 1)"/>
1779 <xslo:value-of select="."/>
1782 <xslo:value-of select="normalize-space($raw_heading)"/>
1785 <xslo:template mode="index_data_field" match="marc:datafield[@tag='050']">
1786 <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s">
1787 <xslo:variable name="raw_heading">
1788 <xslo:for-each select="marc:subfield">
1789 <xslo:if test="position() > 1">
1790 <xslo:value-of select="substring(' ', 1, 1)"/>
1792 <xslo:value-of select="."/>
1795 <xslo:value-of select="normalize-space($raw_heading)"/>
1798 <xslo:template mode="index_data_field" match="marc:datafield[@tag='052']">
1799 <z:index name="Geographic-class:w">
1800 <xslo:variable name="raw_heading">
1801 <xslo:for-each select="marc:subfield">
1802 <xslo:if test="position() > 1">
1803 <xslo:value-of select="substring(' ', 1, 1)"/>
1805 <xslo:value-of select="."/>
1808 <xslo:value-of select="normalize-space($raw_heading)"/>
1811 <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1812 <z:index name="NLM-call-number:w">
1813 <xslo:variable name="raw_heading">
1814 <xslo:for-each select="marc:subfield">
1815 <xslo:if test="position() > 1">
1816 <xslo:value-of select="substring(' ', 1, 1)"/>
1818 <xslo:value-of select="."/>
1821 <xslo:value-of select="normalize-space($raw_heading)"/>
1824 <xslo:template mode="index_data_field" match="marc:datafield[@tag='070']">
1825 <z:index name="NAL-call-number:w">
1826 <xslo:variable name="raw_heading">
1827 <xslo:for-each select="marc:subfield">
1828 <xslo:if test="position() > 1">
1829 <xslo:value-of select="substring(' ', 1, 1)"/>
1831 <xslo:value-of select="."/>
1834 <xslo:value-of select="normalize-space($raw_heading)"/>
1837 <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1838 <z:index name="UDC-classification:w">
1839 <xslo:variable name="raw_heading">
1840 <xslo:for-each select="marc:subfield">
1841 <xslo:if test="position() > 1">
1842 <xslo:value-of select="substring(' ', 1, 1)"/>
1844 <xslo:value-of select="."/>
1847 <xslo:value-of select="normalize-space($raw_heading)"/>
1850 <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1851 <z:index name="Dewey-classification:w Dewey-classification:s">
1852 <xslo:variable name="raw_heading">
1853 <xslo:for-each select="marc:subfield">
1854 <xslo:if test="position() > 1">
1855 <xslo:value-of select="substring(' ', 1, 1)"/>
1857 <xslo:value-of select="."/>
1860 <xslo:value-of select="normalize-space($raw_heading)"/>
1863 <xslo:template mode="index_data_field" match="marc:datafield[@tag='086']">
1864 <z:index name="Number-govt-pub:w">
1865 <xslo:variable name="raw_heading">
1866 <xslo:for-each select="marc:subfield">
1867 <xslo:if test="position() > 1">
1868 <xslo:value-of select="substring(' ', 1, 1)"/>
1870 <xslo:value-of select="."/>
1873 <xslo:value-of select="normalize-space($raw_heading)"/>
1876 <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1877 <z:index name="Author:w Author:p Author:s Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w">
1878 <xslo:variable name="raw_heading">
1879 <xslo:for-each select="marc:subfield">
1880 <xslo:if test="position() > 1">
1881 <xslo:value-of select="substring(' ', 1, 1)"/>
1883 <xslo:value-of select="."/>
1886 <xslo:value-of select="normalize-space($raw_heading)"/>
1889 <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1890 <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w">
1891 <xslo:variable name="raw_heading">
1892 <xslo:for-each select="marc:subfield">
1893 <xslo:if test="position() > 1">
1894 <xslo:value-of select="substring(' ', 1, 1)"/>
1896 <xslo:value-of select="."/>
1899 <xslo:value-of select="normalize-space($raw_heading)"/>
1902 <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1903 <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w">
1904 <xslo:variable name="raw_heading">
1905 <xslo:for-each select="marc:subfield">
1906 <xslo:if test="position() > 1">
1907 <xslo:value-of select="substring(' ', 1, 1)"/>
1909 <xslo:value-of select="."/>
1912 <xslo:value-of select="normalize-space($raw_heading)"/>
1915 <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1916 <z:index name="Title:w Title:p Title-uniform:w">
1917 <xslo:variable name="raw_heading">
1918 <xslo:for-each select="marc:subfield">
1919 <xslo:if test="position() > 1">
1920 <xslo:value-of select="substring(' ', 1, 1)"/>
1922 <xslo:value-of select="."/>
1925 <xslo:value-of select="normalize-space($raw_heading)"/>
1928 <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1929 <z:index name="Title:w Title:p Title-abbreviated:w">
1930 <xslo:variable name="raw_heading">
1931 <xslo:for-each select="marc:subfield">
1932 <xslo:if test="position() > 1">
1933 <xslo:value-of select="substring(' ', 1, 1)"/>
1935 <xslo:value-of select="."/>
1938 <xslo:value-of select="normalize-space($raw_heading)"/>
1941 <xslo:template mode="index_data_field" match="marc:datafield[@tag='211']">
1942 <z:index name="Title:w Title:p Title-abbreviated:w">
1943 <xslo:variable name="raw_heading">
1944 <xslo:for-each select="marc:subfield">
1945 <xslo:if test="position() > 1">
1946 <xslo:value-of select="substring(' ', 1, 1)"/>
1948 <xslo:value-of select="."/>
1951 <xslo:value-of select="normalize-space($raw_heading)"/>
1954 <xslo:template mode="index_data_field" match="marc:datafield[@tag='212']">
1955 <z:index name="Title:w Title:p Title-other-variant:w">
1956 <xslo:variable name="raw_heading">
1957 <xslo:for-each select="marc:subfield">
1958 <xslo:if test="position() > 1">
1959 <xslo:value-of select="substring(' ', 1, 1)"/>
1961 <xslo:value-of select="."/>
1964 <xslo:value-of select="normalize-space($raw_heading)"/>
1967 <xslo:template mode="index_data_field" match="marc:datafield[@tag='214']">
1968 <z:index name="Title:w Title:p Title-expanded:w">
1969 <xslo:variable name="raw_heading">
1970 <xslo:for-each select="marc:subfield">
1971 <xslo:if test="position() > 1">
1972 <xslo:value-of select="substring(' ', 1, 1)"/>
1974 <xslo:value-of select="."/>
1977 <xslo:value-of select="normalize-space($raw_heading)"/>
1980 <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1981 <z:index name="Title:w Title:p Title-key:w">
1982 <xslo:variable name="raw_heading">
1983 <xslo:for-each select="marc:subfield">
1984 <xslo:if test="position() > 1">
1985 <xslo:value-of select="substring(' ', 1, 1)"/>
1987 <xslo:value-of select="."/>
1990 <xslo:value-of select="normalize-space($raw_heading)"/>
1993 <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1994 <z:index name="Title:w Title:p Title-uniform:w">
1995 <xslo:variable name="raw_heading">
1996 <xslo:for-each select="marc:subfield">
1997 <xslo:if test="position() > 1">
1998 <xslo:value-of select="substring(' ', 1, 1)"/>
2000 <xslo:value-of select="."/>
2003 <xslo:value-of select="normalize-space($raw_heading)"/>
2006 <xslo:template mode="index_data_field" match="marc:datafield[@tag='243']">
2007 <z:index name="Title:w Title:p Title-collective:w">
2008 <xslo:variable name="raw_heading">
2009 <xslo:for-each select="marc:subfield">
2010 <xslo:if test="position() > 1">
2011 <xslo:value-of select="substring(' ', 1, 1)"/>
2013 <xslo:value-of select="."/>
2016 <xslo:value-of select="normalize-space($raw_heading)"/>
2019 <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
2020 <z:index name="Title:w Title:p">
2021 <xslo:variable name="raw_heading">
2022 <xslo:for-each select="marc:subfield">
2023 <xslo:if test="position() > 1">
2024 <xslo:value-of select="substring(' ', 1, 1)"/>
2026 <xslo:value-of select="."/>
2029 <xslo:value-of select="normalize-space($raw_heading)"/>
2032 <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
2033 <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
2034 <xslo:variable name="raw_heading">
2035 <xslo:for-each select="marc:subfield">
2036 <xslo:if test="position() > 1">
2037 <xslo:value-of select="substring(' ', 1, 1)"/>
2039 <xslo:value-of select="."/>
2042 <xslo:value-of select="normalize-space($raw_heading)"/>
2045 <xslo:template mode="index_data_field" match="marc:datafield[@tag='247']">
2046 <z:index name="Title:w Title:p Title-former:w Title-other-variant:w Related-periodical:w">
2047 <xslo:variable name="raw_heading">
2048 <xslo:for-each select="marc:subfield">
2049 <xslo:if test="position() > 1">
2050 <xslo:value-of select="substring(' ', 1, 1)"/>
2052 <xslo:value-of select="."/>
2055 <xslo:value-of select="normalize-space($raw_heading)"/>
2058 <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
2059 <z:index name="pl:w Provider:w">
2060 <xslo:variable name="raw_heading">
2061 <xslo:for-each select="marc:subfield">
2062 <xslo:if test="position() > 1">
2063 <xslo:value-of select="substring(' ', 1, 1)"/>
2065 <xslo:value-of select="."/>
2068 <xslo:value-of select="normalize-space($raw_heading)"/>
2071 <xslo:template mode="index_data_field" match="marc:datafield[@tag='264']">
2072 <z:index name="Provider:w">
2073 <xslo:variable name="raw_heading">
2074 <xslo:for-each select="marc:subfield">
2075 <xslo:if test="position() > 1">
2076 <xslo:value-of select="substring(' ', 1, 1)"/>
2078 <xslo:value-of select="."/>
2081 <xslo:value-of select="normalize-space($raw_heading)"/>
2084 <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
2085 <z:index name="Extent:w Extent:p">
2086 <xslo:variable name="raw_heading">
2087 <xslo:for-each select="marc:subfield">
2088 <xslo:if test="position() > 1">
2089 <xslo:value-of select="substring(' ', 1, 1)"/>
2091 <xslo:value-of select="."/>
2094 <xslo:value-of select="normalize-space($raw_heading)"/>
2097 <xslo:template mode="index_data_field" match="marc:datafield[@tag='400']">
2098 <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
2099 <xslo:variable name="raw_heading">
2100 <xslo:for-each select="marc:subfield">
2101 <xslo:if test="position() > 1">
2102 <xslo:value-of select="substring(' ', 1, 1)"/>
2104 <xslo:value-of select="."/>
2107 <xslo:value-of select="normalize-space($raw_heading)"/>
2110 <xslo:template mode="index_data_field" match="marc:datafield[@tag='410']">
2111 <z:index name="Author:w Corporate-name:w">
2112 <xslo:variable name="raw_heading">
2113 <xslo:for-each select="marc:subfield">
2114 <xslo:if test="position() > 1">
2115 <xslo:value-of select="substring(' ', 1, 1)"/>
2117 <xslo:value-of select="."/>
2120 <xslo:value-of select="normalize-space($raw_heading)"/>
2123 <xslo:template mode="index_data_field" match="marc:datafield[@tag='411']">
2124 <z:index name="Author:w Conference-name:w">
2125 <xslo:variable name="raw_heading">
2126 <xslo:for-each select="marc:subfield">
2127 <xslo:if test="position() > 1">
2128 <xslo:value-of select="substring(' ', 1, 1)"/>
2130 <xslo:value-of select="."/>
2133 <xslo:value-of select="normalize-space($raw_heading)"/>
2136 <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
2137 <z:index name="Title-series:w Title-series:p Title:w Title-series:w">
2138 <xslo:variable name="raw_heading">
2139 <xslo:for-each select="marc:subfield">
2140 <xslo:if test="position() > 1">
2141 <xslo:value-of select="substring(' ', 1, 1)"/>
2143 <xslo:value-of select="."/>
2146 <xslo:value-of select="normalize-space($raw_heading)"/>
2149 <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
2150 <z:index name="Title:w Title-series:w">
2151 <xslo:variable name="raw_heading">
2152 <xslo:for-each select="marc:subfield">
2153 <xslo:if test="position() > 1">
2154 <xslo:value-of select="substring(' ', 1, 1)"/>
2156 <xslo:value-of select="."/>
2159 <xslo:value-of select="normalize-space($raw_heading)"/>
2162 <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
2163 <z:index name="Note:w Note:p">
2164 <xslo:variable name="raw_heading">
2165 <xslo:for-each select="marc:subfield">
2166 <xslo:if test="position() > 1">
2167 <xslo:value-of select="substring(' ', 1, 1)"/>
2169 <xslo:value-of select="."/>
2172 <xslo:value-of select="normalize-space($raw_heading)"/>
2175 <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
2176 <z:index name="Material-type:w Dissertation-information:p Dissertation-information:w">
2177 <xslo:variable name="raw_heading">
2178 <xslo:for-each select="marc:subfield">
2179 <xslo:if test="position() > 1">
2180 <xslo:value-of select="substring(' ', 1, 1)"/>
2182 <xslo:value-of select="."/>
2185 <xslo:value-of select="normalize-space($raw_heading)"/>
2188 <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
2189 <z:index name="Note:w Note:p">
2190 <xslo:variable name="raw_heading">
2191 <xslo:for-each select="marc:subfield">
2192 <xslo:if test="position() > 1">
2193 <xslo:value-of select="substring(' ', 1, 1)"/>
2195 <xslo:value-of select="."/>
2198 <xslo:value-of select="normalize-space($raw_heading)"/>
2201 <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
2202 <z:index name="Indexed-by:w">
2203 <xslo:variable name="raw_heading">
2204 <xslo:for-each select="marc:subfield">
2205 <xslo:if test="position() > 1">
2206 <xslo:value-of select="substring(' ', 1, 1)"/>
2208 <xslo:value-of select="."/>
2211 <xslo:value-of select="normalize-space($raw_heading)"/>
2214 <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
2215 <z:index name="Abstract:w Abstract:p">
2216 <xslo:variable name="raw_heading">
2217 <xslo:for-each select="marc:subfield">
2218 <xslo:if test="position() > 1">
2219 <xslo:value-of select="substring(' ', 1, 1)"/>
2221 <xslo:value-of select="."/>
2224 <xslo:value-of select="normalize-space($raw_heading)"/>
2227 <xslo:template mode="index_data_field" match="marc:datafield[@tag='590']">
2228 <z:index name="Note:w Note:p">
2229 <xslo:variable name="raw_heading">
2230 <xslo:for-each select="marc:subfield">
2231 <xslo:if test="position() > 1">
2232 <xslo:value-of select="substring(' ', 1, 1)"/>
2234 <xslo:value-of select="."/>
2237 <xslo:value-of select="normalize-space($raw_heading)"/>
2240 <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
2241 <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
2242 <xslo:variable name="raw_heading">
2243 <xslo:for-each select="marc:subfield">
2244 <xslo:if test="position() > 1">
2245 <xslo:value-of select="substring(' ', 1, 1)"/>
2247 <xslo:value-of select="."/>
2250 <xslo:value-of select="normalize-space($raw_heading)"/>
2253 <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2254 <z:index name="Name:w Subject:w Subject:p Corporate-name:w">
2255 <xslo:variable name="raw_heading">
2256 <xslo:for-each select="marc:subfield">
2257 <xslo:if test="position() > 1">
2258 <xslo:value-of select="substring(' ', 1, 1)"/>
2260 <xslo:value-of select="."/>
2263 <xslo:value-of select="normalize-space($raw_heading)"/>
2266 <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
2267 <z:index name="Conference-name:w Name:w Subject:w Subject:p">
2268 <xslo:variable name="raw_heading">
2269 <xslo:for-each select="marc:subfield">
2270 <xslo:if test="position() > 1">
2271 <xslo:value-of select="substring(' ', 1, 1)"/>
2273 <xslo:value-of select="."/>
2276 <xslo:value-of select="normalize-space($raw_heading)"/>
2279 <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2280 <z:index name="Subject:w Subject:p">
2281 <xslo:variable name="raw_heading">
2282 <xslo:for-each select="marc:subfield">
2283 <xslo:if test="position() > 1">
2284 <xslo:value-of select="substring(' ', 1, 1)"/>
2286 <xslo:value-of select="."/>
2289 <xslo:value-of select="normalize-space($raw_heading)"/>
2292 <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
2293 <z:index name="Subject:w Subject:p">
2294 <xslo:variable name="raw_heading">
2295 <xslo:for-each select="marc:subfield">
2296 <xslo:if test="position() > 1">
2297 <xslo:value-of select="substring(' ', 1, 1)"/>
2299 <xslo:value-of select="."/>
2302 <xslo:value-of select="normalize-space($raw_heading)"/>
2305 <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
2306 <z:index name="Name-geographic:w Subject:w Subject:p">
2307 <xslo:variable name="raw_heading">
2308 <xslo:for-each select="marc:subfield">
2309 <xslo:if test="position() > 1">
2310 <xslo:value-of select="substring(' ', 1, 1)"/>
2312 <xslo:value-of select="."/>
2315 <xslo:value-of select="normalize-space($raw_heading)"/>
2318 <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
2319 <z:index name="Subject:w Subject:p">
2320 <xslo:variable name="raw_heading">
2321 <xslo:for-each select="marc:subfield">
2322 <xslo:if test="position() > 1">
2323 <xslo:value-of select="substring(' ', 1, 1)"/>
2325 <xslo:value-of select="."/>
2328 <xslo:value-of select="normalize-space($raw_heading)"/>
2331 <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
2332 <z:index name="Subject:w Subject:p">
2333 <xslo:variable name="raw_heading">
2334 <xslo:for-each select="marc:subfield">
2335 <xslo:if test="position() > 1">
2336 <xslo:value-of select="substring(' ', 1, 1)"/>
2338 <xslo:value-of select="."/>
2341 <xslo:value-of select="normalize-space($raw_heading)"/>
2344 <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
2345 <z:index name="Subject:w Subject:p">
2346 <xslo:variable name="raw_heading">
2347 <xslo:for-each select="marc:subfield">
2348 <xslo:if test="position() > 1">
2349 <xslo:value-of select="substring(' ', 1, 1)"/>
2351 <xslo:value-of select="."/>
2354 <xslo:value-of select="normalize-space($raw_heading)"/>
2357 <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
2358 <z:index name="Subject:w Subject:p">
2359 <xslo:variable name="raw_heading">
2360 <xslo:for-each select="marc:subfield">
2361 <xslo:if test="position() > 1">
2362 <xslo:value-of select="substring(' ', 1, 1)"/>
2364 <xslo:value-of select="."/>
2367 <xslo:value-of select="normalize-space($raw_heading)"/>
2370 <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
2371 <z:index name="Subject:w Subject:p">
2372 <xslo:variable name="raw_heading">
2373 <xslo:for-each select="marc:subfield">
2374 <xslo:if test="position() > 1">
2375 <xslo:value-of select="substring(' ', 1, 1)"/>
2377 <xslo:value-of select="."/>
2380 <xslo:value-of select="normalize-space($raw_heading)"/>
2383 <xslo:template mode="index_data_field" match="marc:datafield[@tag='658']">
2384 <z:index name="Subject:w Subject:p">
2385 <xslo:variable name="raw_heading">
2386 <xslo:for-each select="marc:subfield">
2387 <xslo:if test="position() > 1">
2388 <xslo:value-of select="substring(' ', 1, 1)"/>
2390 <xslo:value-of select="."/>
2393 <xslo:value-of select="normalize-space($raw_heading)"/>
2396 <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
2397 <z:index name="Subject:w Subject:p">
2398 <xslo:variable name="raw_heading">
2399 <xslo:for-each select="marc:subfield">
2400 <xslo:if test="position() > 1">
2401 <xslo:value-of select="substring(' ', 1, 1)"/>
2403 <xslo:value-of select="."/>
2406 <xslo:value-of select="normalize-space($raw_heading)"/>
2409 <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2410 <z:index name="Author:w Author:p Author-name-personal:w Name:w Editor:w Personal-name:w">
2411 <xslo:variable name="raw_heading">
2412 <xslo:for-each select="marc:subfield">
2413 <xslo:if test="position() > 1">
2414 <xslo:value-of select="substring(' ', 1, 1)"/>
2416 <xslo:value-of select="."/>
2419 <xslo:value-of select="normalize-space($raw_heading)"/>
2422 <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2423 <z:index name="Author:w Author:p Corporate-name:w Name:w">
2424 <xslo:variable name="raw_heading">
2425 <xslo:for-each select="marc:subfield">
2426 <xslo:if test="position() > 1">
2427 <xslo:value-of select="substring(' ', 1, 1)"/>
2429 <xslo:value-of select="."/>
2432 <xslo:value-of select="normalize-space($raw_heading)"/>
2435 <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2436 <z:index name="Author:w Author:p Author-name-corporate:w Name:w Conference-name:w">
2437 <xslo:variable name="raw_heading">
2438 <xslo:for-each select="marc:subfield">
2439 <xslo:if test="position() > 1">
2440 <xslo:value-of select="substring(' ', 1, 1)"/>
2442 <xslo:value-of select="."/>
2445 <xslo:value-of select="normalize-space($raw_heading)"/>
2448 <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2449 <z:index name="Title:w Title:p Title-uniform:w">
2450 <xslo:variable name="raw_heading">
2451 <xslo:for-each select="marc:subfield">
2452 <xslo:if test="position() > 1">
2453 <xslo:value-of select="substring(' ', 1, 1)"/>
2455 <xslo:value-of select="."/>
2458 <xslo:value-of select="normalize-space($raw_heading)"/>
2461 <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
2462 <z:index name="Title:w Title:p Title-other-variant:w">
2463 <xslo:variable name="raw_heading">
2464 <xslo:for-each select="marc:subfield">
2465 <xslo:if test="position() > 1">
2466 <xslo:value-of select="substring(' ', 1, 1)"/>
2468 <xslo:value-of select="."/>
2471 <xslo:value-of select="normalize-space($raw_heading)"/>
2474 <xslo:template mode="index_data_field" match="marc:datafield[@tag='751']">
2475 <z:index name="Name-geographic:w">
2476 <xslo:variable name="raw_heading">
2477 <xslo:for-each select="marc:subfield">
2478 <xslo:if test="position() > 1">
2479 <xslo:value-of select="substring(' ', 1, 1)"/>
2481 <xslo:value-of select="."/>
2484 <xslo:value-of select="normalize-space($raw_heading)"/>
2487 <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
2488 <z:index name="Title:w Title:p Title-former:w Related-periodical:w">
2489 <xslo:variable name="raw_heading">
2490 <xslo:for-each select="marc:subfield">
2491 <xslo:if test="position() > 1">
2492 <xslo:value-of select="substring(' ', 1, 1)"/>
2494 <xslo:value-of select="."/>
2497 <xslo:value-of select="normalize-space($raw_heading)"/>
2500 <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
2501 <z:index name="Title:w Title:p Title-later:w Related-periodical:w">
2502 <xslo:variable name="raw_heading">
2503 <xslo:for-each select="marc:subfield">
2504 <xslo:if test="position() > 1">
2505 <xslo:value-of select="substring(' ', 1, 1)"/>
2507 <xslo:value-of select="."/>
2510 <xslo:value-of select="normalize-space($raw_heading)"/>
2513 <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
2514 <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
2515 <xslo:variable name="raw_heading">
2516 <xslo:for-each select="marc:subfield">
2517 <xslo:if test="position() > 1">
2518 <xslo:value-of select="substring(' ', 1, 1)"/>
2520 <xslo:value-of select="."/>
2523 <xslo:value-of select="normalize-space($raw_heading)"/>
2526 <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
2527 <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w">
2528 <xslo:variable name="raw_heading">
2529 <xslo:for-each select="marc:subfield">
2530 <xslo:if test="position() > 1">
2531 <xslo:value-of select="substring(' ', 1, 1)"/>
2533 <xslo:value-of select="."/>
2536 <xslo:value-of select="normalize-space($raw_heading)"/>
2539 <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
2540 <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w">
2541 <xslo:variable name="raw_heading">
2542 <xslo:for-each select="marc:subfield">
2543 <xslo:if test="position() > 1">
2544 <xslo:value-of select="substring(' ', 1, 1)"/>
2546 <xslo:value-of select="."/>
2549 <xslo:value-of select="normalize-space($raw_heading)"/>
2552 <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
2553 <z:index name="Title:w Title-series:w Title-series:p">
2554 <xslo:variable name="raw_heading">
2555 <xslo:for-each select="marc:subfield">
2556 <xslo:if test="position() > 1">
2557 <xslo:value-of select="substring(' ', 1, 1)"/>
2559 <xslo:value-of select="."/>
2562 <xslo:value-of select="normalize-space($raw_heading)"/>
2565 <xslo:template mode="index_data_field" match="marc:datafield[@tag='840']">
2566 <z:index name="Title:w Title-series:w Title-series:p">
2567 <xslo:variable name="raw_heading">
2568 <xslo:for-each select="marc:subfield">
2569 <xslo:if test="position() > 1">
2570 <xslo:value-of select="substring(' ', 1, 1)"/>
2572 <xslo:value-of select="."/>
2575 <xslo:value-of select="normalize-space($raw_heading)"/>
2578 <xslo:template mode="index_facets" match="marc:datafield[@tag='100']">
2579 <xslo:if test="not(@ind1='z')">
2580 <z:index name="au:0">
2581 <xslo:value-of select="marc:subfield[@code='a']"/>
2585 <xslo:template mode="index_facets" match="marc:datafield[@tag='110']">
2586 <xslo:if test="not(@ind1='z')">
2587 <z:index name="au:0">
2588 <xslo:value-of select="marc:subfield[@code='a']"/>
2592 <xslo:template mode="index_facets" match="marc:datafield[@tag='440']">
2593 <xslo:if test="not(@ind1='z')">
2594 <z:index name="se:0">
2595 <xslo:value-of select="marc:subfield[@code='a']"/>
2599 <xslo:template mode="index_facets" match="marc:datafield[@tag='490']">
2600 <xslo:if test="not(@ind1='z')">
2601 <z:index name="se:0">
2602 <xslo:value-of select="marc:subfield[@code='a']"/>
2606 <xslo:template mode="index_facets" match="marc:datafield[@tag='630']">
2607 <xslo:if test="not(@ind1='z')">
2608 <z:index name="su-ut:0">
2609 <xslo:value-of select="marc:subfield[@code='a']"/>
2613 <xslo:template mode="index_facets" match="marc:datafield[@tag='650']">
2614 <xslo:if test="not(@ind1='z')">
2615 <z:index name="su-to:0">
2616 <xslo:value-of select="marc:subfield[@code='a']"/>
2620 <xslo:template mode="index_facets" match="marc:datafield[@tag='651']">
2621 <xslo:if test="not(@ind1='z')">
2622 <z:index name="su-geo:0">
2623 <xslo:value-of select="marc:subfield[@code='a']"/>
2627 <xslo:template mode="index_facets" match="marc:datafield[@tag='700']">
2628 <xslo:if test="not(@ind1='z')">
2629 <z:index name="au:0">
2630 <xslo:value-of select="marc:subfield[@code='a']"/>
2634 <xslo:template mode="index_facets" match="marc:datafield[@tag='942']">
2635 <xslo:if test="not(@ind1='z')">
2636 <z:index name="itype:0">
2637 <xslo:value-of select="marc:subfield[@code='c']"/>
2641 <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
2642 <xslo:if test="not(@ind1='z')">
2643 <z:index name="homebranch:0">
2644 <xslo:value-of select="marc:subfield[@code='a']"/>
2646 <z:index name="holdingbranch:0">
2647 <xslo:value-of select="marc:subfield[@code='b']"/>
2649 <z:index name="location:0">
2650 <xslo:value-of select="marc:subfield[@code='c']"/>
2652 <z:index name="itype:0">
2653 <xslo:value-of select="marc:subfield[@code='y']"/>
2655 <z:index name="ccode:0">
2656 <xslo:value-of select="marc:subfield[@code='8']"/>
2660 <xslo:template mode="index_all" match="text()">
2661 <z:index name="Any:w Any:p">
2662 <xslo:value-of select="."/>
2665 <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
2666 <xslo:variable name="chop">
2668 <xslo:when test="not(number(@ind2))">0</xslo:when>
2670 <xslo:value-of select="number(@ind2)"/>
2674 <z:index name="Title:s">
2675 <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
2678 <xslo:template name="chopPunctuation">
2679 <xslo:param name="chopString"/>
2680 <xslo:variable name="length" select="string-length($chopString)"/>
2682 <xslo:when test="$length=0"/>
2683 <xslo:when test="contains('-,.:=;!%/', substring($chopString,$length,1))">
2684 <xslo:call-template name="chopPunctuation">
2685 <xslo:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
2686 </xslo:call-template>
2688 <xslo:when test="not($chopString)"/>
2690 <xslo:value-of select="$chopString"/>