1 <?xml version="1.0" encoding="UTF-8"?>
3 This file has been automatically generated from a Koha index definition file
4 with the stylesheet koha-indexdefs-to-zebra.xsl. Do not manually edit this file,
5 as it may be overwritten. To regenerate, edit the appropriate Koha index
6 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) and run:
7 `xsltproc koha-indexdefs-to-zebra.xsl {biblio,authority}-koha-indexdefs.xml >
8 {biblio,authority}-zebra-indexdefs.xsl` (substituting the appropriate file names).
10 <xslo:stylesheet xmlns:xslo="http://www.w3.org/1999/XSL/Transform" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:z="http://indexdata.com/zebra-2.0" xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs" version="1.0">
11 <xslo:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
12 <xslo:template match="text()"/>
13 <xslo:template match="text()" mode="index_subfields"/>
14 <xslo:template match="text()" mode="index_data_field"/>
15 <xslo:template match="text()" mode="index_heading"/>
16 <xslo:template match="text()" mode="index_heading_conditional"/>
17 <xslo:template match="text()" mode="index_match_heading"/>
18 <xslo:template match="text()" mode="index_subject_thesaurus"/>
19 <xslo:template match="/">
20 <xslo:if test="marc:collection">
22 <xslo:apply-templates select="marc:collection/marc:record"/>
25 <xslo:if test="marc:record">
26 <xslo:apply-templates select="marc:record"/>
29 <xslo:template match="marc:record">
30 <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
31 <z:record type="update">
32 <xslo:attribute name="z:id">
33 <xslo:value-of select="$idfield"/>
35 <xslo:apply-templates/>
36 <xslo:apply-templates mode="index_subfields"/>
37 <xslo:apply-templates mode="index_data_field"/>
38 <xslo:apply-templates mode="index_heading"/>
39 <xslo:apply-templates mode="index_heading_conditional"/>
40 <xslo:apply-templates mode="index_match_heading"/>
41 <xslo:apply-templates mode="index_subject_thesaurus"/>
44 <xslo:template match="marc:controlfield[@tag='001']">
45 <z:index name="Local-number:w">
46 <xslo:value-of select="."/>
48 <z:index name="Local-number:n">
49 <xslo:value-of select="."/>
52 <xslo:template match="marc:controlfield[@tag='009']">
53 <z:index name="Identifier-standard:w">
54 <xslo:value-of select="."/>
56 <z:index name="Identifier-standard:n">
57 <xslo:value-of select="."/>
60 <xslo:template mode="index_subfields" match="marc:datafield[@tag='090']">
61 <xslo:for-each select="marc:subfield">
62 <xslo:if test="contains('9', @code)">
63 <z:index name="Local-number:w Local-number:n">
64 <xslo:value-of select="."/>
69 <xslo:template mode="index_subfields" match="marc:datafield[@tag='099']">
70 <xslo:for-each select="marc:subfield">
71 <xslo:if test="contains('c', @code)">
72 <z:index name="date-entered-on-file:s date-entered-on-file:n date-entered-on-file:y Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
73 <xslo:value-of select="."/>
77 <xslo:for-each select="marc:subfield">
78 <xslo:if test="contains('d', @code)">
79 <z:index name="Date/time-last-modified:s Date/time-last-modified:n Date/time-last-modified:y">
80 <xslo:value-of select="."/>
84 <xslo:for-each select="marc:subfield">
85 <xslo:if test="contains('t', @code)">
86 <z:index name="ccode:w">
87 <xslo:value-of select="."/>
92 <xslo:template mode="index_subfields" match="marc:datafield[@tag='010']">
93 <xslo:for-each select="marc:subfield">
94 <xslo:if test="contains('a', @code)">
95 <z:index name="ISBN:w">
96 <xslo:value-of select="."/>
100 <xslo:for-each select="marc:subfield">
101 <xslo:if test="contains('z', @code)">
102 <z:index name="ISBN:w Identifier-standard:w">
103 <xslo:value-of select="."/>
108 <xslo:template mode="index_subfields" match="marc:datafield[@tag='011']">
109 <xslo:for-each select="marc:subfield">
110 <xslo:if test="contains('a', @code)">
111 <z:index name="ISSN:w Identifier-standard:w">
112 <xslo:value-of select="."/>
116 <xslo:for-each select="marc:subfield">
117 <xslo:if test="contains('y', @code)">
118 <z:index name="ISSN:w Identifier-standard:w">
119 <xslo:value-of select="."/>
123 <xslo:for-each select="marc:subfield">
124 <xslo:if test="contains('z', @code)">
125 <z:index name="ISSN:w Identifier-standard:w">
126 <xslo:value-of select="."/>
130 <xslo:for-each select="marc:subfield">
131 <xslo:if test="contains('f', @code)">
132 <z:index name="Identifier-standard:w">
133 <xslo:value-of select="."/>
137 <xslo:for-each select="marc:subfield">
138 <xslo:if test="contains('g', @code)">
139 <z:index name="Identifier-standard:w">
140 <xslo:value-of select="."/>
145 <xslo:template mode="index_subfields" match="marc:datafield[@tag='012']">
146 <xslo:for-each select="marc:subfield">
147 <xslo:if test="contains('a', @code)">
148 <z:index name="Identifier-standard:w">
149 <xslo:value-of select="."/>
154 <xslo:template mode="index_subfields" match="marc:datafield[@tag='013']">
155 <xslo:for-each select="marc:subfield">
156 <xslo:if test="contains('a', @code)">
157 <z:index name="Identifier-standard:w">
158 <xslo:value-of select="."/>
162 <xslo:for-each select="marc:subfield">
163 <xslo:if test="contains('z', @code)">
164 <z:index name="Identifier-standard:w">
165 <xslo:value-of select="."/>
170 <xslo:template mode="index_subfields" match="marc:datafield[@tag='014']">
171 <xslo:for-each select="marc:subfield">
172 <xslo:if test="contains('a', @code)">
173 <z:index name="Identifier-standard:w">
174 <xslo:value-of select="."/>
178 <xslo:for-each select="marc:subfield">
179 <xslo:if test="contains('z', @code)">
180 <z:index name="Identifier-standard:w">
181 <xslo:value-of select="."/>
186 <xslo:template mode="index_subfields" match="marc:datafield[@tag='015']">
187 <xslo:for-each select="marc:subfield">
188 <xslo:if test="contains('a', @code)">
189 <z:index name="Identifier-standard:w">
190 <xslo:value-of select="."/>
194 <xslo:for-each select="marc:subfield">
195 <xslo:if test="contains('z', @code)">
196 <z:index name="Identifier-standard:w">
197 <xslo:value-of select="."/>
202 <xslo:template mode="index_subfields" match="marc:datafield[@tag='016']">
203 <xslo:for-each select="marc:subfield">
204 <xslo:if test="contains('a', @code)">
205 <z:index name="Identifier-standard:w">
206 <xslo:value-of select="."/>
210 <xslo:for-each select="marc:subfield">
211 <xslo:if test="contains('z', @code)">
212 <z:index name="Identifier-standard:w">
213 <xslo:value-of select="."/>
218 <xslo:template mode="index_subfields" match="marc:datafield[@tag='017']">
219 <xslo:for-each select="marc:subfield">
220 <xslo:if test="contains('a', @code)">
221 <z:index name="Identifier-standard:w">
222 <xslo:value-of select="."/>
226 <xslo:for-each select="marc:subfield">
227 <xslo:if test="contains('z', @code)">
228 <z:index name="Identifier-standard:w">
229 <xslo:value-of select="."/>
234 <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
235 <xslo:for-each select="marc:subfield">
236 <xslo:if test="contains('a', @code)">
237 <z:index name="Identifier-standard:w">
238 <xslo:value-of select="."/>
242 <xslo:for-each select="marc:subfield">
243 <xslo:if test="contains('z', @code)">
244 <z:index name="Identifier-standard:w">
245 <xslo:value-of select="."/>
250 <xslo:template mode="index_subfields" match="marc:datafield[@tag='071']">
251 <xslo:for-each select="marc:subfield">
252 <xslo:if test="contains('a', @code)">
253 <z:index name="Music-number:w Identifier-standard:w">
254 <xslo:value-of select="."/>
258 <xslo:for-each select="marc:subfield">
259 <xslo:if test="contains('z', @code)">
260 <z:index name="Music-number:w Identifier-standard:w">
261 <xslo:value-of select="."/>
265 <xslo:for-each select="marc:subfield">
266 <xslo:if test="contains('b', @code)">
267 <z:index name="Publisher:w Publisher:p">
268 <xslo:value-of select="."/>
273 <xslo:template mode="index_subfields" match="marc:datafield[@tag='072']">
274 <xslo:for-each select="marc:subfield">
275 <xslo:if test="contains('a', @code)">
276 <z:index name="UPC:w Identifier-standard:w">
277 <xslo:value-of select="."/>
281 <xslo:for-each select="marc:subfield">
282 <xslo:if test="contains('z', @code)">
283 <z:index name="UPC:w Identifier-standard:w">
284 <xslo:value-of select="."/>
289 <xslo:template mode="index_subfields" match="marc:datafield[@tag='073']">
290 <xslo:for-each select="marc:subfield">
291 <xslo:if test="contains('a', @code)">
292 <z:index name="EAN:w Identifier-standard:w">
293 <xslo:value-of select="."/>
297 <xslo:for-each select="marc:subfield">
298 <xslo:if test="contains('z', @code)">
299 <z:index name="EAN:w Identifier-standard:w">
300 <xslo:value-of select="."/>
305 <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
306 <xslo:for-each select="marc:subfield">
307 <xslo:if test="contains('b', @code)">
308 <z:index name="itemtype:w itemtype:p itype:w itype:p">
309 <xslo:value-of select="."/>
313 <xslo:for-each select="marc:subfield">
314 <xslo:if test="contains('f', @code)">
315 <z:index name="Author:w Author:p">
316 <xslo:value-of select="."/>
320 <xslo:for-each select="marc:subfield">
321 <xslo:if test="contains('g', @code)">
322 <z:index name="Author:w Author:p">
323 <xslo:value-of select="."/>
327 <xslo:for-each select="marc:subfield">
328 <xslo:if test="contains('a', @code)">
329 <z:index name="Title:w Title:p Title:s Title-cover:w Title-cover:p Title-cover:s">
330 <xslo:value-of select="."/>
334 <xslo:for-each select="marc:subfield">
335 <xslo:if test="contains('c', @code)">
336 <z:index name="Title:w Title:p">
337 <xslo:value-of select="."/>
341 <xslo:for-each select="marc:subfield">
342 <xslo:if test="contains('d', @code)">
343 <z:index name="Title:w Title:p">
344 <xslo:value-of select="."/>
348 <xslo:for-each select="marc:subfield">
349 <xslo:if test="contains('e', @code)">
350 <z:index name="Title:w Title:p Title-cover:w Title-cover:p">
351 <xslo:value-of select="."/>
355 <xslo:for-each select="marc:subfield">
356 <xslo:if test="contains('i', @code)">
357 <z:index name="Title:w Title:p Title-cover:w Title-cover:p">
358 <xslo:value-of select="."/>
363 <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
364 <xslo:for-each select="marc:subfield">
365 <xslo:if test="contains('r', @code)">
366 <z:index name="itemtype:w itemtype:p itype:w itype:p">
367 <xslo:value-of select="."/>
371 <xslo:for-each select="marc:subfield">
372 <xslo:if test="contains('2', @code)">
373 <z:index name="lost:w lost:n item:w">
374 <xslo:value-of select="."/>
378 <xslo:for-each select="marc:subfield">
379 <xslo:if test="contains('a', @code)">
380 <z:index name="homebranch:w Host-item:w item:w">
381 <xslo:value-of select="."/>
385 <xslo:for-each select="marc:subfield">
386 <xslo:if test="contains('b', @code)">
387 <z:index name="homebranch:w Host-item:w item:w">
388 <xslo:value-of select="."/>
392 <xslo:for-each select="marc:subfield">
393 <xslo:if test="contains('c', @code)">
394 <z:index name="holdingbranch:w Record-Source:w item:w">
395 <xslo:value-of select="."/>
399 <xslo:for-each select="marc:subfield">
400 <xslo:if test="contains('d', @code)">
401 <z:index name="holdingbranch:w Record-Source:w item:w">
402 <xslo:value-of select="."/>
406 <xslo:for-each select="marc:subfield">
407 <xslo:if test="contains('e', @code)">
408 <z:index name="location:w item:w">
409 <xslo:value-of select="."/>
413 <xslo:for-each select="marc:subfield">
414 <xslo:if test="contains('f', @code)">
415 <z:index name="barcode:w item:w">
416 <xslo:value-of select="."/>
420 <xslo:for-each select="marc:subfield">
421 <xslo:if test="contains('h', @code)">
422 <z:index name="ccode:w item:w">
423 <xslo:value-of select="."/>
427 <xslo:for-each select="marc:subfield">
428 <xslo:if test="contains('j', @code)">
429 <z:index name="LC-card-number:s item:w">
430 <xslo:value-of select="."/>
434 <xslo:for-each select="marc:subfield">
435 <xslo:if test="contains('k', @code)">
436 <z:index name="Call-Number:w Local-classification:w lcn:w Call-Number:p Local-classification:p lcn:p item:w Local-classification:s">
437 <xslo:value-of select="."/>
441 <xslo:for-each select="marc:subfield">
442 <xslo:if test="contains('n', @code)">
443 <z:index name="onloan:d onloan:n onloan:s onloan:w item:w">
444 <xslo:value-of select="."/>
448 <xslo:for-each select="marc:subfield">
449 <xslo:if test="contains('u', @code)">
450 <z:index name="Note:w Note:p item:w">
451 <xslo:value-of select="."/>
456 <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
457 <xslo:for-each select="marc:subfield">
458 <xslo:if test="contains('a', @code)">
459 <z:index name="tpubdate:s ta:w ta:w ta:w Modified-code:n ln:s char-encoding:n char-encoding:n char-encoding:n script-Title:n">
460 <xslo:value-of select="."/>
465 <xslo:template mode="index_subfields" match="marc:datafield[@tag='101']">
466 <xslo:for-each select="marc:subfield">
467 <xslo:if test="contains('a', @code)">
468 <z:index name="ln:w">
469 <xslo:value-of select="."/>
474 <xslo:template mode="index_subfields" match="marc:datafield[@tag='102']">
475 <xslo:for-each select="marc:subfield">
476 <xslo:if test="contains('a', @code)">
477 <z:index name="Country-heading:w">
478 <xslo:value-of select="."/>
483 <xslo:template mode="index_subfields" match="marc:datafield[@tag='105']">
484 <xslo:for-each select="marc:subfield">
485 <xslo:if test="contains('a', @code)">
486 <z:index name="Illustration-code:w Content-type:w Content-type:w Content-type:w Content-type:w Conference-code:w Festschrift-indicator:w Index-indicator:w Literature-Code:w Biography-Code:w">
487 <xslo:value-of select="."/>
492 <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']">
493 <xslo:for-each select="marc:subfield">
494 <xslo:if test="contains('a', @code)">
495 <z:index name="itype:w itype:p">
496 <xslo:value-of select="."/>
501 <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
502 <xslo:for-each select="marc:subfield">
503 <xslo:if test="contains('a', @code)">
504 <z:index name="Type-Of-Serial:w Frequency-code:w Regularity-code:w Content-type:w Content-type:w Conference-publication-Code:w Title-Page-availability-Code:w Index-availability-Code:w Cumulative-Index-availability-Code:w">
505 <xslo:value-of select="."/>
510 <xslo:template mode="index_subfields" match="marc:datafield[@tag='115']">
511 <xslo:for-each select="marc:subfield">
512 <xslo:if test="contains('a', @code)">
513 <z:index name="Video-mt:w">
514 <xslo:value-of select="."/>
519 <xslo:template mode="index_subfields" match="marc:datafield[@tag='116']">
520 <xslo:for-each select="marc:subfield">
521 <xslo:if test="contains('a', @code)">
522 <z:index name="Graphics-type:w Graphics-support:w Graphics-support:w">
523 <xslo:value-of select="."/>
528 <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
529 <xslo:for-each select="marc:subfield">
530 <xslo:if test="contains('9', @code)">
531 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
532 <xslo:value-of select="."/>
536 <xslo:for-each select="marc:subfield">
537 <xslo:if test="contains('a', @code)">
538 <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:w Author:s">
539 <xslo:value-of select="."/>
544 <xslo:template mode="index_subfields" match="marc:datafield[@tag='701']">
545 <xslo:for-each select="marc:subfield">
546 <xslo:if test="contains('9', @code)">
547 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
548 <xslo:value-of select="."/>
553 <xslo:template mode="index_subfields" match="marc:datafield[@tag='702']">
554 <xslo:for-each select="marc:subfield">
555 <xslo:if test="contains('9', @code)">
556 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
557 <xslo:value-of select="."/>
562 <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
563 <xslo:for-each select="marc:subfield">
564 <xslo:if test="contains('9', @code)">
565 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
566 <xslo:value-of select="."/>
571 <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
572 <xslo:for-each select="marc:subfield">
573 <xslo:if test="contains('9', @code)">
574 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
575 <xslo:value-of select="."/>
580 <xslo:template mode="index_subfields" match="marc:datafield[@tag='712']">
581 <xslo:for-each select="marc:subfield">
582 <xslo:if test="contains('9', @code)">
583 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
584 <xslo:value-of select="."/>
589 <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
590 <xslo:for-each select="marc:subfield">
591 <xslo:if test="contains('9', @code)">
592 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
593 <xslo:value-of select="."/>
598 <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
599 <xslo:for-each select="marc:subfield">
600 <xslo:if test="contains('9', @code)">
601 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
602 <xslo:value-of select="."/>
607 <xslo:template mode="index_subfields" match="marc:datafield[@tag='721']">
608 <xslo:for-each select="marc:subfield">
609 <xslo:if test="contains('9', @code)">
610 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
611 <xslo:value-of select="."/>
616 <xslo:template mode="index_subfields" match="marc:datafield[@tag='722']">
617 <xslo:for-each select="marc:subfield">
618 <xslo:if test="contains('9', @code)">
619 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
620 <xslo:value-of select="."/>
625 <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
626 <xslo:for-each select="marc:subfield">
627 <xslo:if test="contains('9', @code)">
628 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
629 <xslo:value-of select="."/>
634 <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
635 <xslo:for-each select="marc:subfield">
636 <xslo:if test="contains('a', @code)">
637 <z:index name="Electronic-ressource:w">
638 <xslo:value-of select="."/>
643 <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
644 <xslo:for-each select="marc:subfield">
645 <xslo:if test="contains('a', @code)">
646 <z:index name="pl:w pl:p">
647 <xslo:value-of select="."/>
651 <xslo:for-each select="marc:subfield">
652 <xslo:if test="contains('c', @code)">
653 <z:index name="Publisher:w Publisher:p">
654 <xslo:value-of select="."/>
658 <xslo:for-each select="marc:subfield">
659 <xslo:if test="contains('d', @code)">
660 <z:index name="pubdate:n pubdate:y pubdate:s">
661 <xslo:value-of select="."/>
666 <xslo:template mode="index_subfields" match="marc:datafield[@tag='225']">
667 <xslo:for-each select="marc:subfield">
668 <xslo:if test="contains('a', @code)">
669 <z:index name="Title-series:w Title-series:p">
670 <xslo:value-of select="."/>
674 <xslo:for-each select="marc:subfield">
675 <xslo:if test="contains('d', @code)">
676 <z:index name="Title-series:w Title-series:p">
677 <xslo:value-of select="."/>
681 <xslo:for-each select="marc:subfield">
682 <xslo:if test="contains('e', @code)">
683 <z:index name="Title-series:w Title-series:p">
684 <xslo:value-of select="."/>
688 <xslo:for-each select="marc:subfield">
689 <xslo:if test="contains('f', @code)">
690 <z:index name="Author:w Author:p Name-and-title:w Name-and-title:p">
691 <xslo:value-of select="."/>
695 <xslo:for-each select="marc:subfield">
696 <xslo:if test="contains('h', @code)">
697 <z:index name="Title-series:w Title-series:p">
698 <xslo:value-of select="."/>
702 <xslo:for-each select="marc:subfield">
703 <xslo:if test="contains('i', @code)">
704 <z:index name="Title-series:w Title-series:p">
705 <xslo:value-of select="."/>
709 <xslo:for-each select="marc:subfield">
710 <xslo:if test="contains('v', @code)">
711 <z:index name="Title-series:w Title-series:p">
712 <xslo:value-of select="."/>
716 <xslo:for-each select="marc:subfield">
717 <xslo:if test="contains('x', @code)">
718 <z:index name="ISSN:w">
719 <xslo:value-of select="."/>
724 <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']">
725 <xslo:for-each select="marc:subfield">
726 <xslo:if test="contains('a', @code)">
727 <z:index name="Note:w Note:p">
728 <xslo:value-of select="."/>
733 <xslo:template mode="index_subfields" match="marc:datafield[@tag='301']">
734 <xslo:for-each select="marc:subfield">
735 <xslo:if test="contains('a', @code)">
736 <z:index name="Note:w Note:p">
737 <xslo:value-of select="."/>
742 <xslo:template mode="index_subfields" match="marc:datafield[@tag='302']">
743 <xslo:for-each select="marc:subfield">
744 <xslo:if test="contains('a', @code)">
745 <z:index name="Note:w Note:p">
746 <xslo:value-of select="."/>
751 <xslo:template mode="index_subfields" match="marc:datafield[@tag='303']">
752 <xslo:for-each select="marc:subfield">
753 <xslo:if test="contains('a', @code)">
754 <z:index name="Note:w Note:p">
755 <xslo:value-of select="."/>
760 <xslo:template mode="index_subfields" match="marc:datafield[@tag='304']">
761 <xslo:for-each select="marc:subfield">
762 <xslo:if test="contains('a', @code)">
763 <z:index name="Note:w Note:p">
764 <xslo:value-of select="."/>
769 <xslo:template mode="index_subfields" match="marc:datafield[@tag='305']">
770 <xslo:for-each select="marc:subfield">
771 <xslo:if test="contains('a', @code)">
772 <z:index name="Note:w Note:p">
773 <xslo:value-of select="."/>
778 <xslo:template mode="index_subfields" match="marc:datafield[@tag='306']">
779 <xslo:for-each select="marc:subfield">
780 <xslo:if test="contains('a', @code)">
781 <z:index name="Note:w Note:p">
782 <xslo:value-of select="."/>
787 <xslo:template mode="index_subfields" match="marc:datafield[@tag='307']">
788 <xslo:for-each select="marc:subfield">
789 <xslo:if test="contains('a', @code)">
790 <z:index name="Note:w Note:p">
791 <xslo:value-of select="."/>
796 <xslo:template mode="index_subfields" match="marc:datafield[@tag='310']">
797 <xslo:for-each select="marc:subfield">
798 <xslo:if test="contains('a', @code)">
799 <z:index name="Note:w Note:p">
800 <xslo:value-of select="."/>
805 <xslo:template mode="index_subfields" match="marc:datafield[@tag='311']">
806 <xslo:for-each select="marc:subfield">
807 <xslo:if test="contains('a', @code)">
808 <z:index name="Note:w Note:p">
809 <xslo:value-of select="."/>
814 <xslo:template mode="index_subfields" match="marc:datafield[@tag='312']">
815 <xslo:for-each select="marc:subfield">
816 <xslo:if test="contains('a', @code)">
817 <z:index name="Note:w Note:p">
818 <xslo:value-of select="."/>
823 <xslo:template mode="index_subfields" match="marc:datafield[@tag='313']">
824 <xslo:for-each select="marc:subfield">
825 <xslo:if test="contains('a', @code)">
826 <z:index name="Note:w Note:p">
827 <xslo:value-of select="."/>
832 <xslo:template mode="index_subfields" match="marc:datafield[@tag='314']">
833 <xslo:for-each select="marc:subfield">
834 <xslo:if test="contains('a', @code)">
835 <z:index name="Note:w Note:p">
836 <xslo:value-of select="."/>
841 <xslo:template mode="index_subfields" match="marc:datafield[@tag='315']">
842 <xslo:for-each select="marc:subfield">
843 <xslo:if test="contains('a', @code)">
844 <z:index name="Note:w Note:p">
845 <xslo:value-of select="."/>
850 <xslo:template mode="index_subfields" match="marc:datafield[@tag='316']">
851 <xslo:for-each select="marc:subfield">
852 <xslo:if test="contains('a', @code)">
853 <z:index name="Note:w Note:p">
854 <xslo:value-of select="."/>
859 <xslo:template mode="index_subfields" match="marc:datafield[@tag='317']">
860 <xslo:for-each select="marc:subfield">
861 <xslo:if test="contains('a', @code)">
862 <z:index name="Note:w Note:p">
863 <xslo:value-of select="."/>
868 <xslo:template mode="index_subfields" match="marc:datafield[@tag='318']">
869 <xslo:for-each select="marc:subfield">
870 <xslo:if test="contains('a', @code)">
871 <z:index name="Note:w Note:p">
872 <xslo:value-of select="."/>
877 <xslo:template mode="index_subfields" match="marc:datafield[@tag='320']">
878 <xslo:for-each select="marc:subfield">
879 <xslo:if test="contains('a', @code)">
880 <z:index name="Note:w Note:p">
881 <xslo:value-of select="."/>
886 <xslo:template mode="index_subfields" match="marc:datafield[@tag='321']">
887 <xslo:for-each select="marc:subfield">
888 <xslo:if test="contains('a', @code)">
889 <z:index name="Note:w Note:p">
890 <xslo:value-of select="."/>
895 <xslo:template mode="index_subfields" match="marc:datafield[@tag='322']">
896 <xslo:for-each select="marc:subfield">
897 <xslo:if test="contains('a', @code)">
898 <z:index name="Note:w Note:p">
899 <xslo:value-of select="."/>
904 <xslo:template mode="index_subfields" match="marc:datafield[@tag='323']">
905 <xslo:for-each select="marc:subfield">
906 <xslo:if test="contains('a', @code)">
907 <z:index name="Note:w Note:p">
908 <xslo:value-of select="."/>
913 <xslo:template mode="index_subfields" match="marc:datafield[@tag='324']">
914 <xslo:for-each select="marc:subfield">
915 <xslo:if test="contains('a', @code)">
916 <z:index name="Note:w Note:p">
917 <xslo:value-of select="."/>
922 <xslo:template mode="index_subfields" match="marc:datafield[@tag='325']">
923 <xslo:for-each select="marc:subfield">
924 <xslo:if test="contains('a', @code)">
925 <z:index name="Note:w Note:p">
926 <xslo:value-of select="."/>
931 <xslo:template mode="index_subfields" match="marc:datafield[@tag='326']">
932 <xslo:for-each select="marc:subfield">
933 <xslo:if test="contains('a', @code)">
934 <z:index name="Note:w Note:p">
935 <xslo:value-of select="."/>
940 <xslo:template mode="index_subfields" match="marc:datafield[@tag='327']">
941 <xslo:for-each select="marc:subfield">
942 <xslo:if test="contains('a', @code)">
943 <z:index name="Note:w Note:p">
944 <xslo:value-of select="."/>
949 <xslo:template mode="index_subfields" match="marc:datafield[@tag='330']">
950 <xslo:for-each select="marc:subfield">
951 <xslo:if test="contains('a', @code)">
952 <z:index name="Abstract:w Note:w Abstract:p Note:p">
953 <xslo:value-of select="."/>
958 <xslo:template mode="index_subfields" match="marc:datafield[@tag='332']">
959 <xslo:for-each select="marc:subfield">
960 <xslo:if test="contains('a', @code)">
961 <z:index name="Note:w Note:p">
962 <xslo:value-of select="."/>
967 <xslo:template mode="index_subfields" match="marc:datafield[@tag='333']">
968 <xslo:for-each select="marc:subfield">
969 <xslo:if test="contains('a', @code)">
970 <z:index name="Note:w Note:p">
971 <xslo:value-of select="."/>
976 <xslo:template mode="index_subfields" match="marc:datafield[@tag='334']">
977 <xslo:for-each select="marc:subfield">
978 <xslo:if test="contains('a', @code)">
979 <z:index name="Note:w Note:p">
980 <xslo:value-of select="."/>
985 <xslo:template mode="index_subfields" match="marc:datafield[@tag='336']">
986 <xslo:for-each select="marc:subfield">
987 <xslo:if test="contains('a', @code)">
988 <z:index name="Note:w Note:p">
989 <xslo:value-of select="."/>
994 <xslo:template mode="index_subfields" match="marc:datafield[@tag='337']">
995 <xslo:for-each select="marc:subfield">
996 <xslo:if test="contains('a', @code)">
997 <z:index name="Note:w Note:p">
998 <xslo:value-of select="."/>
1003 <xslo:template mode="index_subfields" match="marc:datafield[@tag='345']">
1004 <xslo:for-each select="marc:subfield">
1005 <xslo:if test="contains('a', @code)">
1006 <z:index name="Note:w Note:p">
1007 <xslo:value-of select="."/>
1012 <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
1013 <xslo:for-each select="marc:subfield">
1014 <xslo:if test="contains('t', @code)">
1015 <z:index name="Title-series:w Title-series:p">
1016 <xslo:value-of select="."/>
1020 <xslo:for-each select="marc:subfield">
1021 <xslo:if test="contains('d', @code)">
1022 <z:index name="pubdate:n">
1023 <xslo:value-of select="."/>
1028 <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
1029 <xslo:for-each select="marc:subfield">
1030 <xslo:if test="contains('t', @code)">
1031 <z:index name="Title:w Title:p">
1032 <xslo:value-of select="."/>
1037 <xslo:template mode="index_subfields" match="marc:datafield[@tag='412']">
1038 <xslo:for-each select="marc:subfield">
1039 <xslo:if test="contains('t', @code)">
1040 <z:index name="Title:w Title:p">
1041 <xslo:value-of select="."/>
1045 <xslo:for-each select="marc:subfield">
1046 <xslo:if test="contains('d', @code)">
1047 <z:index name="pubdate:n">
1048 <xslo:value-of select="."/>
1053 <xslo:template mode="index_subfields" match="marc:datafield[@tag='413']">
1054 <xslo:for-each select="marc:subfield">
1055 <xslo:if test="contains('t', @code)">
1056 <z:index name="Title:w Title:p">
1057 <xslo:value-of select="."/>
1061 <xslo:for-each select="marc:subfield">
1062 <xslo:if test="contains('d', @code)">
1063 <z:index name="pubdate:n">
1064 <xslo:value-of select="."/>
1069 <xslo:template mode="index_subfields" match="marc:datafield[@tag='421']">
1070 <xslo:for-each select="marc:subfield">
1071 <xslo:if test="contains('t', @code)">
1072 <z:index name="Title:w Title:p">
1073 <xslo:value-of select="."/>
1078 <xslo:template mode="index_subfields" match="marc:datafield[@tag='422']">
1079 <xslo:for-each select="marc:subfield">
1080 <xslo:if test="contains('t', @code)">
1081 <z:index name="Title:w Title:p">
1082 <xslo:value-of select="."/>
1087 <xslo:template mode="index_subfields" match="marc:datafield[@tag='423']">
1088 <xslo:for-each select="marc:subfield">
1089 <xslo:if test="contains('t', @code)">
1090 <z:index name="Title:w Title:p">
1091 <xslo:value-of select="."/>
1096 <xslo:template mode="index_subfields" match="marc:datafield[@tag='424']">
1097 <xslo:for-each select="marc:subfield">
1098 <xslo:if test="contains('t', @code)">
1099 <z:index name="Title:w Title:p">
1100 <xslo:value-of select="."/>
1105 <xslo:template mode="index_subfields" match="marc:datafield[@tag='425']">
1106 <xslo:for-each select="marc:subfield">
1107 <xslo:if test="contains('t', @code)">
1108 <z:index name="Title:w Title:p">
1109 <xslo:value-of select="."/>
1114 <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
1115 <xslo:for-each select="marc:subfield">
1116 <xslo:if test="contains('t', @code)">
1117 <z:index name="Title:w Title:p">
1118 <xslo:value-of select="."/>
1122 <xslo:for-each select="marc:subfield">
1123 <xslo:if test="contains('d', @code)">
1124 <z:index name="pubdate:n">
1125 <xslo:value-of select="."/>
1130 <xslo:template mode="index_subfields" match="marc:datafield[@tag='431']">
1131 <xslo:for-each select="marc:subfield">
1132 <xslo:if test="contains('t', @code)">
1133 <z:index name="Title:w Title:p">
1134 <xslo:value-of select="."/>
1138 <xslo:for-each select="marc:subfield">
1139 <xslo:if test="contains('d', @code)">
1140 <z:index name="pubdate:n">
1141 <xslo:value-of select="."/>
1146 <xslo:template mode="index_subfields" match="marc:datafield[@tag='432']">
1147 <xslo:for-each select="marc:subfield">
1148 <xslo:if test="contains('t', @code)">
1149 <z:index name="Title:w Title:p">
1150 <xslo:value-of select="."/>
1154 <xslo:for-each select="marc:subfield">
1155 <xslo:if test="contains('d', @code)">
1156 <z:index name="pubdate:n">
1157 <xslo:value-of select="."/>
1162 <xslo:template mode="index_subfields" match="marc:datafield[@tag='433']">
1163 <xslo:for-each select="marc:subfield">
1164 <xslo:if test="contains('t', @code)">
1165 <z:index name="Title:w Title:p">
1166 <xslo:value-of select="."/>
1171 <xslo:template mode="index_subfields" match="marc:datafield[@tag='434']">
1172 <xslo:for-each select="marc:subfield">
1173 <xslo:if test="contains('t', @code)">
1174 <z:index name="Title:w Title:p">
1175 <xslo:value-of select="."/>
1180 <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
1181 <xslo:for-each select="marc:subfield">
1182 <xslo:if test="contains('t', @code)">
1183 <z:index name="Title:w Title:p">
1184 <xslo:value-of select="."/>
1189 <xslo:template mode="index_subfields" match="marc:datafield[@tag='436']">
1190 <xslo:for-each select="marc:subfield">
1191 <xslo:if test="contains('t', @code)">
1192 <z:index name="Title:w Title:p">
1193 <xslo:value-of select="."/>
1198 <xslo:template mode="index_subfields" match="marc:datafield[@tag='437']">
1199 <xslo:for-each select="marc:subfield">
1200 <xslo:if test="contains('t', @code)">
1201 <z:index name="Title:w Title:p">
1202 <xslo:value-of select="."/>
1207 <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
1208 <xslo:for-each select="marc:subfield">
1209 <xslo:if test="contains('t', @code)">
1210 <z:index name="Title:w Title:p">
1211 <xslo:value-of select="."/>
1215 <xslo:for-each select="marc:subfield">
1216 <xslo:if test="contains('d', @code)">
1217 <z:index name="pubdate:n">
1218 <xslo:value-of select="."/>
1223 <xslo:template mode="index_subfields" match="marc:datafield[@tag='441']">
1224 <xslo:for-each select="marc:subfield">
1225 <xslo:if test="contains('t', @code)">
1226 <z:index name="Title:w Title:p">
1227 <xslo:value-of select="."/>
1231 <xslo:for-each select="marc:subfield">
1232 <xslo:if test="contains('d', @code)">
1233 <z:index name="pubdate:n">
1234 <xslo:value-of select="."/>
1239 <xslo:template mode="index_subfields" match="marc:datafield[@tag='442']">
1240 <xslo:for-each select="marc:subfield">
1241 <xslo:if test="contains('t', @code)">
1242 <z:index name="Title:w Title:p">
1243 <xslo:value-of select="."/>
1248 <xslo:template mode="index_subfields" match="marc:datafield[@tag='443']">
1249 <xslo:for-each select="marc:subfield">
1250 <xslo:if test="contains('t', @code)">
1251 <z:index name="Title:w Title:p">
1252 <xslo:value-of select="."/>
1257 <xslo:template mode="index_subfields" match="marc:datafield[@tag='444']">
1258 <xslo:for-each select="marc:subfield">
1259 <xslo:if test="contains('t', @code)">
1260 <z:index name="Title:w Title:p">
1261 <xslo:value-of select="."/>
1266 <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
1267 <xslo:for-each select="marc:subfield">
1268 <xslo:if test="contains('t', @code)">
1269 <z:index name="Title:w Title:p">
1270 <xslo:value-of select="."/>
1274 <xslo:for-each select="marc:subfield">
1275 <xslo:if test="contains('d', @code)">
1276 <z:index name="pubdate:n">
1277 <xslo:value-of select="."/>
1282 <xslo:template mode="index_subfields" match="marc:datafield[@tag='446']">
1283 <xslo:for-each select="marc:subfield">
1284 <xslo:if test="contains('t', @code)">
1285 <z:index name="Title:w Title:p">
1286 <xslo:value-of select="."/>
1291 <xslo:template mode="index_subfields" match="marc:datafield[@tag='447']">
1292 <xslo:for-each select="marc:subfield">
1293 <xslo:if test="contains('t', @code)">
1294 <z:index name="Title:w Title:p">
1295 <xslo:value-of select="."/>
1300 <xslo:template mode="index_subfields" match="marc:datafield[@tag='448']">
1301 <xslo:for-each select="marc:subfield">
1302 <xslo:if test="contains('t', @code)">
1303 <z:index name="Title:w Title:p">
1304 <xslo:value-of select="."/>
1309 <xslo:template mode="index_subfields" match="marc:datafield[@tag='451']">
1310 <xslo:for-each select="marc:subfield">
1311 <xslo:if test="contains('t', @code)">
1312 <z:index name="Title:w Title:p">
1313 <xslo:value-of select="."/>
1318 <xslo:template mode="index_subfields" match="marc:datafield[@tag='452']">
1319 <xslo:for-each select="marc:subfield">
1320 <xslo:if test="contains('t', @code)">
1321 <z:index name="Title:w Title:p">
1322 <xslo:value-of select="."/>
1327 <xslo:template mode="index_subfields" match="marc:datafield[@tag='453']">
1328 <xslo:for-each select="marc:subfield">
1329 <xslo:if test="contains('t', @code)">
1330 <z:index name="Title:w Title:p">
1331 <xslo:value-of select="."/>
1336 <xslo:template mode="index_subfields" match="marc:datafield[@tag='454']">
1337 <xslo:for-each select="marc:subfield">
1338 <xslo:if test="contains('t', @code)">
1339 <z:index name="Title:w Title:p">
1340 <xslo:value-of select="."/>
1345 <xslo:template mode="index_subfields" match="marc:datafield[@tag='455']">
1346 <xslo:for-each select="marc:subfield">
1347 <xslo:if test="contains('t', @code)">
1348 <z:index name="Title:w Title:p">
1349 <xslo:value-of select="."/>
1354 <xslo:template mode="index_subfields" match="marc:datafield[@tag='456']">
1355 <xslo:for-each select="marc:subfield">
1356 <xslo:if test="contains('t', @code)">
1357 <z:index name="Title:w Title:p">
1358 <xslo:value-of select="."/>
1363 <xslo:template mode="index_subfields" match="marc:datafield[@tag='461']">
1364 <xslo:for-each select="marc:subfield">
1365 <xslo:if test="contains('t', @code)">
1366 <z:index name="Title:w Title-host:w title-host:p">
1367 <xslo:value-of select="."/>
1371 <xslo:for-each select="marc:subfield">
1372 <xslo:if test="contains('9', @code)">
1373 <z:index name="Host-Item-Number:w">
1374 <xslo:value-of select="."/>
1378 <xslo:for-each select="marc:subfield">
1379 <xslo:if test="contains('d', @code)">
1380 <z:index name="pubdate:n">
1381 <xslo:value-of select="."/>
1385 <xslo:for-each select="marc:subfield">
1386 <xslo:if test="contains('9', @code)">
1387 <z:index name="Host-Item-Number:w">
1388 <xslo:value-of select="."/>
1393 <xslo:template mode="index_subfields" match="marc:datafield[@tag='462']">
1394 <xslo:for-each select="marc:subfield">
1395 <xslo:if test="contains('t', @code)">
1396 <z:index name="Title:w Title:p">
1397 <xslo:value-of select="."/>
1402 <xslo:template mode="index_subfields" match="marc:datafield[@tag='463']">
1403 <xslo:for-each select="marc:subfield">
1404 <xslo:if test="contains('t', @code)">
1405 <z:index name="Title:w Title:p">
1406 <xslo:value-of select="."/>
1411 <xslo:template mode="index_subfields" match="marc:datafield[@tag='464']">
1412 <xslo:for-each select="marc:subfield">
1413 <xslo:if test="contains('t', @code)">
1414 <z:index name="Title:w Title-host:w title-host:p Title:p">
1415 <xslo:value-of select="."/>
1420 <xslo:template mode="index_subfields" match="marc:datafield[@tag='470']">
1421 <xslo:for-each select="marc:subfield">
1422 <xslo:if test="contains('t', @code)">
1423 <z:index name="Title:w Title:p">
1424 <xslo:value-of select="."/>
1429 <xslo:template mode="index_subfields" match="marc:datafield[@tag='481']">
1430 <xslo:for-each select="marc:subfield">
1431 <xslo:if test="contains('t', @code)">
1432 <z:index name="Title:w Title:p">
1433 <xslo:value-of select="."/>
1438 <xslo:template mode="index_subfields" match="marc:datafield[@tag='482']">
1439 <xslo:for-each select="marc:subfield">
1440 <xslo:if test="contains('t', @code)">
1441 <z:index name="Title:w Title:p">
1442 <xslo:value-of select="."/>
1447 <xslo:template mode="index_subfields" match="marc:datafield[@tag='488']">
1448 <xslo:for-each select="marc:subfield">
1449 <xslo:if test="contains('t', @code)">
1450 <z:index name="Title:w Title:p">
1451 <xslo:value-of select="."/>
1456 <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
1457 <xslo:for-each select="marc:subfield">
1458 <xslo:if test="contains('t', @code)">
1459 <z:index name="Title:w Title:p">
1460 <xslo:value-of select="."/>
1464 <xslo:for-each select="marc:subfield">
1465 <xslo:if test="contains('d', @code)">
1466 <z:index name="pubdate:n">
1467 <xslo:value-of select="."/>
1472 <xslo:template mode="index_subfields" match="marc:datafield[@tag='401']">
1473 <xslo:for-each select="marc:subfield">
1474 <xslo:if test="contains('t', @code)">
1475 <z:index name="Title:w Title:p">
1476 <xslo:value-of select="."/>
1480 <xslo:for-each select="marc:subfield">
1481 <xslo:if test="contains('d', @code)">
1482 <z:index name="pubdate:n">
1483 <xslo:value-of select="."/>
1488 <xslo:template mode="index_subfields" match="marc:datafield[@tag='403']">
1489 <xslo:for-each select="marc:subfield">
1490 <xslo:if test="contains('t', @code)">
1491 <z:index name="Title:w Title:p Title-Uniform:w Title-Uniform:p">
1492 <xslo:value-of select="."/>
1496 <xslo:for-each select="marc:subfield">
1497 <xslo:if test="contains('d', @code)">
1498 <z:index name="pubdate:n">
1499 <xslo:value-of select="."/>
1504 <xslo:template mode="index_subfields" match="marc:datafield[@tag='414']">
1505 <xslo:for-each select="marc:subfield">
1506 <xslo:if test="contains('t', @code)">
1507 <z:index name="Title:w Title:p">
1508 <xslo:value-of select="."/>
1512 <xslo:for-each select="marc:subfield">
1513 <xslo:if test="contains('d', @code)">
1514 <z:index name="pubdate:n">
1515 <xslo:value-of select="."/>
1520 <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
1521 <xslo:for-each select="marc:subfield">
1522 <xslo:if test="contains('t', @code)">
1523 <z:index name="Title:w Title:p">
1524 <xslo:value-of select="."/>
1528 <xslo:for-each select="marc:subfield">
1529 <xslo:if test="contains('d', @code)">
1530 <z:index name="pubdate:n">
1531 <xslo:value-of select="."/>
1536 <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
1537 <xslo:for-each select="marc:subfield">
1538 <xslo:if test="contains('t', @code)">
1539 <z:index name="Title:w Title:p">
1540 <xslo:value-of select="."/>
1544 <xslo:for-each select="marc:subfield">
1545 <xslo:if test="contains('d', @code)">
1546 <z:index name="pubdate:n">
1547 <xslo:value-of select="."/>
1552 <xslo:template mode="index_subfields" match="marc:datafield[@tag='417']">
1553 <xslo:for-each select="marc:subfield">
1554 <xslo:if test="contains('t', @code)">
1555 <z:index name="Title:w Title:p">
1556 <xslo:value-of select="."/>
1560 <xslo:for-each select="marc:subfield">
1561 <xslo:if test="contains('d', @code)">
1562 <z:index name="pubdate:n">
1563 <xslo:value-of select="."/>
1568 <xslo:template mode="index_subfields" match="marc:datafield[@tag='418']">
1569 <xslo:for-each select="marc:subfield">
1570 <xslo:if test="contains('t', @code)">
1571 <z:index name="Title:w Title:p">
1572 <xslo:value-of select="."/>
1576 <xslo:for-each select="marc:subfield">
1577 <xslo:if test="contains('d', @code)">
1578 <z:index name="pubdate:n">
1579 <xslo:value-of select="."/>
1584 <xslo:template mode="index_subfields" match="marc:datafield[@tag='419']">
1585 <xslo:for-each select="marc:subfield">
1586 <xslo:if test="contains('t', @code)">
1587 <z:index name="Title:w Title:p">
1588 <xslo:value-of select="."/>
1592 <xslo:for-each select="marc:subfield">
1593 <xslo:if test="contains('d', @code)">
1594 <z:index name="pubdate:n">
1595 <xslo:value-of select="."/>
1600 <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
1601 <xslo:for-each select="marc:subfield">
1602 <xslo:if test="contains('t', @code)">
1603 <z:index name="Title:w Title:p">
1604 <xslo:value-of select="."/>
1608 <xslo:for-each select="marc:subfield">
1609 <xslo:if test="contains('d', @code)">
1610 <z:index name="pubdate:n">
1611 <xslo:value-of select="."/>
1616 <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
1617 <xslo:for-each select="marc:subfield">
1618 <xslo:if test="contains('9', @code)">
1619 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1620 <xslo:value-of select="."/>
1625 <xslo:template mode="index_subfields" match="marc:datafield[@tag='501']">
1626 <xslo:for-each select="marc:subfield">
1627 <xslo:if test="contains('9', @code)">
1628 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1629 <xslo:value-of select="."/>
1634 <xslo:template mode="index_subfields" match="marc:datafield[@tag='503']">
1635 <xslo:for-each select="marc:subfield">
1636 <xslo:if test="contains('9', @code)">
1637 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1638 <xslo:value-of select="."/>
1643 <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
1644 <xslo:for-each select="marc:subfield">
1645 <xslo:if test="contains('9', @code)">
1646 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1647 <xslo:value-of select="."/>
1652 <xslo:template mode="index_subfields" match="marc:datafield[@tag='512']">
1653 <xslo:for-each select="marc:subfield">
1654 <xslo:if test="contains('9', @code)">
1655 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1656 <xslo:value-of select="."/>
1661 <xslo:template mode="index_subfields" match="marc:datafield[@tag='513']">
1662 <xslo:for-each select="marc:subfield">
1663 <xslo:if test="contains('9', @code)">
1664 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1665 <xslo:value-of select="."/>
1670 <xslo:template mode="index_subfields" match="marc:datafield[@tag='514']">
1671 <xslo:for-each select="marc:subfield">
1672 <xslo:if test="contains('9', @code)">
1673 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1674 <xslo:value-of select="."/>
1679 <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
1680 <xslo:for-each select="marc:subfield">
1681 <xslo:if test="contains('9', @code)">
1682 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1683 <xslo:value-of select="."/>
1688 <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
1689 <xslo:for-each select="marc:subfield">
1690 <xslo:if test="contains('9', @code)">
1691 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1692 <xslo:value-of select="."/>
1697 <xslo:template mode="index_subfields" match="marc:datafield[@tag='517']">
1698 <xslo:for-each select="marc:subfield">
1699 <xslo:if test="contains('9', @code)">
1700 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1701 <xslo:value-of select="."/>
1706 <xslo:template mode="index_subfields" match="marc:datafield[@tag='518']">
1707 <xslo:for-each select="marc:subfield">
1708 <xslo:if test="contains('9', @code)">
1709 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1710 <xslo:value-of select="."/>
1715 <xslo:template mode="index_subfields" match="marc:datafield[@tag='519']">
1716 <xslo:for-each select="marc:subfield">
1717 <xslo:if test="contains('9', @code)">
1718 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1719 <xslo:value-of select="."/>
1724 <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
1725 <xslo:for-each select="marc:subfield">
1726 <xslo:if test="contains('9', @code)">
1727 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1728 <xslo:value-of select="."/>
1733 <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
1734 <xslo:for-each select="marc:subfield">
1735 <xslo:if test="contains('9', @code)">
1736 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1737 <xslo:value-of select="."/>
1742 <xslo:template mode="index_subfields" match="marc:datafield[@tag='531']">
1743 <xslo:for-each select="marc:subfield">
1744 <xslo:if test="contains('9', @code)">
1745 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1746 <xslo:value-of select="."/>
1751 <xslo:template mode="index_subfields" match="marc:datafield[@tag='532']">
1752 <xslo:for-each select="marc:subfield">
1753 <xslo:if test="contains('9', @code)">
1754 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1755 <xslo:value-of select="."/>
1760 <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
1761 <xslo:for-each select="marc:subfield">
1762 <xslo:if test="contains('9', @code)">
1763 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1764 <xslo:value-of select="."/>
1769 <xslo:template mode="index_subfields" match="marc:datafield[@tag='541']">
1770 <xslo:for-each select="marc:subfield">
1771 <xslo:if test="contains('9', @code)">
1772 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1773 <xslo:value-of select="."/>
1778 <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
1779 <xslo:for-each select="marc:subfield">
1780 <xslo:if test="contains('9', @code)">
1781 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1782 <xslo:value-of select="."/>
1787 <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
1788 <xslo:for-each select="marc:subfield">
1789 <xslo:if test="contains('9', @code)">
1790 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1791 <xslo:value-of select="."/>
1796 <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
1797 <xslo:for-each select="marc:subfield">
1798 <xslo:if test="contains('9', @code)">
1799 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1800 <xslo:value-of select="."/>
1804 <xslo:for-each select="marc:subfield">
1805 <xslo:if test="contains('a', @code)">
1806 <z:index name="Personal-name:w Personal-name:p Subject:w Subject:p">
1807 <xslo:value-of select="."/>
1812 <xslo:template mode="index_subfields" match="marc:datafield[@tag='601']">
1813 <xslo:for-each select="marc:subfield">
1814 <xslo:if test="contains('9', @code)">
1815 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1816 <xslo:value-of select="."/>
1820 <xslo:for-each select="marc:subfield">
1821 <xslo:if test="contains('a', @code)">
1822 <z:index name="Corporate-name:w Conference-name:w Corporate-name:p Conference-name:p">
1823 <xslo:value-of select="."/>
1828 <xslo:template mode="index_subfields" match="marc:datafield[@tag='602']">
1829 <xslo:for-each select="marc:subfield">
1830 <xslo:if test="contains('9', @code)">
1831 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1832 <xslo:value-of select="."/>
1836 <xslo:for-each select="marc:subfield">
1837 <xslo:if test="contains('a', @code)">
1838 <z:index name="Personal-name:w Personal-name:p">
1839 <xslo:value-of select="."/>
1844 <xslo:template mode="index_subfields" match="marc:datafield[@tag='603']">
1845 <xslo:for-each select="marc:subfield">
1846 <xslo:if test="contains('9', @code)">
1847 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1848 <xslo:value-of select="."/>
1853 <xslo:template mode="index_subfields" match="marc:datafield[@tag='604']">
1854 <xslo:for-each select="marc:subfield">
1855 <xslo:if test="contains('9', @code)">
1856 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1857 <xslo:value-of select="."/>
1862 <xslo:template mode="index_subfields" match="marc:datafield[@tag='605']">
1863 <xslo:for-each select="marc:subfield">
1864 <xslo:if test="contains('9', @code)">
1865 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1866 <xslo:value-of select="."/>
1871 <xslo:template mode="index_subfields" match="marc:datafield[@tag='606']">
1872 <xslo:for-each select="marc:subfield">
1873 <xslo:if test="contains('9', @code)">
1874 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1875 <xslo:value-of select="."/>
1880 <xslo:template mode="index_subfields" match="marc:datafield[@tag='607']">
1881 <xslo:for-each select="marc:subfield">
1882 <xslo:if test="contains('9', @code)">
1883 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1884 <xslo:value-of select="."/>
1889 <xslo:template mode="index_subfields" match="marc:datafield[@tag='608']">
1890 <xslo:for-each select="marc:subfield">
1891 <xslo:if test="contains('9', @code)">
1892 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1893 <xslo:value-of select="."/>
1898 <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
1899 <xslo:for-each select="marc:subfield">
1900 <xslo:if test="contains('9', @code)">
1901 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1902 <xslo:value-of select="."/>
1907 <xslo:template mode="index_subfields" match="marc:datafield[@tag='615']">
1908 <xslo:for-each select="marc:subfield">
1909 <xslo:if test="contains('9', @code)">
1910 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1911 <xslo:value-of select="."/>
1916 <xslo:template mode="index_subfields" match="marc:datafield[@tag='616']">
1917 <xslo:for-each select="marc:subfield">
1918 <xslo:if test="contains('9', @code)">
1919 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1920 <xslo:value-of select="."/>
1925 <xslo:template mode="index_subfields" match="marc:datafield[@tag='617']">
1926 <xslo:for-each select="marc:subfield">
1927 <xslo:if test="contains('9', @code)">
1928 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1929 <xslo:value-of select="."/>
1934 <xslo:template mode="index_subfields" match="marc:datafield[@tag='620']">
1935 <xslo:for-each select="marc:subfield">
1936 <xslo:if test="contains('9', @code)">
1937 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1938 <xslo:value-of select="."/>
1943 <xslo:template mode="index_subfields" match="marc:datafield[@tag='621']">
1944 <xslo:for-each select="marc:subfield">
1945 <xslo:if test="contains('9', @code)">
1946 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1947 <xslo:value-of select="."/>
1952 <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
1953 <xslo:for-each select="marc:subfield">
1954 <xslo:if test="contains('9', @code)">
1955 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1956 <xslo:value-of select="."/>
1961 <xslo:template mode="index_subfields" match="marc:datafield[@tag='631']">
1962 <xslo:for-each select="marc:subfield">
1963 <xslo:if test="contains('9', @code)">
1964 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1965 <xslo:value-of select="."/>
1970 <xslo:template mode="index_subfields" match="marc:datafield[@tag='632']">
1971 <xslo:for-each select="marc:subfield">
1972 <xslo:if test="contains('9', @code)">
1973 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1974 <xslo:value-of select="."/>
1979 <xslo:template mode="index_subfields" match="marc:datafield[@tag='633']">
1980 <xslo:for-each select="marc:subfield">
1981 <xslo:if test="contains('9', @code)">
1982 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1983 <xslo:value-of select="."/>
1988 <xslo:template mode="index_subfields" match="marc:datafield[@tag='634']">
1989 <xslo:for-each select="marc:subfield">
1990 <xslo:if test="contains('9', @code)">
1991 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1992 <xslo:value-of select="."/>
1997 <xslo:template mode="index_subfields" match="marc:datafield[@tag='635']">
1998 <xslo:for-each select="marc:subfield">
1999 <xslo:if test="contains('9', @code)">
2000 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2001 <xslo:value-of select="."/>
2006 <xslo:template mode="index_subfields" match="marc:datafield[@tag='636']">
2007 <xslo:for-each select="marc:subfield">
2008 <xslo:if test="contains('9', @code)">
2009 <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2010 <xslo:value-of select="."/>
2015 <xslo:template mode="index_subfields" match="marc:datafield[@tag='675']">
2016 <xslo:for-each select="marc:subfield">
2017 <xslo:if test="contains('a', @code)">
2018 <z:index name="UDC-classification:w UDC-classification:p UDC-classification:s">
2019 <xslo:value-of select="."/>
2024 <xslo:template mode="index_subfields" match="marc:datafield[@tag='676']">
2025 <xslo:for-each select="marc:subfield">
2026 <xslo:if test="contains('a', @code)">
2027 <z:index name="Dewey-classification:w Dewey-classification:p Dewey-classification:s">
2028 <xslo:value-of select="."/>
2033 <xslo:template mode="index_subfields" match="marc:datafield[@tag='680']">
2034 <xslo:for-each select="marc:subfield">
2035 <xslo:if test="contains('b', @code)">
2036 <z:index name="LC-call-number:s">
2037 <xslo:value-of select="."/>
2042 <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
2043 <xslo:for-each select="marc:subfield">
2044 <xslo:if test="contains('0', @code)">
2045 <z:index name="totalissues:n totalissues:s">
2046 <xslo:value-of select="."/>
2051 <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2052 <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2053 <xslo:variable name="raw_heading">
2054 <xslo:for-each select="marc:subfield">
2055 <xslo:if test="position() > 1">
2056 <xslo:value-of select="substring(' ', 1, 1)"/>
2058 <xslo:value-of select="."/>
2061 <xslo:value-of select="normalize-space($raw_heading)"/>
2064 <xslo:template mode="index_data_field" match="marc:datafield[@tag='701']">
2065 <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2066 <xslo:variable name="raw_heading">
2067 <xslo:for-each select="marc:subfield">
2068 <xslo:if test="position() > 1">
2069 <xslo:value-of select="substring(' ', 1, 1)"/>
2071 <xslo:value-of select="."/>
2074 <xslo:value-of select="normalize-space($raw_heading)"/>
2077 <xslo:template mode="index_data_field" match="marc:datafield[@tag='702']">
2078 <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2079 <xslo:variable name="raw_heading">
2080 <xslo:for-each select="marc:subfield">
2081 <xslo:if test="position() > 1">
2082 <xslo:value-of select="substring(' ', 1, 1)"/>
2084 <xslo:value-of select="."/>
2087 <xslo:value-of select="normalize-space($raw_heading)"/>
2090 <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2091 <z:index name="Author:w Author-name-corporate:w Author-name-conference:w Corporate-name:w Conference-name:w Author:p Author-name-corporate:p Author-name-conference:p Corporate-name:p Conference-name:p">
2092 <xslo:variable name="raw_heading">
2093 <xslo:for-each select="marc:subfield">
2094 <xslo:if test="position() > 1">
2095 <xslo:value-of select="substring(' ', 1, 1)"/>
2097 <xslo:value-of select="."/>
2100 <xslo:value-of select="normalize-space($raw_heading)"/>
2103 <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2104 <z:index name="Author:w Author-name-corporate:w Author-name-conference:w Corporate-name:w Conference-name:w Author:p Author-name-corporate:p Author-name-conference:p Corporate-name:p Conference-name:p">
2105 <xslo:variable name="raw_heading">
2106 <xslo:for-each select="marc:subfield">
2107 <xslo:if test="position() > 1">
2108 <xslo:value-of select="substring(' ', 1, 1)"/>
2110 <xslo:value-of select="."/>
2113 <xslo:value-of select="normalize-space($raw_heading)"/>
2116 <xslo:template mode="index_data_field" match="marc:datafield[@tag='712']">
2117 <z:index name="Author:w Author-name-corporate:w Author-name-conference:w Corporate-name:w Conference-name:w Author:p Author-name-corporate:p Author-name-conference:p Corporate-name:p Conference-name:p">
2118 <xslo:variable name="raw_heading">
2119 <xslo:for-each select="marc:subfield">
2120 <xslo:if test="position() > 1">
2121 <xslo:value-of select="substring(' ', 1, 1)"/>
2123 <xslo:value-of select="."/>
2126 <xslo:value-of select="normalize-space($raw_heading)"/>
2129 <xslo:template mode="index_data_field" match="marc:datafield[@tag='716']">
2130 <z:index name="Author:w Author:p">
2131 <xslo:variable name="raw_heading">
2132 <xslo:for-each select="marc:subfield">
2133 <xslo:if test="position() > 1">
2134 <xslo:value-of select="substring(' ', 1, 1)"/>
2136 <xslo:value-of select="."/>
2139 <xslo:value-of select="normalize-space($raw_heading)"/>
2142 <xslo:template mode="index_data_field" match="marc:datafield[@tag='720']">
2143 <z:index name="Author:w Author:p">
2144 <xslo:variable name="raw_heading">
2145 <xslo:for-each select="marc:subfield">
2146 <xslo:if test="position() > 1">
2147 <xslo:value-of select="substring(' ', 1, 1)"/>
2149 <xslo:value-of select="."/>
2152 <xslo:value-of select="normalize-space($raw_heading)"/>
2155 <xslo:template mode="index_data_field" match="marc:datafield[@tag='721']">
2156 <z:index name="Author:w Author:p">
2157 <xslo:variable name="raw_heading">
2158 <xslo:for-each select="marc:subfield">
2159 <xslo:if test="position() > 1">
2160 <xslo:value-of select="substring(' ', 1, 1)"/>
2162 <xslo:value-of select="."/>
2165 <xslo:value-of select="normalize-space($raw_heading)"/>
2168 <xslo:template mode="index_data_field" match="marc:datafield[@tag='722']">
2169 <z:index name="Author:w Author:p">
2170 <xslo:variable name="raw_heading">
2171 <xslo:for-each select="marc:subfield">
2172 <xslo:if test="position() > 1">
2173 <xslo:value-of select="substring(' ', 1, 1)"/>
2175 <xslo:value-of select="."/>
2178 <xslo:value-of select="normalize-space($raw_heading)"/>
2181 <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2182 <z:index name="Author:w Author:p">
2183 <xslo:variable name="raw_heading">
2184 <xslo:for-each select="marc:subfield">
2185 <xslo:if test="position() > 1">
2186 <xslo:value-of select="substring(' ', 1, 1)"/>
2188 <xslo:value-of select="."/>
2191 <xslo:value-of select="normalize-space($raw_heading)"/>
2194 <xslo:template mode="index_data_field" match="marc:datafield[@tag='205']">
2195 <z:index name="Title:w Title:p">
2196 <xslo:variable name="raw_heading">
2197 <xslo:for-each select="marc:subfield">
2198 <xslo:if test="position() > 1">
2199 <xslo:value-of select="substring(' ', 1, 1)"/>
2201 <xslo:value-of select="."/>
2204 <xslo:value-of select="normalize-space($raw_heading)"/>
2207 <xslo:template mode="index_data_field" match="marc:datafield[@tag='207']">
2208 <z:index name="Serials:w Serials:p">
2209 <xslo:variable name="raw_heading">
2210 <xslo:for-each select="marc:subfield">
2211 <xslo:if test="position() > 1">
2212 <xslo:value-of select="substring(' ', 1, 1)"/>
2214 <xslo:value-of select="."/>
2217 <xslo:value-of select="normalize-space($raw_heading)"/>
2220 <xslo:template mode="index_data_field" match="marc:datafield[@tag='208']">
2221 <z:index name="Printed-music:w Printed-music:p">
2222 <xslo:variable name="raw_heading">
2223 <xslo:for-each select="marc:subfield">
2224 <xslo:if test="position() > 1">
2225 <xslo:value-of select="substring(' ', 1, 1)"/>
2227 <xslo:value-of select="."/>
2230 <xslo:value-of select="normalize-space($raw_heading)"/>
2233 <xslo:template mode="index_data_field" match="marc:datafield[@tag='215']">
2234 <z:index name="Extent:w">
2235 <xslo:variable name="raw_heading">
2236 <xslo:for-each select="marc:subfield">
2237 <xslo:if test="position() > 1">
2238 <xslo:value-of select="substring(' ', 1, 1)"/>
2240 <xslo:value-of select="."/>
2243 <xslo:value-of select="normalize-space($raw_heading)"/>
2246 <xslo:template mode="index_data_field" match="marc:datafield[@tag='308']">
2247 <z:index name="Note:w Note:p">
2248 <xslo:variable name="raw_heading">
2249 <xslo:for-each select="marc:subfield">
2250 <xslo:if test="position() > 1">
2251 <xslo:value-of select="substring(' ', 1, 1)"/>
2253 <xslo:value-of select="."/>
2256 <xslo:value-of select="normalize-space($raw_heading)"/>
2259 <xslo:template mode="index_data_field" match="marc:datafield[@tag='328']">
2260 <z:index name="Note:w Note:p">
2261 <xslo:variable name="raw_heading">
2262 <xslo:for-each select="marc:subfield">
2263 <xslo:if test="position() > 1">
2264 <xslo:value-of select="substring(' ', 1, 1)"/>
2266 <xslo:value-of select="."/>
2269 <xslo:value-of select="normalize-space($raw_heading)"/>
2272 <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
2273 <z:index name="Title:w Title:p">
2274 <xslo:variable name="raw_heading">
2275 <xslo:for-each select="marc:subfield">
2276 <xslo:if test="position() > 1">
2277 <xslo:value-of select="substring(' ', 1, 1)"/>
2279 <xslo:value-of select="."/>
2282 <xslo:value-of select="normalize-space($raw_heading)"/>
2285 <xslo:template mode="index_data_field" match="marc:datafield[@tag='501']">
2286 <z:index name="Title:w Title:p">
2287 <xslo:variable name="raw_heading">
2288 <xslo:for-each select="marc:subfield">
2289 <xslo:if test="position() > 1">
2290 <xslo:value-of select="substring(' ', 1, 1)"/>
2292 <xslo:value-of select="."/>
2295 <xslo:value-of select="normalize-space($raw_heading)"/>
2298 <xslo:template mode="index_data_field" match="marc:datafield[@tag='503']">
2299 <z:index name="Title:w Title:p">
2300 <xslo:variable name="raw_heading">
2301 <xslo:for-each select="marc:subfield">
2302 <xslo:if test="position() > 1">
2303 <xslo:value-of select="substring(' ', 1, 1)"/>
2305 <xslo:value-of select="."/>
2308 <xslo:value-of select="normalize-space($raw_heading)"/>
2311 <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
2312 <z:index name="Title:w Title:p">
2313 <xslo:variable name="raw_heading">
2314 <xslo:for-each select="marc:subfield">
2315 <xslo:if test="position() > 1">
2316 <xslo:value-of select="substring(' ', 1, 1)"/>
2318 <xslo:value-of select="."/>
2321 <xslo:value-of select="normalize-space($raw_heading)"/>
2324 <xslo:template mode="index_data_field" match="marc:datafield[@tag='512']">
2325 <z:index name="Title:w Title:p">
2326 <xslo:variable name="raw_heading">
2327 <xslo:for-each select="marc:subfield">
2328 <xslo:if test="position() > 1">
2329 <xslo:value-of select="substring(' ', 1, 1)"/>
2331 <xslo:value-of select="."/>
2334 <xslo:value-of select="normalize-space($raw_heading)"/>
2337 <xslo:template mode="index_data_field" match="marc:datafield[@tag='513']">
2338 <z:index name="Title:w Title:p">
2339 <xslo:variable name="raw_heading">
2340 <xslo:for-each select="marc:subfield">
2341 <xslo:if test="position() > 1">
2342 <xslo:value-of select="substring(' ', 1, 1)"/>
2344 <xslo:value-of select="."/>
2347 <xslo:value-of select="normalize-space($raw_heading)"/>
2350 <xslo:template mode="index_data_field" match="marc:datafield[@tag='514']">
2351 <z:index name="Title:w Title:p">
2352 <xslo:variable name="raw_heading">
2353 <xslo:for-each select="marc:subfield">
2354 <xslo:if test="position() > 1">
2355 <xslo:value-of select="substring(' ', 1, 1)"/>
2357 <xslo:value-of select="."/>
2360 <xslo:value-of select="normalize-space($raw_heading)"/>
2363 <xslo:template mode="index_data_field" match="marc:datafield[@tag='515']">
2364 <z:index name="Title:w Title:p">
2365 <xslo:variable name="raw_heading">
2366 <xslo:for-each select="marc:subfield">
2367 <xslo:if test="position() > 1">
2368 <xslo:value-of select="substring(' ', 1, 1)"/>
2370 <xslo:value-of select="."/>
2373 <xslo:value-of select="normalize-space($raw_heading)"/>
2376 <xslo:template mode="index_data_field" match="marc:datafield[@tag='516']">
2377 <z:index name="Title:w Title:p">
2378 <xslo:variable name="raw_heading">
2379 <xslo:for-each select="marc:subfield">
2380 <xslo:if test="position() > 1">
2381 <xslo:value-of select="substring(' ', 1, 1)"/>
2383 <xslo:value-of select="."/>
2386 <xslo:value-of select="normalize-space($raw_heading)"/>
2389 <xslo:template mode="index_data_field" match="marc:datafield[@tag='517']">
2390 <z:index name="Title:w Title:p">
2391 <xslo:variable name="raw_heading">
2392 <xslo:for-each select="marc:subfield">
2393 <xslo:if test="position() > 1">
2394 <xslo:value-of select="substring(' ', 1, 1)"/>
2396 <xslo:value-of select="."/>
2399 <xslo:value-of select="normalize-space($raw_heading)"/>
2402 <xslo:template mode="index_data_field" match="marc:datafield[@tag='518']">
2403 <z:index name="Title:w Title:p">
2404 <xslo:variable name="raw_heading">
2405 <xslo:for-each select="marc:subfield">
2406 <xslo:if test="position() > 1">
2407 <xslo:value-of select="substring(' ', 1, 1)"/>
2409 <xslo:value-of select="."/>
2412 <xslo:value-of select="normalize-space($raw_heading)"/>
2415 <xslo:template mode="index_data_field" match="marc:datafield[@tag='519']">
2416 <z:index name="Title:w Title:p">
2417 <xslo:variable name="raw_heading">
2418 <xslo:for-each select="marc:subfield">
2419 <xslo:if test="position() > 1">
2420 <xslo:value-of select="substring(' ', 1, 1)"/>
2422 <xslo:value-of select="."/>
2425 <xslo:value-of select="normalize-space($raw_heading)"/>
2428 <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
2429 <z:index name="Title:w Title:p">
2430 <xslo:variable name="raw_heading">
2431 <xslo:for-each select="marc:subfield">
2432 <xslo:if test="position() > 1">
2433 <xslo:value-of select="substring(' ', 1, 1)"/>
2435 <xslo:value-of select="."/>
2438 <xslo:value-of select="normalize-space($raw_heading)"/>
2441 <xslo:template mode="index_data_field" match="marc:datafield[@tag='530']">
2442 <z:index name="Title:w Title:p">
2443 <xslo:variable name="raw_heading">
2444 <xslo:for-each select="marc:subfield">
2445 <xslo:if test="position() > 1">
2446 <xslo:value-of select="substring(' ', 1, 1)"/>
2448 <xslo:value-of select="."/>
2451 <xslo:value-of select="normalize-space($raw_heading)"/>
2454 <xslo:template mode="index_data_field" match="marc:datafield[@tag='531']">
2455 <z:index name="Title:w Title:p">
2456 <xslo:variable name="raw_heading">
2457 <xslo:for-each select="marc:subfield">
2458 <xslo:if test="position() > 1">
2459 <xslo:value-of select="substring(' ', 1, 1)"/>
2461 <xslo:value-of select="."/>
2464 <xslo:value-of select="normalize-space($raw_heading)"/>
2467 <xslo:template mode="index_data_field" match="marc:datafield[@tag='532']">
2468 <z:index name="Title:w Title:p">
2469 <xslo:variable name="raw_heading">
2470 <xslo:for-each select="marc:subfield">
2471 <xslo:if test="position() > 1">
2472 <xslo:value-of select="substring(' ', 1, 1)"/>
2474 <xslo:value-of select="."/>
2477 <xslo:value-of select="normalize-space($raw_heading)"/>
2480 <xslo:template mode="index_data_field" match="marc:datafield[@tag='540']">
2481 <z:index name="Title:w Title:p">
2482 <xslo:variable name="raw_heading">
2483 <xslo:for-each select="marc:subfield">
2484 <xslo:if test="position() > 1">
2485 <xslo:value-of select="substring(' ', 1, 1)"/>
2487 <xslo:value-of select="."/>
2490 <xslo:value-of select="normalize-space($raw_heading)"/>
2493 <xslo:template mode="index_data_field" match="marc:datafield[@tag='541']">
2494 <z:index name="Title:w Title:p">
2495 <xslo:variable name="raw_heading">
2496 <xslo:for-each select="marc:subfield">
2497 <xslo:if test="position() > 1">
2498 <xslo:value-of select="substring(' ', 1, 1)"/>
2500 <xslo:value-of select="."/>
2503 <xslo:value-of select="normalize-space($raw_heading)"/>
2506 <xslo:template mode="index_data_field" match="marc:datafield[@tag='545']">
2507 <z:index name="Title:w Title:p">
2508 <xslo:variable name="raw_heading">
2509 <xslo:for-each select="marc:subfield">
2510 <xslo:if test="position() > 1">
2511 <xslo:value-of select="substring(' ', 1, 1)"/>
2513 <xslo:value-of select="."/>
2516 <xslo:value-of select="normalize-space($raw_heading)"/>
2519 <xslo:template mode="index_data_field" match="marc:datafield[@tag='560']">
2520 <z:index name="Title:w Title:p">
2521 <xslo:variable name="raw_heading">
2522 <xslo:for-each select="marc:subfield">
2523 <xslo:if test="position() > 1">
2524 <xslo:value-of select="substring(' ', 1, 1)"/>
2526 <xslo:value-of select="."/>
2529 <xslo:value-of select="normalize-space($raw_heading)"/>
2532 <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
2533 <z:index name="Subject:w Subject:p">
2534 <xslo:variable name="raw_heading">
2535 <xslo:for-each select="marc:subfield">
2536 <xslo:if test="position() > 1">
2537 <xslo:value-of select="substring(' ', 1, 1)"/>
2539 <xslo:value-of select="."/>
2542 <xslo:value-of select="normalize-space($raw_heading)"/>
2545 <xslo:template mode="index_data_field" match="marc:datafield[@tag='601']">
2546 <z:index name="Subject:w Subject:p">
2547 <xslo:variable name="raw_heading">
2548 <xslo:for-each select="marc:subfield">
2549 <xslo:if test="position() > 1">
2550 <xslo:value-of select="substring(' ', 1, 1)"/>
2552 <xslo:value-of select="."/>
2555 <xslo:value-of select="normalize-space($raw_heading)"/>
2558 <xslo:template mode="index_data_field" match="marc:datafield[@tag='602']">
2559 <z:index name="Subject:w Subject:p">
2560 <xslo:variable name="raw_heading">
2561 <xslo:for-each select="marc:subfield">
2562 <xslo:if test="position() > 1">
2563 <xslo:value-of select="substring(' ', 1, 1)"/>
2565 <xslo:value-of select="."/>
2568 <xslo:value-of select="normalize-space($raw_heading)"/>
2571 <xslo:template mode="index_data_field" match="marc:datafield[@tag='604']">
2572 <z:index name="Subject:w Subject:p">
2573 <xslo:variable name="raw_heading">
2574 <xslo:for-each select="marc:subfield">
2575 <xslo:if test="position() > 1">
2576 <xslo:value-of select="substring(' ', 1, 1)"/>
2578 <xslo:value-of select="."/>
2581 <xslo:value-of select="normalize-space($raw_heading)"/>
2584 <xslo:template mode="index_data_field" match="marc:datafield[@tag='605']">
2585 <z:index name="Subject:w Subject:p">
2586 <xslo:variable name="raw_heading">
2587 <xslo:for-each select="marc:subfield">
2588 <xslo:if test="position() > 1">
2589 <xslo:value-of select="substring(' ', 1, 1)"/>
2591 <xslo:value-of select="."/>
2594 <xslo:value-of select="normalize-space($raw_heading)"/>
2597 <xslo:template mode="index_data_field" match="marc:datafield[@tag='606']">
2598 <z:index name="Subject:w Subject:p">
2599 <xslo:variable name="raw_heading">
2600 <xslo:for-each select="marc:subfield">
2601 <xslo:if test="position() > 1">
2602 <xslo:value-of select="substring(' ', 1, 1)"/>
2604 <xslo:value-of select="."/>
2607 <xslo:value-of select="normalize-space($raw_heading)"/>
2610 <xslo:template mode="index_data_field" match="marc:datafield[@tag='607']">
2611 <z:index name="Subject:w Subject:p">
2612 <xslo:variable name="raw_heading">
2613 <xslo:for-each select="marc:subfield">
2614 <xslo:if test="position() > 1">
2615 <xslo:value-of select="substring(' ', 1, 1)"/>
2617 <xslo:value-of select="."/>
2620 <xslo:value-of select="normalize-space($raw_heading)"/>
2623 <xslo:template mode="index_data_field" match="marc:datafield[@tag='608']">
2624 <z:index name="Subject:w Subject:p">
2625 <xslo:variable name="raw_heading">
2626 <xslo:for-each select="marc:subfield">
2627 <xslo:if test="position() > 1">
2628 <xslo:value-of select="substring(' ', 1, 1)"/>
2630 <xslo:value-of select="."/>
2633 <xslo:value-of select="normalize-space($raw_heading)"/>
2636 <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2637 <z:index name="Subject:w Subject:p">
2638 <xslo:variable name="raw_heading">
2639 <xslo:for-each select="marc:subfield">
2640 <xslo:if test="position() > 1">
2641 <xslo:value-of select="substring(' ', 1, 1)"/>
2643 <xslo:value-of select="."/>
2646 <xslo:value-of select="normalize-space($raw_heading)"/>
2649 <xslo:template mode="index_data_field" match="marc:datafield[@tag='615']">
2650 <z:index name="Subject:w Subject:p">
2651 <xslo:variable name="raw_heading">
2652 <xslo:for-each select="marc:subfield">
2653 <xslo:if test="position() > 1">
2654 <xslo:value-of select="substring(' ', 1, 1)"/>
2656 <xslo:value-of select="."/>
2659 <xslo:value-of select="normalize-space($raw_heading)"/>
2662 <xslo:template mode="index_data_field" match="marc:datafield[@tag='616']">
2663 <z:index name="Subject:w Subject:p">
2664 <xslo:variable name="raw_heading">
2665 <xslo:for-each select="marc:subfield">
2666 <xslo:if test="position() > 1">
2667 <xslo:value-of select="substring(' ', 1, 1)"/>
2669 <xslo:value-of select="."/>
2672 <xslo:value-of select="normalize-space($raw_heading)"/>
2675 <xslo:template mode="index_data_field" match="marc:datafield[@tag='617']">
2676 <z:index name="Subject:w Subject:p">
2677 <xslo:variable name="raw_heading">
2678 <xslo:for-each select="marc:subfield">
2679 <xslo:if test="position() > 1">
2680 <xslo:value-of select="substring(' ', 1, 1)"/>
2682 <xslo:value-of select="."/>
2685 <xslo:value-of select="normalize-space($raw_heading)"/>
2688 <xslo:template mode="index_data_field" match="marc:datafield[@tag='620']">
2689 <z:index name="Subject:w Subject:p">
2690 <xslo:variable name="raw_heading">
2691 <xslo:for-each select="marc:subfield">
2692 <xslo:if test="position() > 1">
2693 <xslo:value-of select="substring(' ', 1, 1)"/>
2695 <xslo:value-of select="."/>
2698 <xslo:value-of select="normalize-space($raw_heading)"/>
2701 <xslo:template mode="index_data_field" match="marc:datafield[@tag='621']">
2702 <z:index name="Subject:w Subject:p">
2703 <xslo:variable name="raw_heading">
2704 <xslo:for-each select="marc:subfield">
2705 <xslo:if test="position() > 1">
2706 <xslo:value-of select="substring(' ', 1, 1)"/>
2708 <xslo:value-of select="."/>
2711 <xslo:value-of select="normalize-space($raw_heading)"/>
2714 <xslo:template mode="index_data_field" match="marc:datafield[@tag='603']">
2715 <z:index name="Subject:w Subject:p">
2716 <xslo:variable name="raw_heading">
2717 <xslo:for-each select="marc:subfield">
2718 <xslo:if test="position() > 1">
2719 <xslo:value-of select="substring(' ', 1, 1)"/>
2721 <xslo:value-of select="."/>
2724 <xslo:value-of select="normalize-space($raw_heading)"/>
2727 <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2728 <z:index name="Subject:w Subject:p">
2729 <xslo:variable name="raw_heading">
2730 <xslo:for-each select="marc:subfield">
2731 <xslo:if test="position() > 1">
2732 <xslo:value-of select="substring(' ', 1, 1)"/>
2734 <xslo:value-of select="."/>
2737 <xslo:value-of select="normalize-space($raw_heading)"/>
2740 <xslo:template mode="index_data_field" match="marc:datafield[@tag='631']">
2741 <z:index name="Subject:w Subject:p">
2742 <xslo:variable name="raw_heading">
2743 <xslo:for-each select="marc:subfield">
2744 <xslo:if test="position() > 1">
2745 <xslo:value-of select="substring(' ', 1, 1)"/>
2747 <xslo:value-of select="."/>
2750 <xslo:value-of select="normalize-space($raw_heading)"/>
2753 <xslo:template mode="index_data_field" match="marc:datafield[@tag='632']">
2754 <z:index name="Subject:w Subject:p">
2755 <xslo:variable name="raw_heading">
2756 <xslo:for-each select="marc:subfield">
2757 <xslo:if test="position() > 1">
2758 <xslo:value-of select="substring(' ', 1, 1)"/>
2760 <xslo:value-of select="."/>
2763 <xslo:value-of select="normalize-space($raw_heading)"/>
2766 <xslo:template mode="index_data_field" match="marc:datafield[@tag='633']">
2767 <z:index name="Subject:w Subject:p">
2768 <xslo:variable name="raw_heading">
2769 <xslo:for-each select="marc:subfield">
2770 <xslo:if test="position() > 1">
2771 <xslo:value-of select="substring(' ', 1, 1)"/>
2773 <xslo:value-of select="."/>
2776 <xslo:value-of select="normalize-space($raw_heading)"/>
2779 <xslo:template mode="index_data_field" match="marc:datafield[@tag='634']">
2780 <z:index name="Subject:w Subject:p">
2781 <xslo:variable name="raw_heading">
2782 <xslo:for-each select="marc:subfield">
2783 <xslo:if test="position() > 1">
2784 <xslo:value-of select="substring(' ', 1, 1)"/>
2786 <xslo:value-of select="."/>
2789 <xslo:value-of select="normalize-space($raw_heading)"/>
2792 <xslo:template mode="index_data_field" match="marc:datafield[@tag='635']">
2793 <z:index name="Subject:w Subject:p">
2794 <xslo:variable name="raw_heading">
2795 <xslo:for-each select="marc:subfield">
2796 <xslo:if test="position() > 1">
2797 <xslo:value-of select="substring(' ', 1, 1)"/>
2799 <xslo:value-of select="."/>
2802 <xslo:value-of select="normalize-space($raw_heading)"/>
2805 <xslo:template mode="index_data_field" match="marc:datafield[@tag='636']">
2806 <z:index name="Subject:w Subject:p">
2807 <xslo:variable name="raw_heading">
2808 <xslo:for-each select="marc:subfield">
2809 <xslo:if test="position() > 1">
2810 <xslo:value-of select="substring(' ', 1, 1)"/>
2812 <xslo:value-of select="."/>
2815 <xslo:value-of select="normalize-space($raw_heading)"/>
2818 <xslo:template mode="index_data_field" match="marc:datafield[@tag='646']">
2819 <z:index name="Subject:w Subject:p">
2820 <xslo:variable name="raw_heading">
2821 <xslo:for-each select="marc:subfield">
2822 <xslo:if test="position() > 1">
2823 <xslo:value-of select="substring(' ', 1, 1)"/>
2825 <xslo:value-of select="."/>
2828 <xslo:value-of select="normalize-space($raw_heading)"/>
2831 <xslo:template mode="index_data_field" match="marc:datafield[@tag='670']">
2832 <z:index name="Subject-precis:w Subject-precis:p">
2833 <xslo:variable name="raw_heading">
2834 <xslo:for-each select="marc:subfield">
2835 <xslo:if test="position() > 1">
2836 <xslo:value-of select="substring(' ', 1, 1)"/>
2838 <xslo:value-of select="."/>
2841 <xslo:value-of select="normalize-space($raw_heading)"/>
2844 <xslo:template mode="index_data_field" match="marc:datafield[@tag='680']">
2845 <z:index name="LC-call-number:w LC-call-number:p">
2846 <xslo:variable name="raw_heading">
2847 <xslo:for-each select="marc:subfield">
2848 <xslo:if test="position() > 1">
2849 <xslo:value-of select="substring(' ', 1, 1)"/>
2851 <xslo:value-of select="."/>
2854 <xslo:value-of select="normalize-space($raw_heading)"/>
2857 <xslo:template mode="index_data_field" match="marc:datafield[@tag='686']">
2858 <z:index name="Local-classification:w Local-classification:p">
2859 <xslo:variable name="raw_heading">
2860 <xslo:for-each select="marc:subfield">
2861 <xslo:if test="position() > 1">
2862 <xslo:value-of select="substring(' ', 1, 1)"/>
2864 <xslo:value-of select="."/>
2867 <xslo:value-of select="normalize-space($raw_heading)"/>
2870 <xslo:template mode="index_data_field" match="marc:datafield[@tag='995']">
2871 <z:index name="item # just to index every subfield:w">
2872 <xslo:variable name="raw_heading">
2873 <xslo:for-each select="marc:subfield">
2874 <xslo:if test="position() > 1">
2875 <xslo:value-of select="substring(' ', 1, 1)"/>
2877 <xslo:value-of select="."/>
2880 <xslo:value-of select="normalize-space($raw_heading)"/>
2883 <xslo:template match="*">
2884 <z:index name="Any:w Any:p">
2885 <xslo:value-of select="."/>
2888 <xslo:template name="chopPunctuation">
2889 <xslo:param name="chopString"/>
2890 <xslo:variable name="length" select="string-length($chopString)"/>
2892 <xslo:when test="$length=0"/>
2893 <xslo:when test="contains('-,.:=;!%/', substring($chopString,$length,1))">
2894 <xslo:call-template name="chopPunctuation">
2895 <xslo:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
2896 </xslo:call-template>
2898 <xslo:when test="not($chopString)"/>
2900 <xslo:value-of select="$chopString"/>