|
Lines 17-22
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 17 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
17 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
| 18 |
<xslo:template match="text()" mode="index_match_heading"/> |
18 |
<xslo:template match="text()" mode="index_match_heading"/> |
| 19 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
19 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
|
|
20 |
<xslo:template match="text()" mode="index_sort_tit"/> |
| 20 |
<xslo:template match="/"> |
21 |
<xslo:template match="/"> |
| 21 |
<xslo:if test="marc:collection"> |
22 |
<xslo:if test="marc:collection"> |
| 22 |
<collection> |
23 |
<collection> |
|
Lines 42-47
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 42 |
<xslo:apply-templates mode="index_match_heading"/> |
43 |
<xslo:apply-templates mode="index_match_heading"/> |
| 43 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
44 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
| 44 |
<xslo:apply-templates mode="index_all"/> |
45 |
<xslo:apply-templates mode="index_all"/> |
|
|
46 |
<xslo:apply-templates mode="index_sort_tit"/> |
| 45 |
</z:record> |
47 |
</z:record> |
| 46 |
</xslo:template> |
48 |
</xslo:template> |
| 47 |
<xslo:template match="marc:controlfield[@tag='001']"> |
49 |
<xslo:template match="marc:controlfield[@tag='001']"> |
|
Lines 52-57
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 52 |
<xslo:value-of select="."/> |
54 |
<xslo:value-of select="."/> |
| 53 |
</z:index> |
55 |
</z:index> |
| 54 |
</xslo:template> |
56 |
</xslo:template> |
|
|
57 |
<xslo:template match="marc:controlfield[@tag='003']"> |
| 58 |
<z:index name="Identifier-persistent:w"> |
| 59 |
<xslo:value-of select="."/> |
| 60 |
</z:index> |
| 61 |
</xslo:template> |
| 55 |
<xslo:template match="marc:controlfield[@tag='009']"> |
62 |
<xslo:template match="marc:controlfield[@tag='009']"> |
| 56 |
<z:index name="Identifier-standard:w"> |
63 |
<z:index name="Identifier-standard:w"> |
| 57 |
<xslo:value-of select="."/> |
64 |
<xslo:value-of select="."/> |
|
Lines 85-92
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 85 |
</xslo:if> |
92 |
</xslo:if> |
| 86 |
</xslo:for-each> |
93 |
</xslo:for-each> |
| 87 |
<xslo:for-each select="marc:subfield"> |
94 |
<xslo:for-each select="marc:subfield"> |
|
|
95 |
<xslo:if test="contains('o', @code)"> |
| 96 |
<z:index name="Suppress:w Suppress:p"> |
| 97 |
<xslo:value-of select="."/> |
| 98 |
</z:index> |
| 99 |
</xslo:if> |
| 100 |
</xslo:for-each> |
| 101 |
<xslo:for-each select="marc:subfield"> |
| 88 |
<xslo:if test="contains('t', @code)"> |
102 |
<xslo:if test="contains('t', @code)"> |
| 89 |
<z:index name="ccode:w"> |
103 |
<z:index name="index-type-doc:w index-type-doc:p"> |
| 90 |
<xslo:value-of select="."/> |
104 |
<xslo:value-of select="."/> |
| 91 |
</z:index> |
105 |
</z:index> |
| 92 |
</xslo:if> |
106 |
</xslo:if> |
|
Lines 171-176
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 171 |
</xslo:if> |
185 |
</xslo:if> |
| 172 |
</xslo:for-each> |
186 |
</xslo:for-each> |
| 173 |
</xslo:template> |
187 |
</xslo:template> |
|
|
188 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='018']"> |
| 189 |
<xslo:for-each select="marc:subfield"> |
| 190 |
<xslo:if test="contains('a', @code)"> |
| 191 |
<z:index name="Identifier-standard:w"> |
| 192 |
<xslo:value-of select="."/> |
| 193 |
</z:index> |
| 194 |
</xslo:if> |
| 195 |
</xslo:for-each> |
| 196 |
</xslo:template> |
| 197 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='029']"> |
| 198 |
<xslo:for-each select="marc:subfield"> |
| 199 |
<xslo:if test="contains('a', @code)"> |
| 200 |
<z:index name="Identifier-standard:w"> |
| 201 |
<xslo:value-of select="."/> |
| 202 |
</z:index> |
| 203 |
</xslo:if> |
| 204 |
</xslo:for-each> |
| 205 |
</xslo:template> |
| 206 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='033']"> |
| 207 |
<xslo:for-each select="marc:subfield"> |
| 208 |
<xslo:if test="contains('a', @code)"> |
| 209 |
<z:index name="Identifier-persistent:w"> |
| 210 |
<xslo:value-of select="."/> |
| 211 |
</z:index> |
| 212 |
</xslo:if> |
| 213 |
</xslo:for-each> |
| 214 |
</xslo:template> |
| 174 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='040']"> |
215 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='040']"> |
| 175 |
<xslo:for-each select="marc:subfield"> |
216 |
<xslo:for-each select="marc:subfield"> |
| 176 |
<xslo:if test="contains('az', @code)"> |
217 |
<xslo:if test="contains('az', @code)"> |
|
Lines 253-258
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 253 |
</xslo:if> |
294 |
</xslo:if> |
| 254 |
</xslo:for-each> |
295 |
</xslo:for-each> |
| 255 |
<xslo:for-each select="marc:subfield"> |
296 |
<xslo:for-each select="marc:subfield"> |
|
|
297 |
<xslo:if test="contains('B', @code)"> |
| 298 |
<z:index name="new-item:w new-item:n item:w"> |
| 299 |
<xslo:value-of select="."/> |
| 300 |
</z:index> |
| 301 |
</xslo:if> |
| 302 |
</xslo:for-each> |
| 303 |
<xslo:for-each select="marc:subfield"> |
| 256 |
<xslo:if test="contains('1', @code)"> |
304 |
<xslo:if test="contains('1', @code)"> |
| 257 |
<z:index name="damaged:w damaged:n item:w"> |
305 |
<z:index name="damaged:w damaged:n item:w"> |
| 258 |
<xslo:value-of select="."/> |
306 |
<xslo:value-of select="."/> |
|
Lines 404-410
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 404 |
<xslo:for-each select="marc:subfield"> |
452 |
<xslo:for-each select="marc:subfield"> |
| 405 |
<xslo:if test="contains('a', @code)"> |
453 |
<xslo:if test="contains('a', @code)"> |
| 406 |
<z:index name="char-encoding:n"> |
454 |
<z:index name="char-encoding:n"> |
| 407 |
<xslo:value-of select="substring(., 31, 2)"/> |
455 |
<xslo:value-of select="substring(., 31, 4)"/> |
| 408 |
</z:index> |
456 |
</z:index> |
| 409 |
</xslo:if> |
457 |
</xslo:if> |
| 410 |
</xslo:for-each> |
458 |
</xslo:for-each> |
|
Lines 640-645
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 640 |
</xslo:if> |
688 |
</xslo:if> |
| 641 |
</xslo:for-each> |
689 |
</xslo:for-each> |
| 642 |
</xslo:template> |
690 |
</xslo:template> |
|
|
691 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='181']"> |
| 692 |
<xslo:for-each select="marc:subfield"> |
| 693 |
<xslo:if test="contains('c', @code)"> |
| 694 |
<z:index name="Content-type:w Content-type:p"> |
| 695 |
<xslo:value-of select="."/> |
| 696 |
</z:index> |
| 697 |
</xslo:if> |
| 698 |
</xslo:for-each> |
| 699 |
</xslo:template> |
| 700 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='182']"> |
| 701 |
<xslo:for-each select="marc:subfield"> |
| 702 |
<xslo:if test="contains('c', @code)"> |
| 703 |
<z:index name="Material-Type:w Material-Type:p"> |
| 704 |
<xslo:value-of select="."/> |
| 705 |
</z:index> |
| 706 |
</xslo:if> |
| 707 |
</xslo:for-each> |
| 708 |
</xslo:template> |
| 709 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='183']"> |
| 710 |
<xslo:for-each select="marc:subfield"> |
| 711 |
<xslo:if test="contains('a', @code)"> |
| 712 |
<z:index name="Carrier-type:w Carrier-type:p"> |
| 713 |
<xslo:value-of select="."/> |
| 714 |
</z:index> |
| 715 |
</xslo:if> |
| 716 |
</xslo:for-each> |
| 717 |
</xslo:template> |
| 718 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='203']"> |
| 719 |
<xslo:for-each select="marc:subfield"> |
| 720 |
<xslo:if test="contains('a', @code)"> |
| 721 |
<z:index name="Content-type:w Content-type:p"> |
| 722 |
<xslo:value-of select="."/> |
| 723 |
</z:index> |
| 724 |
</xslo:if> |
| 725 |
</xslo:for-each> |
| 726 |
<xslo:for-each select="marc:subfield"> |
| 727 |
<xslo:if test="contains('b', @code)"> |
| 728 |
<z:index name="Material-Type:w Material-Type:p"> |
| 729 |
<xslo:value-of select="."/> |
| 730 |
</z:index> |
| 731 |
</xslo:if> |
| 732 |
</xslo:for-each> |
| 733 |
<xslo:for-each select="marc:subfield"> |
| 734 |
<xslo:if test="contains('c', @code)"> |
| 735 |
<z:index name="Carrier-type:w Carrier-type:p"> |
| 736 |
<xslo:value-of select="."/> |
| 737 |
</z:index> |
| 738 |
</xslo:if> |
| 739 |
</xslo:for-each> |
| 740 |
</xslo:template> |
| 741 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='283']"> |
| 742 |
<xslo:for-each select="marc:subfield"> |
| 743 |
<xslo:if test="contains('a', @code)"> |
| 744 |
<z:index name="Carrier-type:w Carrier-type:p"> |
| 745 |
<xslo:value-of select="."/> |
| 746 |
</z:index> |
| 747 |
</xslo:if> |
| 748 |
</xslo:for-each> |
| 749 |
</xslo:template> |
| 643 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='700']"> |
750 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='700']"> |
| 644 |
<xslo:for-each select="marc:subfield"> |
751 |
<xslo:for-each select="marc:subfield"> |
| 645 |
<xslo:if test="contains('3', @code)"> |
752 |
<xslo:if test="contains('3', @code)"> |
|
Lines 813-818
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 813 |
</xslo:if> |
920 |
</xslo:if> |
| 814 |
</xslo:for-each> |
921 |
</xslo:for-each> |
| 815 |
</xslo:template> |
922 |
</xslo:template> |
|
|
923 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='214']"> |
| 924 |
<xslo:for-each select="marc:subfield"> |
| 925 |
<xslo:if test="contains('d', @code)"> |
| 926 |
<z:index name="pubdate:n pubdate:y"> |
| 927 |
<xslo:value-of select="."/> |
| 928 |
</z:index> |
| 929 |
</xslo:if> |
| 930 |
</xslo:for-each> |
| 931 |
<xslo:for-each select="marc:subfield"> |
| 932 |
<xslo:if test="contains('c', @code)"> |
| 933 |
<z:index name="Publisher:w Publisher:p"> |
| 934 |
<xslo:value-of select="."/> |
| 935 |
</z:index> |
| 936 |
</xslo:if> |
| 937 |
</xslo:for-each> |
| 938 |
</xslo:template> |
| 939 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='219']"> |
| 940 |
<xslo:for-each select="marc:subfield"> |
| 941 |
<xslo:if test="contains('d', @code)"> |
| 942 |
<z:index name="pubdate:n pubdate:y"> |
| 943 |
<xslo:value-of select="."/> |
| 944 |
</z:index> |
| 945 |
</xslo:if> |
| 946 |
</xslo:for-each> |
| 947 |
<xslo:for-each select="marc:subfield"> |
| 948 |
<xslo:if test="contains('c', @code)"> |
| 949 |
<z:index name="Publisher:w Publisher:p"> |
| 950 |
<xslo:value-of select="."/> |
| 951 |
</z:index> |
| 952 |
</xslo:if> |
| 953 |
</xslo:for-each> |
| 954 |
</xslo:template> |
| 816 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='225']"> |
955 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='225']"> |
| 817 |
<xslo:for-each select="marc:subfield"> |
956 |
<xslo:for-each select="marc:subfield"> |
| 818 |
<xslo:if test="contains('a', @code)"> |
957 |
<xslo:if test="contains('a', @code)"> |
|
Lines 871-876
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 871 |
</xslo:if> |
1010 |
</xslo:if> |
| 872 |
</xslo:for-each> |
1011 |
</xslo:for-each> |
| 873 |
</xslo:template> |
1012 |
</xslo:template> |
|
|
1013 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='231']"> |
| 1014 |
<xslo:for-each select="marc:subfield"> |
| 1015 |
<xslo:if test="contains('a', @code)"> |
| 1016 |
<z:index name="Electronic-resource:w Electronic-resource:p"> |
| 1017 |
<xslo:value-of select="."/> |
| 1018 |
</z:index> |
| 1019 |
</xslo:if> |
| 1020 |
</xslo:for-each> |
| 1021 |
<xslo:for-each select="marc:subfield"> |
| 1022 |
<xslo:if test="contains('b', @code)"> |
| 1023 |
<z:index name="Digital-content:w Digital-content:p"> |
| 1024 |
<xslo:value-of select="."/> |
| 1025 |
</z:index> |
| 1026 |
</xslo:if> |
| 1027 |
</xslo:for-each> |
| 1028 |
</xslo:template> |
| 874 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='300']"> |
1029 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='300']"> |
| 875 |
<xslo:for-each select="marc:subfield"> |
1030 |
<xslo:for-each select="marc:subfield"> |
| 876 |
<xslo:if test="contains('a', @code)"> |
1031 |
<xslo:if test="contains('a', @code)"> |
|
Lines 1148-1153
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1148 |
</xslo:if> |
1303 |
</xslo:if> |
| 1149 |
</xslo:for-each> |
1304 |
</xslo:for-each> |
| 1150 |
</xslo:template> |
1305 |
</xslo:template> |
|
|
1306 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='335']"> |
| 1307 |
<xslo:for-each select="marc:subfield"> |
| 1308 |
<xslo:if test="contains('a', @code)"> |
| 1309 |
<z:index name="Note:w Note:p"> |
| 1310 |
<xslo:value-of select="."/> |
| 1311 |
</z:index> |
| 1312 |
</xslo:if> |
| 1313 |
</xslo:for-each> |
| 1314 |
</xslo:template> |
| 1151 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='336']"> |
1315 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='336']"> |
| 1152 |
<xslo:for-each select="marc:subfield"> |
1316 |
<xslo:for-each select="marc:subfield"> |
| 1153 |
<xslo:if test="contains('a', @code)"> |
1317 |
<xslo:if test="contains('a', @code)"> |
|
Lines 1166-1171
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1166 |
</xslo:if> |
1330 |
</xslo:if> |
| 1167 |
</xslo:for-each> |
1331 |
</xslo:for-each> |
| 1168 |
</xslo:template> |
1332 |
</xslo:template> |
|
|
1333 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='338']"> |
| 1334 |
<xslo:for-each select="marc:subfield"> |
| 1335 |
<xslo:if test="contains('a', @code)"> |
| 1336 |
<z:index name="Note:w Note:p"> |
| 1337 |
<xslo:value-of select="."/> |
| 1338 |
</z:index> |
| 1339 |
</xslo:if> |
| 1340 |
</xslo:for-each> |
| 1341 |
</xslo:template> |
| 1169 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='345']"> |
1342 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='345']"> |
| 1170 |
<xslo:for-each select="marc:subfield"> |
1343 |
<xslo:for-each select="marc:subfield"> |
| 1171 |
<xslo:if test="contains('a', @code)"> |
1344 |
<xslo:if test="contains('a', @code)"> |
|
Lines 1184-1189
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1184 |
</xslo:if> |
1357 |
</xslo:if> |
| 1185 |
</xslo:for-each> |
1358 |
</xslo:for-each> |
| 1186 |
</xslo:template> |
1359 |
</xslo:template> |
|
|
1360 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='412']"> |
| 1361 |
<xslo:for-each select="marc:subfield"> |
| 1362 |
<xslo:if test="contains('t', @code)"> |
| 1363 |
<z:index name="Title:w Title:p"> |
| 1364 |
<xslo:value-of select="."/> |
| 1365 |
</z:index> |
| 1366 |
</xslo:if> |
| 1367 |
</xslo:for-each> |
| 1368 |
</xslo:template> |
| 1187 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='413']"> |
1369 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='413']"> |
| 1188 |
<xslo:for-each select="marc:subfield"> |
1370 |
<xslo:for-each select="marc:subfield"> |
| 1189 |
<xslo:if test="contains('t', @code)"> |
1371 |
<xslo:if test="contains('t', @code)"> |
|
Lines 1447-1454
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1447 |
</xslo:template> |
1629 |
</xslo:template> |
| 1448 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='461']"> |
1630 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='461']"> |
| 1449 |
<xslo:for-each select="marc:subfield"> |
1631 |
<xslo:for-each select="marc:subfield"> |
| 1450 |
<xslo:if test="contains('t', @code)"> |
1632 |
<xslo:if test="contains('tv', @code)"> |
| 1451 |
<z:index name="Title:w Title:p Host-item:w Host-item:p"> |
1633 |
<z:index name="Title:w Title:p index-title-serie:p index-title-serie:w index-title-serie:n Host-item:w Host-item:p"> |
|
|
1634 |
<xslo:value-of select="."/> |
| 1635 |
</z:index> |
| 1636 |
</xslo:if> |
| 1637 |
</xslo:for-each> |
| 1638 |
<xslo:for-each select="marc:subfield"> |
| 1639 |
<xslo:if test="contains('9', @code)"> |
| 1640 |
<z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> |
| 1641 |
<xslo:value-of select="."/> |
| 1642 |
</z:index> |
| 1643 |
</xslo:if> |
| 1644 |
</xslo:for-each> |
| 1645 |
<xslo:for-each select="marc:subfield"> |
| 1646 |
<xslo:if test="contains('0', @code)"> |
| 1647 |
<z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> |
| 1452 |
<xslo:value-of select="."/> |
1648 |
<xslo:value-of select="."/> |
| 1453 |
</z:index> |
1649 |
</z:index> |
| 1454 |
</xslo:if> |
1650 |
</xslo:if> |
|
Lines 1465-1472
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1465 |
</xslo:template> |
1661 |
</xslo:template> |
| 1466 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='463']"> |
1662 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='463']"> |
| 1467 |
<xslo:for-each select="marc:subfield"> |
1663 |
<xslo:for-each select="marc:subfield"> |
| 1468 |
<xslo:if test="contains('t', @code)"> |
1664 |
<xslo:if test="contains('tv', @code)"> |
| 1469 |
<z:index name="Title:w Title:p"> |
1665 |
<z:index name="Title:w Title:p index-title-article:p index-title-article:w index-title-article:n"> |
|
|
1666 |
<xslo:value-of select="."/> |
| 1667 |
</z:index> |
| 1668 |
</xslo:if> |
| 1669 |
</xslo:for-each> |
| 1670 |
<xslo:for-each select="marc:subfield"> |
| 1671 |
<xslo:if test="contains('9', @code)"> |
| 1672 |
<z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> |
| 1673 |
<xslo:value-of select="."/> |
| 1674 |
</z:index> |
| 1675 |
</xslo:if> |
| 1676 |
</xslo:for-each> |
| 1677 |
<xslo:for-each select="marc:subfield"> |
| 1678 |
<xslo:if test="contains('0', @code)"> |
| 1679 |
<z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> |
| 1470 |
<xslo:value-of select="."/> |
1680 |
<xslo:value-of select="."/> |
| 1471 |
</z:index> |
1681 |
</z:index> |
| 1472 |
</xslo:if> |
1682 |
</xslo:if> |
|
Lines 1771-1776
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1771 |
</z:index> |
1981 |
</z:index> |
| 1772 |
</xslo:if> |
1982 |
</xslo:if> |
| 1773 |
</xslo:for-each> |
1983 |
</xslo:for-each> |
|
|
1984 |
<xslo:for-each select="marc:subfield"> |
| 1985 |
<xslo:if test="contains('y', @code)"> |
| 1986 |
<z:index name="Subject:w Subject:p"> |
| 1987 |
<xslo:value-of select="."/> |
| 1988 |
</z:index> |
| 1989 |
</xslo:if> |
| 1990 |
</xslo:for-each> |
| 1774 |
</xslo:template> |
1991 |
</xslo:template> |
| 1775 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='607']"> |
1992 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='607']"> |
| 1776 |
<xslo:for-each select="marc:subfield"> |
1993 |
<xslo:for-each select="marc:subfield"> |
|
Lines 1871-1876
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1871 |
</xslo:if> |
2088 |
</xslo:if> |
| 1872 |
</xslo:for-each> |
2089 |
</xslo:for-each> |
| 1873 |
</xslo:template> |
2090 |
</xslo:template> |
|
|
2091 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='856']"> |
| 2092 |
<xslo:for-each select="marc:subfield"> |
| 2093 |
<xslo:if test="contains('u', @code)"> |
| 2094 |
<z:index name="uri:w"> |
| 2095 |
<xslo:value-of select="."/> |
| 2096 |
</z:index> |
| 2097 |
</xslo:if> |
| 2098 |
</xslo:for-each> |
| 2099 |
</xslo:template> |
| 1874 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='942']"> |
2100 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='942']"> |
| 1875 |
<xslo:for-each select="marc:subfield"> |
2101 |
<xslo:for-each select="marc:subfield"> |
| 1876 |
<xslo:if test="contains('0', @code)"> |
2102 |
<xslo:if test="contains('0', @code)"> |
|
Lines 1928-1933
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1928 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2154 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 1929 |
</z:index> |
2155 |
</z:index> |
| 1930 |
</xslo:template> |
2156 |
</xslo:template> |
|
|
2157 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='703']"> |
| 2158 |
<z:index name="Author:w Author:p"> |
| 2159 |
<xslo:variable name="raw_heading"> |
| 2160 |
<xslo:for-each select="marc:subfield"> |
| 2161 |
<xslo:if test="position() > 1"> |
| 2162 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2163 |
</xslo:if> |
| 2164 |
<xslo:value-of select="."/> |
| 2165 |
</xslo:for-each> |
| 2166 |
</xslo:variable> |
| 2167 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2168 |
</z:index> |
| 2169 |
</xslo:template> |
| 1931 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='710']"> |
2170 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='710']"> |
| 1932 |
<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"> |
2171 |
<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"> |
| 1933 |
<xslo:variable name="raw_heading"> |
2172 |
<xslo:variable name="raw_heading"> |
|
Lines 1967-1972
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 1967 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2206 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 1968 |
</z:index> |
2207 |
</z:index> |
| 1969 |
</xslo:template> |
2208 |
</xslo:template> |
|
|
2209 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='713']"> |
| 2210 |
<z:index name="Author:w Author:p"> |
| 2211 |
<xslo:variable name="raw_heading"> |
| 2212 |
<xslo:for-each select="marc:subfield"> |
| 2213 |
<xslo:if test="position() > 1"> |
| 2214 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2215 |
</xslo:if> |
| 2216 |
<xslo:value-of select="."/> |
| 2217 |
</xslo:for-each> |
| 2218 |
</xslo:variable> |
| 2219 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2220 |
</z:index> |
| 2221 |
</xslo:template> |
| 1970 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='716']"> |
2222 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='716']"> |
| 1971 |
<z:index name="Author:w Author:p"> |
2223 |
<z:index name="Author:w Author:p"> |
| 1972 |
<xslo:variable name="raw_heading"> |
2224 |
<xslo:variable name="raw_heading"> |
|
Lines 2019-2024
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2019 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2271 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2020 |
</z:index> |
2272 |
</z:index> |
| 2021 |
</xslo:template> |
2273 |
</xslo:template> |
|
|
2274 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='723']"> |
| 2275 |
<z:index name="Author:w Author:p"> |
| 2276 |
<xslo:variable name="raw_heading"> |
| 2277 |
<xslo:for-each select="marc:subfield"> |
| 2278 |
<xslo:if test="position() > 1"> |
| 2279 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2280 |
</xslo:if> |
| 2281 |
<xslo:value-of select="."/> |
| 2282 |
</xslo:for-each> |
| 2283 |
</xslo:variable> |
| 2284 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2285 |
</z:index> |
| 2286 |
</xslo:template> |
| 2022 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='730']"> |
2287 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='730']"> |
| 2023 |
<z:index name="Author:w Author:p"> |
2288 |
<z:index name="Author:w Author:p"> |
| 2024 |
<xslo:variable name="raw_heading"> |
2289 |
<xslo:variable name="raw_heading"> |
|
Lines 2032-2037
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2032 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2297 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2033 |
</z:index> |
2298 |
</z:index> |
| 2034 |
</xslo:template> |
2299 |
</xslo:template> |
|
|
2300 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='901']"> |
| 2301 |
<z:index name="index-genre:w index-genre:p"> |
| 2302 |
<xslo:variable name="raw_heading"> |
| 2303 |
<xslo:for-each select="marc:subfield"> |
| 2304 |
<xslo:if test="position() > 1"> |
| 2305 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2306 |
</xslo:if> |
| 2307 |
<xslo:value-of select="."/> |
| 2308 |
</xslo:for-each> |
| 2309 |
</xslo:variable> |
| 2310 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2311 |
</z:index> |
| 2312 |
</xslo:template> |
| 2035 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='205']"> |
2313 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='205']"> |
| 2036 |
<z:index name="Title:w Title:p"> |
2314 |
<z:index name="Title:w Title:p"> |
| 2037 |
<xslo:variable name="raw_heading"> |
2315 |
<xslo:variable name="raw_heading"> |
|
Lines 2084-2089
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2084 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2362 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2085 |
</z:index> |
2363 |
</z:index> |
| 2086 |
</xslo:template> |
2364 |
</xslo:template> |
|
|
2365 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='506']"> |
| 2366 |
<z:index name="Title:w Title:p"> |
| 2367 |
<xslo:variable name="raw_heading"> |
| 2368 |
<xslo:for-each select="marc:subfield"> |
| 2369 |
<xslo:if test="position() > 1"> |
| 2370 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2371 |
</xslo:if> |
| 2372 |
<xslo:value-of select="."/> |
| 2373 |
</xslo:for-each> |
| 2374 |
</xslo:variable> |
| 2375 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2376 |
</z:index> |
| 2377 |
</xslo:template> |
| 2378 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='507']"> |
| 2379 |
<z:index name="Title:w Title:p"> |
| 2380 |
<xslo:variable name="raw_heading"> |
| 2381 |
<xslo:for-each select="marc:subfield"> |
| 2382 |
<xslo:if test="position() > 1"> |
| 2383 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2384 |
</xslo:if> |
| 2385 |
<xslo:value-of select="."/> |
| 2386 |
</xslo:for-each> |
| 2387 |
</xslo:variable> |
| 2388 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2389 |
</z:index> |
| 2390 |
</xslo:template> |
| 2087 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='510']"> |
2391 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='510']"> |
| 2088 |
<z:index name="Title:w Title:p"> |
2392 |
<z:index name="Title:w Title:p"> |
| 2089 |
<xslo:variable name="raw_heading"> |
2393 |
<xslo:variable name="raw_heading"> |
|
Lines 2097-2102
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2097 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2401 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2098 |
</z:index> |
2402 |
</z:index> |
| 2099 |
</xslo:template> |
2403 |
</xslo:template> |
|
|
2404 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='511']"> |
| 2405 |
<z:index name="Title:w Title:p"> |
| 2406 |
<xslo:variable name="raw_heading"> |
| 2407 |
<xslo:for-each select="marc:subfield"> |
| 2408 |
<xslo:if test="position() > 1"> |
| 2409 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2410 |
</xslo:if> |
| 2411 |
<xslo:value-of select="."/> |
| 2412 |
</xslo:for-each> |
| 2413 |
</xslo:variable> |
| 2414 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2415 |
</z:index> |
| 2416 |
</xslo:template> |
| 2100 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='512']"> |
2417 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='512']"> |
| 2101 |
<z:index name="Title:w Title:p"> |
2418 |
<z:index name="Title:w Title:p"> |
| 2102 |
<xslo:variable name="raw_heading"> |
2419 |
<xslo:variable name="raw_heading"> |
|
Lines 2305-2310
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2305 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2622 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2306 |
</z:index> |
2623 |
</z:index> |
| 2307 |
</xslo:template> |
2624 |
</xslo:template> |
|
|
2625 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='576']"> |
| 2626 |
<z:index name="Title:w Title:p"> |
| 2627 |
<xslo:variable name="raw_heading"> |
| 2628 |
<xslo:for-each select="marc:subfield"> |
| 2629 |
<xslo:if test="position() > 1"> |
| 2630 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2631 |
</xslo:if> |
| 2632 |
<xslo:value-of select="."/> |
| 2633 |
</xslo:for-each> |
| 2634 |
</xslo:variable> |
| 2635 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2636 |
</z:index> |
| 2637 |
</xslo:template> |
| 2638 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='577']"> |
| 2639 |
<z:index name="Title:w Title:p"> |
| 2640 |
<xslo:variable name="raw_heading"> |
| 2641 |
<xslo:for-each select="marc:subfield"> |
| 2642 |
<xslo:if test="position() > 1"> |
| 2643 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2644 |
</xslo:if> |
| 2645 |
<xslo:value-of select="."/> |
| 2646 |
</xslo:for-each> |
| 2647 |
</xslo:variable> |
| 2648 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2649 |
</z:index> |
| 2650 |
</xslo:template> |
| 2308 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='600']"> |
2651 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='600']"> |
| 2309 |
<z:index name="Subject:w Subject:p"> |
2652 |
<z:index name="Subject:w Subject:p"> |
| 2310 |
<xslo:variable name="raw_heading"> |
2653 |
<xslo:variable name="raw_heading"> |
|
Lines 2487-2492
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2487 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2830 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2488 |
</z:index> |
2831 |
</z:index> |
| 2489 |
</xslo:template> |
2832 |
</xslo:template> |
|
|
2833 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='623']"> |
| 2834 |
<z:index name="Subject:w Subject:p"> |
| 2835 |
<xslo:variable name="raw_heading"> |
| 2836 |
<xslo:for-each select="marc:subfield"> |
| 2837 |
<xslo:if test="position() > 1"> |
| 2838 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2839 |
</xslo:if> |
| 2840 |
<xslo:value-of select="."/> |
| 2841 |
</xslo:for-each> |
| 2842 |
</xslo:variable> |
| 2843 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2844 |
</z:index> |
| 2845 |
</xslo:template> |
| 2846 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='631']"> |
| 2847 |
<z:index name="Subject:w Subject:p"> |
| 2848 |
<xslo:variable name="raw_heading"> |
| 2849 |
<xslo:for-each select="marc:subfield"> |
| 2850 |
<xslo:if test="position() > 1"> |
| 2851 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2852 |
</xslo:if> |
| 2853 |
<xslo:value-of select="."/> |
| 2854 |
</xslo:for-each> |
| 2855 |
</xslo:variable> |
| 2856 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2857 |
</z:index> |
| 2858 |
</xslo:template> |
| 2859 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='632']"> |
| 2860 |
<z:index name="Subject:w Subject:p"> |
| 2861 |
<xslo:variable name="raw_heading"> |
| 2862 |
<xslo:for-each select="marc:subfield"> |
| 2863 |
<xslo:if test="position() > 1"> |
| 2864 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
| 2865 |
</xslo:if> |
| 2866 |
<xslo:value-of select="."/> |
| 2867 |
</xslo:for-each> |
| 2868 |
</xslo:variable> |
| 2869 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2870 |
</z:index> |
| 2871 |
</xslo:template> |
| 2490 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='670']"> |
2872 |
<xslo:template mode="index_data_field" match="marc:datafield[@tag='670']"> |
| 2491 |
<z:index name="Subject-precis:w Subject-precis:p"> |
2873 |
<z:index name="Subject-precis:w Subject-precis:p"> |
| 2492 |
<xslo:variable name="raw_heading"> |
2874 |
<xslo:variable name="raw_heading"> |
|
Lines 2539-2554
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2539 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2921 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
| 2540 |
</z:index> |
2922 |
</z:index> |
| 2541 |
</xslo:template> |
2923 |
</xslo:template> |
| 2542 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='099']"> |
2924 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> |
| 2543 |
<xslo:if test="not(@ind1='z')"> |
2925 |
<xslo:if test="not(@ind1='z')"> |
| 2544 |
<z:index name="ccode:0"> |
2926 |
<z:index name="se:0"> |
| 2545 |
<xslo:value-of select="marc:subfield[@code='t']"/> |
2927 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
| 2546 |
</z:index> |
2928 |
</z:index> |
| 2547 |
</xslo:if> |
2929 |
</xslo:if> |
| 2548 |
</xslo:template> |
2930 |
</xslo:template> |
| 2549 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> |
2931 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='500']"> |
| 2550 |
<xslo:if test="not(@ind1='z')"> |
2932 |
<xslo:if test="not(@ind1='z')"> |
| 2551 |
<z:index name="se:0"> |
2933 |
<z:index name="su-ut:0"> |
|
|
2934 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
| 2935 |
</z:index> |
| 2936 |
</xslo:if> |
| 2937 |
</xslo:template> |
| 2938 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='501']"> |
| 2939 |
<xslo:if test="not(@ind1='z')"> |
| 2940 |
<z:index name="su-ut:0"> |
| 2941 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
| 2942 |
</z:index> |
| 2943 |
</xslo:if> |
| 2944 |
</xslo:template> |
| 2945 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='503']"> |
| 2946 |
<xslo:if test="not(@ind1='z')"> |
| 2947 |
<z:index name="su-ut:0"> |
| 2552 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2948 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
| 2553 |
</z:index> |
2949 |
</z:index> |
| 2554 |
</xslo:if> |
2950 |
</xslo:if> |
|
Lines 2669-2677
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2669 |
<z:index name="location:0"> |
3065 |
<z:index name="location:0"> |
| 2670 |
<xslo:value-of select="marc:subfield[@code='e']"/> |
3066 |
<xslo:value-of select="marc:subfield[@code='e']"/> |
| 2671 |
</z:index> |
3067 |
</z:index> |
| 2672 |
<z:index name="ccode:0"> |
|
|
| 2673 |
<xslo:value-of select="marc:subfield[@code='h']"/> |
| 2674 |
</z:index> |
| 2675 |
</xslo:if> |
3068 |
</xslo:if> |
| 2676 |
</xslo:template> |
3069 |
</xslo:template> |
| 2677 |
<xslo:template mode="index_all" match="text()"> |
3070 |
<xslo:template mode="index_all" match="text()"> |
|
Lines 2679-2684
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2679 |
<xslo:value-of select="."/> |
3072 |
<xslo:value-of select="."/> |
| 2680 |
</z:index> |
3073 |
</z:index> |
| 2681 |
</xslo:template> |
3074 |
</xslo:template> |
|
|
3075 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
| 3076 |
<xslo:variable name="chop"> |
| 3077 |
<xslo:choose> |
| 3078 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
| 3079 |
<xslo:otherwise> |
| 3080 |
<xslo:value-of select="number(@ind2)"/> |
| 3081 |
</xslo:otherwise> |
| 3082 |
</xslo:choose> |
| 3083 |
</xslo:variable> |
| 3084 |
<z:index name="Title:s"> |
| 3085 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
| 3086 |
</z:index> |
| 3087 |
</xslo:template> |
| 2682 |
<xslo:template name="chopPunctuation"> |
3088 |
<xslo:template name="chopPunctuation"> |
| 2683 |
<xslo:param name="chopString"/> |
3089 |
<xslo:param name="chopString"/> |
| 2684 |
<xslo:variable name="length" select="string-length($chopString)"/> |
3090 |
<xslo:variable name="length" select="string-length($chopString)"/> |
| 2685 |
- |
|
|