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='690']">
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='700']">
759 <xslo:for-each select="marc:subfield">
760 <xslo:if test="contains('9', @code)">
761 <z:index name="Cross-Reference:w Koha-Auth-Number:w">
762 <xslo:value-of select="."/>
766 <xslo:for-each select="marc:subfield">
767 <xslo:if test="contains('a', @code)">
768 <z:index name="Author:w Author:p">
769 <xslo:value-of select="."/>
773 <xslo:for-each select="marc:subfield">
774 <xslo:if test="contains('n', @code)">
775 <z:index name="Thematic-number:w">
776 <xslo:value-of select="."/>
780 <xslo:for-each select="marc:subfield">
781 <xslo:if test="contains('r', @code)">
782 <z:index name="Music-key:w">
783 <xslo:value-of select="."/>
787 <xslo:for-each select="marc:subfield">
788 <xslo:if test="contains('t', @code)">
789 <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
790 <xslo:value-of select="."/>
795 <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
796 <xslo:for-each select="marc:subfield">
797 <xslo:if test="contains('t', @code)">
798 <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
799 <xslo:value-of select="."/>
803 <xslo:for-each select="marc:subfield">
804 <xslo:if test="contains('a', @code)">
805 <z:index name="Name-and-title:w">
806 <xslo:value-of select="."/>
810 <xslo:for-each select="marc:subfield">
811 <xslo:if test="contains('9', @code)">
812 <z:index name="Koha-Auth-Number:w">
813 <xslo:value-of select="."/>
818 <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
819 <xslo:for-each select="marc:subfield">
820 <xslo:if test="contains('a', @code)">
821 <z:index name="Name-and-title:w">
822 <xslo:value-of select="."/>
826 <xslo:for-each select="marc:subfield">
827 <xslo:if test="contains('t', @code)">
828 <z:index name="Author-title:w Title:w Title-uniform:w">
829 <xslo:value-of select="."/>
833 <xslo:for-each select="marc:subfield">
834 <xslo:if test="contains('9', @code)">
835 <z:index name="Koha-Auth-Number:w">
836 <xslo:value-of select="."/>
841 <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
842 <xslo:for-each select="marc:subfield">
843 <xslo:if test="contains('n', @code)">
844 <z:index name="Thematic-number:w">
845 <xslo:value-of select="."/>
849 <xslo:for-each select="marc:subfield">
850 <xslo:if test="contains('r', @code)">
851 <z:index name="Music-key:w">
852 <xslo:value-of select="."/>
856 <xslo:for-each select="marc:subfield">
857 <xslo:if test="contains('9', @code)">
858 <z:index name="Koha-Auth-Number:w">
859 <xslo:value-of select="."/>
864 <xslo:template mode="index_subfields" match="marc:datafield[@tag='751']">
865 <xslo:for-each select="marc:subfield">
866 <xslo:if test="contains('a', @code)">
867 <z:index name="Name-geographic:w">
868 <xslo:value-of select="."/>
872 <xslo:for-each select="marc:subfield">
873 <xslo:if test="contains('9', @code)">
874 <z:index name="Koha-Auth-Number:w">
875 <xslo:value-of select="."/>
880 <xslo:template mode="index_subfields" match="marc:datafield[@tag='770']">
881 <xslo:for-each select="marc:subfield">
882 <xslo:if test="contains('w', @code)">
883 <z:index name="Record-control-number:w">
884 <xslo:value-of select="."/>
889 <xslo:template mode="index_subfields" match="marc:datafield[@tag='772']">
890 <xslo:for-each select="marc:subfield">
891 <xslo:if test="contains('w', @code)">
892 <z:index name="Record-control-number:w">
893 <xslo:value-of select="."/>
898 <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
899 <xslo:for-each select="marc:subfield">
900 <xslo:if test="contains('a', @code)">
901 <z:index name="Host-item:w">
902 <xslo:value-of select="."/>
906 <xslo:for-each select="marc:subfield">
907 <xslo:if test="contains('9', @code)">
908 <z:index name="Host-Item-Number:w">
909 <xslo:value-of select="."/>
913 <xslo:for-each select="marc:subfield">
914 <xslo:if test="contains('t', @code)">
915 <z:index name="Host-item:w">
916 <xslo:value-of select="."/>
920 <xslo:for-each select="marc:subfield">
921 <xslo:if test="contains('w', @code)">
922 <z:index name="Record-control-number:w">
923 <xslo:value-of select="."/>
928 <xslo:template mode="index_subfields" match="marc:datafield[@tag='774']">
929 <xslo:for-each select="marc:subfield">
930 <xslo:if test="contains('w', @code)">
931 <z:index name="Record-control-number:w">
932 <xslo:value-of select="."/>
937 <xslo:template mode="index_subfields" match="marc:datafield[@tag='775']">
938 <xslo:for-each select="marc:subfield">
939 <xslo:if test="contains('w', @code)">
940 <z:index name="Record-control-number:w">
941 <xslo:value-of select="."/>
946 <xslo:template mode="index_subfields" match="marc:datafield[@tag='776']">
947 <xslo:for-each select="marc:subfield">
948 <xslo:if test="contains('w', @code)">
949 <z:index name="Record-control-number:w">
950 <xslo:value-of select="."/>
955 <xslo:template mode="index_subfields" match="marc:datafield[@tag='777']">
956 <xslo:for-each select="marc:subfield">
957 <xslo:if test="contains('w', @code)">
958 <z:index name="Record-control-number:w">
959 <xslo:value-of select="."/>
964 <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
965 <xslo:for-each select="marc:subfield">
966 <xslo:if test="contains('t', @code)">
967 <z:index name="Title:w">
968 <xslo:value-of select="."/>
972 <xslo:for-each select="marc:subfield">
973 <xslo:if test="contains('w', @code)">
974 <z:index name="Record-control-number:w">
975 <xslo:value-of select="."/>
980 <xslo:template mode="index_subfields" match="marc:datafield[@tag='785']">
981 <xslo:for-each select="marc:subfield">
982 <xslo:if test="contains('w', @code)">
983 <z:index name="Record-control-number:w">
984 <xslo:value-of select="."/>
989 <xslo:template mode="index_subfields" match="marc:datafield[@tag='787']">
990 <xslo:for-each select="marc:subfield">
991 <xslo:if test="contains('w', @code)">
992 <z:index name="Record-control-number:w">
993 <xslo:value-of select="."/>
998 <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
999 <xslo:for-each select="marc:subfield">
1000 <xslo:if test="contains('a', @code)">
1001 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1002 <xslo:value-of select="."/>
1006 <xslo:for-each select="marc:subfield">
1007 <xslo:if test="contains('t', @code)">
1008 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1009 <xslo:value-of select="."/>
1013 <xslo:for-each select="marc:subfield">
1014 <xslo:if test="contains('9', @code)">
1015 <z:index name="Koha-Auth-Number:w">
1016 <xslo:value-of select="."/>
1020 <xslo:for-each select="marc:subfield">
1021 <xslo:if test="contains('w', @code)">
1022 <z:index name="Record-control-number:w">
1023 <xslo:value-of select="."/>
1028 <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
1029 <xslo:for-each select="marc:subfield">
1030 <xslo:if test="contains('a', @code)">
1031 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1032 <xslo:value-of select="."/>
1036 <xslo:for-each select="marc:subfield">
1037 <xslo:if test="contains('t', @code)">
1038 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1039 <xslo:value-of select="."/>
1043 <xslo:for-each select="marc:subfield">
1044 <xslo:if test="contains('w', @code)">
1045 <z:index name="Record-control-number:w">
1046 <xslo:value-of select="."/>
1050 <xslo:for-each select="marc:subfield">
1051 <xslo:if test="contains('9', @code)">
1052 <z:index name="Koha-Auth-Number:w">
1053 <xslo:value-of select="."/>
1058 <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
1059 <xslo:for-each select="marc:subfield">
1060 <xslo:if test="contains('a', @code)">
1061 <z:index name="Name-and-title:w Title-series:w Title-series:p">
1062 <xslo:value-of select="."/>
1066 <xslo:for-each select="marc:subfield">
1067 <xslo:if test="contains('9', @code)">
1068 <z:index name="Koha-Auth-Number:w">
1069 <xslo:value-of select="."/>
1073 <xslo:for-each select="marc:subfield">
1074 <xslo:if test="contains('t', @code)">
1075 <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
1076 <xslo:value-of select="."/>
1080 <xslo:for-each select="marc:subfield">
1081 <xslo:if test="contains('w', @code)">
1082 <z:index name="Record-control-number:w">
1083 <xslo:value-of select="."/>
1088 <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
1089 <xslo:for-each select="marc:subfield">
1090 <xslo:if test="contains('w', @code)">
1091 <z:index name="Record-control-number:w">
1092 <xslo:value-of select="."/>
1096 <xslo:for-each select="marc:subfield">
1097 <xslo:if test="contains('9', @code)">
1098 <z:index name="Koha-Auth-Number:w">
1099 <xslo:value-of select="."/>
1104 <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1105 <xslo:for-each select="marc:subfield">
1106 <xslo:if test="contains('c', @code)">
1107 <z:index name="Local-Number:n Local-Number:w Local-Number:s">
1108 <xslo:value-of select="."/>
1112 <xslo:for-each select="marc:subfield">
1113 <xslo:if test="contains('d', @code)">
1114 <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
1115 <xslo:value-of select="."/>
1120 <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1121 <xslo:for-each select="marc:subfield">
1122 <xslo:if test="contains('0', @code)">
1123 <z:index name="totalissues:n totalissues:s">
1124 <xslo:value-of select="."/>
1128 <xslo:for-each select="marc:subfield">
1129 <xslo:if test="contains('2', @code)">
1130 <z:index name="cn-bib-source:w">
1131 <xslo:value-of select="."/>
1135 <xslo:for-each select="marc:subfield">
1136 <xslo:if test="contains('6', @code)">
1137 <z:index name="cn-bib-sort:n cn-bib-sort:s">
1138 <xslo:value-of select="."/>
1142 <xslo:for-each select="marc:subfield">
1143 <xslo:if test="contains('c', @code)">
1144 <z:index name="itemtype:w itemtype:p itype:w itype:p">
1145 <xslo:value-of select="."/>
1149 <xslo:for-each select="marc:subfield">
1150 <xslo:if test="contains('n', @code)">
1151 <z:index name="Suppress:w Suppress:n">
1152 <xslo:value-of select="."/>
1156 <xslo:for-each select="marc:subfield">
1157 <xslo:if test="contains('h', @code)">
1158 <z:index name="cn-class:w">
1159 <xslo:value-of select="."/>
1163 <xslo:for-each select="marc:subfield">
1164 <xslo:if test="contains('i', @code)">
1165 <z:index name="cn-item:w">
1166 <xslo:value-of select="."/>
1170 <xslo:for-each select="marc:subfield">
1171 <xslo:if test="contains('k', @code)">
1172 <z:index name="cn-prefix:w">
1173 <xslo:value-of select="."/>
1177 <xslo:for-each select="marc:subfield">
1178 <xslo:if test="contains('m', @code)">
1179 <z:index name="cn-suffix:w">
1180 <xslo:value-of select="."/>
1185 <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
1186 <xslo:for-each select="marc:subfield">
1187 <xslo:if test="contains('0', @code)">
1188 <z:index name="withdrawn:n withdrawn:w">
1189 <xslo:value-of select="."/>
1193 <xslo:for-each select="marc:subfield">
1194 <xslo:if test="contains('1', @code)">
1195 <z:index name="lost:w lost:n">
1196 <xslo:value-of select="."/>
1200 <xslo:for-each select="marc:subfield">
1201 <xslo:if test="contains('2', @code)">
1202 <z:index name="classification-source:w">
1203 <xslo:value-of select="."/>
1207 <xslo:for-each select="marc:subfield">
1208 <xslo:if test="contains('3', @code)">
1209 <z:index name="materials-specified:w">
1210 <xslo:value-of select="."/>
1214 <xslo:for-each select="marc:subfield">
1215 <xslo:if test="contains('4', @code)">
1216 <z:index name="damaged:n damaged:w">
1217 <xslo:value-of select="."/>
1221 <xslo:for-each select="marc:subfield">
1222 <xslo:if test="contains('5', @code)">
1223 <z:index name="restricted:n restricted:w">
1224 <xslo:value-of select="."/>
1228 <xslo:for-each select="marc:subfield">
1229 <xslo:if test="contains('6', @code)">
1230 <z:index name="cn-sort:n cn-sort:s">
1231 <xslo:value-of select="."/>
1235 <xslo:for-each select="marc:subfield">
1236 <xslo:if test="contains('7', @code)">
1237 <z:index name="notforloan:n notforloan:w">
1238 <xslo:value-of select="."/>
1242 <xslo:for-each select="marc:subfield">
1243 <xslo:if test="contains('8', @code)">
1244 <z:index name="ccode:w ccode:p">
1245 <xslo:value-of select="."/>
1249 <xslo:for-each select="marc:subfield">
1250 <xslo:if test="contains('9', @code)">
1251 <z:index name="itemnumber:n itemnumber:s">
1252 <xslo:value-of select="."/>
1256 <xslo:for-each select="marc:subfield">
1257 <xslo:if test="contains('a', @code)">
1258 <z:index name="homebranch:w">
1259 <xslo:value-of select="."/>
1263 <xslo:for-each select="marc:subfield">
1264 <xslo:if test="contains('b', @code)">
1265 <z:index name="holdingbranch:w">
1266 <xslo:value-of select="."/>
1270 <xslo:for-each select="marc:subfield">
1271 <xslo:if test="contains('c', @code)">
1272 <z:index name="location:w">
1273 <xslo:value-of select="."/>
1277 <xslo:for-each select="marc:subfield">
1278 <xslo:if test="contains('d', @code)">
1279 <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
1280 <xslo:value-of select="."/>
1284 <xslo:for-each select="marc:subfield">
1285 <xslo:if test="contains('e', @code)">
1286 <z:index name="acqsource:w">
1287 <xslo:value-of select="."/>
1291 <xslo:for-each select="marc:subfield">
1292 <xslo:if test="contains('f', @code)">
1293 <z:index name="coded-location-qualifier:w">
1294 <xslo:value-of select="."/>
1298 <xslo:for-each select="marc:subfield">
1299 <xslo:if test="contains('g', @code)">
1300 <z:index name="price:w">
1301 <xslo:value-of select="."/>
1305 <xslo:for-each select="marc:subfield">
1306 <xslo:if test="contains('i', @code)">
1307 <z:index name="Number-local-acquisition:w">
1308 <xslo:value-of select="."/>
1312 <xslo:for-each select="marc:subfield">
1313 <xslo:if test="contains('j', @code)">
1314 <z:index name="stack:n stack:w">
1315 <xslo:value-of select="."/>
1319 <xslo:for-each select="marc:subfield">
1320 <xslo:if test="contains('l', @code)">
1321 <z:index name="issues:n issues:w issues:s">
1322 <xslo:value-of select="."/>
1326 <xslo:for-each select="marc:subfield">
1327 <xslo:if test="contains('m', @code)">
1328 <z:index name="renewals:n renewals:w">
1329 <xslo:value-of select="."/>
1333 <xslo:for-each select="marc:subfield">
1334 <xslo:if test="contains('n', @code)">
1335 <z:index name="reserves:n reserves:w">
1336 <xslo:value-of select="."/>
1340 <xslo:for-each select="marc:subfield">
1341 <xslo:if test="contains('o', @code)">
1342 <z:index name="Local-classification:w Local-classification:p Local-classification:s">
1343 <xslo:value-of select="."/>
1347 <xslo:for-each select="marc:subfield">
1348 <xslo:if test="contains('p', @code)">
1349 <z:index name="barcode:w barcode:n">
1350 <xslo:value-of select="."/>
1354 <xslo:for-each select="marc:subfield">
1355 <xslo:if test="contains('q', @code)">
1356 <z:index name="onloan:n onloan:w">
1357 <xslo:value-of select="."/>
1361 <xslo:for-each select="marc:subfield">
1362 <xslo:if test="contains('r', @code)">
1363 <z:index name="datelastseen:w">
1364 <xslo:value-of select="."/>
1368 <xslo:for-each select="marc:subfield">
1369 <xslo:if test="contains('s', @code)">
1370 <z:index name="datelastborrowed:w">
1371 <xslo:value-of select="."/>
1375 <xslo:for-each select="marc:subfield">
1376 <xslo:if test="contains('t', @code)">
1377 <z:index name="copynumber:w">
1378 <xslo:value-of select="."/>
1382 <xslo:for-each select="marc:subfield">
1383 <xslo:if test="contains('u', @code)">
1384 <z:index name="uri:u">
1385 <xslo:value-of select="."/>
1389 <xslo:for-each select="marc:subfield">
1390 <xslo:if test="contains('v', @code)">
1391 <z:index name="replacementprice:w">
1392 <xslo:value-of select="."/>
1396 <xslo:for-each select="marc:subfield">
1397 <xslo:if test="contains('w', @code)">
1398 <z:index name="replacementpricedate:w">
1399 <xslo:value-of select="."/>
1403 <xslo:for-each select="marc:subfield">
1404 <xslo:if test="contains('y', @code)">
1405 <z:index name="itype:w itype:p">
1406 <xslo:value-of select="."/>
1410 <xslo:for-each select="marc:subfield">
1411 <xslo:if test="contains('z', @code)">
1412 <z:index name="Note:w Note:p">
1413 <xslo:value-of select="."/>
1418 <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1419 <z:index name="LC-card-number:w Identifier-standard:w">
1420 <xslo:variable name="raw_heading">
1421 <xslo:for-each select="marc:subfield">
1422 <xslo:if test="position() > 1">
1423 <xslo:value-of select="substring(' ', 1, 1)"/>
1425 <xslo:value-of select="."/>
1428 <xslo:value-of select="normalize-space($raw_heading)"/>
1431 <xslo:template mode="index_data_field" match="marc:datafield[@tag='011']">
1432 <z:index name="LC-card-number:w Identifier-standard:w">
1433 <xslo:variable name="raw_heading">
1434 <xslo:for-each select="marc:subfield">
1435 <xslo:if test="position() > 1">
1436 <xslo:value-of select="substring(' ', 1, 1)"/>
1438 <xslo:value-of select="."/>
1441 <xslo:value-of select="normalize-space($raw_heading)"/>
1444 <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1445 <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1446 <xslo:variable name="raw_heading">
1447 <xslo:for-each select="marc:subfield">
1448 <xslo:if test="position() > 1">
1449 <xslo:value-of select="substring(' ', 1, 1)"/>
1451 <xslo:value-of select="."/>
1454 <xslo:value-of select="normalize-space($raw_heading)"/>
1457 <xslo:template mode="index_data_field" match="marc:datafield[@tag='017']">
1458 <z:index name="Number-legal-deposit:w Identifier-standard:w">
1459 <xslo:variable name="raw_heading">
1460 <xslo:for-each select="marc:subfield">
1461 <xslo:if test="position() > 1">
1462 <xslo:value-of select="substring(' ', 1, 1)"/>
1464 <xslo:value-of select="."/>
1467 <xslo:value-of select="normalize-space($raw_heading)"/>
1470 <xslo:template mode="index_data_field" match="marc:datafield[@tag='018']">
1471 <z:index name="Identifier-standard:w">
1472 <xslo:variable name="raw_heading">
1473 <xslo:for-each select="marc:subfield">
1474 <xslo:if test="position() > 1">
1475 <xslo:value-of select="substring(' ', 1, 1)"/>
1477 <xslo:value-of select="."/>
1480 <xslo:value-of select="normalize-space($raw_heading)"/>
1483 <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1484 <z:index name="Identifier-standard:w">
1485 <xslo:variable name="raw_heading">
1486 <xslo:for-each select="marc:subfield">
1487 <xslo:if test="position() > 1">
1488 <xslo:value-of select="substring(' ', 1, 1)"/>
1490 <xslo:value-of select="."/>
1493 <xslo:value-of select="normalize-space($raw_heading)"/>
1496 <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1497 <z:index name="Identifier-standard:w">
1498 <xslo:variable name="raw_heading">
1499 <xslo:for-each select="marc:subfield">
1500 <xslo:if test="position() > 1">
1501 <xslo:value-of select="substring(' ', 1, 1)"/>
1503 <xslo:value-of select="."/>
1506 <xslo:value-of select="normalize-space($raw_heading)"/>
1509 <xslo:template mode="index_data_field" match="marc:datafield[@tag='023']">
1510 <z:index name="Identifier-standard:w">
1511 <xslo:variable name="raw_heading">
1512 <xslo:for-each select="marc:subfield">
1513 <xslo:if test="position() > 1">
1514 <xslo:value-of select="substring(' ', 1, 1)"/>
1516 <xslo:value-of select="."/>
1519 <xslo:value-of select="normalize-space($raw_heading)"/>
1522 <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1523 <z:index name="Identifier-standard:w">
1524 <xslo:variable name="raw_heading">
1525 <xslo:for-each select="marc:subfield">
1526 <xslo:if test="position() > 1">
1527 <xslo:value-of select="substring(' ', 1, 1)"/>
1529 <xslo:value-of select="."/>
1532 <xslo:value-of select="normalize-space($raw_heading)"/>
1535 <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1536 <z:index name="Identifier-standard:w">
1537 <xslo:variable name="raw_heading">
1538 <xslo:for-each select="marc:subfield">
1539 <xslo:if test="position() > 1">
1540 <xslo:value-of select="substring(' ', 1, 1)"/>
1542 <xslo:value-of select="."/>
1545 <xslo:value-of select="normalize-space($raw_heading)"/>
1548 <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1549 <z:index name="Report-number:w Identifier-standard:w">
1550 <xslo:variable name="raw_heading">
1551 <xslo:for-each select="marc:subfield">
1552 <xslo:if test="position() > 1">
1553 <xslo:value-of select="substring(' ', 1, 1)"/>
1555 <xslo:value-of select="."/>
1558 <xslo:value-of select="normalize-space($raw_heading)"/>
1561 <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1562 <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
1563 <xslo:variable name="raw_heading">
1564 <xslo:for-each select="marc:subfield">
1565 <xslo:if test="position() > 1">
1566 <xslo:value-of select="substring(' ', 1, 1)"/>
1568 <xslo:value-of select="."/>
1571 <xslo:value-of select="normalize-space($raw_heading)"/>
1574 <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1575 <z:index name="CODEN:w Identifier-standard:w">
1576 <xslo:variable name="raw_heading">
1577 <xslo:for-each select="marc:subfield">
1578 <xslo:if test="position() > 1">
1579 <xslo:value-of select="substring(' ', 1, 1)"/>
1581 <xslo:value-of select="."/>
1584 <xslo:value-of select="normalize-space($raw_heading)"/>
1587 <xslo:template mode="index_data_field" match="marc:datafield[@tag='034']">
1588 <z:index name="Map-scale:w">
1589 <xslo:variable name="raw_heading">
1590 <xslo:for-each select="marc:subfield">
1591 <xslo:if test="position() > 1">
1592 <xslo:value-of select="substring(' ', 1, 1)"/>
1594 <xslo:value-of select="."/>
1597 <xslo:value-of select="normalize-space($raw_heading)"/>
1600 <xslo:template mode="index_data_field" match="marc:datafield[@tag='035']">
1601 <z:index name="Other-control-number:w">
1602 <xslo:variable name="raw_heading">
1603 <xslo:for-each select="marc:subfield">
1604 <xslo:if test="position() > 1">
1605 <xslo:value-of select="substring(' ', 1, 1)"/>
1607 <xslo:value-of select="."/>
1610 <xslo:value-of select="normalize-space($raw_heading)"/>
1613 <xslo:template mode="index_data_field" match="marc:datafield[@tag='037']">
1614 <z:index name="Identifier-standard:w Stock-number:w">
1615 <xslo:variable name="raw_heading">
1616 <xslo:for-each select="marc:subfield">
1617 <xslo:if test="position() > 1">
1618 <xslo:value-of select="substring(' ', 1, 1)"/>
1620 <xslo:value-of select="."/>
1623 <xslo:value-of select="normalize-space($raw_heading)"/>
1626 <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1627 <z:index name="Code-institution:w Record-source:w">
1628 <xslo:variable name="raw_heading">
1629 <xslo:for-each select="marc:subfield">
1630 <xslo:if test="position() > 1">
1631 <xslo:value-of select="substring(' ', 1, 1)"/>
1633 <xslo:value-of select="."/>
1636 <xslo:value-of select="normalize-space($raw_heading)"/>
1639 <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1640 <z:index name="Code-geographic:w">
1641 <xslo:variable name="raw_heading">
1642 <xslo:for-each select="marc:subfield">
1643 <xslo:if test="position() > 1">
1644 <xslo:value-of select="substring(' ', 1, 1)"/>
1646 <xslo:value-of select="."/>
1649 <xslo:value-of select="normalize-space($raw_heading)"/>
1652 <xslo:template mode="index_data_field" match="marc:datafield[@tag='050']">
1653 <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s">
1654 <xslo:variable name="raw_heading">
1655 <xslo:for-each select="marc:subfield">
1656 <xslo:if test="position() > 1">
1657 <xslo:value-of select="substring(' ', 1, 1)"/>
1659 <xslo:value-of select="."/>
1662 <xslo:value-of select="normalize-space($raw_heading)"/>
1665 <xslo:template mode="index_data_field" match="marc:datafield[@tag='052']">
1666 <z:index name="Geographic-class:w">
1667 <xslo:variable name="raw_heading">
1668 <xslo:for-each select="marc:subfield">
1669 <xslo:if test="position() > 1">
1670 <xslo:value-of select="substring(' ', 1, 1)"/>
1672 <xslo:value-of select="."/>
1675 <xslo:value-of select="normalize-space($raw_heading)"/>
1678 <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1679 <z:index name="NLM-call-number:w">
1680 <xslo:variable name="raw_heading">
1681 <xslo:for-each select="marc:subfield">
1682 <xslo:if test="position() > 1">
1683 <xslo:value-of select="substring(' ', 1, 1)"/>
1685 <xslo:value-of select="."/>
1688 <xslo:value-of select="normalize-space($raw_heading)"/>
1691 <xslo:template mode="index_data_field" match="marc:datafield[@tag='070']">
1692 <z:index name="NAL-call-number:w">
1693 <xslo:variable name="raw_heading">
1694 <xslo:for-each select="marc:subfield">
1695 <xslo:if test="position() > 1">
1696 <xslo:value-of select="substring(' ', 1, 1)"/>
1698 <xslo:value-of select="."/>
1701 <xslo:value-of select="normalize-space($raw_heading)"/>
1704 <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1705 <z:index name="UDC-classification:w">
1706 <xslo:variable name="raw_heading">
1707 <xslo:for-each select="marc:subfield">
1708 <xslo:if test="position() > 1">
1709 <xslo:value-of select="substring(' ', 1, 1)"/>
1711 <xslo:value-of select="."/>
1714 <xslo:value-of select="normalize-space($raw_heading)"/>
1717 <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1718 <z:index name="Dewey-classification:w Dewey-classification:s">
1719 <xslo:variable name="raw_heading">
1720 <xslo:for-each select="marc:subfield">
1721 <xslo:if test="position() > 1">
1722 <xslo:value-of select="substring(' ', 1, 1)"/>
1724 <xslo:value-of select="."/>
1727 <xslo:value-of select="normalize-space($raw_heading)"/>
1730 <xslo:template mode="index_data_field" match="marc:datafield[@tag='086']">
1731 <z:index name="Number-govt-pub:w">
1732 <xslo:variable name="raw_heading">
1733 <xslo:for-each select="marc:subfield">
1734 <xslo:if test="position() > 1">
1735 <xslo:value-of select="substring(' ', 1, 1)"/>
1737 <xslo:value-of select="."/>
1740 <xslo:value-of select="normalize-space($raw_heading)"/>
1743 <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1744 <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">
1745 <xslo:variable name="raw_heading">
1746 <xslo:for-each select="marc:subfield">
1747 <xslo:if test="position() > 1">
1748 <xslo:value-of select="substring(' ', 1, 1)"/>
1750 <xslo:value-of select="."/>
1753 <xslo:value-of select="normalize-space($raw_heading)"/>
1756 <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1757 <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">
1758 <xslo:variable name="raw_heading">
1759 <xslo:for-each select="marc:subfield">
1760 <xslo:if test="position() > 1">
1761 <xslo:value-of select="substring(' ', 1, 1)"/>
1763 <xslo:value-of select="."/>
1766 <xslo:value-of select="normalize-space($raw_heading)"/>
1769 <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1770 <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">
1771 <xslo:variable name="raw_heading">
1772 <xslo:for-each select="marc:subfield">
1773 <xslo:if test="position() > 1">
1774 <xslo:value-of select="substring(' ', 1, 1)"/>
1776 <xslo:value-of select="."/>
1779 <xslo:value-of select="normalize-space($raw_heading)"/>
1782 <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1783 <z:index name="Title:w Title:p Title-uniform:w">
1784 <xslo:variable name="raw_heading">
1785 <xslo:for-each select="marc:subfield">
1786 <xslo:if test="position() > 1">
1787 <xslo:value-of select="substring(' ', 1, 1)"/>
1789 <xslo:value-of select="."/>
1792 <xslo:value-of select="normalize-space($raw_heading)"/>
1795 <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1796 <z:index name="Title:w Title:p Title-abbreviated:w">
1797 <xslo:variable name="raw_heading">
1798 <xslo:for-each select="marc:subfield">
1799 <xslo:if test="position() > 1">
1800 <xslo:value-of select="substring(' ', 1, 1)"/>
1802 <xslo:value-of select="."/>
1805 <xslo:value-of select="normalize-space($raw_heading)"/>
1808 <xslo:template mode="index_data_field" match="marc:datafield[@tag='211']">
1809 <z:index name="Title:w Title:p Title-abbreviated:w">
1810 <xslo:variable name="raw_heading">
1811 <xslo:for-each select="marc:subfield">
1812 <xslo:if test="position() > 1">
1813 <xslo:value-of select="substring(' ', 1, 1)"/>
1815 <xslo:value-of select="."/>
1818 <xslo:value-of select="normalize-space($raw_heading)"/>
1821 <xslo:template mode="index_data_field" match="marc:datafield[@tag='212']">
1822 <z:index name="Title:w Title:p Title-other-variant:w">
1823 <xslo:variable name="raw_heading">
1824 <xslo:for-each select="marc:subfield">
1825 <xslo:if test="position() > 1">
1826 <xslo:value-of select="substring(' ', 1, 1)"/>
1828 <xslo:value-of select="."/>
1831 <xslo:value-of select="normalize-space($raw_heading)"/>
1834 <xslo:template mode="index_data_field" match="marc:datafield[@tag='214']">
1835 <z:index name="Title:w Title:p Title-expanded:w">
1836 <xslo:variable name="raw_heading">
1837 <xslo:for-each select="marc:subfield">
1838 <xslo:if test="position() > 1">
1839 <xslo:value-of select="substring(' ', 1, 1)"/>
1841 <xslo:value-of select="."/>
1844 <xslo:value-of select="normalize-space($raw_heading)"/>
1847 <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1848 <z:index name="Title:w Title:p Title-key:w">
1849 <xslo:variable name="raw_heading">
1850 <xslo:for-each select="marc:subfield">
1851 <xslo:if test="position() > 1">
1852 <xslo:value-of select="substring(' ', 1, 1)"/>
1854 <xslo:value-of select="."/>
1857 <xslo:value-of select="normalize-space($raw_heading)"/>
1860 <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1861 <z:index name="Title:w Title:p Title-uniform:w">
1862 <xslo:variable name="raw_heading">
1863 <xslo:for-each select="marc:subfield">
1864 <xslo:if test="position() > 1">
1865 <xslo:value-of select="substring(' ', 1, 1)"/>
1867 <xslo:value-of select="."/>
1870 <xslo:value-of select="normalize-space($raw_heading)"/>
1873 <xslo:template mode="index_data_field" match="marc:datafield[@tag='243']">
1874 <z:index name="Title:w Title:p Title-collective:w">
1875 <xslo:variable name="raw_heading">
1876 <xslo:for-each select="marc:subfield">
1877 <xslo:if test="position() > 1">
1878 <xslo:value-of select="substring(' ', 1, 1)"/>
1880 <xslo:value-of select="."/>
1883 <xslo:value-of select="normalize-space($raw_heading)"/>
1886 <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1887 <z:index name="Title:w Title:p">
1888 <xslo:variable name="raw_heading">
1889 <xslo:for-each select="marc:subfield">
1890 <xslo:if test="position() > 1">
1891 <xslo:value-of select="substring(' ', 1, 1)"/>
1893 <xslo:value-of select="."/>
1896 <xslo:value-of select="normalize-space($raw_heading)"/>
1899 <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1900 <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
1901 <xslo:variable name="raw_heading">
1902 <xslo:for-each select="marc:subfield">
1903 <xslo:if test="position() > 1">
1904 <xslo:value-of select="substring(' ', 1, 1)"/>
1906 <xslo:value-of select="."/>
1909 <xslo:value-of select="normalize-space($raw_heading)"/>
1912 <xslo:template mode="index_data_field" match="marc:datafield[@tag='247']">
1913 <z:index name="Title:w Title:p Title-former:w Title-other-variant:w Related-periodical:w">
1914 <xslo:variable name="raw_heading">
1915 <xslo:for-each select="marc:subfield">
1916 <xslo:if test="position() > 1">
1917 <xslo:value-of select="substring(' ', 1, 1)"/>
1919 <xslo:value-of select="."/>
1922 <xslo:value-of select="normalize-space($raw_heading)"/>
1925 <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1926 <z:index name="pl:w Provider:w">
1927 <xslo:variable name="raw_heading">
1928 <xslo:for-each select="marc:subfield">
1929 <xslo:if test="position() > 1">
1930 <xslo:value-of select="substring(' ', 1, 1)"/>
1932 <xslo:value-of select="."/>
1935 <xslo:value-of select="normalize-space($raw_heading)"/>
1938 <xslo:template mode="index_data_field" match="marc:datafield[@tag='264']">
1939 <z:index name="Provider:w">
1940 <xslo:variable name="raw_heading">
1941 <xslo:for-each select="marc:subfield">
1942 <xslo:if test="position() > 1">
1943 <xslo:value-of select="substring(' ', 1, 1)"/>
1945 <xslo:value-of select="."/>
1948 <xslo:value-of select="normalize-space($raw_heading)"/>
1951 <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1952 <z:index name="Extent:w Extent:p">
1953 <xslo:variable name="raw_heading">
1954 <xslo:for-each select="marc:subfield">
1955 <xslo:if test="position() > 1">
1956 <xslo:value-of select="substring(' ', 1, 1)"/>
1958 <xslo:value-of select="."/>
1961 <xslo:value-of select="normalize-space($raw_heading)"/>
1964 <xslo:template mode="index_data_field" match="marc:datafield[@tag='400']">
1965 <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
1966 <xslo:variable name="raw_heading">
1967 <xslo:for-each select="marc:subfield">
1968 <xslo:if test="position() > 1">
1969 <xslo:value-of select="substring(' ', 1, 1)"/>
1971 <xslo:value-of select="."/>
1974 <xslo:value-of select="normalize-space($raw_heading)"/>
1977 <xslo:template mode="index_data_field" match="marc:datafield[@tag='410']">
1978 <z:index name="Author:w Corporate-name:w">
1979 <xslo:variable name="raw_heading">
1980 <xslo:for-each select="marc:subfield">
1981 <xslo:if test="position() > 1">
1982 <xslo:value-of select="substring(' ', 1, 1)"/>
1984 <xslo:value-of select="."/>
1987 <xslo:value-of select="normalize-space($raw_heading)"/>
1990 <xslo:template mode="index_data_field" match="marc:datafield[@tag='411']">
1991 <z:index name="Author:w Conference-name:w">
1992 <xslo:variable name="raw_heading">
1993 <xslo:for-each select="marc:subfield">
1994 <xslo:if test="position() > 1">
1995 <xslo:value-of select="substring(' ', 1, 1)"/>
1997 <xslo:value-of select="."/>
2000 <xslo:value-of select="normalize-space($raw_heading)"/>
2003 <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
2004 <z:index name="Title-series:w Title-series:p Title:w Title-series:w">
2005 <xslo:variable name="raw_heading">
2006 <xslo:for-each select="marc:subfield">
2007 <xslo:if test="position() > 1">
2008 <xslo:value-of select="substring(' ', 1, 1)"/>
2010 <xslo:value-of select="."/>
2013 <xslo:value-of select="normalize-space($raw_heading)"/>
2016 <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
2017 <z:index name="Title:w Title-series:w">
2018 <xslo:variable name="raw_heading">
2019 <xslo:for-each select="marc:subfield">
2020 <xslo:if test="position() > 1">
2021 <xslo:value-of select="substring(' ', 1, 1)"/>
2023 <xslo:value-of select="."/>
2026 <xslo:value-of select="normalize-space($raw_heading)"/>
2029 <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
2030 <z:index name="Note:w Note:p">
2031 <xslo:variable name="raw_heading">
2032 <xslo:for-each select="marc:subfield">
2033 <xslo:if test="position() > 1">
2034 <xslo:value-of select="substring(' ', 1, 1)"/>
2036 <xslo:value-of select="."/>
2039 <xslo:value-of select="normalize-space($raw_heading)"/>
2042 <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
2043 <z:index name="Material-type:w Dissertation-information:p Dissertation-information:w">
2044 <xslo:variable name="raw_heading">
2045 <xslo:for-each select="marc:subfield">
2046 <xslo:if test="position() > 1">
2047 <xslo:value-of select="substring(' ', 1, 1)"/>
2049 <xslo:value-of select="."/>
2052 <xslo:value-of select="normalize-space($raw_heading)"/>
2055 <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
2056 <z:index name="Note:w Note:p">
2057 <xslo:variable name="raw_heading">
2058 <xslo:for-each select="marc:subfield">
2059 <xslo:if test="position() > 1">
2060 <xslo:value-of select="substring(' ', 1, 1)"/>
2062 <xslo:value-of select="."/>
2065 <xslo:value-of select="normalize-space($raw_heading)"/>
2068 <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
2069 <z:index name="Indexed-by:w">
2070 <xslo:variable name="raw_heading">
2071 <xslo:for-each select="marc:subfield">
2072 <xslo:if test="position() > 1">
2073 <xslo:value-of select="substring(' ', 1, 1)"/>
2075 <xslo:value-of select="."/>
2078 <xslo:value-of select="normalize-space($raw_heading)"/>
2081 <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
2082 <z:index name="Abstract:w Abstract:p">
2083 <xslo:variable name="raw_heading">
2084 <xslo:for-each select="marc:subfield">
2085 <xslo:if test="position() > 1">
2086 <xslo:value-of select="substring(' ', 1, 1)"/>
2088 <xslo:value-of select="."/>
2091 <xslo:value-of select="normalize-space($raw_heading)"/>
2094 <xslo:template mode="index_data_field" match="marc:datafield[@tag='590']">
2095 <z:index name="Note:w Note:p">
2096 <xslo:variable name="raw_heading">
2097 <xslo:for-each select="marc:subfield">
2098 <xslo:if test="position() > 1">
2099 <xslo:value-of select="substring(' ', 1, 1)"/>
2101 <xslo:value-of select="."/>
2104 <xslo:value-of select="normalize-space($raw_heading)"/>
2107 <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
2108 <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
2109 <xslo:variable name="raw_heading">
2110 <xslo:for-each select="marc:subfield">
2111 <xslo:if test="position() > 1">
2112 <xslo:value-of select="substring(' ', 1, 1)"/>
2114 <xslo:value-of select="."/>
2117 <xslo:value-of select="normalize-space($raw_heading)"/>
2120 <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2121 <z:index name="Name:w Subject:w Subject:p Corporate-name:w">
2122 <xslo:variable name="raw_heading">
2123 <xslo:for-each select="marc:subfield">
2124 <xslo:if test="position() > 1">
2125 <xslo:value-of select="substring(' ', 1, 1)"/>
2127 <xslo:value-of select="."/>
2130 <xslo:value-of select="normalize-space($raw_heading)"/>
2133 <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
2134 <z:index name="Conference-name:w Name:w Subject:w Subject:p">
2135 <xslo:variable name="raw_heading">
2136 <xslo:for-each select="marc:subfield">
2137 <xslo:if test="position() > 1">
2138 <xslo:value-of select="substring(' ', 1, 1)"/>
2140 <xslo:value-of select="."/>
2143 <xslo:value-of select="normalize-space($raw_heading)"/>
2146 <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2147 <z:index name="Subject:w Subject:p">
2148 <xslo:variable name="raw_heading">
2149 <xslo:for-each select="marc:subfield">
2150 <xslo:if test="position() > 1">
2151 <xslo:value-of select="substring(' ', 1, 1)"/>
2153 <xslo:value-of select="."/>
2156 <xslo:value-of select="normalize-space($raw_heading)"/>
2159 <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
2160 <z:index name="Subject:w Subject:p">
2161 <xslo:variable name="raw_heading">
2162 <xslo:for-each select="marc:subfield">
2163 <xslo:if test="position() > 1">
2164 <xslo:value-of select="substring(' ', 1, 1)"/>
2166 <xslo:value-of select="."/>
2169 <xslo:value-of select="normalize-space($raw_heading)"/>
2172 <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
2173 <z:index name="Name-geographic:w Subject:w Subject:p">
2174 <xslo:variable name="raw_heading">
2175 <xslo:for-each select="marc:subfield">
2176 <xslo:if test="position() > 1">
2177 <xslo:value-of select="substring(' ', 1, 1)"/>
2179 <xslo:value-of select="."/>
2182 <xslo:value-of select="normalize-space($raw_heading)"/>
2185 <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
2186 <z:index name="Subject:w Subject:p">
2187 <xslo:variable name="raw_heading">
2188 <xslo:for-each select="marc:subfield">
2189 <xslo:if test="position() > 1">
2190 <xslo:value-of select="substring(' ', 1, 1)"/>
2192 <xslo:value-of select="."/>
2195 <xslo:value-of select="normalize-space($raw_heading)"/>
2198 <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
2199 <z:index name="Subject:w Subject:p">
2200 <xslo:variable name="raw_heading">
2201 <xslo:for-each select="marc:subfield">
2202 <xslo:if test="position() > 1">
2203 <xslo:value-of select="substring(' ', 1, 1)"/>
2205 <xslo:value-of select="."/>
2208 <xslo:value-of select="normalize-space($raw_heading)"/>
2211 <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
2212 <z:index name="Subject:w Subject:p">
2213 <xslo:variable name="raw_heading">
2214 <xslo:for-each select="marc:subfield">
2215 <xslo:if test="position() > 1">
2216 <xslo:value-of select="substring(' ', 1, 1)"/>
2218 <xslo:value-of select="."/>
2221 <xslo:value-of select="normalize-space($raw_heading)"/>
2224 <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
2225 <z:index name="Subject:w Subject:p">
2226 <xslo:variable name="raw_heading">
2227 <xslo:for-each select="marc:subfield">
2228 <xslo:if test="position() > 1">
2229 <xslo:value-of select="substring(' ', 1, 1)"/>
2231 <xslo:value-of select="."/>
2234 <xslo:value-of select="normalize-space($raw_heading)"/>
2237 <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
2238 <z:index name="Subject:w Subject:p">
2239 <xslo:variable name="raw_heading">
2240 <xslo:for-each select="marc:subfield">
2241 <xslo:if test="position() > 1">
2242 <xslo:value-of select="substring(' ', 1, 1)"/>
2244 <xslo:value-of select="."/>
2247 <xslo:value-of select="normalize-space($raw_heading)"/>
2250 <xslo:template mode="index_data_field" match="marc:datafield[@tag='658']">
2251 <z:index name="Subject:w Subject:p">
2252 <xslo:variable name="raw_heading">
2253 <xslo:for-each select="marc:subfield">
2254 <xslo:if test="position() > 1">
2255 <xslo:value-of select="substring(' ', 1, 1)"/>
2257 <xslo:value-of select="."/>
2260 <xslo:value-of select="normalize-space($raw_heading)"/>
2263 <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
2264 <z:index name="Subject:w Subject:p">
2265 <xslo:variable name="raw_heading">
2266 <xslo:for-each select="marc:subfield">
2267 <xslo:if test="position() > 1">
2268 <xslo:value-of select="substring(' ', 1, 1)"/>
2270 <xslo:value-of select="."/>
2273 <xslo:value-of select="normalize-space($raw_heading)"/>
2276 <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2277 <z:index name="Author:w Author:p Author-name-personal:w Name:w Editor:w Personal-name:w">
2278 <xslo:variable name="raw_heading">
2279 <xslo:for-each select="marc:subfield">
2280 <xslo:if test="position() > 1">
2281 <xslo:value-of select="substring(' ', 1, 1)"/>
2283 <xslo:value-of select="."/>
2286 <xslo:value-of select="normalize-space($raw_heading)"/>
2289 <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2290 <z:index name="Author:w Author:p Corporate-name:w Name:w">
2291 <xslo:variable name="raw_heading">
2292 <xslo:for-each select="marc:subfield">
2293 <xslo:if test="position() > 1">
2294 <xslo:value-of select="substring(' ', 1, 1)"/>
2296 <xslo:value-of select="."/>
2299 <xslo:value-of select="normalize-space($raw_heading)"/>
2302 <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2303 <z:index name="Author:w Author:p Author-name-corporate:w Name:w Conference-name:w">
2304 <xslo:variable name="raw_heading">
2305 <xslo:for-each select="marc:subfield">
2306 <xslo:if test="position() > 1">
2307 <xslo:value-of select="substring(' ', 1, 1)"/>
2309 <xslo:value-of select="."/>
2312 <xslo:value-of select="normalize-space($raw_heading)"/>
2315 <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2316 <z:index name="Title:w Title:p Title-uniform:w">
2317 <xslo:variable name="raw_heading">
2318 <xslo:for-each select="marc:subfield">
2319 <xslo:if test="position() > 1">
2320 <xslo:value-of select="substring(' ', 1, 1)"/>
2322 <xslo:value-of select="."/>
2325 <xslo:value-of select="normalize-space($raw_heading)"/>
2328 <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
2329 <z:index name="Title:w Title:p Title-other-variant:w">
2330 <xslo:variable name="raw_heading">
2331 <xslo:for-each select="marc:subfield">
2332 <xslo:if test="position() > 1">
2333 <xslo:value-of select="substring(' ', 1, 1)"/>
2335 <xslo:value-of select="."/>
2338 <xslo:value-of select="normalize-space($raw_heading)"/>
2341 <xslo:template mode="index_data_field" match="marc:datafield[@tag='751']">
2342 <z:index name="Name-geographic:w">
2343 <xslo:variable name="raw_heading">
2344 <xslo:for-each select="marc:subfield">
2345 <xslo:if test="position() > 1">
2346 <xslo:value-of select="substring(' ', 1, 1)"/>
2348 <xslo:value-of select="."/>
2351 <xslo:value-of select="normalize-space($raw_heading)"/>
2354 <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
2355 <z:index name="Title:w Title:p Title-former:w Related-periodical:w">
2356 <xslo:variable name="raw_heading">
2357 <xslo:for-each select="marc:subfield">
2358 <xslo:if test="position() > 1">
2359 <xslo:value-of select="substring(' ', 1, 1)"/>
2361 <xslo:value-of select="."/>
2364 <xslo:value-of select="normalize-space($raw_heading)"/>
2367 <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
2368 <z:index name="Title:w Title:p Title-later:w Related-periodical:w">
2369 <xslo:variable name="raw_heading">
2370 <xslo:for-each select="marc:subfield">
2371 <xslo:if test="position() > 1">
2372 <xslo:value-of select="substring(' ', 1, 1)"/>
2374 <xslo:value-of select="."/>
2377 <xslo:value-of select="normalize-space($raw_heading)"/>
2380 <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
2381 <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
2382 <xslo:variable name="raw_heading">
2383 <xslo:for-each select="marc:subfield">
2384 <xslo:if test="position() > 1">
2385 <xslo:value-of select="substring(' ', 1, 1)"/>
2387 <xslo:value-of select="."/>
2390 <xslo:value-of select="normalize-space($raw_heading)"/>
2393 <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
2394 <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w">
2395 <xslo:variable name="raw_heading">
2396 <xslo:for-each select="marc:subfield">
2397 <xslo:if test="position() > 1">
2398 <xslo:value-of select="substring(' ', 1, 1)"/>
2400 <xslo:value-of select="."/>
2403 <xslo:value-of select="normalize-space($raw_heading)"/>
2406 <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
2407 <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w">
2408 <xslo:variable name="raw_heading">
2409 <xslo:for-each select="marc:subfield">
2410 <xslo:if test="position() > 1">
2411 <xslo:value-of select="substring(' ', 1, 1)"/>
2413 <xslo:value-of select="."/>
2416 <xslo:value-of select="normalize-space($raw_heading)"/>
2419 <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
2420 <z:index name="Title:w Title-series:w Title-series:p">
2421 <xslo:variable name="raw_heading">
2422 <xslo:for-each select="marc:subfield">
2423 <xslo:if test="position() > 1">
2424 <xslo:value-of select="substring(' ', 1, 1)"/>
2426 <xslo:value-of select="."/>
2429 <xslo:value-of select="normalize-space($raw_heading)"/>
2432 <xslo:template mode="index_data_field" match="marc:datafield[@tag='840']">
2433 <z:index name="Title:w Title-series:w Title-series:p">
2434 <xslo:variable name="raw_heading">
2435 <xslo:for-each select="marc:subfield">
2436 <xslo:if test="position() > 1">
2437 <xslo:value-of select="substring(' ', 1, 1)"/>
2439 <xslo:value-of select="."/>
2442 <xslo:value-of select="normalize-space($raw_heading)"/>
2445 <xslo:template mode="index_facets" match="marc:datafield[@tag='100']">
2446 <xslo:if test="not(@ind1='z')">
2447 <z:index name="au:0">
2448 <xslo:value-of select="marc:subfield[@code='a']"/>
2452 <xslo:template mode="index_facets" match="marc:datafield[@tag='110']">
2453 <xslo:if test="not(@ind1='z')">
2454 <z:index name="au:0">
2455 <xslo:value-of select="marc:subfield[@code='a']"/>
2459 <xslo:template mode="index_facets" match="marc:datafield[@tag='440']">
2460 <xslo:if test="not(@ind1='z')">
2461 <z:index name="se:0">
2462 <xslo:value-of select="marc:subfield[@code='a']"/>
2466 <xslo:template mode="index_facets" match="marc:datafield[@tag='490']">
2467 <xslo:if test="not(@ind1='z')">
2468 <z:index name="se:0">
2469 <xslo:value-of select="marc:subfield[@code='a']"/>
2473 <xslo:template mode="index_facets" match="marc:datafield[@tag='630']">
2474 <xslo:if test="not(@ind1='z')">
2475 <z:index name="su-ut:0">
2476 <xslo:value-of select="marc:subfield[@code='a']"/>
2480 <xslo:template mode="index_facets" match="marc:datafield[@tag='650']">
2481 <xslo:if test="not(@ind1='z')">
2482 <z:index name="su-to:0">
2483 <xslo:value-of select="marc:subfield[@code='a']"/>
2487 <xslo:template mode="index_facets" match="marc:datafield[@tag='651']">
2488 <xslo:if test="not(@ind1='z')">
2489 <z:index name="su-geo:0">
2490 <xslo:value-of select="marc:subfield[@code='a']"/>
2494 <xslo:template mode="index_facets" match="marc:datafield[@tag='700']">
2495 <xslo:if test="not(@ind1='z')">
2496 <z:index name="au:0">
2497 <xslo:value-of select="marc:subfield[@code='a']"/>
2501 <xslo:template mode="index_facets" match="marc:datafield[@tag='942']">
2502 <xslo:if test="not(@ind1='z')">
2503 <z:index name="itype:0">
2504 <xslo:value-of select="marc:subfield[@code='c']"/>
2508 <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
2509 <xslo:if test="not(@ind1='z')">
2510 <z:index name="homebranch:0">
2511 <xslo:value-of select="marc:subfield[@code='a']"/>
2513 <z:index name="holdingbranch:0">
2514 <xslo:value-of select="marc:subfield[@code='b']"/>
2516 <z:index name="location:0">
2517 <xslo:value-of select="marc:subfield[@code='c']"/>
2519 <z:index name="itype:0">
2520 <xslo:value-of select="marc:subfield[@code='y']"/>
2524 <xslo:template mode="index_all" match="text()">
2525 <z:index name="Any:w Any:p">
2526 <xslo:value-of select="."/>
2529 <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
2530 <xslo:variable name="chop">
2532 <xslo:when test="not(number(@ind2))">0</xslo:when>
2534 <xslo:value-of select="number(@ind2)"/>
2538 <z:index name="Title:s">
2539 <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
2542 <xslo:template name="chopPunctuation">
2543 <xslo:param name="chopString"/>
2544 <xslo:variable name="length" select="string-length($chopString)"/>
2546 <xslo:when test="$length=0"/>
2547 <xslo:when test="contains('-,.:=;!%/', substring($chopString,$length,1))">
2548 <xslo:call-template name="chopPunctuation">
2549 <xslo:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
2550 </xslo:call-template>
2552 <xslo:when test="not($chopString)"/>
2554 <xslo:value-of select="$chopString"/>