Lines 13-18
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
13 |
<xslo:template match="text()" mode="index_subfields"/> |
13 |
<xslo:template match="text()" mode="index_subfields"/> |
14 |
<xslo:template match="text()" mode="index_data_field"/> |
14 |
<xslo:template match="text()" mode="index_data_field"/> |
15 |
<xslo:template match="text()" mode="index_heading"/> |
15 |
<xslo:template match="text()" mode="index_heading"/> |
|
|
16 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
16 |
<xslo:template match="text()" mode="index_match_heading"/> |
17 |
<xslo:template match="text()" mode="index_match_heading"/> |
17 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
18 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
18 |
<xslo:template match="/"> |
19 |
<xslo:template match="/"> |
Lines 35-40
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
35 |
<xslo:apply-templates mode="index_subfields"/> |
36 |
<xslo:apply-templates mode="index_subfields"/> |
36 |
<xslo:apply-templates mode="index_data_field"/> |
37 |
<xslo:apply-templates mode="index_data_field"/> |
37 |
<xslo:apply-templates mode="index_heading"/> |
38 |
<xslo:apply-templates mode="index_heading"/> |
|
|
39 |
<xslo:apply-templates mode="index_heading_conditional"/> |
38 |
<xslo:apply-templates mode="index_match_heading"/> |
40 |
<xslo:apply-templates mode="index_match_heading"/> |
39 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
41 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
40 |
</z:record> |
42 |
</z:record> |
Lines 69-74
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
69 |
<xslo:value-of select="substring(., 17, 1)"/> |
71 |
<xslo:value-of select="substring(., 17, 1)"/> |
70 |
</z:index> |
72 |
</z:index> |
71 |
</xslo:template> |
73 |
</xslo:template> |
|
|
74 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='010']"> |
75 |
<xslo:for-each select="marc:subfield"> |
76 |
<xslo:if test="contains('az', @code)"> |
77 |
<z:index name="LC-card-number:w LC-card-number:p"> |
78 |
<xslo:value-of select="."/> |
79 |
</z:index> |
80 |
</xslo:if> |
81 |
</xslo:for-each> |
82 |
</xslo:template> |
83 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='040']"> |
84 |
<xslo:for-each select="marc:subfield"> |
85 |
<xslo:if test="contains('acd', @code)"> |
86 |
<z:index name="Record-source:w Record-source:p"> |
87 |
<xslo:value-of select="."/> |
88 |
</z:index> |
89 |
</xslo:if> |
90 |
</xslo:for-each> |
91 |
</xslo:template> |
72 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='100']"> |
92 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='100']"> |
73 |
<xslo:for-each select="marc:subfield"> |
93 |
<xslo:for-each select="marc:subfield"> |
74 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)"> |
94 |
<xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)"> |
Lines 1102-1107
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
1102 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1122 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1103 |
</z:index> |
1123 |
</z:index> |
1104 |
</xslo:template> |
1124 |
</xslo:template> |
|
|
1125 |
<xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']"> |
1126 |
<xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)"> |
1127 |
<z:index name="Previous-heading-see-from:p"> |
1128 |
<xslo:variable name="raw_heading"> |
1129 |
<xslo:for-each select="marc:subfield"> |
1130 |
<xslo:if test="contains('abvxyz', @code)" name="Previous-heading-see-from:p"> |
1131 |
<xslo:if test="position() > 1"> |
1132 |
<xslo:choose> |
1133 |
<xslo:when test="contains('vxyz', @code)"> |
1134 |
<xslo:text>--</xslo:text> |
1135 |
</xslo:when> |
1136 |
<xslo:otherwise> |
1137 |
<xslo:value-of select="substring(' ', 1, 1)"/> |
1138 |
</xslo:otherwise> |
1139 |
</xslo:choose> |
1140 |
</xslo:if> |
1141 |
<xslo:value-of select="."/> |
1142 |
</xslo:if> |
1143 |
</xslo:for-each> |
1144 |
</xslo:variable> |
1145 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
1146 |
</z:index> |
1147 |
</xslo:if> |
1148 |
</xslo:template> |
1105 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']"> |
1149 |
<xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']"> |
1106 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1150 |
<z:index name="Match:w Match:p Match-heading:p Match-heading:s"> |
1107 |
<xslo:variable name="raw_heading"> |
1151 |
<xslo:variable name="raw_heading"> |