View | Details | Raw Unified | Return to bug 11291
Collapse All | Expand All

(-)a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl (-171 / +165 lines)
Lines 39-45 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
      <xslo:apply-templates mode="index_heading_conditional"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
42
      <xslo:apply-templates mode="index_all"/>
43
    </z:record>
42
    </z:record>
44
  </xslo:template>
43
  </xslo:template>
45
  <xslo:template match="marc:leader">
44
  <xslo:template match="marc:leader">
Lines 75-81 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
75
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='010']">
74
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='010']">
76
    <xslo:for-each select="marc:subfield">
75
    <xslo:for-each select="marc:subfield">
77
      <xslo:if test="contains('az', @code)">
76
      <xslo:if test="contains('az', @code)">
78
        <z:index name="LC-card-number:w LC-card-number:p">
77
        <z:index name="LC-card-number:w LC-card-number:p Any:w Any:p">
79
          <xslo:value-of select="."/>
78
          <xslo:value-of select="."/>
80
        </z:index>
79
        </z:index>
81
      </xslo:if>
80
      </xslo:if>
Lines 84-90 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
84
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
83
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
85
    <xslo:for-each select="marc:subfield">
84
    <xslo:for-each select="marc:subfield">
86
      <xslo:if test="contains('acd', @code)">
85
      <xslo:if test="contains('acd', @code)">
87
        <z:index name="Record-source:w Record-source:p">
86
        <z:index name="Record-source:w Record-source:p Any:w Any:p">
88
          <xslo:value-of select="."/>
87
          <xslo:value-of select="."/>
89
        </z:index>
88
        </z:index>
90
      </xslo:if>
89
      </xslo:if>
Lines 93-99 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
93
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
92
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
94
    <xslo:for-each select="marc:subfield">
93
    <xslo:for-each select="marc:subfield">
95
      <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)">
94
      <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)">
96
        <z:index name="Personal-name:w Personal-name:p Personal-name:s">
95
        <z:index name="Personal-name:w Personal-name:p Personal-name:s Any:w Any:p">
97
          <xslo:value-of select="."/>
96
          <xslo:value-of select="."/>
98
        </z:index>
97
        </z:index>
99
      </xslo:if>
98
      </xslo:if>
Lines 102-108 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
102
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
101
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
103
    <xslo:for-each select="marc:subfield">
102
    <xslo:for-each select="marc:subfield">
104
      <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)">
103
      <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)">
105
        <z:index name="Corporate-name:w Corporate-name:p">
104
        <z:index name="Corporate-name:w Corporate-name:p Any:w Any:p">
106
          <xslo:value-of select="."/>
105
          <xslo:value-of select="."/>
107
        </z:index>
106
        </z:index>
108
      </xslo:if>
107
      </xslo:if>
Lines 111-117 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
111
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
110
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
112
    <xslo:for-each select="marc:subfield">
111
    <xslo:for-each select="marc:subfield">
113
      <xslo:if test="contains('acdefghjklnpqstvxyz', @code)">
112
      <xslo:if test="contains('acdefghjklnpqstvxyz', @code)">
114
        <z:index name="Meeting-name:w Meeting-name:p">
113
        <z:index name="Meeting-name:w Meeting-name:p Any:w Any:p">
115
          <xslo:value-of select="."/>
114
          <xslo:value-of select="."/>
116
        </z:index>
115
        </z:index>
117
      </xslo:if>
116
      </xslo:if>
Lines 120-126 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
120
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
119
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
121
    <xslo:for-each select="marc:subfield">
120
    <xslo:for-each select="marc:subfield">
122
      <xslo:if test="contains('adfghklmnoprstvxyz', @code)">
121
      <xslo:if test="contains('adfghklmnoprstvxyz', @code)">
123
        <z:index name="Title-uniform:w Title-uniform:p">
122
        <z:index name="Title-uniform:w Title-uniform:p Any:w Any:p">
124
          <xslo:value-of select="."/>
123
          <xslo:value-of select="."/>
125
        </z:index>
124
        </z:index>
126
      </xslo:if>
125
      </xslo:if>
Lines 129-135 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
129
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='148']">
128
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='148']">
130
    <xslo:for-each select="marc:subfield">
129
    <xslo:for-each select="marc:subfield">
131
      <xslo:if test="contains('avxyz', @code)">
130
      <xslo:if test="contains('avxyz', @code)">
132
        <z:index name="Chronological-term:w Chronological-term:p">
131
        <z:index name="Chronological-term:w Chronological-term:p Any:w Any:p">
133
          <xslo:value-of select="."/>
132
          <xslo:value-of select="."/>
134
        </z:index>
133
        </z:index>
135
      </xslo:if>
134
      </xslo:if>
Lines 138-144 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
138
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='150']">
137
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='150']">
139
    <xslo:for-each select="marc:subfield">
138
    <xslo:for-each select="marc:subfield">
140
      <xslo:if test="contains('abvxyz', @code)">
139
      <xslo:if test="contains('abvxyz', @code)">
141
        <z:index name="Subject-topical:w Subject-topical:p">
140
        <z:index name="Subject-topical:w Subject-topical:p Any:w Any:p">
142
          <xslo:value-of select="."/>
141
          <xslo:value-of select="."/>
143
        </z:index>
142
        </z:index>
144
      </xslo:if>
143
      </xslo:if>
Lines 147-153 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
147
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='151']">
146
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='151']">
148
    <xslo:for-each select="marc:subfield">
147
    <xslo:for-each select="marc:subfield">
149
      <xslo:if test="contains('avxyz', @code)">
148
      <xslo:if test="contains('avxyz', @code)">
150
        <z:index name="Name-geographic:w Name-geographic:p">
149
        <z:index name="Name-geographic:w Name-geographic:p Any:w Any:p">
151
          <xslo:value-of select="."/>
150
          <xslo:value-of select="."/>
152
        </z:index>
151
        </z:index>
153
      </xslo:if>
152
      </xslo:if>
Lines 156-162 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
156
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='155']">
155
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='155']">
157
    <xslo:for-each select="marc:subfield">
156
    <xslo:for-each select="marc:subfield">
158
      <xslo:if test="contains('avxyz', @code)">
157
      <xslo:if test="contains('avxyz', @code)">
159
        <z:index name="Term-genre-form:w Term-genre-form:p">
158
        <z:index name="Term-genre-form:w Term-genre-form:p Any:w Any:p">
160
          <xslo:value-of select="."/>
159
          <xslo:value-of select="."/>
161
        </z:index>
160
        </z:index>
162
      </xslo:if>
161
      </xslo:if>
Lines 165-181 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
165
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
164
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
166
    <xslo:for-each select="marc:subfield">
165
    <xslo:for-each select="marc:subfield">
167
      <xslo:if test="contains('a', @code)">
166
      <xslo:if test="contains('a', @code)">
168
        <z:index name="authtype:w">
167
        <z:index name="authtype:w Any:w Any:p">
169
          <xslo:value-of select="."/>
168
          <xslo:value-of select="."/>
170
        </z:index>
169
        </z:index>
171
      </xslo:if>
170
      </xslo:if>
172
    </xslo:for-each>
171
    </xslo:for-each>
173
  </xslo:template>
172
  </xslo:template>
174
  <xslo:template mode="index_heading" match="marc:datafield[@tag='100']">
173
  <xslo:template mode="index_heading" match="marc:datafield[@tag='100']">
175
    <z:index name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s">
174
    <z:index name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
176
      <xslo:variable name="raw_heading">
175
      <xslo:variable name="raw_heading">
177
        <xslo:for-each select="marc:subfield">
176
        <xslo:for-each select="marc:subfield">
178
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s">
177
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
179
            <xslo:if test="position() &gt; 1">
178
            <xslo:if test="position() &gt; 1">
180
              <xslo:choose>
179
              <xslo:choose>
181
                <xslo:when test="contains('vxyz', @code)">
180
                <xslo:when test="contains('vxyz', @code)">
Lines 192-201 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
192
      </xslo:variable>
191
      </xslo:variable>
193
      <xslo:value-of select="normalize-space($raw_heading)"/>
192
      <xslo:value-of select="normalize-space($raw_heading)"/>
194
    </z:index>
193
    </z:index>
195
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
194
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
196
      <xslo:variable name="raw_heading">
195
      <xslo:variable name="raw_heading">
197
        <xslo:for-each select="marc:subfield">
196
        <xslo:for-each select="marc:subfield">
198
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
197
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
199
            <xslo:if test="position() &gt; 1">
198
            <xslo:if test="position() &gt; 1">
200
              <xslo:choose>
199
              <xslo:choose>
201
                <xslo:when test="contains('', @code)">
200
                <xslo:when test="contains('', @code)">
Lines 214-223 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
214
    </z:index>
213
    </z:index>
215
  </xslo:template>
214
  </xslo:template>
216
  <xslo:template mode="index_heading" match="marc:datafield[@tag='400']">
215
  <xslo:template mode="index_heading" match="marc:datafield[@tag='400']">
217
    <z:index name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s">
216
    <z:index name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
218
      <xslo:variable name="raw_heading">
217
      <xslo:variable name="raw_heading">
219
        <xslo:for-each select="marc:subfield">
218
        <xslo:for-each select="marc:subfield">
220
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s">
219
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-see-from:w Personal-name-see-from:p Personal-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
221
            <xslo:if test="position() &gt; 1">
220
            <xslo:if test="position() &gt; 1">
222
              <xslo:choose>
221
              <xslo:choose>
223
                <xslo:when test="contains('vxyz', @code)">
222
                <xslo:when test="contains('vxyz', @code)">
Lines 236-245 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
236
    </z:index>
235
    </z:index>
237
  </xslo:template>
236
  </xslo:template>
238
  <xslo:template mode="index_heading" match="marc:datafield[@tag='500']">
237
  <xslo:template mode="index_heading" match="marc:datafield[@tag='500']">
239
    <z:index name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
238
    <z:index name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
240
      <xslo:variable name="raw_heading">
239
      <xslo:variable name="raw_heading">
241
        <xslo:for-each select="marc:subfield">
240
        <xslo:for-each select="marc:subfield">
242
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
241
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Personal-name-see-also-from:w Personal-name-see-also-from:p Personal-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
243
            <xslo:if test="position() &gt; 1">
242
            <xslo:if test="position() &gt; 1">
244
              <xslo:choose>
243
              <xslo:choose>
245
                <xslo:when test="contains('vxyz', @code)">
244
                <xslo:when test="contains('vxyz', @code)">
Lines 258-267 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
258
    </z:index>
257
    </z:index>
259
  </xslo:template>
258
  </xslo:template>
260
  <xslo:template mode="index_heading" match="marc:datafield[@tag='110']">
259
  <xslo:template mode="index_heading" match="marc:datafield[@tag='110']">
261
    <z:index name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Heading:w Heading:p Heading:s">
260
    <z:index name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
262
      <xslo:variable name="raw_heading">
261
      <xslo:variable name="raw_heading">
263
        <xslo:for-each select="marc:subfield">
262
        <xslo:for-each select="marc:subfield">
264
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Heading:w Heading:p Heading:s">
263
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
265
            <xslo:if test="position() &gt; 1">
264
            <xslo:if test="position() &gt; 1">
266
              <xslo:choose>
265
              <xslo:choose>
267
                <xslo:when test="contains('vxyz', @code)">
266
                <xslo:when test="contains('vxyz', @code)">
Lines 278-287 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
278
      </xslo:variable>
277
      </xslo:variable>
279
      <xslo:value-of select="normalize-space($raw_heading)"/>
278
      <xslo:value-of select="normalize-space($raw_heading)"/>
280
    </z:index>
279
    </z:index>
281
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
280
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
282
      <xslo:variable name="raw_heading">
281
      <xslo:variable name="raw_heading">
283
        <xslo:for-each select="marc:subfield">
282
        <xslo:for-each select="marc:subfield">
284
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
283
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
285
            <xslo:if test="position() &gt; 1">
284
            <xslo:if test="position() &gt; 1">
286
              <xslo:choose>
285
              <xslo:choose>
287
                <xslo:when test="contains('', @code)">
286
                <xslo:when test="contains('', @code)">
Lines 300-309 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
300
    </z:index>
299
    </z:index>
301
  </xslo:template>
300
  </xslo:template>
302
  <xslo:template mode="index_heading" match="marc:datafield[@tag='410']">
301
  <xslo:template mode="index_heading" match="marc:datafield[@tag='410']">
303
    <z:index name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s See-from:w See-from:p See-from:s">
302
    <z:index name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
304
      <xslo:variable name="raw_heading">
303
      <xslo:variable name="raw_heading">
305
        <xslo:for-each select="marc:subfield">
304
        <xslo:for-each select="marc:subfield">
306
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s See-from:w See-from:p See-from:s">
305
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-see-from:w Corporate-name-see-from:p Corporate-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
307
            <xslo:if test="position() &gt; 1">
306
            <xslo:if test="position() &gt; 1">
308
              <xslo:choose>
307
              <xslo:choose>
309
                <xslo:when test="contains('vxyz', @code)">
308
                <xslo:when test="contains('vxyz', @code)">
Lines 322-331 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
322
    </z:index>
321
    </z:index>
323
  </xslo:template>
322
  </xslo:template>
324
  <xslo:template mode="index_heading" match="marc:datafield[@tag='510']">
323
  <xslo:template mode="index_heading" match="marc:datafield[@tag='510']">
325
    <z:index name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
324
    <z:index name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
326
      <xslo:variable name="raw_heading">
325
      <xslo:variable name="raw_heading">
327
        <xslo:for-each select="marc:subfield">
326
        <xslo:for-each select="marc:subfield">
328
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
327
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Corporate-name-see-also-from:w Corporate-name-see-also-from:p Corporate-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
329
            <xslo:if test="position() &gt; 1">
328
            <xslo:if test="position() &gt; 1">
330
              <xslo:choose>
329
              <xslo:choose>
331
                <xslo:when test="contains('vxyz', @code)">
330
                <xslo:when test="contains('vxyz', @code)">
Lines 344-353 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
344
    </z:index>
343
    </z:index>
345
  </xslo:template>
344
  </xslo:template>
346
  <xslo:template mode="index_heading" match="marc:datafield[@tag='111']">
345
  <xslo:template mode="index_heading" match="marc:datafield[@tag='111']">
347
    <z:index name="Meeting-name-heading:w Meeting-name-heading:p Meeting-name-heading:s Heading:w Heading:p Heading:s">
346
    <z:index name="Meeting-name-heading:w Meeting-name-heading:p Meeting-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
348
      <xslo:variable name="raw_heading">
347
      <xslo:variable name="raw_heading">
349
        <xslo:for-each select="marc:subfield">
348
        <xslo:for-each select="marc:subfield">
350
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-heading:w Meeting-name-heading:p Meeting-name-heading:s Heading:w Heading:p Heading:s">
349
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-heading:w Meeting-name-heading:p Meeting-name-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
351
            <xslo:if test="position() &gt; 1">
350
            <xslo:if test="position() &gt; 1">
352
              <xslo:choose>
351
              <xslo:choose>
353
                <xslo:when test="contains('vxyz', @code)">
352
                <xslo:when test="contains('vxyz', @code)">
Lines 364-373 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
364
      </xslo:variable>
363
      </xslo:variable>
365
      <xslo:value-of select="normalize-space($raw_heading)"/>
364
      <xslo:value-of select="normalize-space($raw_heading)"/>
366
    </z:index>
365
    </z:index>
367
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
366
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
368
      <xslo:variable name="raw_heading">
367
      <xslo:variable name="raw_heading">
369
        <xslo:for-each select="marc:subfield">
368
        <xslo:for-each select="marc:subfield">
370
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
369
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
371
            <xslo:if test="position() &gt; 1">
370
            <xslo:if test="position() &gt; 1">
372
              <xslo:choose>
371
              <xslo:choose>
373
                <xslo:when test="contains('', @code)">
372
                <xslo:when test="contains('', @code)">
Lines 386-395 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
386
    </z:index>
385
    </z:index>
387
  </xslo:template>
386
  </xslo:template>
388
  <xslo:template mode="index_heading" match="marc:datafield[@tag='411']">
387
  <xslo:template mode="index_heading" match="marc:datafield[@tag='411']">
389
    <z:index name="Meeting-name-see-from:w Meeting-name-see-from:p Meeting-name-see-from:s See-from:w See-from:p See-from:s">
388
    <z:index name="Meeting-name-see-from:w Meeting-name-see-from:p Meeting-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
390
      <xslo:variable name="raw_heading">
389
      <xslo:variable name="raw_heading">
391
        <xslo:for-each select="marc:subfield">
390
        <xslo:for-each select="marc:subfield">
392
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-see-from:w Meeting-name-see-from:p Meeting-name-see-from:s See-from:w See-from:p See-from:s">
391
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-see-from:w Meeting-name-see-from:p Meeting-name-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
393
            <xslo:if test="position() &gt; 1">
392
            <xslo:if test="position() &gt; 1">
394
              <xslo:choose>
393
              <xslo:choose>
395
                <xslo:when test="contains('vxyz', @code)">
394
                <xslo:when test="contains('vxyz', @code)">
Lines 408-417 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
408
    </z:index>
407
    </z:index>
409
  </xslo:template>
408
  </xslo:template>
410
  <xslo:template mode="index_heading" match="marc:datafield[@tag='511']">
409
  <xslo:template mode="index_heading" match="marc:datafield[@tag='511']">
411
    <z:index name="Meeting-name-see-also-from:w Meeting-name-see-also-from:p Meeting-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
410
    <z:index name="Meeting-name-see-also-from:w Meeting-name-see-also-from:p Meeting-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
412
      <xslo:variable name="raw_heading">
411
      <xslo:variable name="raw_heading">
413
        <xslo:for-each select="marc:subfield">
412
        <xslo:for-each select="marc:subfield">
414
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-see-also-from:w Meeting-name-see-also-from:p Meeting-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
413
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Meeting-name-see-also-from:w Meeting-name-see-also-from:p Meeting-name-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
415
            <xslo:if test="position() &gt; 1">
414
            <xslo:if test="position() &gt; 1">
416
              <xslo:choose>
415
              <xslo:choose>
417
                <xslo:when test="contains('vxyz', @code)">
416
                <xslo:when test="contains('vxyz', @code)">
Lines 430-439 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
430
    </z:index>
429
    </z:index>
431
  </xslo:template>
430
  </xslo:template>
432
  <xslo:template mode="index_heading" match="marc:datafield[@tag='130']">
431
  <xslo:template mode="index_heading" match="marc:datafield[@tag='130']">
433
    <z:index name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
432
    <z:index name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
434
      <xslo:variable name="raw_heading">
433
      <xslo:variable name="raw_heading">
435
        <xslo:for-each select="marc:subfield">
434
        <xslo:for-each select="marc:subfield">
436
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s">
435
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
437
            <xslo:if test="position() &gt; 1">
436
            <xslo:if test="position() &gt; 1">
438
              <xslo:choose>
437
              <xslo:choose>
439
                <xslo:when test="contains('vxyz', @code)">
438
                <xslo:when test="contains('vxyz', @code)">
Lines 450-459 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
450
      </xslo:variable>
449
      </xslo:variable>
451
      <xslo:value-of select="normalize-space($raw_heading)"/>
450
      <xslo:value-of select="normalize-space($raw_heading)"/>
452
    </z:index>
451
    </z:index>
453
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
452
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
454
      <xslo:variable name="raw_heading">
453
      <xslo:variable name="raw_heading">
455
        <xslo:for-each select="marc:subfield">
454
        <xslo:for-each select="marc:subfield">
456
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
455
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
457
            <xslo:if test="position() &gt; 1">
456
            <xslo:if test="position() &gt; 1">
458
              <xslo:choose>
457
              <xslo:choose>
459
                <xslo:when test="contains('', @code)">
458
                <xslo:when test="contains('', @code)">
Lines 472-481 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
472
    </z:index>
471
    </z:index>
473
  </xslo:template>
472
  </xslo:template>
474
  <xslo:template mode="index_heading" match="marc:datafield[@tag='430']">
473
  <xslo:template mode="index_heading" match="marc:datafield[@tag='430']">
475
    <z:index name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
474
    <z:index name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
476
      <xslo:variable name="raw_heading">
475
      <xslo:variable name="raw_heading">
477
        <xslo:for-each select="marc:subfield">
476
        <xslo:for-each select="marc:subfield">
478
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s">
477
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-see-from:w Title-uniform-see-from:p Title-uniform-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
479
            <xslo:if test="position() &gt; 1">
478
            <xslo:if test="position() &gt; 1">
480
              <xslo:choose>
479
              <xslo:choose>
481
                <xslo:when test="contains('vxyz', @code)">
480
                <xslo:when test="contains('vxyz', @code)">
Lines 494-503 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
494
    </z:index>
493
    </z:index>
495
  </xslo:template>
494
  </xslo:template>
496
  <xslo:template mode="index_heading" match="marc:datafield[@tag='530']">
495
  <xslo:template mode="index_heading" match="marc:datafield[@tag='530']">
497
    <z:index name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
496
    <z:index name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
498
      <xslo:variable name="raw_heading">
497
      <xslo:variable name="raw_heading">
499
        <xslo:for-each select="marc:subfield">
498
        <xslo:for-each select="marc:subfield">
500
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
499
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Title-uniform-see-also-from:w Title-uniform-see-also-from:p Title-uniform-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
501
            <xslo:if test="position() &gt; 1">
500
            <xslo:if test="position() &gt; 1">
502
              <xslo:choose>
501
              <xslo:choose>
503
                <xslo:when test="contains('vxyz', @code)">
502
                <xslo:when test="contains('vxyz', @code)">
Lines 516-525 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
516
    </z:index>
515
    </z:index>
517
  </xslo:template>
516
  </xslo:template>
518
  <xslo:template mode="index_heading" match="marc:datafield[@tag='148']">
517
  <xslo:template mode="index_heading" match="marc:datafield[@tag='148']">
519
    <z:index name="Chronological-term-heading:w Chronological-term-heading:p Chronological-term-heading:s Heading:w Heading:p Heading:s">
518
    <z:index name="Chronological-term-heading:w Chronological-term-heading:p Chronological-term-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
520
      <xslo:variable name="raw_heading">
519
      <xslo:variable name="raw_heading">
521
        <xslo:for-each select="marc:subfield">
520
        <xslo:for-each select="marc:subfield">
522
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-heading:w Chronological-term-heading:p Chronological-term-heading:s Heading:w Heading:p Heading:s">
521
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-heading:w Chronological-term-heading:p Chronological-term-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
523
            <xslo:if test="position() &gt; 1">
522
            <xslo:if test="position() &gt; 1">
524
              <xslo:choose>
523
              <xslo:choose>
525
                <xslo:when test="contains('vxyz', @code)">
524
                <xslo:when test="contains('vxyz', @code)">
Lines 536-545 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
536
      </xslo:variable>
535
      </xslo:variable>
537
      <xslo:value-of select="normalize-space($raw_heading)"/>
536
      <xslo:value-of select="normalize-space($raw_heading)"/>
538
    </z:index>
537
    </z:index>
539
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
538
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
540
      <xslo:variable name="raw_heading">
539
      <xslo:variable name="raw_heading">
541
        <xslo:for-each select="marc:subfield">
540
        <xslo:for-each select="marc:subfield">
542
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
541
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
543
            <xslo:if test="position() &gt; 1">
542
            <xslo:if test="position() &gt; 1">
544
              <xslo:choose>
543
              <xslo:choose>
545
                <xslo:when test="contains('', @code)">
544
                <xslo:when test="contains('', @code)">
Lines 558-567 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
558
    </z:index>
557
    </z:index>
559
  </xslo:template>
558
  </xslo:template>
560
  <xslo:template mode="index_heading" match="marc:datafield[@tag='448']">
559
  <xslo:template mode="index_heading" match="marc:datafield[@tag='448']">
561
    <z:index name="Chronological-term-see-from:w Chronological-term-see-from:p Chronological-term-see-from:s See-from:w See-from:p See-from:s">
560
    <z:index name="Chronological-term-see-from:w Chronological-term-see-from:p Chronological-term-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
562
      <xslo:variable name="raw_heading">
561
      <xslo:variable name="raw_heading">
563
        <xslo:for-each select="marc:subfield">
562
        <xslo:for-each select="marc:subfield">
564
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-see-from:w Chronological-term-see-from:p Chronological-term-see-from:s See-from:w See-from:p See-from:s">
563
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-see-from:w Chronological-term-see-from:p Chronological-term-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
565
            <xslo:if test="position() &gt; 1">
564
            <xslo:if test="position() &gt; 1">
566
              <xslo:choose>
565
              <xslo:choose>
567
                <xslo:when test="contains('vxyz', @code)">
566
                <xslo:when test="contains('vxyz', @code)">
Lines 580-589 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
580
    </z:index>
579
    </z:index>
581
  </xslo:template>
580
  </xslo:template>
582
  <xslo:template mode="index_heading" match="marc:datafield[@tag='548']">
581
  <xslo:template mode="index_heading" match="marc:datafield[@tag='548']">
583
    <z:index name="Chronological-term-see-also-from:w Chronological-term-see-also-from:p Chronological-term-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
582
    <z:index name="Chronological-term-see-also-from:w Chronological-term-see-also-from:p Chronological-term-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
584
      <xslo:variable name="raw_heading">
583
      <xslo:variable name="raw_heading">
585
        <xslo:for-each select="marc:subfield">
584
        <xslo:for-each select="marc:subfield">
586
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-see-also-from:w Chronological-term-see-also-from:p Chronological-term-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
585
          <xslo:if test="contains('avxyz', @code)" name="Chronological-term-see-also-from:w Chronological-term-see-also-from:p Chronological-term-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
587
            <xslo:if test="position() &gt; 1">
586
            <xslo:if test="position() &gt; 1">
588
              <xslo:choose>
587
              <xslo:choose>
589
                <xslo:when test="contains('vxyz', @code)">
588
                <xslo:when test="contains('vxyz', @code)">
Lines 602-611 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
602
    </z:index>
601
    </z:index>
603
  </xslo:template>
602
  </xslo:template>
604
  <xslo:template mode="index_heading" match="marc:datafield[@tag='150']">
603
  <xslo:template mode="index_heading" match="marc:datafield[@tag='150']">
605
    <z:index name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s">
604
    <z:index name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
606
      <xslo:variable name="raw_heading">
605
      <xslo:variable name="raw_heading">
607
        <xslo:for-each select="marc:subfield">
606
        <xslo:for-each select="marc:subfield">
608
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s">
607
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
609
            <xslo:if test="position() &gt; 1">
608
            <xslo:if test="position() &gt; 1">
610
              <xslo:choose>
609
              <xslo:choose>
611
                <xslo:when test="contains('vxyz', @code)">
610
                <xslo:when test="contains('vxyz', @code)">
Lines 622-631 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
622
      </xslo:variable>
621
      </xslo:variable>
623
      <xslo:value-of select="normalize-space($raw_heading)"/>
622
      <xslo:value-of select="normalize-space($raw_heading)"/>
624
    </z:index>
623
    </z:index>
625
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
624
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
626
      <xslo:variable name="raw_heading">
625
      <xslo:variable name="raw_heading">
627
        <xslo:for-each select="marc:subfield">
626
        <xslo:for-each select="marc:subfield">
628
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
627
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
629
            <xslo:if test="position() &gt; 1">
628
            <xslo:if test="position() &gt; 1">
630
              <xslo:choose>
629
              <xslo:choose>
631
                <xslo:when test="contains('', @code)">
630
                <xslo:when test="contains('', @code)">
Lines 644-653 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
644
    </z:index>
643
    </z:index>
645
  </xslo:template>
644
  </xslo:template>
646
  <xslo:template mode="index_heading" match="marc:datafield[@tag='450']">
645
  <xslo:template mode="index_heading" match="marc:datafield[@tag='450']">
647
    <z:index name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s">
646
    <z:index name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
648
      <xslo:variable name="raw_heading">
647
      <xslo:variable name="raw_heading">
649
        <xslo:for-each select="marc:subfield">
648
        <xslo:for-each select="marc:subfield">
650
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s">
649
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-see-from:w Subject-topical-see-from:p Subject-topical-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
651
            <xslo:if test="position() &gt; 1">
650
            <xslo:if test="position() &gt; 1">
652
              <xslo:choose>
651
              <xslo:choose>
653
                <xslo:when test="contains('vxyz', @code)">
652
                <xslo:when test="contains('vxyz', @code)">
Lines 666-675 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
666
    </z:index>
665
    </z:index>
667
  </xslo:template>
666
  </xslo:template>
668
  <xslo:template mode="index_heading" match="marc:datafield[@tag='550']">
667
  <xslo:template mode="index_heading" match="marc:datafield[@tag='550']">
669
    <z:index name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
668
    <z:index name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
670
      <xslo:variable name="raw_heading">
669
      <xslo:variable name="raw_heading">
671
        <xslo:for-each select="marc:subfield">
670
        <xslo:for-each select="marc:subfield">
672
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
671
          <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-see-also-from:w Subject-topical-see-also-from:p Subject-topical-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
673
            <xslo:if test="position() &gt; 1">
672
            <xslo:if test="position() &gt; 1">
674
              <xslo:choose>
673
              <xslo:choose>
675
                <xslo:when test="contains('vxyz', @code)">
674
                <xslo:when test="contains('vxyz', @code)">
Lines 688-697 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
688
    </z:index>
687
    </z:index>
689
  </xslo:template>
688
  </xslo:template>
690
  <xslo:template mode="index_heading" match="marc:datafield[@tag='151']">
689
  <xslo:template mode="index_heading" match="marc:datafield[@tag='151']">
691
    <z:index name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s">
690
    <z:index name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
692
      <xslo:variable name="raw_heading">
691
      <xslo:variable name="raw_heading">
693
        <xslo:for-each select="marc:subfield">
692
        <xslo:for-each select="marc:subfield">
694
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s">
693
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
695
            <xslo:if test="position() &gt; 1">
694
            <xslo:if test="position() &gt; 1">
696
              <xslo:choose>
695
              <xslo:choose>
697
                <xslo:when test="contains('vxyz', @code)">
696
                <xslo:when test="contains('vxyz', @code)">
Lines 708-717 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
708
      </xslo:variable>
707
      </xslo:variable>
709
      <xslo:value-of select="normalize-space($raw_heading)"/>
708
      <xslo:value-of select="normalize-space($raw_heading)"/>
710
    </z:index>
709
    </z:index>
711
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
710
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
712
      <xslo:variable name="raw_heading">
711
      <xslo:variable name="raw_heading">
713
        <xslo:for-each select="marc:subfield">
712
        <xslo:for-each select="marc:subfield">
714
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
713
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
715
            <xslo:if test="position() &gt; 1">
714
            <xslo:if test="position() &gt; 1">
716
              <xslo:choose>
715
              <xslo:choose>
717
                <xslo:when test="contains('', @code)">
716
                <xslo:when test="contains('', @code)">
Lines 730-739 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
730
    </z:index>
729
    </z:index>
731
  </xslo:template>
730
  </xslo:template>
732
  <xslo:template mode="index_heading" match="marc:datafield[@tag='451']">
731
  <xslo:template mode="index_heading" match="marc:datafield[@tag='451']">
733
    <z:index name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s">
732
    <z:index name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
734
      <xslo:variable name="raw_heading">
733
      <xslo:variable name="raw_heading">
735
        <xslo:for-each select="marc:subfield">
734
        <xslo:for-each select="marc:subfield">
736
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s">
735
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-see-from:w Name-geographic-see-from:p Name-geographic-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
737
            <xslo:if test="position() &gt; 1">
736
            <xslo:if test="position() &gt; 1">
738
              <xslo:choose>
737
              <xslo:choose>
739
                <xslo:when test="contains('vxyz', @code)">
738
                <xslo:when test="contains('vxyz', @code)">
Lines 752-761 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
752
    </z:index>
751
    </z:index>
753
  </xslo:template>
752
  </xslo:template>
754
  <xslo:template mode="index_heading" match="marc:datafield[@tag='551']">
753
  <xslo:template mode="index_heading" match="marc:datafield[@tag='551']">
755
    <z:index name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
754
    <z:index name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
756
      <xslo:variable name="raw_heading">
755
      <xslo:variable name="raw_heading">
757
        <xslo:for-each select="marc:subfield">
756
        <xslo:for-each select="marc:subfield">
758
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
757
          <xslo:if test="contains('avxyz', @code)" name="Name-geographic-see-also-from:w Name-geographic-see-also-from:p Name-geographic-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
759
            <xslo:if test="position() &gt; 1">
758
            <xslo:if test="position() &gt; 1">
760
              <xslo:choose>
759
              <xslo:choose>
761
                <xslo:when test="contains('vxyz', @code)">
760
                <xslo:when test="contains('vxyz', @code)">
Lines 774-783 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
774
    </z:index>
773
    </z:index>
775
  </xslo:template>
774
  </xslo:template>
776
  <xslo:template mode="index_heading" match="marc:datafield[@tag='155']">
775
  <xslo:template mode="index_heading" match="marc:datafield[@tag='155']">
777
    <z:index name="Term-genre-form-heading:w Term-genre-form-heading:p Term-genre-form-heading:s Heading:w Heading:p Heading:s">
776
    <z:index name="Term-genre-form-heading:w Term-genre-form-heading:p Term-genre-form-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
778
      <xslo:variable name="raw_heading">
777
      <xslo:variable name="raw_heading">
779
        <xslo:for-each select="marc:subfield">
778
        <xslo:for-each select="marc:subfield">
780
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-heading:w Term-genre-form-heading:p Term-genre-form-heading:s Heading:w Heading:p Heading:s">
779
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-heading:w Term-genre-form-heading:p Term-genre-form-heading:s Heading:w Heading:p Heading:s Any:w Any:p">
781
            <xslo:if test="position() &gt; 1">
780
            <xslo:if test="position() &gt; 1">
782
              <xslo:choose>
781
              <xslo:choose>
783
                <xslo:when test="contains('vxyz', @code)">
782
                <xslo:when test="contains('vxyz', @code)">
Lines 794-803 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
794
      </xslo:variable>
793
      </xslo:variable>
795
      <xslo:value-of select="normalize-space($raw_heading)"/>
794
      <xslo:value-of select="normalize-space($raw_heading)"/>
796
    </z:index>
795
    </z:index>
797
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s">
796
    <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
798
      <xslo:variable name="raw_heading">
797
      <xslo:variable name="raw_heading">
799
        <xslo:for-each select="marc:subfield">
798
        <xslo:for-each select="marc:subfield">
800
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s">
799
          <xslo:if test="contains('a', @code)" name="Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
801
            <xslo:if test="position() &gt; 1">
800
            <xslo:if test="position() &gt; 1">
802
              <xslo:choose>
801
              <xslo:choose>
803
                <xslo:when test="contains('', @code)">
802
                <xslo:when test="contains('', @code)">
Lines 816-825 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
816
    </z:index>
815
    </z:index>
817
  </xslo:template>
816
  </xslo:template>
818
  <xslo:template mode="index_heading" match="marc:datafield[@tag='455']">
817
  <xslo:template mode="index_heading" match="marc:datafield[@tag='455']">
819
    <z:index name="Term-genre-form-see-from:w Term-genre-form-see-from:p Term-genre-form-see-from:s See-from:w See-from:p See-from:s">
818
    <z:index name="Term-genre-form-see-from:w Term-genre-form-see-from:p Term-genre-form-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
820
      <xslo:variable name="raw_heading">
819
      <xslo:variable name="raw_heading">
821
        <xslo:for-each select="marc:subfield">
820
        <xslo:for-each select="marc:subfield">
822
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-see-from:w Term-genre-form-see-from:p Term-genre-form-see-from:s See-from:w See-from:p See-from:s">
821
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-see-from:w Term-genre-form-see-from:p Term-genre-form-see-from:s See-from:w See-from:p See-from:s Any:w Any:p">
823
            <xslo:if test="position() &gt; 1">
822
            <xslo:if test="position() &gt; 1">
824
              <xslo:choose>
823
              <xslo:choose>
825
                <xslo:when test="contains('vxyz', @code)">
824
                <xslo:when test="contains('vxyz', @code)">
Lines 838-847 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
838
    </z:index>
837
    </z:index>
839
  </xslo:template>
838
  </xslo:template>
840
  <xslo:template mode="index_heading" match="marc:datafield[@tag='555']">
839
  <xslo:template mode="index_heading" match="marc:datafield[@tag='555']">
841
    <z:index name="Term-genre-form-see-also-from:w Term-genre-form-see-also-from:p Term-genre-form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
840
    <z:index name="Term-genre-form-see-also-from:w Term-genre-form-see-also-from:p Term-genre-form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
842
      <xslo:variable name="raw_heading">
841
      <xslo:variable name="raw_heading">
843
        <xslo:for-each select="marc:subfield">
842
        <xslo:for-each select="marc:subfield">
844
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-see-also-from:w Term-genre-form-see-also-from:p Term-genre-form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s">
843
          <xslo:if test="contains('avxyz', @code)" name="Term-genre-form-see-also-from:w Term-genre-form-see-also-from:p Term-genre-form-see-also-from:s See-also-from:w See-also-from:p See-also-from:s Any:w Any:p">
845
            <xslo:if test="position() &gt; 1">
844
            <xslo:if test="position() &gt; 1">
846
              <xslo:choose>
845
              <xslo:choose>
847
                <xslo:when test="contains('vxyz', @code)">
846
                <xslo:when test="contains('vxyz', @code)">
Lines 860-869 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
860
    </z:index>
859
    </z:index>
861
  </xslo:template>
860
  </xslo:template>
862
  <xslo:template mode="index_heading" match="marc:datafield[@tag='180']">
861
  <xslo:template mode="index_heading" match="marc:datafield[@tag='180']">
863
    <z:index name="General-subdivision:w General-subdivision:p General-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
862
    <z:index name="General-subdivision:w General-subdivision:p General-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
864
      <xslo:variable name="raw_heading">
863
      <xslo:variable name="raw_heading">
865
        <xslo:for-each select="marc:subfield">
864
        <xslo:for-each select="marc:subfield">
866
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision:w General-subdivision:p General-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
865
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision:w General-subdivision:p General-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
867
            <xslo:if test="position() &gt; 1">
866
            <xslo:if test="position() &gt; 1">
868
              <xslo:choose>
867
              <xslo:choose>
869
                <xslo:when test="contains('vxyz', @code)">
868
                <xslo:when test="contains('vxyz', @code)">
Lines 882-891 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
882
    </z:index>
881
    </z:index>
883
  </xslo:template>
882
  </xslo:template>
884
  <xslo:template mode="index_heading" match="marc:datafield[@tag='480']">
883
  <xslo:template mode="index_heading" match="marc:datafield[@tag='480']">
885
    <z:index name="General-subdivision-see-from:w General-subdivision-see-from:p General-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
884
    <z:index name="General-subdivision-see-from:w General-subdivision-see-from:p General-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
886
      <xslo:variable name="raw_heading">
885
      <xslo:variable name="raw_heading">
887
        <xslo:for-each select="marc:subfield">
886
        <xslo:for-each select="marc:subfield">
888
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision-see-from:w General-subdivision-see-from:p General-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
887
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision-see-from:w General-subdivision-see-from:p General-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
889
            <xslo:if test="position() &gt; 1">
888
            <xslo:if test="position() &gt; 1">
890
              <xslo:choose>
889
              <xslo:choose>
891
                <xslo:when test="contains('vxyz', @code)">
890
                <xslo:when test="contains('vxyz', @code)">
Lines 904-913 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
904
    </z:index>
903
    </z:index>
905
  </xslo:template>
904
  </xslo:template>
906
  <xslo:template mode="index_heading" match="marc:datafield[@tag='580']">
905
  <xslo:template mode="index_heading" match="marc:datafield[@tag='580']">
907
    <z:index name="General-subdivision-see-also-from:w General-subdivision-see-also-from:p General-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
906
    <z:index name="General-subdivision-see-also-from:w General-subdivision-see-also-from:p General-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
908
      <xslo:variable name="raw_heading">
907
      <xslo:variable name="raw_heading">
909
        <xslo:for-each select="marc:subfield">
908
        <xslo:for-each select="marc:subfield">
910
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision-see-also-from:w General-subdivision-see-also-from:p General-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
909
          <xslo:if test="contains('vxyz', @code)" name="General-subdivision-see-also-from:w General-subdivision-see-also-from:p General-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
911
            <xslo:if test="position() &gt; 1">
910
            <xslo:if test="position() &gt; 1">
912
              <xslo:choose>
911
              <xslo:choose>
913
                <xslo:when test="contains('vxyz', @code)">
912
                <xslo:when test="contains('vxyz', @code)">
Lines 926-935 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
926
    </z:index>
925
    </z:index>
927
  </xslo:template>
926
  </xslo:template>
928
  <xslo:template mode="index_heading" match="marc:datafield[@tag='181']">
927
  <xslo:template mode="index_heading" match="marc:datafield[@tag='181']">
929
    <z:index name="Geographic-subdivision:w Geographic-subdivision:p Geographic-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
928
    <z:index name="Geographic-subdivision:w Geographic-subdivision:p Geographic-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
930
      <xslo:variable name="raw_heading">
929
      <xslo:variable name="raw_heading">
931
        <xslo:for-each select="marc:subfield">
930
        <xslo:for-each select="marc:subfield">
932
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision:w Geographic-subdivision:p Geographic-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
931
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision:w Geographic-subdivision:p Geographic-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
933
            <xslo:if test="position() &gt; 1">
932
            <xslo:if test="position() &gt; 1">
934
              <xslo:choose>
933
              <xslo:choose>
935
                <xslo:when test="contains('vxyz', @code)">
934
                <xslo:when test="contains('vxyz', @code)">
Lines 948-957 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
948
    </z:index>
947
    </z:index>
949
  </xslo:template>
948
  </xslo:template>
950
  <xslo:template mode="index_heading" match="marc:datafield[@tag='481']">
949
  <xslo:template mode="index_heading" match="marc:datafield[@tag='481']">
951
    <z:index name="Geographic-subdivision-see-from:w Geographic-subdivision-see-from:p Geographic-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
950
    <z:index name="Geographic-subdivision-see-from:w Geographic-subdivision-see-from:p Geographic-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
952
      <xslo:variable name="raw_heading">
951
      <xslo:variable name="raw_heading">
953
        <xslo:for-each select="marc:subfield">
952
        <xslo:for-each select="marc:subfield">
954
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision-see-from:w Geographic-subdivision-see-from:p Geographic-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
953
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision-see-from:w Geographic-subdivision-see-from:p Geographic-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
955
            <xslo:if test="position() &gt; 1">
954
            <xslo:if test="position() &gt; 1">
956
              <xslo:choose>
955
              <xslo:choose>
957
                <xslo:when test="contains('vxyz', @code)">
956
                <xslo:when test="contains('vxyz', @code)">
Lines 970-979 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
970
    </z:index>
969
    </z:index>
971
  </xslo:template>
970
  </xslo:template>
972
  <xslo:template mode="index_heading" match="marc:datafield[@tag='581']">
971
  <xslo:template mode="index_heading" match="marc:datafield[@tag='581']">
973
    <z:index name="Geographic-subdivision-see-also-from:w Geographic-subdivision-see-also-from:p Geographic-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
972
    <z:index name="Geographic-subdivision-see-also-from:w Geographic-subdivision-see-also-from:p Geographic-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
974
      <xslo:variable name="raw_heading">
973
      <xslo:variable name="raw_heading">
975
        <xslo:for-each select="marc:subfield">
974
        <xslo:for-each select="marc:subfield">
976
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision-see-also-from:w Geographic-subdivision-see-also-from:p Geographic-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
975
          <xslo:if test="contains('vxyz', @code)" name="Geographic-subdivision-see-also-from:w Geographic-subdivision-see-also-from:p Geographic-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
977
            <xslo:if test="position() &gt; 1">
976
            <xslo:if test="position() &gt; 1">
978
              <xslo:choose>
977
              <xslo:choose>
979
                <xslo:when test="contains('vxyz', @code)">
978
                <xslo:when test="contains('vxyz', @code)">
Lines 992-1001 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
992
    </z:index>
991
    </z:index>
993
  </xslo:template>
992
  </xslo:template>
994
  <xslo:template mode="index_heading" match="marc:datafield[@tag='182']">
993
  <xslo:template mode="index_heading" match="marc:datafield[@tag='182']">
995
    <z:index name="Chronological-subdivision:w Chronological-subdivision:p Chronological-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
994
    <z:index name="Chronological-subdivision:w Chronological-subdivision:p Chronological-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
996
      <xslo:variable name="raw_heading">
995
      <xslo:variable name="raw_heading">
997
        <xslo:for-each select="marc:subfield">
996
        <xslo:for-each select="marc:subfield">
998
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision:w Chronological-subdivision:p Chronological-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
997
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision:w Chronological-subdivision:p Chronological-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
999
            <xslo:if test="position() &gt; 1">
998
            <xslo:if test="position() &gt; 1">
1000
              <xslo:choose>
999
              <xslo:choose>
1001
                <xslo:when test="contains('vxyz', @code)">
1000
                <xslo:when test="contains('vxyz', @code)">
Lines 1014-1023 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1014
    </z:index>
1013
    </z:index>
1015
  </xslo:template>
1014
  </xslo:template>
1016
  <xslo:template mode="index_heading" match="marc:datafield[@tag='482']">
1015
  <xslo:template mode="index_heading" match="marc:datafield[@tag='482']">
1017
    <z:index name="Chronological-subdivision-see-from:w Chronological-subdivision-see-from:p Chronological-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
1016
    <z:index name="Chronological-subdivision-see-from:w Chronological-subdivision-see-from:p Chronological-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
1018
      <xslo:variable name="raw_heading">
1017
      <xslo:variable name="raw_heading">
1019
        <xslo:for-each select="marc:subfield">
1018
        <xslo:for-each select="marc:subfield">
1020
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision-see-from:w Chronological-subdivision-see-from:p Chronological-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
1019
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision-see-from:w Chronological-subdivision-see-from:p Chronological-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
1021
            <xslo:if test="position() &gt; 1">
1020
            <xslo:if test="position() &gt; 1">
1022
              <xslo:choose>
1021
              <xslo:choose>
1023
                <xslo:when test="contains('vxyz', @code)">
1022
                <xslo:when test="contains('vxyz', @code)">
Lines 1036-1045 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1036
    </z:index>
1035
    </z:index>
1037
  </xslo:template>
1036
  </xslo:template>
1038
  <xslo:template mode="index_heading" match="marc:datafield[@tag='582']">
1037
  <xslo:template mode="index_heading" match="marc:datafield[@tag='582']">
1039
    <z:index name="Chronological-subdivision-see-also-from:w Chronological-subdivision-see-also-from:p Chronological-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
1038
    <z:index name="Chronological-subdivision-see-also-from:w Chronological-subdivision-see-also-from:p Chronological-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
1040
      <xslo:variable name="raw_heading">
1039
      <xslo:variable name="raw_heading">
1041
        <xslo:for-each select="marc:subfield">
1040
        <xslo:for-each select="marc:subfield">
1042
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision-see-also-from:w Chronological-subdivision-see-also-from:p Chronological-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
1041
          <xslo:if test="contains('vxyz', @code)" name="Chronological-subdivision-see-also-from:w Chronological-subdivision-see-also-from:p Chronological-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
1043
            <xslo:if test="position() &gt; 1">
1042
            <xslo:if test="position() &gt; 1">
1044
              <xslo:choose>
1043
              <xslo:choose>
1045
                <xslo:when test="contains('vxyz', @code)">
1044
                <xslo:when test="contains('vxyz', @code)">
Lines 1058-1067 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1058
    </z:index>
1057
    </z:index>
1059
  </xslo:template>
1058
  </xslo:template>
1060
  <xslo:template mode="index_heading" match="marc:datafield[@tag='185']">
1059
  <xslo:template mode="index_heading" match="marc:datafield[@tag='185']">
1061
    <z:index name="Form-subdivision:w Form-subdivision:p Form-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
1060
    <z:index name="Form-subdivision:w Form-subdivision:p Form-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
1062
      <xslo:variable name="raw_heading">
1061
      <xslo:variable name="raw_heading">
1063
        <xslo:for-each select="marc:subfield">
1062
        <xslo:for-each select="marc:subfield">
1064
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision:w Form-subdivision:p Form-subdivision:s Subdivision:w Subdivision:p Subdivision:s">
1063
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision:w Form-subdivision:p Form-subdivision:s Subdivision:w Subdivision:p Subdivision:s Any:w Any:p">
1065
            <xslo:if test="position() &gt; 1">
1064
            <xslo:if test="position() &gt; 1">
1066
              <xslo:choose>
1065
              <xslo:choose>
1067
                <xslo:when test="contains('vxyz', @code)">
1066
                <xslo:when test="contains('vxyz', @code)">
Lines 1080-1089 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1080
    </z:index>
1079
    </z:index>
1081
  </xslo:template>
1080
  </xslo:template>
1082
  <xslo:template mode="index_heading" match="marc:datafield[@tag='485']">
1081
  <xslo:template mode="index_heading" match="marc:datafield[@tag='485']">
1083
    <z:index name="Form-subdivision-see-from:w Form-subdivision-see-from:p Form-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
1082
    <z:index name="Form-subdivision-see-from:w Form-subdivision-see-from:p Form-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
1084
      <xslo:variable name="raw_heading">
1083
      <xslo:variable name="raw_heading">
1085
        <xslo:for-each select="marc:subfield">
1084
        <xslo:for-each select="marc:subfield">
1086
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision-see-from:w Form-subdivision-see-from:p Form-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s">
1085
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision-see-from:w Form-subdivision-see-from:p Form-subdivision-see-from:s Subdivision-see-from:w Subdivision-see-from:p Subdivision-see-from:s Any:w Any:p">
1087
            <xslo:if test="position() &gt; 1">
1086
            <xslo:if test="position() &gt; 1">
1088
              <xslo:choose>
1087
              <xslo:choose>
1089
                <xslo:when test="contains('vxyz', @code)">
1088
                <xslo:when test="contains('vxyz', @code)">
Lines 1102-1111 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1102
    </z:index>
1101
    </z:index>
1103
  </xslo:template>
1102
  </xslo:template>
1104
  <xslo:template mode="index_heading" match="marc:datafield[@tag='585']">
1103
  <xslo:template mode="index_heading" match="marc:datafield[@tag='585']">
1105
    <z:index name="Form-subdivision-see-also-from:w Form-subdivision-see-also-from:p Form-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
1104
    <z:index name="Form-subdivision-see-also-from:w Form-subdivision-see-also-from:p Form-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
1106
      <xslo:variable name="raw_heading">
1105
      <xslo:variable name="raw_heading">
1107
        <xslo:for-each select="marc:subfield">
1106
        <xslo:for-each select="marc:subfield">
1108
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision-see-also-from:w Form-subdivision-see-also-from:p Form-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s">
1107
          <xslo:if test="contains('vxyz', @code)" name="Form-subdivision-see-also-from:w Form-subdivision-see-also-from:p Form-subdivision-see-also-from:s Subdivision-see-also-from:w Subdivision-see-also-from:p Subdivision-see-also-from:s Any:w Any:p">
1109
            <xslo:if test="position() &gt; 1">
1108
            <xslo:if test="position() &gt; 1">
1110
              <xslo:choose>
1109
              <xslo:choose>
1111
                <xslo:when test="contains('vxyz', @code)">
1110
                <xslo:when test="contains('vxyz', @code)">
Lines 1125-1134 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1125
  </xslo:template>
1124
  </xslo:template>
1126
  <xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']">
1125
  <xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']">
1127
    <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)">
1126
    <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)">
1128
      <z:index name="Previous-heading-see-from:p">
1127
      <z:index name="Previous-heading-see-from:p Any:w Any:p">
1129
        <xslo:variable name="raw_heading">
1128
        <xslo:variable name="raw_heading">
1130
          <xslo:for-each select="marc:subfield">
1129
          <xslo:for-each select="marc:subfield">
1131
            <xslo:if test="contains('abvxyz', @code)" name="Previous-heading-see-from:p">
1130
            <xslo:if test="contains('abvxyz', @code)" name="Previous-heading-see-from:p Any:w Any:p">
1132
              <xslo:if test="position() &gt; 1">
1131
              <xslo:if test="position() &gt; 1">
1133
                <xslo:choose>
1132
                <xslo:choose>
1134
                  <xslo:when test="contains('vxyz', @code)">
1133
                  <xslo:when test="contains('vxyz', @code)">
Lines 1148-1157 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1148
    </xslo:if>
1147
    </xslo:if>
1149
  </xslo:template>
1148
  </xslo:template>
1150
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']">
1149
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='100']">
1151
    <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 Any:w Any:p">
1152
      <xslo:variable name="raw_heading">
1151
      <xslo:variable name="raw_heading">
1153
        <xslo:for-each select="marc:subfield">
1152
        <xslo:for-each select="marc:subfield">
1154
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1153
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1155
            <xslo:if test="position() &gt; 1">
1154
            <xslo:if test="position() &gt; 1">
1156
              <xslo:choose>
1155
              <xslo:choose>
1157
                <xslo:when test="contains('vxyz', @code)">
1156
                <xslo:when test="contains('vxyz', @code)">
Lines 1187-1196 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1187
    </z:index>
1186
    </z:index>
1188
  </xslo:template>
1187
  </xslo:template>
1189
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='400']">
1188
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='400']">
1190
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1189
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1191
      <xslo:variable name="raw_heading">
1190
      <xslo:variable name="raw_heading">
1192
        <xslo:for-each select="marc:subfield">
1191
        <xslo:for-each select="marc:subfield">
1193
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1192
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1194
            <xslo:if test="position() &gt; 1">
1193
            <xslo:if test="position() &gt; 1">
1195
              <xslo:choose>
1194
              <xslo:choose>
1196
                <xslo:when test="contains('vxyz', @code)">
1195
                <xslo:when test="contains('vxyz', @code)">
Lines 1226-1235 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1226
    </z:index>
1225
    </z:index>
1227
  </xslo:template>
1226
  </xslo:template>
1228
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='500']">
1227
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='500']">
1229
    <z:index name="Match:w Match:p">
1228
    <z:index name="Match:w Match:p Any:w Any:p">
1230
      <xslo:variable name="raw_heading">
1229
      <xslo:variable name="raw_heading">
1231
        <xslo:for-each select="marc:subfield">
1230
        <xslo:for-each select="marc:subfield">
1232
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p">
1231
          <xslo:if test="contains('abcdefghjklmnopqrstvxyz', @code)" name="Match:w Match:p Any:w Any:p">
1233
            <xslo:if test="position() &gt; 1">
1232
            <xslo:if test="position() &gt; 1">
1234
              <xslo:choose>
1233
              <xslo:choose>
1235
                <xslo:when test="contains('vxyz', @code)">
1234
                <xslo:when test="contains('vxyz', @code)">
Lines 1265-1274 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1265
    </z:index>
1264
    </z:index>
1266
  </xslo:template>
1265
  </xslo:template>
1267
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='110']">
1266
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='110']">
1268
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1267
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1269
      <xslo:variable name="raw_heading">
1268
      <xslo:variable name="raw_heading">
1270
        <xslo:for-each select="marc:subfield">
1269
        <xslo:for-each select="marc:subfield">
1271
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1270
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1272
            <xslo:if test="position() &gt; 1">
1271
            <xslo:if test="position() &gt; 1">
1273
              <xslo:choose>
1272
              <xslo:choose>
1274
                <xslo:when test="contains('vxyz', @code)">
1273
                <xslo:when test="contains('vxyz', @code)">
Lines 1304-1313 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1304
    </z:index>
1303
    </z:index>
1305
  </xslo:template>
1304
  </xslo:template>
1306
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='410']">
1305
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='410']">
1307
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1306
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1308
      <xslo:variable name="raw_heading">
1307
      <xslo:variable name="raw_heading">
1309
        <xslo:for-each select="marc:subfield">
1308
        <xslo:for-each select="marc:subfield">
1310
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1309
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1311
            <xslo:if test="position() &gt; 1">
1310
            <xslo:if test="position() &gt; 1">
1312
              <xslo:choose>
1311
              <xslo:choose>
1313
                <xslo:when test="contains('vxyz', @code)">
1312
                <xslo:when test="contains('vxyz', @code)">
Lines 1343-1352 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1343
    </z:index>
1342
    </z:index>
1344
  </xslo:template>
1343
  </xslo:template>
1345
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='510']">
1344
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='510']">
1346
    <z:index name="Match:w Match:p">
1345
    <z:index name="Match:w Match:p Any:w Any:p">
1347
      <xslo:variable name="raw_heading">
1346
      <xslo:variable name="raw_heading">
1348
        <xslo:for-each select="marc:subfield">
1347
        <xslo:for-each select="marc:subfield">
1349
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p">
1348
          <xslo:if test="contains('abcdefghklmnoprstvxyz', @code)" name="Match:w Match:p Any:w Any:p">
1350
            <xslo:if test="position() &gt; 1">
1349
            <xslo:if test="position() &gt; 1">
1351
              <xslo:choose>
1350
              <xslo:choose>
1352
                <xslo:when test="contains('vxyz', @code)">
1351
                <xslo:when test="contains('vxyz', @code)">
Lines 1382-1391 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1382
    </z:index>
1381
    </z:index>
1383
  </xslo:template>
1382
  </xslo:template>
1384
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='111']">
1383
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='111']">
1385
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1384
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1386
      <xslo:variable name="raw_heading">
1385
      <xslo:variable name="raw_heading">
1387
        <xslo:for-each select="marc:subfield">
1386
        <xslo:for-each select="marc:subfield">
1388
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1387
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1389
            <xslo:if test="position() &gt; 1">
1388
            <xslo:if test="position() &gt; 1">
1390
              <xslo:choose>
1389
              <xslo:choose>
1391
                <xslo:when test="contains('vxyz', @code)">
1390
                <xslo:when test="contains('vxyz', @code)">
Lines 1421-1430 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1421
    </z:index>
1420
    </z:index>
1422
  </xslo:template>
1421
  </xslo:template>
1423
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='411']">
1422
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='411']">
1424
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1423
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1425
      <xslo:variable name="raw_heading">
1424
      <xslo:variable name="raw_heading">
1426
        <xslo:for-each select="marc:subfield">
1425
        <xslo:for-each select="marc:subfield">
1427
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1426
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1428
            <xslo:if test="position() &gt; 1">
1427
            <xslo:if test="position() &gt; 1">
1429
              <xslo:choose>
1428
              <xslo:choose>
1430
                <xslo:when test="contains('vxyz', @code)">
1429
                <xslo:when test="contains('vxyz', @code)">
Lines 1460-1469 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1460
    </z:index>
1459
    </z:index>
1461
  </xslo:template>
1460
  </xslo:template>
1462
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='511']">
1461
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='511']">
1463
    <z:index name="Match:w Match:p">
1462
    <z:index name="Match:w Match:p Any:w Any:p">
1464
      <xslo:variable name="raw_heading">
1463
      <xslo:variable name="raw_heading">
1465
        <xslo:for-each select="marc:subfield">
1464
        <xslo:for-each select="marc:subfield">
1466
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p">
1465
          <xslo:if test="contains('acdefghjklnpqstvxyz', @code)" name="Match:w Match:p Any:w Any:p">
1467
            <xslo:if test="position() &gt; 1">
1466
            <xslo:if test="position() &gt; 1">
1468
              <xslo:choose>
1467
              <xslo:choose>
1469
                <xslo:when test="contains('vxyz', @code)">
1468
                <xslo:when test="contains('vxyz', @code)">
Lines 1499-1508 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1499
    </z:index>
1498
    </z:index>
1500
  </xslo:template>
1499
  </xslo:template>
1501
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='130']">
1500
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='130']">
1502
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1501
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1503
      <xslo:variable name="raw_heading">
1502
      <xslo:variable name="raw_heading">
1504
        <xslo:for-each select="marc:subfield">
1503
        <xslo:for-each select="marc:subfield">
1505
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1504
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1506
            <xslo:if test="position() &gt; 1">
1505
            <xslo:if test="position() &gt; 1">
1507
              <xslo:choose>
1506
              <xslo:choose>
1508
                <xslo:when test="contains('vxyz', @code)">
1507
                <xslo:when test="contains('vxyz', @code)">
Lines 1538-1547 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1538
    </z:index>
1537
    </z:index>
1539
  </xslo:template>
1538
  </xslo:template>
1540
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='430']">
1539
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='430']">
1541
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1540
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1542
      <xslo:variable name="raw_heading">
1541
      <xslo:variable name="raw_heading">
1543
        <xslo:for-each select="marc:subfield">
1542
        <xslo:for-each select="marc:subfield">
1544
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1543
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1545
            <xslo:if test="position() &gt; 1">
1544
            <xslo:if test="position() &gt; 1">
1546
              <xslo:choose>
1545
              <xslo:choose>
1547
                <xslo:when test="contains('vxyz', @code)">
1546
                <xslo:when test="contains('vxyz', @code)">
Lines 1577-1586 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1577
    </z:index>
1576
    </z:index>
1578
  </xslo:template>
1577
  </xslo:template>
1579
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='530']">
1578
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='530']">
1580
    <z:index name="Match:w Match:p">
1579
    <z:index name="Match:w Match:p Any:w Any:p">
1581
      <xslo:variable name="raw_heading">
1580
      <xslo:variable name="raw_heading">
1582
        <xslo:for-each select="marc:subfield">
1581
        <xslo:for-each select="marc:subfield">
1583
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p">
1582
          <xslo:if test="contains('adfghklmnoprstvxyz', @code)" name="Match:w Match:p Any:w Any:p">
1584
            <xslo:if test="position() &gt; 1">
1583
            <xslo:if test="position() &gt; 1">
1585
              <xslo:choose>
1584
              <xslo:choose>
1586
                <xslo:when test="contains('vxyz', @code)">
1585
                <xslo:when test="contains('vxyz', @code)">
Lines 1616-1625 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1616
    </z:index>
1615
    </z:index>
1617
  </xslo:template>
1616
  </xslo:template>
1618
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='148']">
1617
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='148']">
1619
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1618
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1620
      <xslo:variable name="raw_heading">
1619
      <xslo:variable name="raw_heading">
1621
        <xslo:for-each select="marc:subfield">
1620
        <xslo:for-each select="marc:subfield">
1622
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1621
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1623
            <xslo:if test="position() &gt; 1">
1622
            <xslo:if test="position() &gt; 1">
1624
              <xslo:choose>
1623
              <xslo:choose>
1625
                <xslo:when test="contains('vxyz', @code)">
1624
                <xslo:when test="contains('vxyz', @code)">
Lines 1655-1664 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1655
    </z:index>
1654
    </z:index>
1656
  </xslo:template>
1655
  </xslo:template>
1657
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='448']">
1656
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='448']">
1658
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1657
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1659
      <xslo:variable name="raw_heading">
1658
      <xslo:variable name="raw_heading">
1660
        <xslo:for-each select="marc:subfield">
1659
        <xslo:for-each select="marc:subfield">
1661
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1660
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1662
            <xslo:if test="position() &gt; 1">
1661
            <xslo:if test="position() &gt; 1">
1663
              <xslo:choose>
1662
              <xslo:choose>
1664
                <xslo:when test="contains('vxyz', @code)">
1663
                <xslo:when test="contains('vxyz', @code)">
Lines 1694-1703 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1694
    </z:index>
1693
    </z:index>
1695
  </xslo:template>
1694
  </xslo:template>
1696
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='548']">
1695
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='548']">
1697
    <z:index name="Match:w Match:p">
1696
    <z:index name="Match:w Match:p Any:w Any:p">
1698
      <xslo:variable name="raw_heading">
1697
      <xslo:variable name="raw_heading">
1699
        <xslo:for-each select="marc:subfield">
1698
        <xslo:for-each select="marc:subfield">
1700
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p">
1699
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Any:w Any:p">
1701
            <xslo:if test="position() &gt; 1">
1700
            <xslo:if test="position() &gt; 1">
1702
              <xslo:choose>
1701
              <xslo:choose>
1703
                <xslo:when test="contains('vxyz', @code)">
1702
                <xslo:when test="contains('vxyz', @code)">
Lines 1733-1742 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1733
    </z:index>
1732
    </z:index>
1734
  </xslo:template>
1733
  </xslo:template>
1735
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='150']">
1734
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='150']">
1736
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1735
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1737
      <xslo:variable name="raw_heading">
1736
      <xslo:variable name="raw_heading">
1738
        <xslo:for-each select="marc:subfield">
1737
        <xslo:for-each select="marc:subfield">
1739
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1738
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1740
            <xslo:if test="position() &gt; 1">
1739
            <xslo:if test="position() &gt; 1">
1741
              <xslo:choose>
1740
              <xslo:choose>
1742
                <xslo:when test="contains('vxyz', @code)">
1741
                <xslo:when test="contains('vxyz', @code)">
Lines 1772-1781 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1772
    </z:index>
1771
    </z:index>
1773
  </xslo:template>
1772
  </xslo:template>
1774
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='450']">
1773
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='450']">
1775
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1774
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1776
      <xslo:variable name="raw_heading">
1775
      <xslo:variable name="raw_heading">
1777
        <xslo:for-each select="marc:subfield">
1776
        <xslo:for-each select="marc:subfield">
1778
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1777
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1779
            <xslo:if test="position() &gt; 1">
1778
            <xslo:if test="position() &gt; 1">
1780
              <xslo:choose>
1779
              <xslo:choose>
1781
                <xslo:when test="contains('vxyz', @code)">
1780
                <xslo:when test="contains('vxyz', @code)">
Lines 1811-1820 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1811
    </z:index>
1810
    </z:index>
1812
  </xslo:template>
1811
  </xslo:template>
1813
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='550']">
1812
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='550']">
1814
    <z:index name="Match:w Match:p">
1813
    <z:index name="Match:w Match:p Any:w Any:p">
1815
      <xslo:variable name="raw_heading">
1814
      <xslo:variable name="raw_heading">
1816
        <xslo:for-each select="marc:subfield">
1815
        <xslo:for-each select="marc:subfield">
1817
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p">
1816
          <xslo:if test="contains('abvxyz', @code)" name="Match:w Match:p Any:w Any:p">
1818
            <xslo:if test="position() &gt; 1">
1817
            <xslo:if test="position() &gt; 1">
1819
              <xslo:choose>
1818
              <xslo:choose>
1820
                <xslo:when test="contains('vxyz', @code)">
1819
                <xslo:when test="contains('vxyz', @code)">
Lines 1850-1859 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1850
    </z:index>
1849
    </z:index>
1851
  </xslo:template>
1850
  </xslo:template>
1852
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='151']">
1851
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='151']">
1853
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1852
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1854
      <xslo:variable name="raw_heading">
1853
      <xslo:variable name="raw_heading">
1855
        <xslo:for-each select="marc:subfield">
1854
        <xslo:for-each select="marc:subfield">
1856
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1855
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1857
            <xslo:if test="position() &gt; 1">
1856
            <xslo:if test="position() &gt; 1">
1858
              <xslo:choose>
1857
              <xslo:choose>
1859
                <xslo:when test="contains('vxyz', @code)">
1858
                <xslo:when test="contains('vxyz', @code)">
Lines 1889-1898 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1889
    </z:index>
1888
    </z:index>
1890
  </xslo:template>
1889
  </xslo:template>
1891
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='451']">
1890
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='451']">
1892
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1891
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1893
      <xslo:variable name="raw_heading">
1892
      <xslo:variable name="raw_heading">
1894
        <xslo:for-each select="marc:subfield">
1893
        <xslo:for-each select="marc:subfield">
1895
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
1894
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
1896
            <xslo:if test="position() &gt; 1">
1895
            <xslo:if test="position() &gt; 1">
1897
              <xslo:choose>
1896
              <xslo:choose>
1898
                <xslo:when test="contains('vxyz', @code)">
1897
                <xslo:when test="contains('vxyz', @code)">
Lines 1928-1937 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1928
    </z:index>
1927
    </z:index>
1929
  </xslo:template>
1928
  </xslo:template>
1930
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='551']">
1929
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='551']">
1931
    <z:index name="Match:w Match:p">
1930
    <z:index name="Match:w Match:p Any:w Any:p">
1932
      <xslo:variable name="raw_heading">
1931
      <xslo:variable name="raw_heading">
1933
        <xslo:for-each select="marc:subfield">
1932
        <xslo:for-each select="marc:subfield">
1934
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p">
1933
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Any:w Any:p">
1935
            <xslo:if test="position() &gt; 1">
1934
            <xslo:if test="position() &gt; 1">
1936
              <xslo:choose>
1935
              <xslo:choose>
1937
                <xslo:when test="contains('vxyz', @code)">
1936
                <xslo:when test="contains('vxyz', @code)">
Lines 1967-1976 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1967
    </z:index>
1966
    </z:index>
1968
  </xslo:template>
1967
  </xslo:template>
1969
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='155']">
1968
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='155']">
1970
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s">
1969
    <z:index name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1971
      <xslo:variable name="raw_heading">
1970
      <xslo:variable name="raw_heading">
1972
        <xslo:for-each select="marc:subfield">
1971
        <xslo:for-each select="marc:subfield">
1973
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s">
1972
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading:p Match-heading:s Any:w Any:p">
1974
            <xslo:if test="position() &gt; 1">
1973
            <xslo:if test="position() &gt; 1">
1975
              <xslo:choose>
1974
              <xslo:choose>
1976
                <xslo:when test="contains('vxyz', @code)">
1975
                <xslo:when test="contains('vxyz', @code)">
Lines 2006-2015 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2006
    </z:index>
2005
    </z:index>
2007
  </xslo:template>
2006
  </xslo:template>
2008
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='455']">
2007
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='455']">
2009
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
2008
    <z:index name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
2010
      <xslo:variable name="raw_heading">
2009
      <xslo:variable name="raw_heading">
2011
        <xslo:for-each select="marc:subfield">
2010
        <xslo:for-each select="marc:subfield">
2012
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s">
2011
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Match-heading-see-from:p Match-heading-see-from:s Any:w Any:p">
2013
            <xslo:if test="position() &gt; 1">
2012
            <xslo:if test="position() &gt; 1">
2014
              <xslo:choose>
2013
              <xslo:choose>
2015
                <xslo:when test="contains('vxyz', @code)">
2014
                <xslo:when test="contains('vxyz', @code)">
Lines 2045-2054 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2045
    </z:index>
2044
    </z:index>
2046
  </xslo:template>
2045
  </xslo:template>
2047
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='555']">
2046
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='555']">
2048
    <z:index name="Match:w Match:p">
2047
    <z:index name="Match:w Match:p Any:w Any:p">
2049
      <xslo:variable name="raw_heading">
2048
      <xslo:variable name="raw_heading">
2050
        <xslo:for-each select="marc:subfield">
2049
        <xslo:for-each select="marc:subfield">
2051
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p">
2050
          <xslo:if test="contains('avxyz', @code)" name="Match:w Match:p Any:w Any:p">
2052
            <xslo:if test="position() &gt; 1">
2051
            <xslo:if test="position() &gt; 1">
2053
              <xslo:choose>
2052
              <xslo:choose>
2054
                <xslo:when test="contains('vxyz', @code)">
2053
                <xslo:when test="contains('vxyz', @code)">
Lines 2084-2093 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2084
    </z:index>
2083
    </z:index>
2085
  </xslo:template>
2084
  </xslo:template>
2086
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='180']">
2085
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='180']">
2087
    <z:index name="Match-subdivision:p Match-subdivision:s">
2086
    <z:index name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2088
      <xslo:variable name="raw_heading">
2087
      <xslo:variable name="raw_heading">
2089
        <xslo:for-each select="marc:subfield">
2088
        <xslo:for-each select="marc:subfield">
2090
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s">
2089
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2091
            <xslo:if test="position() &gt; 1">
2090
            <xslo:if test="position() &gt; 1">
2092
              <xslo:choose>
2091
              <xslo:choose>
2093
                <xslo:when test="contains('vxyz', @code)">
2092
                <xslo:when test="contains('vxyz', @code)">
Lines 2123-2132 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2123
    </z:index>
2122
    </z:index>
2124
  </xslo:template>
2123
  </xslo:template>
2125
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='480']">
2124
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='480']">
2126
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2125
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2127
      <xslo:variable name="raw_heading">
2126
      <xslo:variable name="raw_heading">
2128
        <xslo:for-each select="marc:subfield">
2127
        <xslo:for-each select="marc:subfield">
2129
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2128
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2130
            <xslo:if test="position() &gt; 1">
2129
            <xslo:if test="position() &gt; 1">
2131
              <xslo:choose>
2130
              <xslo:choose>
2132
                <xslo:when test="contains('vxyz', @code)">
2131
                <xslo:when test="contains('vxyz', @code)">
Lines 2162-2171 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2162
    </z:index>
2161
    </z:index>
2163
  </xslo:template>
2162
  </xslo:template>
2164
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='181']">
2163
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='181']">
2165
    <z:index name="Match-subdivision:p Match-subdivision:s">
2164
    <z:index name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2166
      <xslo:variable name="raw_heading">
2165
      <xslo:variable name="raw_heading">
2167
        <xslo:for-each select="marc:subfield">
2166
        <xslo:for-each select="marc:subfield">
2168
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s">
2167
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2169
            <xslo:if test="position() &gt; 1">
2168
            <xslo:if test="position() &gt; 1">
2170
              <xslo:choose>
2169
              <xslo:choose>
2171
                <xslo:when test="contains('vxyz', @code)">
2170
                <xslo:when test="contains('vxyz', @code)">
Lines 2201-2210 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2201
    </z:index>
2200
    </z:index>
2202
  </xslo:template>
2201
  </xslo:template>
2203
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='481']">
2202
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='481']">
2204
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2203
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2205
      <xslo:variable name="raw_heading">
2204
      <xslo:variable name="raw_heading">
2206
        <xslo:for-each select="marc:subfield">
2205
        <xslo:for-each select="marc:subfield">
2207
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2206
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2208
            <xslo:if test="position() &gt; 1">
2207
            <xslo:if test="position() &gt; 1">
2209
              <xslo:choose>
2208
              <xslo:choose>
2210
                <xslo:when test="contains('vxyz', @code)">
2209
                <xslo:when test="contains('vxyz', @code)">
Lines 2240-2249 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2240
    </z:index>
2239
    </z:index>
2241
  </xslo:template>
2240
  </xslo:template>
2242
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='182']">
2241
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='182']">
2243
    <z:index name="Match-subdivision:p Match-subdivision:s">
2242
    <z:index name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2244
      <xslo:variable name="raw_heading">
2243
      <xslo:variable name="raw_heading">
2245
        <xslo:for-each select="marc:subfield">
2244
        <xslo:for-each select="marc:subfield">
2246
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s">
2245
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2247
            <xslo:if test="position() &gt; 1">
2246
            <xslo:if test="position() &gt; 1">
2248
              <xslo:choose>
2247
              <xslo:choose>
2249
                <xslo:when test="contains('vxyz', @code)">
2248
                <xslo:when test="contains('vxyz', @code)">
Lines 2279-2288 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2279
    </z:index>
2278
    </z:index>
2280
  </xslo:template>
2279
  </xslo:template>
2281
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='482']">
2280
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='482']">
2282
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2281
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2283
      <xslo:variable name="raw_heading">
2282
      <xslo:variable name="raw_heading">
2284
        <xslo:for-each select="marc:subfield">
2283
        <xslo:for-each select="marc:subfield">
2285
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2284
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2286
            <xslo:if test="position() &gt; 1">
2285
            <xslo:if test="position() &gt; 1">
2287
              <xslo:choose>
2286
              <xslo:choose>
2288
                <xslo:when test="contains('vxyz', @code)">
2287
                <xslo:when test="contains('vxyz', @code)">
Lines 2318-2327 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2318
    </z:index>
2317
    </z:index>
2319
  </xslo:template>
2318
  </xslo:template>
2320
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='485']">
2319
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='485']">
2321
    <z:index name="Match-subdivision:p Match-subdivision:s">
2320
    <z:index name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2322
      <xslo:variable name="raw_heading">
2321
      <xslo:variable name="raw_heading">
2323
        <xslo:for-each select="marc:subfield">
2322
        <xslo:for-each select="marc:subfield">
2324
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s">
2323
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision:p Match-subdivision:s Any:w Any:p">
2325
            <xslo:if test="position() &gt; 1">
2324
            <xslo:if test="position() &gt; 1">
2326
              <xslo:choose>
2325
              <xslo:choose>
2327
                <xslo:when test="contains('vxyz', @code)">
2326
                <xslo:when test="contains('vxyz', @code)">
Lines 2357-2366 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2357
    </z:index>
2356
    </z:index>
2358
  </xslo:template>
2357
  </xslo:template>
2359
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='185']">
2358
  <xslo:template mode="index_match_heading" match="marc:datafield[@tag='185']">
2360
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2359
    <z:index name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2361
      <xslo:variable name="raw_heading">
2360
      <xslo:variable name="raw_heading">
2362
        <xslo:for-each select="marc:subfield">
2361
        <xslo:for-each select="marc:subfield">
2363
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s">
2362
          <xslo:if test="contains('vxyz', @code)" name="Match-subdivision-see-from:p Match-subdivision-see-from:s Any:w Any:p">
2364
            <xslo:if test="position() &gt; 1">
2363
            <xslo:if test="position() &gt; 1">
2365
              <xslo:choose>
2364
              <xslo:choose>
2366
                <xslo:when test="contains('vxyz', @code)">
2365
                <xslo:when test="contains('vxyz', @code)">
Lines 2449-2459 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2449
      <xslo:value-of select="$full_thesaurus_code"/>
2448
      <xslo:value-of select="$full_thesaurus_code"/>
2450
    </z:index>
2449
    </z:index>
2451
  </xslo:template>
2450
  </xslo:template>
2452
  <xslo:template mode="index_all" match="text()">
2453
    <z:index name="Any:w Any:p">
2454
      <xslo:value-of select="."/>
2455
    </z:index>
2456
  </xslo:template>
2457
  <xslo:template name="chopPunctuation">
2451
  <xslo:template name="chopPunctuation">
2458
    <xslo:param name="chopString"/>
2452
    <xslo:param name="chopString"/>
2459
    <xslo:variable name="length" select="string-length($chopString)"/>
2453
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-237 / +231 lines)
Lines 39-45 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
      <xslo:apply-templates mode="index_heading_conditional"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
42
      <xslo:apply-templates mode="index_all"/>
43
    </z:record>
42
    </z:record>
44
  </xslo:template>
43
  </xslo:template>
45
  <xslo:template match="marc:leader">
44
  <xslo:template match="marc:leader">
Lines 133-139 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
133
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
132
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
134
    <xslo:for-each select="marc:subfield">
133
    <xslo:for-each select="marc:subfield">
135
      <xslo:if test="contains('a', @code)">
134
      <xslo:if test="contains('a', @code)">
136
        <z:index name="ISBN:w Identifier-standard:w">
135
        <z:index name="ISBN:w Identifier-standard:w Any:w Any:p">
137
          <xslo:value-of select="."/>
136
          <xslo:value-of select="."/>
138
        </z:index>
137
        </z:index>
139
      </xslo:if>
138
      </xslo:if>
Lines 142-148 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
142
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
141
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
143
    <xslo:for-each select="marc:subfield">
142
    <xslo:for-each select="marc:subfield">
144
      <xslo:if test="contains('a', @code)">
143
      <xslo:if test="contains('a', @code)">
145
        <z:index name="ISSN:w Identifier-standard:w">
144
        <z:index name="ISSN:w Identifier-standard:w Any:w Any:p">
146
          <xslo:value-of select="."/>
145
          <xslo:value-of select="."/>
147
        </z:index>
146
        </z:index>
148
      </xslo:if>
147
      </xslo:if>
Lines 151-157 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
151
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='024']">
150
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='024']">
152
    <xslo:for-each select="marc:subfield">
151
    <xslo:for-each select="marc:subfield">
153
      <xslo:if test="contains('a', @code)">
152
      <xslo:if test="contains('a', @code)">
154
        <z:index name="Identifier-other:w">
153
        <z:index name="Identifier-other:w Any:w Any:p">
155
          <xslo:value-of select="."/>
154
          <xslo:value-of select="."/>
156
        </z:index>
155
        </z:index>
157
      </xslo:if>
156
      </xslo:if>
Lines 160-187 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
160
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='041']">
159
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='041']">
161
    <xslo:for-each select="marc:subfield">
160
    <xslo:for-each select="marc:subfield">
162
      <xslo:if test="contains('a', @code)">
161
      <xslo:if test="contains('a', @code)">
163
        <z:index name="ln:w">
162
        <z:index name="ln:w Any:w Any:p">
164
          <xslo:value-of select="."/>
163
          <xslo:value-of select="."/>
165
        </z:index>
164
        </z:index>
166
      </xslo:if>
165
      </xslo:if>
167
    </xslo:for-each>
166
    </xslo:for-each>
168
    <xslo:for-each select="marc:subfield">
167
    <xslo:for-each select="marc:subfield">
169
      <xslo:if test="contains('d', @code)">
168
      <xslo:if test="contains('d', @code)">
170
        <z:index name="ln:w">
169
        <z:index name="ln:w Any:w Any:p">
171
          <xslo:value-of select="."/>
170
          <xslo:value-of select="."/>
172
        </z:index>
171
        </z:index>
173
      </xslo:if>
172
      </xslo:if>
174
    </xslo:for-each>
173
    </xslo:for-each>
175
    <xslo:for-each select="marc:subfield">
174
    <xslo:for-each select="marc:subfield">
176
      <xslo:if test="contains('e', @code)">
175
      <xslo:if test="contains('e', @code)">
177
        <z:index name="ln:w">
176
        <z:index name="ln:w Any:w Any:p">
178
          <xslo:value-of select="."/>
177
          <xslo:value-of select="."/>
179
        </z:index>
178
        </z:index>
180
      </xslo:if>
179
      </xslo:if>
181
    </xslo:for-each>
180
    </xslo:for-each>
182
    <xslo:for-each select="marc:subfield">
181
    <xslo:for-each select="marc:subfield">
183
      <xslo:if test="contains('j', @code)">
182
      <xslo:if test="contains('j', @code)">
184
        <z:index name="ln:w">
183
        <z:index name="ln:w Any:w Any:p">
185
          <xslo:value-of select="."/>
184
          <xslo:value-of select="."/>
186
        </z:index>
185
        </z:index>
187
      </xslo:if>
186
      </xslo:if>
Lines 190-196 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
190
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='050']">
189
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='050']">
191
    <xslo:for-each select="marc:subfield">
190
    <xslo:for-each select="marc:subfield">
192
      <xslo:if test="contains('b', @code)">
191
      <xslo:if test="contains('b', @code)">
193
        <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s">
192
        <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s Any:w Any:p">
194
          <xslo:value-of select="."/>
193
          <xslo:value-of select="."/>
195
        </z:index>
194
        </z:index>
196
      </xslo:if>
195
      </xslo:if>
Lines 199-212 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
199
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
198
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
200
    <xslo:for-each select="marc:subfield">
199
    <xslo:for-each select="marc:subfield">
201
      <xslo:if test="contains('9', @code)">
200
      <xslo:if test="contains('9', @code)">
202
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
201
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
203
          <xslo:value-of select="."/>
202
          <xslo:value-of select="."/>
204
        </z:index>
203
        </z:index>
205
      </xslo:if>
204
      </xslo:if>
206
    </xslo:for-each>
205
    </xslo:for-each>
207
    <xslo:for-each select="marc:subfield">
206
    <xslo:for-each select="marc:subfield">
208
      <xslo:if test="contains('a', @code)">
207
      <xslo:if test="contains('a', @code)">
209
        <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s">
208
        <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s Any:w Any:p">
210
          <xslo:value-of select="."/>
209
          <xslo:value-of select="."/>
211
        </z:index>
210
        </z:index>
212
      </xslo:if>
211
      </xslo:if>
Lines 215-221 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
215
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
214
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
216
    <xslo:for-each select="marc:subfield">
215
    <xslo:for-each select="marc:subfield">
217
      <xslo:if test="contains('9', @code)">
216
      <xslo:if test="contains('9', @code)">
218
        <z:index name="Koha-Auth-Number:w">
217
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
219
          <xslo:value-of select="."/>
218
          <xslo:value-of select="."/>
220
        </z:index>
219
        </z:index>
221
      </xslo:if>
220
      </xslo:if>
Lines 224-230 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
224
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
223
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
225
    <xslo:for-each select="marc:subfield">
224
    <xslo:for-each select="marc:subfield">
226
      <xslo:if test="contains('9', @code)">
225
      <xslo:if test="contains('9', @code)">
227
        <z:index name="Koha-Auth-Number:w">
226
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
228
          <xslo:value-of select="."/>
227
          <xslo:value-of select="."/>
229
        </z:index>
228
        </z:index>
230
      </xslo:if>
229
      </xslo:if>
Lines 233-253 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
233
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
232
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
234
    <xslo:for-each select="marc:subfield">
233
    <xslo:for-each select="marc:subfield">
235
      <xslo:if test="contains('n', @code)">
234
      <xslo:if test="contains('n', @code)">
236
        <z:index name="Thematic-number:w">
235
        <z:index name="Thematic-number:w Any:w Any:p">
237
          <xslo:value-of select="."/>
236
          <xslo:value-of select="."/>
238
        </z:index>
237
        </z:index>
239
      </xslo:if>
238
      </xslo:if>
240
    </xslo:for-each>
239
    </xslo:for-each>
241
    <xslo:for-each select="marc:subfield">
240
    <xslo:for-each select="marc:subfield">
242
      <xslo:if test="contains('r', @code)">
241
      <xslo:if test="contains('r', @code)">
243
        <z:index name="Music-key:w">
242
        <z:index name="Music-key:w Any:w Any:p">
244
          <xslo:value-of select="."/>
243
          <xslo:value-of select="."/>
245
        </z:index>
244
        </z:index>
246
      </xslo:if>
245
      </xslo:if>
247
    </xslo:for-each>
246
    </xslo:for-each>
248
    <xslo:for-each select="marc:subfield">
247
    <xslo:for-each select="marc:subfield">
249
      <xslo:if test="contains('9', @code)">
248
      <xslo:if test="contains('9', @code)">
250
        <z:index name="Koha-Auth-Number:w">
249
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
251
          <xslo:value-of select="."/>
250
          <xslo:value-of select="."/>
252
        </z:index>
251
        </z:index>
253
      </xslo:if>
252
      </xslo:if>
Lines 256-269 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
256
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
255
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
257
    <xslo:for-each select="marc:subfield">
256
    <xslo:for-each select="marc:subfield">
258
      <xslo:if test="contains('r', @code)">
257
      <xslo:if test="contains('r', @code)">
259
        <z:index name="Music-key:w">
258
        <z:index name="Music-key:w Any:w Any:p">
260
          <xslo:value-of select="."/>
259
          <xslo:value-of select="."/>
261
        </z:index>
260
        </z:index>
262
      </xslo:if>
261
      </xslo:if>
263
    </xslo:for-each>
262
    </xslo:for-each>
264
    <xslo:for-each select="marc:subfield">
263
    <xslo:for-each select="marc:subfield">
265
      <xslo:if test="contains('n', @code)">
264
      <xslo:if test="contains('n', @code)">
266
        <z:index name="Thematic-number:w">
265
        <z:index name="Thematic-number:w Any:w Any:p">
267
          <xslo:value-of select="."/>
266
          <xslo:value-of select="."/>
268
        </z:index>
267
        </z:index>
269
      </xslo:if>
268
      </xslo:if>
Lines 272-285 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
272
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='243']">
271
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='243']">
273
    <xslo:for-each select="marc:subfield">
272
    <xslo:for-each select="marc:subfield">
274
      <xslo:if test="contains('n', @code)">
273
      <xslo:if test="contains('n', @code)">
275
        <z:index name="Thematic-number:w">
274
        <z:index name="Thematic-number:w Any:w Any:p">
276
          <xslo:value-of select="."/>
275
          <xslo:value-of select="."/>
277
        </z:index>
276
        </z:index>
278
      </xslo:if>
277
      </xslo:if>
279
    </xslo:for-each>
278
    </xslo:for-each>
280
    <xslo:for-each select="marc:subfield">
279
    <xslo:for-each select="marc:subfield">
281
      <xslo:if test="contains('r', @code)">
280
      <xslo:if test="contains('r', @code)">
282
        <z:index name="Music-key:w">
281
        <z:index name="Music-key:w Any:w Any:p">
283
          <xslo:value-of select="."/>
282
          <xslo:value-of select="."/>
284
        </z:index>
283
        </z:index>
285
      </xslo:if>
284
      </xslo:if>
Lines 288-308 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
288
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
287
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
289
    <xslo:for-each select="marc:subfield">
288
    <xslo:for-each select="marc:subfield">
290
      <xslo:if test="contains('a', @code)">
289
      <xslo:if test="contains('a', @code)">
291
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
290
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s Any:w Any:p">
292
          <xslo:value-of select="."/>
291
          <xslo:value-of select="."/>
293
        </z:index>
292
        </z:index>
294
      </xslo:if>
293
      </xslo:if>
295
    </xslo:for-each>
294
    </xslo:for-each>
296
    <xslo:for-each select="marc:subfield">
295
    <xslo:for-each select="marc:subfield">
297
      <xslo:if test="contains('c', @code)">
296
      <xslo:if test="contains('c', @code)">
298
        <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s">
297
        <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s Any:w Any:p">
299
          <xslo:value-of select="."/>
298
          <xslo:value-of select="."/>
300
        </z:index>
299
        </z:index>
301
      </xslo:if>
300
      </xslo:if>
302
    </xslo:for-each>
301
    </xslo:for-each>
303
    <xslo:for-each select="marc:subfield">
302
    <xslo:for-each select="marc:subfield">
304
      <xslo:if test="contains('9', @code)">
303
      <xslo:if test="contains('9', @code)">
305
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
304
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
306
          <xslo:value-of select="."/>
305
          <xslo:value-of select="."/>
307
        </z:index>
306
        </z:index>
308
      </xslo:if>
307
      </xslo:if>
Lines 311-331 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
311
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
310
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
312
    <xslo:for-each select="marc:subfield">
311
    <xslo:for-each select="marc:subfield">
313
      <xslo:if test="contains('a', @code)">
312
      <xslo:if test="contains('a', @code)">
314
        <z:index name="pl:w pl:p">
313
        <z:index name="pl:w pl:p Any:w Any:p">
315
          <xslo:value-of select="."/>
314
          <xslo:value-of select="."/>
316
        </z:index>
315
        </z:index>
317
      </xslo:if>
316
      </xslo:if>
318
    </xslo:for-each>
317
    </xslo:for-each>
319
    <xslo:for-each select="marc:subfield">
318
    <xslo:for-each select="marc:subfield">
320
      <xslo:if test="contains('b', @code)">
319
      <xslo:if test="contains('b', @code)">
321
        <z:index name="Publisher:w Publisher:p">
320
        <z:index name="Publisher:w Publisher:p Any:w Any:p">
322
          <xslo:value-of select="."/>
321
          <xslo:value-of select="."/>
323
        </z:index>
322
        </z:index>
324
      </xslo:if>
323
      </xslo:if>
325
    </xslo:for-each>
324
    </xslo:for-each>
326
    <xslo:for-each select="marc:subfield">
325
    <xslo:for-each select="marc:subfield">
327
      <xslo:if test="contains('c', @code)">
326
      <xslo:if test="contains('c', @code)">
328
        <z:index name="copydate:w copydate:s">
327
        <z:index name="copydate:w copydate:s Any:w Any:p">
329
          <xslo:value-of select="."/>
328
          <xslo:value-of select="."/>
330
        </z:index>
329
        </z:index>
331
      </xslo:if>
330
      </xslo:if>
Lines 334-354 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
334
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
333
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
335
    <xslo:for-each select="marc:subfield">
334
    <xslo:for-each select="marc:subfield">
336
      <xslo:if test="contains('a', @code)">
335
      <xslo:if test="contains('a', @code)">
337
        <z:index name="Name-and-title:w">
336
        <z:index name="Name-and-title:w Any:w Any:p">
338
          <xslo:value-of select="."/>
337
          <xslo:value-of select="."/>
339
        </z:index>
338
        </z:index>
340
      </xslo:if>
339
      </xslo:if>
341
    </xslo:for-each>
340
    </xslo:for-each>
342
    <xslo:for-each select="marc:subfield">
341
    <xslo:for-each select="marc:subfield">
343
      <xslo:if test="contains('t', @code)">
342
      <xslo:if test="contains('t', @code)">
344
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
343
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Any:w Any:p">
345
          <xslo:value-of select="."/>
344
          <xslo:value-of select="."/>
346
        </z:index>
345
        </z:index>
347
      </xslo:if>
346
      </xslo:if>
348
    </xslo:for-each>
347
    </xslo:for-each>
349
    <xslo:for-each select="marc:subfield">
348
    <xslo:for-each select="marc:subfield">
350
      <xslo:if test="contains('9', @code)">
349
      <xslo:if test="contains('9', @code)">
351
        <z:index name="Koha-Auth-Number:w">
350
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
352
          <xslo:value-of select="."/>
351
          <xslo:value-of select="."/>
353
        </z:index>
352
        </z:index>
354
      </xslo:if>
353
      </xslo:if>
Lines 357-377 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
357
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
356
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
358
    <xslo:for-each select="marc:subfield">
357
    <xslo:for-each select="marc:subfield">
359
      <xslo:if test="contains('a', @code)">
358
      <xslo:if test="contains('a', @code)">
360
        <z:index name="Name-and-title:w">
359
        <z:index name="Name-and-title:w Any:w Any:p">
361
          <xslo:value-of select="."/>
360
          <xslo:value-of select="."/>
362
        </z:index>
361
        </z:index>
363
      </xslo:if>
362
      </xslo:if>
364
    </xslo:for-each>
363
    </xslo:for-each>
365
    <xslo:for-each select="marc:subfield">
364
    <xslo:for-each select="marc:subfield">
366
      <xslo:if test="contains('t', @code)">
365
      <xslo:if test="contains('t', @code)">
367
        <z:index name="Author-title:w Title:w Title-series:w">
366
        <z:index name="Author-title:w Title:w Title-series:w Any:w Any:p">
368
          <xslo:value-of select="."/>
367
          <xslo:value-of select="."/>
369
        </z:index>
368
        </z:index>
370
      </xslo:if>
369
      </xslo:if>
371
    </xslo:for-each>
370
    </xslo:for-each>
372
    <xslo:for-each select="marc:subfield">
371
    <xslo:for-each select="marc:subfield">
373
      <xslo:if test="contains('9', @code)">
372
      <xslo:if test="contains('9', @code)">
374
        <z:index name="Koha-Auth-Number:w">
373
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
375
          <xslo:value-of select="."/>
374
          <xslo:value-of select="."/>
376
        </z:index>
375
        </z:index>
377
      </xslo:if>
376
      </xslo:if>
Lines 380-393 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
380
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
379
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
381
    <xslo:for-each select="marc:subfield">
380
    <xslo:for-each select="marc:subfield">
382
      <xslo:if test="contains('a', @code)">
381
      <xslo:if test="contains('a', @code)">
383
        <z:index name="Name-and-title:w">
382
        <z:index name="Name-and-title:w Any:w Any:p">
384
          <xslo:value-of select="."/>
383
          <xslo:value-of select="."/>
385
        </z:index>
384
        </z:index>
386
      </xslo:if>
385
      </xslo:if>
387
    </xslo:for-each>
386
    </xslo:for-each>
388
    <xslo:for-each select="marc:subfield">
387
    <xslo:for-each select="marc:subfield">
389
      <xslo:if test="contains('t', @code)">
388
      <xslo:if test="contains('t', @code)">
390
        <z:index name="Author-title:w Title-series:w">
389
        <z:index name="Author-title:w Title-series:w Any:w Any:p">
391
          <xslo:value-of select="."/>
390
          <xslo:value-of select="."/>
392
        </z:index>
391
        </z:index>
393
      </xslo:if>
392
      </xslo:if>
Lines 396-409 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
396
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
395
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
397
    <xslo:for-each select="marc:subfield">
396
    <xslo:for-each select="marc:subfield">
398
      <xslo:if test="contains('a', @code)">
397
      <xslo:if test="contains('a', @code)">
399
        <z:index name="Title-series:w Title-series:p">
398
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
400
          <xslo:value-of select="."/>
399
          <xslo:value-of select="."/>
401
        </z:index>
400
        </z:index>
402
      </xslo:if>
401
      </xslo:if>
403
    </xslo:for-each>
402
    </xslo:for-each>
404
    <xslo:for-each select="marc:subfield">
403
    <xslo:for-each select="marc:subfield">
405
      <xslo:if test="contains('9', @code)">
404
      <xslo:if test="contains('9', @code)">
406
        <z:index name="Koha-Auth-Number:w">
405
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
407
          <xslo:value-of select="."/>
406
          <xslo:value-of select="."/>
408
        </z:index>
407
        </z:index>
409
      </xslo:if>
408
      </xslo:if>
Lines 412-425 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
412
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
411
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
413
    <xslo:for-each select="marc:subfield">
412
    <xslo:for-each select="marc:subfield">
414
      <xslo:if test="contains('a', @code)">
413
      <xslo:if test="contains('a', @code)">
415
        <z:index name="Title-series:w Title-series:p">
414
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
416
          <xslo:value-of select="."/>
415
          <xslo:value-of select="."/>
417
        </z:index>
416
        </z:index>
418
      </xslo:if>
417
      </xslo:if>
419
    </xslo:for-each>
418
    </xslo:for-each>
420
    <xslo:for-each select="marc:subfield">
419
    <xslo:for-each select="marc:subfield">
421
      <xslo:if test="contains('9', @code)">
420
      <xslo:if test="contains('9', @code)">
422
        <z:index name="Koha-Auth-Number:w">
421
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
423
          <xslo:value-of select="."/>
422
          <xslo:value-of select="."/>
424
        </z:index>
423
        </z:index>
425
      </xslo:if>
424
      </xslo:if>
Lines 428-441 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
428
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='505']">
427
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='505']">
429
    <xslo:for-each select="marc:subfield">
428
    <xslo:for-each select="marc:subfield">
430
      <xslo:if test="contains('r', @code)">
429
      <xslo:if test="contains('r', @code)">
431
        <z:index name="Author:w">
430
        <z:index name="Author:w Any:w Any:p">
432
          <xslo:value-of select="."/>
431
          <xslo:value-of select="."/>
433
        </z:index>
432
        </z:index>
434
      </xslo:if>
433
      </xslo:if>
435
    </xslo:for-each>
434
    </xslo:for-each>
436
    <xslo:for-each select="marc:subfield">
435
    <xslo:for-each select="marc:subfield">
437
      <xslo:if test="contains('t', @code)">
436
      <xslo:if test="contains('t', @code)">
438
        <z:index name="Title:w">
437
        <z:index name="Title:w Any:w Any:p">
439
          <xslo:value-of select="."/>
438
          <xslo:value-of select="."/>
440
        </z:index>
439
        </z:index>
441
      </xslo:if>
440
      </xslo:if>
Lines 444-450 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
444
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='521']">
443
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='521']">
445
    <xslo:for-each select="marc:subfield">
444
    <xslo:for-each select="marc:subfield">
446
      <xslo:if test="contains('a', @code)">
445
      <xslo:if test="contains('a', @code)">
447
        <z:index name="lex:n">
446
        <z:index name="lex:n Any:w Any:p">
448
          <xslo:value-of select="."/>
447
          <xslo:value-of select="."/>
449
        </z:index>
448
        </z:index>
450
      </xslo:if>
449
      </xslo:if>
Lines 453-466 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
453
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='526']">
452
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='526']">
454
    <xslo:for-each select="marc:subfield">
453
    <xslo:for-each select="marc:subfield">
455
      <xslo:if test="contains('c', @code)">
454
      <xslo:if test="contains('c', @code)">
456
        <z:index name="arl:w arl:n">
455
        <z:index name="arl:w arl:n Any:w Any:p">
457
          <xslo:value-of select="."/>
456
          <xslo:value-of select="."/>
458
        </z:index>
457
        </z:index>
459
      </xslo:if>
458
      </xslo:if>
460
    </xslo:for-each>
459
    </xslo:for-each>
461
    <xslo:for-each select="marc:subfield">
460
    <xslo:for-each select="marc:subfield">
462
      <xslo:if test="contains('d', @code)">
461
      <xslo:if test="contains('d', @code)">
463
        <z:index name="arp:w arp:n">
462
        <z:index name="arp:w arp:n Any:w Any:p">
464
          <xslo:value-of select="."/>
463
          <xslo:value-of select="."/>
465
        </z:index>
464
        </z:index>
466
      </xslo:if>
465
      </xslo:if>
Lines 469-489 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
469
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
468
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
470
    <xslo:for-each select="marc:subfield">
469
    <xslo:for-each select="marc:subfield">
471
      <xslo:if test="contains('a', @code)">
470
      <xslo:if test="contains('a', @code)">
472
        <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
471
        <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p Any:w Any:p">
473
          <xslo:value-of select="."/>
472
          <xslo:value-of select="."/>
474
        </z:index>
473
        </z:index>
475
      </xslo:if>
474
      </xslo:if>
476
    </xslo:for-each>
475
    </xslo:for-each>
477
    <xslo:for-each select="marc:subfield">
476
    <xslo:for-each select="marc:subfield">
478
      <xslo:if test="contains('t', @code)">
477
      <xslo:if test="contains('t', @code)">
479
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
478
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
480
          <xslo:value-of select="."/>
479
          <xslo:value-of select="."/>
481
        </z:index>
480
        </z:index>
482
      </xslo:if>
481
      </xslo:if>
483
    </xslo:for-each>
482
    </xslo:for-each>
484
    <xslo:for-each select="marc:subfield">
483
    <xslo:for-each select="marc:subfield">
485
      <xslo:if test="contains('9', @code)">
484
      <xslo:if test="contains('9', @code)">
486
        <z:index name="Koha-Auth-Number:w">
485
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
487
          <xslo:value-of select="."/>
486
          <xslo:value-of select="."/>
488
        </z:index>
487
        </z:index>
489
      </xslo:if>
488
      </xslo:if>
Lines 492-512 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
492
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
491
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
493
    <xslo:for-each select="marc:subfield">
492
    <xslo:for-each select="marc:subfield">
494
      <xslo:if test="contains('a', @code)">
493
      <xslo:if test="contains('a', @code)">
495
        <z:index name="Name-and-title:w Subject:w Subject:p">
494
        <z:index name="Name-and-title:w Subject:w Subject:p Any:w Any:p">
496
          <xslo:value-of select="."/>
495
          <xslo:value-of select="."/>
497
        </z:index>
496
        </z:index>
498
      </xslo:if>
497
      </xslo:if>
499
    </xslo:for-each>
498
    </xslo:for-each>
500
    <xslo:for-each select="marc:subfield">
499
    <xslo:for-each select="marc:subfield">
501
      <xslo:if test="contains('t', @code)">
500
      <xslo:if test="contains('t', @code)">
502
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
501
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
503
          <xslo:value-of select="."/>
502
          <xslo:value-of select="."/>
504
        </z:index>
503
        </z:index>
505
      </xslo:if>
504
      </xslo:if>
506
    </xslo:for-each>
505
    </xslo:for-each>
507
    <xslo:for-each select="marc:subfield">
506
    <xslo:for-each select="marc:subfield">
508
      <xslo:if test="contains('9', @code)">
507
      <xslo:if test="contains('9', @code)">
509
        <z:index name="Koha-Auth-Number:w">
508
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
510
          <xslo:value-of select="."/>
509
          <xslo:value-of select="."/>
511
        </z:index>
510
        </z:index>
512
      </xslo:if>
511
      </xslo:if>
Lines 515-535 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
515
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
514
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
516
    <xslo:for-each select="marc:subfield">
515
    <xslo:for-each select="marc:subfield">
517
      <xslo:if test="contains('a', @code)">
516
      <xslo:if test="contains('a', @code)">
518
        <z:index name="Name-and-title:w Subject:w Subject:p">
517
        <z:index name="Name-and-title:w Subject:w Subject:p Any:w Any:p">
519
          <xslo:value-of select="."/>
518
          <xslo:value-of select="."/>
520
        </z:index>
519
        </z:index>
521
      </xslo:if>
520
      </xslo:if>
522
    </xslo:for-each>
521
    </xslo:for-each>
523
    <xslo:for-each select="marc:subfield">
522
    <xslo:for-each select="marc:subfield">
524
      <xslo:if test="contains('t', @code)">
523
      <xslo:if test="contains('t', @code)">
525
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
524
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
526
          <xslo:value-of select="."/>
525
          <xslo:value-of select="."/>
527
        </z:index>
526
        </z:index>
528
      </xslo:if>
527
      </xslo:if>
529
    </xslo:for-each>
528
    </xslo:for-each>
530
    <xslo:for-each select="marc:subfield">
529
    <xslo:for-each select="marc:subfield">
531
      <xslo:if test="contains('9', @code)">
530
      <xslo:if test="contains('9', @code)">
532
        <z:index name="Koha-Auth-Number:w">
531
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
533
          <xslo:value-of select="."/>
532
          <xslo:value-of select="."/>
534
        </z:index>
533
        </z:index>
535
      </xslo:if>
534
      </xslo:if>
Lines 538-558 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
538
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
537
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
539
    <xslo:for-each select="marc:subfield">
538
    <xslo:for-each select="marc:subfield">
540
      <xslo:if test="contains('n', @code)">
539
      <xslo:if test="contains('n', @code)">
541
        <z:index name="Thematic-number:w Subject:w Subject:p">
540
        <z:index name="Thematic-number:w Subject:w Subject:p Any:w Any:p">
542
          <xslo:value-of select="."/>
541
          <xslo:value-of select="."/>
543
        </z:index>
542
        </z:index>
544
      </xslo:if>
543
      </xslo:if>
545
    </xslo:for-each>
544
    </xslo:for-each>
546
    <xslo:for-each select="marc:subfield">
545
    <xslo:for-each select="marc:subfield">
547
      <xslo:if test="contains('r', @code)">
546
      <xslo:if test="contains('r', @code)">
548
        <z:index name="Music-key:w Subject:w Subject:p">
547
        <z:index name="Music-key:w Subject:w Subject:p Any:w Any:p">
549
          <xslo:value-of select="."/>
548
          <xslo:value-of select="."/>
550
        </z:index>
549
        </z:index>
551
      </xslo:if>
550
      </xslo:if>
552
    </xslo:for-each>
551
    </xslo:for-each>
553
    <xslo:for-each select="marc:subfield">
552
    <xslo:for-each select="marc:subfield">
554
      <xslo:if test="contains('9', @code)">
553
      <xslo:if test="contains('9', @code)">
555
        <z:index name="Koha-Auth-Number:w">
554
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
556
          <xslo:value-of select="."/>
555
          <xslo:value-of select="."/>
557
        </z:index>
556
        </z:index>
558
      </xslo:if>
557
      </xslo:if>
Lines 561-567 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
561
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
560
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
562
    <xslo:for-each select="marc:subfield">
561
    <xslo:for-each select="marc:subfield">
563
      <xslo:if test="contains('9', @code)">
562
      <xslo:if test="contains('9', @code)">
564
        <z:index name="Koha-Auth-Number:w">
563
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
565
          <xslo:value-of select="."/>
564
          <xslo:value-of select="."/>
566
        </z:index>
565
        </z:index>
567
      </xslo:if>
566
      </xslo:if>
Lines 570-576 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
570
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
569
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
571
    <xslo:for-each select="marc:subfield">
570
    <xslo:for-each select="marc:subfield">
572
      <xslo:if test="contains('9', @code)">
571
      <xslo:if test="contains('9', @code)">
573
        <z:index name="Koha-Auth-Number:w">
572
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
574
          <xslo:value-of select="."/>
573
          <xslo:value-of select="."/>
575
        </z:index>
574
        </z:index>
576
      </xslo:if>
575
      </xslo:if>
Lines 579-585 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
579
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
578
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
580
    <xslo:for-each select="marc:subfield">
579
    <xslo:for-each select="marc:subfield">
581
      <xslo:if test="contains('9', @code)">
580
      <xslo:if test="contains('9', @code)">
582
        <z:index name="Koha-Auth-Number:w">
581
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
583
          <xslo:value-of select="."/>
582
          <xslo:value-of select="."/>
584
        </z:index>
583
        </z:index>
585
      </xslo:if>
584
      </xslo:if>
Lines 588-594 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
588
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
587
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
589
    <xslo:for-each select="marc:subfield">
588
    <xslo:for-each select="marc:subfield">
590
      <xslo:if test="contains('9', @code)">
589
      <xslo:if test="contains('9', @code)">
591
        <z:index name="Koha-Auth-Number:w">
590
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
592
          <xslo:value-of select="."/>
591
          <xslo:value-of select="."/>
593
        </z:index>
592
        </z:index>
594
      </xslo:if>
593
      </xslo:if>
Lines 597-603 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
597
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
596
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
598
    <xslo:for-each select="marc:subfield">
597
    <xslo:for-each select="marc:subfield">
599
      <xslo:if test="contains('9', @code)">
598
      <xslo:if test="contains('9', @code)">
600
        <z:index name="Koha-Auth-Number:w">
599
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
601
          <xslo:value-of select="."/>
600
          <xslo:value-of select="."/>
602
        </z:index>
601
        </z:index>
603
      </xslo:if>
602
      </xslo:if>
Lines 606-612 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
606
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
605
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
607
    <xslo:for-each select="marc:subfield">
606
    <xslo:for-each select="marc:subfield">
608
      <xslo:if test="contains('9', @code)">
607
      <xslo:if test="contains('9', @code)">
609
        <z:index name="Koha-Auth-Number:w">
608
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
610
          <xslo:value-of select="."/>
609
          <xslo:value-of select="."/>
611
        </z:index>
610
        </z:index>
612
      </xslo:if>
611
      </xslo:if>
Lines 615-621 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
615
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
614
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
616
    <xslo:for-each select="marc:subfield">
615
    <xslo:for-each select="marc:subfield">
617
      <xslo:if test="contains('9', @code)">
616
      <xslo:if test="contains('9', @code)">
618
        <z:index name="Koha-Auth-Number:w">
617
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
619
          <xslo:value-of select="."/>
618
          <xslo:value-of select="."/>
620
        </z:index>
619
        </z:index>
621
      </xslo:if>
620
      </xslo:if>
Lines 624-630 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
624
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
623
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
625
    <xslo:for-each select="marc:subfield">
624
    <xslo:for-each select="marc:subfield">
626
      <xslo:if test="contains('9', @code)">
625
      <xslo:if test="contains('9', @code)">
627
        <z:index name="Koha-Auth-Number:w">
626
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
628
          <xslo:value-of select="."/>
627
          <xslo:value-of select="."/>
629
        </z:index>
628
        </z:index>
630
      </xslo:if>
629
      </xslo:if>
Lines 633-653 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
633
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='658']">
632
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='658']">
634
    <xslo:for-each select="marc:subfield">
633
    <xslo:for-each select="marc:subfield">
635
      <xslo:if test="contains('a', @code)">
634
      <xslo:if test="contains('a', @code)">
636
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
635
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p Any:w Any:p">
637
          <xslo:value-of select="."/>
636
          <xslo:value-of select="."/>
638
        </z:index>
637
        </z:index>
639
      </xslo:if>
638
      </xslo:if>
640
    </xslo:for-each>
639
    </xslo:for-each>
641
    <xslo:for-each select="marc:subfield">
640
    <xslo:for-each select="marc:subfield">
642
      <xslo:if test="contains('b', @code)">
641
      <xslo:if test="contains('b', @code)">
643
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
642
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p Any:w Any:p">
644
          <xslo:value-of select="."/>
643
          <xslo:value-of select="."/>
645
        </z:index>
644
        </z:index>
646
      </xslo:if>
645
      </xslo:if>
647
    </xslo:for-each>
646
    </xslo:for-each>
648
    <xslo:for-each select="marc:subfield">
647
    <xslo:for-each select="marc:subfield">
649
      <xslo:if test="contains('c', @code)">
648
      <xslo:if test="contains('c', @code)">
650
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p">
649
        <z:index name="curriculum:w curriculum:p Subject:w Subject:p Any:w Any:p">
651
          <xslo:value-of select="."/>
650
          <xslo:value-of select="."/>
652
        </z:index>
651
        </z:index>
653
      </xslo:if>
652
      </xslo:if>
Lines 656-662 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
656
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
655
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
657
    <xslo:for-each select="marc:subfield">
656
    <xslo:for-each select="marc:subfield">
658
      <xslo:if test="contains('9', @code)">
657
      <xslo:if test="contains('9', @code)">
659
        <z:index name="Koha-Auth-Number:w">
658
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
660
          <xslo:value-of select="."/>
659
          <xslo:value-of select="."/>
661
        </z:index>
660
        </z:index>
662
      </xslo:if>
661
      </xslo:if>
Lines 665-699 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
665
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
664
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
666
    <xslo:for-each select="marc:subfield">
665
    <xslo:for-each select="marc:subfield">
667
      <xslo:if test="contains('9', @code)">
666
      <xslo:if test="contains('9', @code)">
668
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
667
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
669
          <xslo:value-of select="."/>
668
          <xslo:value-of select="."/>
670
        </z:index>
669
        </z:index>
671
      </xslo:if>
670
      </xslo:if>
672
    </xslo:for-each>
671
    </xslo:for-each>
673
    <xslo:for-each select="marc:subfield">
672
    <xslo:for-each select="marc:subfield">
674
      <xslo:if test="contains('a', @code)">
673
      <xslo:if test="contains('a', @code)">
675
        <z:index name="Author:w Author:p">
674
        <z:index name="Author:w Author:p Any:w Any:p">
676
          <xslo:value-of select="."/>
675
          <xslo:value-of select="."/>
677
        </z:index>
676
        </z:index>
678
      </xslo:if>
677
      </xslo:if>
679
    </xslo:for-each>
678
    </xslo:for-each>
680
    <xslo:for-each select="marc:subfield">
679
    <xslo:for-each select="marc:subfield">
681
      <xslo:if test="contains('n', @code)">
680
      <xslo:if test="contains('n', @code)">
682
        <z:index name="Thematic-number:w">
681
        <z:index name="Thematic-number:w Any:w Any:p">
683
          <xslo:value-of select="."/>
682
          <xslo:value-of select="."/>
684
        </z:index>
683
        </z:index>
685
      </xslo:if>
684
      </xslo:if>
686
    </xslo:for-each>
685
    </xslo:for-each>
687
    <xslo:for-each select="marc:subfield">
686
    <xslo:for-each select="marc:subfield">
688
      <xslo:if test="contains('r', @code)">
687
      <xslo:if test="contains('r', @code)">
689
        <z:index name="Music-key:w">
688
        <z:index name="Music-key:w Any:w Any:p">
690
          <xslo:value-of select="."/>
689
          <xslo:value-of select="."/>
691
        </z:index>
690
        </z:index>
692
      </xslo:if>
691
      </xslo:if>
693
    </xslo:for-each>
692
    </xslo:for-each>
694
    <xslo:for-each select="marc:subfield">
693
    <xslo:for-each select="marc:subfield">
695
      <xslo:if test="contains('t', @code)">
694
      <xslo:if test="contains('t', @code)">
696
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
695
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w Any:w Any:p">
697
          <xslo:value-of select="."/>
696
          <xslo:value-of select="."/>
698
        </z:index>
697
        </z:index>
699
      </xslo:if>
698
      </xslo:if>
Lines 702-722 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
702
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
701
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
703
    <xslo:for-each select="marc:subfield">
702
    <xslo:for-each select="marc:subfield">
704
      <xslo:if test="contains('t', @code)">
703
      <xslo:if test="contains('t', @code)">
705
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
704
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w Any:w Any:p">
706
          <xslo:value-of select="."/>
705
          <xslo:value-of select="."/>
707
        </z:index>
706
        </z:index>
708
      </xslo:if>
707
      </xslo:if>
709
    </xslo:for-each>
708
    </xslo:for-each>
710
    <xslo:for-each select="marc:subfield">
709
    <xslo:for-each select="marc:subfield">
711
      <xslo:if test="contains('a', @code)">
710
      <xslo:if test="contains('a', @code)">
712
        <z:index name="Name-and-title:w">
711
        <z:index name="Name-and-title:w Any:w Any:p">
713
          <xslo:value-of select="."/>
712
          <xslo:value-of select="."/>
714
        </z:index>
713
        </z:index>
715
      </xslo:if>
714
      </xslo:if>
716
    </xslo:for-each>
715
    </xslo:for-each>
717
    <xslo:for-each select="marc:subfield">
716
    <xslo:for-each select="marc:subfield">
718
      <xslo:if test="contains('9', @code)">
717
      <xslo:if test="contains('9', @code)">
719
        <z:index name="Koha-Auth-Number:w">
718
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
720
          <xslo:value-of select="."/>
719
          <xslo:value-of select="."/>
721
        </z:index>
720
        </z:index>
722
      </xslo:if>
721
      </xslo:if>
Lines 725-745 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
725
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
724
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
726
    <xslo:for-each select="marc:subfield">
725
    <xslo:for-each select="marc:subfield">
727
      <xslo:if test="contains('a', @code)">
726
      <xslo:if test="contains('a', @code)">
728
        <z:index name="Name-and-title:w">
727
        <z:index name="Name-and-title:w Any:w Any:p">
729
          <xslo:value-of select="."/>
728
          <xslo:value-of select="."/>
730
        </z:index>
729
        </z:index>
731
      </xslo:if>
730
      </xslo:if>
732
    </xslo:for-each>
731
    </xslo:for-each>
733
    <xslo:for-each select="marc:subfield">
732
    <xslo:for-each select="marc:subfield">
734
      <xslo:if test="contains('t', @code)">
733
      <xslo:if test="contains('t', @code)">
735
        <z:index name="Author-title:w Title:w Title-uniform:w">
734
        <z:index name="Author-title:w Title:w Title-uniform:w Any:w Any:p">
736
          <xslo:value-of select="."/>
735
          <xslo:value-of select="."/>
737
        </z:index>
736
        </z:index>
738
      </xslo:if>
737
      </xslo:if>
739
    </xslo:for-each>
738
    </xslo:for-each>
740
    <xslo:for-each select="marc:subfield">
739
    <xslo:for-each select="marc:subfield">
741
      <xslo:if test="contains('9', @code)">
740
      <xslo:if test="contains('9', @code)">
742
        <z:index name="Koha-Auth-Number:w">
741
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
743
          <xslo:value-of select="."/>
742
          <xslo:value-of select="."/>
744
        </z:index>
743
        </z:index>
745
      </xslo:if>
744
      </xslo:if>
Lines 748-768 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
748
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
747
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
749
    <xslo:for-each select="marc:subfield">
748
    <xslo:for-each select="marc:subfield">
750
      <xslo:if test="contains('n', @code)">
749
      <xslo:if test="contains('n', @code)">
751
        <z:index name="Thematic-number:w">
750
        <z:index name="Thematic-number:w Any:w Any:p">
752
          <xslo:value-of select="."/>
751
          <xslo:value-of select="."/>
753
        </z:index>
752
        </z:index>
754
      </xslo:if>
753
      </xslo:if>
755
    </xslo:for-each>
754
    </xslo:for-each>
756
    <xslo:for-each select="marc:subfield">
755
    <xslo:for-each select="marc:subfield">
757
      <xslo:if test="contains('r', @code)">
756
      <xslo:if test="contains('r', @code)">
758
        <z:index name="Music-key:w">
757
        <z:index name="Music-key:w Any:w Any:p">
759
          <xslo:value-of select="."/>
758
          <xslo:value-of select="."/>
760
        </z:index>
759
        </z:index>
761
      </xslo:if>
760
      </xslo:if>
762
    </xslo:for-each>
761
    </xslo:for-each>
763
    <xslo:for-each select="marc:subfield">
762
    <xslo:for-each select="marc:subfield">
764
      <xslo:if test="contains('9', @code)">
763
      <xslo:if test="contains('9', @code)">
765
        <z:index name="Koha-Auth-Number:w">
764
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
766
          <xslo:value-of select="."/>
765
          <xslo:value-of select="."/>
767
        </z:index>
766
        </z:index>
768
      </xslo:if>
767
      </xslo:if>
Lines 771-784 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
771
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='751']">
770
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='751']">
772
    <xslo:for-each select="marc:subfield">
771
    <xslo:for-each select="marc:subfield">
773
      <xslo:if test="contains('a', @code)">
772
      <xslo:if test="contains('a', @code)">
774
        <z:index name="Name-geographic:w">
773
        <z:index name="Name-geographic:w Any:w Any:p">
775
          <xslo:value-of select="."/>
774
          <xslo:value-of select="."/>
776
        </z:index>
775
        </z:index>
777
      </xslo:if>
776
      </xslo:if>
778
    </xslo:for-each>
777
    </xslo:for-each>
779
    <xslo:for-each select="marc:subfield">
778
    <xslo:for-each select="marc:subfield">
780
      <xslo:if test="contains('9', @code)">
779
      <xslo:if test="contains('9', @code)">
781
        <z:index name="Koha-Auth-Number:w">
780
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
782
          <xslo:value-of select="."/>
781
          <xslo:value-of select="."/>
783
        </z:index>
782
        </z:index>
784
      </xslo:if>
783
      </xslo:if>
Lines 787-793 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
787
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='770']">
786
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='770']">
788
    <xslo:for-each select="marc:subfield">
787
    <xslo:for-each select="marc:subfield">
789
      <xslo:if test="contains('w', @code)">
788
      <xslo:if test="contains('w', @code)">
790
        <z:index name="Record-control-number:w">
789
        <z:index name="Record-control-number:w Any:w Any:p">
791
          <xslo:value-of select="."/>
790
          <xslo:value-of select="."/>
792
        </z:index>
791
        </z:index>
793
      </xslo:if>
792
      </xslo:if>
Lines 796-802 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
796
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='772']">
795
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='772']">
797
    <xslo:for-each select="marc:subfield">
796
    <xslo:for-each select="marc:subfield">
798
      <xslo:if test="contains('w', @code)">
797
      <xslo:if test="contains('w', @code)">
799
        <z:index name="Record-control-number:w">
798
        <z:index name="Record-control-number:w Any:w Any:p">
800
          <xslo:value-of select="."/>
799
          <xslo:value-of select="."/>
801
        </z:index>
800
        </z:index>
802
      </xslo:if>
801
      </xslo:if>
Lines 805-832 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
805
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
804
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
806
    <xslo:for-each select="marc:subfield">
805
    <xslo:for-each select="marc:subfield">
807
      <xslo:if test="contains('a', @code)">
806
      <xslo:if test="contains('a', @code)">
808
        <z:index name="Host-item:w">
807
        <z:index name="Host-item:w Any:w Any:p">
809
          <xslo:value-of select="."/>
808
          <xslo:value-of select="."/>
810
        </z:index>
809
        </z:index>
811
      </xslo:if>
810
      </xslo:if>
812
    </xslo:for-each>
811
    </xslo:for-each>
813
    <xslo:for-each select="marc:subfield">
812
    <xslo:for-each select="marc:subfield">
814
      <xslo:if test="contains('9', @code)">
813
      <xslo:if test="contains('9', @code)">
815
        <z:index name="Host-Item-Number:w">
814
        <z:index name="Host-Item-Number:w Any:w Any:p">
816
          <xslo:value-of select="."/>
815
          <xslo:value-of select="."/>
817
        </z:index>
816
        </z:index>
818
      </xslo:if>
817
      </xslo:if>
819
    </xslo:for-each>
818
    </xslo:for-each>
820
    <xslo:for-each select="marc:subfield">
819
    <xslo:for-each select="marc:subfield">
821
      <xslo:if test="contains('t', @code)">
820
      <xslo:if test="contains('t', @code)">
822
        <z:index name="Host-item:w">
821
        <z:index name="Host-item:w Any:w Any:p">
823
          <xslo:value-of select="."/>
822
          <xslo:value-of select="."/>
824
        </z:index>
823
        </z:index>
825
      </xslo:if>
824
      </xslo:if>
826
    </xslo:for-each>
825
    </xslo:for-each>
827
    <xslo:for-each select="marc:subfield">
826
    <xslo:for-each select="marc:subfield">
828
      <xslo:if test="contains('w', @code)">
827
      <xslo:if test="contains('w', @code)">
829
        <z:index name="Record-control-number:w">
828
        <z:index name="Record-control-number:w Any:w Any:p">
830
          <xslo:value-of select="."/>
829
          <xslo:value-of select="."/>
831
        </z:index>
830
        </z:index>
832
      </xslo:if>
831
      </xslo:if>
Lines 835-841 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
835
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='774']">
834
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='774']">
836
    <xslo:for-each select="marc:subfield">
835
    <xslo:for-each select="marc:subfield">
837
      <xslo:if test="contains('w', @code)">
836
      <xslo:if test="contains('w', @code)">
838
        <z:index name="Record-control-number:w">
837
        <z:index name="Record-control-number:w Any:w Any:p">
839
          <xslo:value-of select="."/>
838
          <xslo:value-of select="."/>
840
        </z:index>
839
        </z:index>
841
      </xslo:if>
840
      </xslo:if>
Lines 844-850 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
844
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='775']">
843
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='775']">
845
    <xslo:for-each select="marc:subfield">
844
    <xslo:for-each select="marc:subfield">
846
      <xslo:if test="contains('w', @code)">
845
      <xslo:if test="contains('w', @code)">
847
        <z:index name="Record-control-number:w">
846
        <z:index name="Record-control-number:w Any:w Any:p">
848
          <xslo:value-of select="."/>
847
          <xslo:value-of select="."/>
849
        </z:index>
848
        </z:index>
850
      </xslo:if>
849
      </xslo:if>
Lines 853-859 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
853
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='776']">
852
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='776']">
854
    <xslo:for-each select="marc:subfield">
853
    <xslo:for-each select="marc:subfield">
855
      <xslo:if test="contains('w', @code)">
854
      <xslo:if test="contains('w', @code)">
856
        <z:index name="Record-control-number:w">
855
        <z:index name="Record-control-number:w Any:w Any:p">
857
          <xslo:value-of select="."/>
856
          <xslo:value-of select="."/>
858
        </z:index>
857
        </z:index>
859
      </xslo:if>
858
      </xslo:if>
Lines 862-868 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
862
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='777']">
861
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='777']">
863
    <xslo:for-each select="marc:subfield">
862
    <xslo:for-each select="marc:subfield">
864
      <xslo:if test="contains('w', @code)">
863
      <xslo:if test="contains('w', @code)">
865
        <z:index name="Record-control-number:w">
864
        <z:index name="Record-control-number:w Any:w Any:p">
866
          <xslo:value-of select="."/>
865
          <xslo:value-of select="."/>
867
        </z:index>
866
        </z:index>
868
      </xslo:if>
867
      </xslo:if>
Lines 871-884 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
871
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
870
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
872
    <xslo:for-each select="marc:subfield">
871
    <xslo:for-each select="marc:subfield">
873
      <xslo:if test="contains('t', @code)">
872
      <xslo:if test="contains('t', @code)">
874
        <z:index name="Title:w">
873
        <z:index name="Title:w Any:w Any:p">
875
          <xslo:value-of select="."/>
874
          <xslo:value-of select="."/>
876
        </z:index>
875
        </z:index>
877
      </xslo:if>
876
      </xslo:if>
878
    </xslo:for-each>
877
    </xslo:for-each>
879
    <xslo:for-each select="marc:subfield">
878
    <xslo:for-each select="marc:subfield">
880
      <xslo:if test="contains('w', @code)">
879
      <xslo:if test="contains('w', @code)">
881
        <z:index name="Record-control-number:w">
880
        <z:index name="Record-control-number:w Any:w Any:p">
882
          <xslo:value-of select="."/>
881
          <xslo:value-of select="."/>
883
        </z:index>
882
        </z:index>
884
      </xslo:if>
883
      </xslo:if>
Lines 887-893 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
887
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='785']">
886
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='785']">
888
    <xslo:for-each select="marc:subfield">
887
    <xslo:for-each select="marc:subfield">
889
      <xslo:if test="contains('w', @code)">
888
      <xslo:if test="contains('w', @code)">
890
        <z:index name="Record-control-number:w">
889
        <z:index name="Record-control-number:w Any:w Any:p">
891
          <xslo:value-of select="."/>
890
          <xslo:value-of select="."/>
892
        </z:index>
891
        </z:index>
893
      </xslo:if>
892
      </xslo:if>
Lines 896-902 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
896
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='787']">
895
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='787']">
897
    <xslo:for-each select="marc:subfield">
896
    <xslo:for-each select="marc:subfield">
898
      <xslo:if test="contains('w', @code)">
897
      <xslo:if test="contains('w', @code)">
899
        <z:index name="Record-control-number:w">
898
        <z:index name="Record-control-number:w Any:w Any:p">
900
          <xslo:value-of select="."/>
899
          <xslo:value-of select="."/>
901
        </z:index>
900
        </z:index>
902
      </xslo:if>
901
      </xslo:if>
Lines 905-932 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
905
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
904
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
906
    <xslo:for-each select="marc:subfield">
905
    <xslo:for-each select="marc:subfield">
907
      <xslo:if test="contains('a', @code)">
906
      <xslo:if test="contains('a', @code)">
908
        <z:index name="Name-and-title:w Title-series:w Title-series:p">
907
        <z:index name="Name-and-title:w Title-series:w Title-series:p Any:w Any:p">
909
          <xslo:value-of select="."/>
908
          <xslo:value-of select="."/>
910
        </z:index>
909
        </z:index>
911
      </xslo:if>
910
      </xslo:if>
912
    </xslo:for-each>
911
    </xslo:for-each>
913
    <xslo:for-each select="marc:subfield">
912
    <xslo:for-each select="marc:subfield">
914
      <xslo:if test="contains('t', @code)">
913
      <xslo:if test="contains('t', @code)">
915
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
914
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p Any:w Any:p">
916
          <xslo:value-of select="."/>
915
          <xslo:value-of select="."/>
917
        </z:index>
916
        </z:index>
918
      </xslo:if>
917
      </xslo:if>
919
    </xslo:for-each>
918
    </xslo:for-each>
920
    <xslo:for-each select="marc:subfield">
919
    <xslo:for-each select="marc:subfield">
921
      <xslo:if test="contains('9', @code)">
920
      <xslo:if test="contains('9', @code)">
922
        <z:index name="Koha-Auth-Number:w">
921
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
923
          <xslo:value-of select="."/>
922
          <xslo:value-of select="."/>
924
        </z:index>
923
        </z:index>
925
      </xslo:if>
924
      </xslo:if>
926
    </xslo:for-each>
925
    </xslo:for-each>
927
    <xslo:for-each select="marc:subfield">
926
    <xslo:for-each select="marc:subfield">
928
      <xslo:if test="contains('w', @code)">
927
      <xslo:if test="contains('w', @code)">
929
        <z:index name="Record-control-number:w">
928
        <z:index name="Record-control-number:w Any:w Any:p">
930
          <xslo:value-of select="."/>
929
          <xslo:value-of select="."/>
931
        </z:index>
930
        </z:index>
932
      </xslo:if>
931
      </xslo:if>
Lines 935-962 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
935
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
934
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
936
    <xslo:for-each select="marc:subfield">
935
    <xslo:for-each select="marc:subfield">
937
      <xslo:if test="contains('a', @code)">
936
      <xslo:if test="contains('a', @code)">
938
        <z:index name="Name-and-title:w Title-series:w Title-series:p">
937
        <z:index name="Name-and-title:w Title-series:w Title-series:p Any:w Any:p">
939
          <xslo:value-of select="."/>
938
          <xslo:value-of select="."/>
940
        </z:index>
939
        </z:index>
941
      </xslo:if>
940
      </xslo:if>
942
    </xslo:for-each>
941
    </xslo:for-each>
943
    <xslo:for-each select="marc:subfield">
942
    <xslo:for-each select="marc:subfield">
944
      <xslo:if test="contains('t', @code)">
943
      <xslo:if test="contains('t', @code)">
945
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
944
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p Any:w Any:p">
946
          <xslo:value-of select="."/>
945
          <xslo:value-of select="."/>
947
        </z:index>
946
        </z:index>
948
      </xslo:if>
947
      </xslo:if>
949
    </xslo:for-each>
948
    </xslo:for-each>
950
    <xslo:for-each select="marc:subfield">
949
    <xslo:for-each select="marc:subfield">
951
      <xslo:if test="contains('w', @code)">
950
      <xslo:if test="contains('w', @code)">
952
        <z:index name="Record-control-number:w">
951
        <z:index name="Record-control-number:w Any:w Any:p">
953
          <xslo:value-of select="."/>
952
          <xslo:value-of select="."/>
954
        </z:index>
953
        </z:index>
955
      </xslo:if>
954
      </xslo:if>
956
    </xslo:for-each>
955
    </xslo:for-each>
957
    <xslo:for-each select="marc:subfield">
956
    <xslo:for-each select="marc:subfield">
958
      <xslo:if test="contains('9', @code)">
957
      <xslo:if test="contains('9', @code)">
959
        <z:index name="Koha-Auth-Number:w">
958
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
960
          <xslo:value-of select="."/>
959
          <xslo:value-of select="."/>
961
        </z:index>
960
        </z:index>
962
      </xslo:if>
961
      </xslo:if>
Lines 965-992 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
965
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
964
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
966
    <xslo:for-each select="marc:subfield">
965
    <xslo:for-each select="marc:subfield">
967
      <xslo:if test="contains('a', @code)">
966
      <xslo:if test="contains('a', @code)">
968
        <z:index name="Name-and-title:w Title-series:w Title-series:p">
967
        <z:index name="Name-and-title:w Title-series:w Title-series:p Any:w Any:p">
969
          <xslo:value-of select="."/>
968
          <xslo:value-of select="."/>
970
        </z:index>
969
        </z:index>
971
      </xslo:if>
970
      </xslo:if>
972
    </xslo:for-each>
971
    </xslo:for-each>
973
    <xslo:for-each select="marc:subfield">
972
    <xslo:for-each select="marc:subfield">
974
      <xslo:if test="contains('9', @code)">
973
      <xslo:if test="contains('9', @code)">
975
        <z:index name="Koha-Auth-Number:w">
974
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
976
          <xslo:value-of select="."/>
975
          <xslo:value-of select="."/>
977
        </z:index>
976
        </z:index>
978
      </xslo:if>
977
      </xslo:if>
979
    </xslo:for-each>
978
    </xslo:for-each>
980
    <xslo:for-each select="marc:subfield">
979
    <xslo:for-each select="marc:subfield">
981
      <xslo:if test="contains('t', @code)">
980
      <xslo:if test="contains('t', @code)">
982
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p">
981
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Title-series:p Any:w Any:p">
983
          <xslo:value-of select="."/>
982
          <xslo:value-of select="."/>
984
        </z:index>
983
        </z:index>
985
      </xslo:if>
984
      </xslo:if>
986
    </xslo:for-each>
985
    </xslo:for-each>
987
    <xslo:for-each select="marc:subfield">
986
    <xslo:for-each select="marc:subfield">
988
      <xslo:if test="contains('w', @code)">
987
      <xslo:if test="contains('w', @code)">
989
        <z:index name="Record-control-number:w">
988
        <z:index name="Record-control-number:w Any:w Any:p">
990
          <xslo:value-of select="."/>
989
          <xslo:value-of select="."/>
991
        </z:index>
990
        </z:index>
992
      </xslo:if>
991
      </xslo:if>
Lines 995-1008 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
995
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
994
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
996
    <xslo:for-each select="marc:subfield">
995
    <xslo:for-each select="marc:subfield">
997
      <xslo:if test="contains('w', @code)">
996
      <xslo:if test="contains('w', @code)">
998
        <z:index name="Record-control-number:w">
997
        <z:index name="Record-control-number:w Any:w Any:p">
999
          <xslo:value-of select="."/>
998
          <xslo:value-of select="."/>
1000
        </z:index>
999
        </z:index>
1001
      </xslo:if>
1000
      </xslo:if>
1002
    </xslo:for-each>
1001
    </xslo:for-each>
1003
    <xslo:for-each select="marc:subfield">
1002
    <xslo:for-each select="marc:subfield">
1004
      <xslo:if test="contains('9', @code)">
1003
      <xslo:if test="contains('9', @code)">
1005
        <z:index name="Koha-Auth-Number:w">
1004
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
1006
          <xslo:value-of select="."/>
1005
          <xslo:value-of select="."/>
1007
        </z:index>
1006
        </z:index>
1008
      </xslo:if>
1007
      </xslo:if>
Lines 1011-1024 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1011
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1010
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1012
    <xslo:for-each select="marc:subfield">
1011
    <xslo:for-each select="marc:subfield">
1013
      <xslo:if test="contains('c', @code)">
1012
      <xslo:if test="contains('c', @code)">
1014
        <z:index name="Local-Number:n Local-Number:w Local-Number:s">
1013
        <z:index name="Local-Number:n Local-Number:w Local-Number:s Any:w Any:p">
1015
          <xslo:value-of select="."/>
1014
          <xslo:value-of select="."/>
1016
        </z:index>
1015
        </z:index>
1017
      </xslo:if>
1016
      </xslo:if>
1018
    </xslo:for-each>
1017
    </xslo:for-each>
1019
    <xslo:for-each select="marc:subfield">
1018
    <xslo:for-each select="marc:subfield">
1020
      <xslo:if test="contains('d', @code)">
1019
      <xslo:if test="contains('d', @code)">
1021
        <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
1020
        <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s Any:w Any:p">
1022
          <xslo:value-of select="."/>
1021
          <xslo:value-of select="."/>
1023
        </z:index>
1022
        </z:index>
1024
      </xslo:if>
1023
      </xslo:if>
Lines 1027-1089 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1027
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1026
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1028
    <xslo:for-each select="marc:subfield">
1027
    <xslo:for-each select="marc:subfield">
1029
      <xslo:if test="contains('0', @code)">
1028
      <xslo:if test="contains('0', @code)">
1030
        <z:index name="totalissues:n totalissues:s">
1029
        <z:index name="totalissues:n totalissues:s Any:w Any:p">
1031
          <xslo:value-of select="."/>
1030
          <xslo:value-of select="."/>
1032
        </z:index>
1031
        </z:index>
1033
      </xslo:if>
1032
      </xslo:if>
1034
    </xslo:for-each>
1033
    </xslo:for-each>
1035
    <xslo:for-each select="marc:subfield">
1034
    <xslo:for-each select="marc:subfield">
1036
      <xslo:if test="contains('2', @code)">
1035
      <xslo:if test="contains('2', @code)">
1037
        <z:index name="cn-bib-source:w">
1036
        <z:index name="cn-bib-source:w Any:w Any:p">
1038
          <xslo:value-of select="."/>
1037
          <xslo:value-of select="."/>
1039
        </z:index>
1038
        </z:index>
1040
      </xslo:if>
1039
      </xslo:if>
1041
    </xslo:for-each>
1040
    </xslo:for-each>
1042
    <xslo:for-each select="marc:subfield">
1041
    <xslo:for-each select="marc:subfield">
1043
      <xslo:if test="contains('6', @code)">
1042
      <xslo:if test="contains('6', @code)">
1044
        <z:index name="cn-bib-sort:n cn-bib-sort:s">
1043
        <z:index name="cn-bib-sort:n cn-bib-sort:s Any:w Any:p">
1045
          <xslo:value-of select="."/>
1044
          <xslo:value-of select="."/>
1046
        </z:index>
1045
        </z:index>
1047
      </xslo:if>
1046
      </xslo:if>
1048
    </xslo:for-each>
1047
    </xslo:for-each>
1049
    <xslo:for-each select="marc:subfield">
1048
    <xslo:for-each select="marc:subfield">
1050
      <xslo:if test="contains('c', @code)">
1049
      <xslo:if test="contains('c', @code)">
1051
        <z:index name="itemtype:w itemtype:p itype:w itype:p">
1050
        <z:index name="itemtype:w itemtype:p itype:w itype:p Any:w Any:p">
1052
          <xslo:value-of select="."/>
1051
          <xslo:value-of select="."/>
1053
        </z:index>
1052
        </z:index>
1054
      </xslo:if>
1053
      </xslo:if>
1055
    </xslo:for-each>
1054
    </xslo:for-each>
1056
    <xslo:for-each select="marc:subfield">
1055
    <xslo:for-each select="marc:subfield">
1057
      <xslo:if test="contains('n', @code)">
1056
      <xslo:if test="contains('n', @code)">
1058
        <z:index name="Suppress:w Suppress:n">
1057
        <z:index name="Suppress:w Suppress:n Any:w Any:p">
1059
          <xslo:value-of select="."/>
1058
          <xslo:value-of select="."/>
1060
        </z:index>
1059
        </z:index>
1061
      </xslo:if>
1060
      </xslo:if>
1062
    </xslo:for-each>
1061
    </xslo:for-each>
1063
    <xslo:for-each select="marc:subfield">
1062
    <xslo:for-each select="marc:subfield">
1064
      <xslo:if test="contains('h', @code)">
1063
      <xslo:if test="contains('h', @code)">
1065
        <z:index name="cn-class:w">
1064
        <z:index name="cn-class:w Any:w Any:p">
1066
          <xslo:value-of select="."/>
1065
          <xslo:value-of select="."/>
1067
        </z:index>
1066
        </z:index>
1068
      </xslo:if>
1067
      </xslo:if>
1069
    </xslo:for-each>
1068
    </xslo:for-each>
1070
    <xslo:for-each select="marc:subfield">
1069
    <xslo:for-each select="marc:subfield">
1071
      <xslo:if test="contains('i', @code)">
1070
      <xslo:if test="contains('i', @code)">
1072
        <z:index name="cn-item:w">
1071
        <z:index name="cn-item:w Any:w Any:p">
1073
          <xslo:value-of select="."/>
1072
          <xslo:value-of select="."/>
1074
        </z:index>
1073
        </z:index>
1075
      </xslo:if>
1074
      </xslo:if>
1076
    </xslo:for-each>
1075
    </xslo:for-each>
1077
    <xslo:for-each select="marc:subfield">
1076
    <xslo:for-each select="marc:subfield">
1078
      <xslo:if test="contains('k', @code)">
1077
      <xslo:if test="contains('k', @code)">
1079
        <z:index name="cn-prefix:w">
1078
        <z:index name="cn-prefix:w Any:w Any:p">
1080
          <xslo:value-of select="."/>
1079
          <xslo:value-of select="."/>
1081
        </z:index>
1080
        </z:index>
1082
      </xslo:if>
1081
      </xslo:if>
1083
    </xslo:for-each>
1082
    </xslo:for-each>
1084
    <xslo:for-each select="marc:subfield">
1083
    <xslo:for-each select="marc:subfield">
1085
      <xslo:if test="contains('m', @code)">
1084
      <xslo:if test="contains('m', @code)">
1086
        <z:index name="cn-suffix:w">
1085
        <z:index name="cn-suffix:w Any:w Any:p">
1087
          <xslo:value-of select="."/>
1086
          <xslo:value-of select="."/>
1088
        </z:index>
1087
        </z:index>
1089
      </xslo:if>
1088
      </xslo:if>
Lines 1092-1329 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1092
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
1091
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
1093
    <xslo:for-each select="marc:subfield">
1092
    <xslo:for-each select="marc:subfield">
1094
      <xslo:if test="contains('0', @code)">
1093
      <xslo:if test="contains('0', @code)">
1095
        <z:index name="withdrawn:n withdrawn:w">
1094
        <z:index name="withdrawn:n withdrawn:w Any:w Any:p">
1096
          <xslo:value-of select="."/>
1095
          <xslo:value-of select="."/>
1097
        </z:index>
1096
        </z:index>
1098
      </xslo:if>
1097
      </xslo:if>
1099
    </xslo:for-each>
1098
    </xslo:for-each>
1100
    <xslo:for-each select="marc:subfield">
1099
    <xslo:for-each select="marc:subfield">
1101
      <xslo:if test="contains('1', @code)">
1100
      <xslo:if test="contains('1', @code)">
1102
        <z:index name="lost:w lost:n">
1101
        <z:index name="lost:w lost:n Any:w Any:p">
1103
          <xslo:value-of select="."/>
1102
          <xslo:value-of select="."/>
1104
        </z:index>
1103
        </z:index>
1105
      </xslo:if>
1104
      </xslo:if>
1106
    </xslo:for-each>
1105
    </xslo:for-each>
1107
    <xslo:for-each select="marc:subfield">
1106
    <xslo:for-each select="marc:subfield">
1108
      <xslo:if test="contains('2', @code)">
1107
      <xslo:if test="contains('2', @code)">
1109
        <z:index name="classification-source:w">
1108
        <z:index name="classification-source:w Any:w Any:p">
1110
          <xslo:value-of select="."/>
1109
          <xslo:value-of select="."/>
1111
        </z:index>
1110
        </z:index>
1112
      </xslo:if>
1111
      </xslo:if>
1113
    </xslo:for-each>
1112
    </xslo:for-each>
1114
    <xslo:for-each select="marc:subfield">
1113
    <xslo:for-each select="marc:subfield">
1115
      <xslo:if test="contains('3', @code)">
1114
      <xslo:if test="contains('3', @code)">
1116
        <z:index name="materials-specified:w">
1115
        <z:index name="materials-specified:w Any:w Any:p">
1117
          <xslo:value-of select="."/>
1116
          <xslo:value-of select="."/>
1118
        </z:index>
1117
        </z:index>
1119
      </xslo:if>
1118
      </xslo:if>
1120
    </xslo:for-each>
1119
    </xslo:for-each>
1121
    <xslo:for-each select="marc:subfield">
1120
    <xslo:for-each select="marc:subfield">
1122
      <xslo:if test="contains('4', @code)">
1121
      <xslo:if test="contains('4', @code)">
1123
        <z:index name="damaged:n damaged:w">
1122
        <z:index name="damaged:n damaged:w Any:w Any:p">
1124
          <xslo:value-of select="."/>
1123
          <xslo:value-of select="."/>
1125
        </z:index>
1124
        </z:index>
1126
      </xslo:if>
1125
      </xslo:if>
1127
    </xslo:for-each>
1126
    </xslo:for-each>
1128
    <xslo:for-each select="marc:subfield">
1127
    <xslo:for-each select="marc:subfield">
1129
      <xslo:if test="contains('5', @code)">
1128
      <xslo:if test="contains('5', @code)">
1130
        <z:index name="restricted:n restricted:w">
1129
        <z:index name="restricted:n restricted:w Any:w Any:p">
1131
          <xslo:value-of select="."/>
1130
          <xslo:value-of select="."/>
1132
        </z:index>
1131
        </z:index>
1133
      </xslo:if>
1132
      </xslo:if>
1134
    </xslo:for-each>
1133
    </xslo:for-each>
1135
    <xslo:for-each select="marc:subfield">
1134
    <xslo:for-each select="marc:subfield">
1136
      <xslo:if test="contains('6', @code)">
1135
      <xslo:if test="contains('6', @code)">
1137
        <z:index name="cn-sort:n cn-sort:s">
1136
        <z:index name="cn-sort:n cn-sort:s Any:w Any:p">
1138
          <xslo:value-of select="."/>
1137
          <xslo:value-of select="."/>
1139
        </z:index>
1138
        </z:index>
1140
      </xslo:if>
1139
      </xslo:if>
1141
    </xslo:for-each>
1140
    </xslo:for-each>
1142
    <xslo:for-each select="marc:subfield">
1141
    <xslo:for-each select="marc:subfield">
1143
      <xslo:if test="contains('7', @code)">
1142
      <xslo:if test="contains('7', @code)">
1144
        <z:index name="notforloan:n notforloan:w">
1143
        <z:index name="notforloan:n notforloan:w Any:w Any:p">
1145
          <xslo:value-of select="."/>
1144
          <xslo:value-of select="."/>
1146
        </z:index>
1145
        </z:index>
1147
      </xslo:if>
1146
      </xslo:if>
1148
    </xslo:for-each>
1147
    </xslo:for-each>
1149
    <xslo:for-each select="marc:subfield">
1148
    <xslo:for-each select="marc:subfield">
1150
      <xslo:if test="contains('8', @code)">
1149
      <xslo:if test="contains('8', @code)">
1151
        <z:index name="ccode:w ccode:p">
1150
        <z:index name="ccode:w ccode:p Any:w Any:p">
1152
          <xslo:value-of select="."/>
1151
          <xslo:value-of select="."/>
1153
        </z:index>
1152
        </z:index>
1154
      </xslo:if>
1153
      </xslo:if>
1155
    </xslo:for-each>
1154
    </xslo:for-each>
1156
    <xslo:for-each select="marc:subfield">
1155
    <xslo:for-each select="marc:subfield">
1157
      <xslo:if test="contains('9', @code)">
1156
      <xslo:if test="contains('9', @code)">
1158
        <z:index name="itemnumber:n itemnumber:s">
1157
        <z:index name="itemnumber:n itemnumber:s Any:w Any:p">
1159
          <xslo:value-of select="."/>
1158
          <xslo:value-of select="."/>
1160
        </z:index>
1159
        </z:index>
1161
      </xslo:if>
1160
      </xslo:if>
1162
    </xslo:for-each>
1161
    </xslo:for-each>
1163
    <xslo:for-each select="marc:subfield">
1162
    <xslo:for-each select="marc:subfield">
1164
      <xslo:if test="contains('a', @code)">
1163
      <xslo:if test="contains('a', @code)">
1165
        <z:index name="homebranch:w">
1164
        <z:index name="homebranch:w Any:w Any:p">
1166
          <xslo:value-of select="."/>
1165
          <xslo:value-of select="."/>
1167
        </z:index>
1166
        </z:index>
1168
      </xslo:if>
1167
      </xslo:if>
1169
    </xslo:for-each>
1168
    </xslo:for-each>
1170
    <xslo:for-each select="marc:subfield">
1169
    <xslo:for-each select="marc:subfield">
1171
      <xslo:if test="contains('b', @code)">
1170
      <xslo:if test="contains('b', @code)">
1172
        <z:index name="holdingbranch:w">
1171
        <z:index name="holdingbranch:w Any:w Any:p">
1173
          <xslo:value-of select="."/>
1172
          <xslo:value-of select="."/>
1174
        </z:index>
1173
        </z:index>
1175
      </xslo:if>
1174
      </xslo:if>
1176
    </xslo:for-each>
1175
    </xslo:for-each>
1177
    <xslo:for-each select="marc:subfield">
1176
    <xslo:for-each select="marc:subfield">
1178
      <xslo:if test="contains('c', @code)">
1177
      <xslo:if test="contains('c', @code)">
1179
        <z:index name="location:w">
1178
        <z:index name="location:w Any:w Any:p">
1180
          <xslo:value-of select="."/>
1179
          <xslo:value-of select="."/>
1181
        </z:index>
1180
        </z:index>
1182
      </xslo:if>
1181
      </xslo:if>
1183
    </xslo:for-each>
1182
    </xslo:for-each>
1184
    <xslo:for-each select="marc:subfield">
1183
    <xslo:for-each select="marc:subfield">
1185
      <xslo:if test="contains('d', @code)">
1184
      <xslo:if test="contains('d', @code)">
1186
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
1185
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s Any:w Any:p">
1187
          <xslo:value-of select="."/>
1186
          <xslo:value-of select="."/>
1188
        </z:index>
1187
        </z:index>
1189
      </xslo:if>
1188
      </xslo:if>
1190
    </xslo:for-each>
1189
    </xslo:for-each>
1191
    <xslo:for-each select="marc:subfield">
1190
    <xslo:for-each select="marc:subfield">
1192
      <xslo:if test="contains('e', @code)">
1191
      <xslo:if test="contains('e', @code)">
1193
        <z:index name="acqsource:w">
1192
        <z:index name="acqsource:w Any:w Any:p">
1194
          <xslo:value-of select="."/>
1193
          <xslo:value-of select="."/>
1195
        </z:index>
1194
        </z:index>
1196
      </xslo:if>
1195
      </xslo:if>
1197
    </xslo:for-each>
1196
    </xslo:for-each>
1198
    <xslo:for-each select="marc:subfield">
1197
    <xslo:for-each select="marc:subfield">
1199
      <xslo:if test="contains('f', @code)">
1198
      <xslo:if test="contains('f', @code)">
1200
        <z:index name="coded-location-qualifier:w">
1199
        <z:index name="coded-location-qualifier:w Any:w Any:p">
1201
          <xslo:value-of select="."/>
1200
          <xslo:value-of select="."/>
1202
        </z:index>
1201
        </z:index>
1203
      </xslo:if>
1202
      </xslo:if>
1204
    </xslo:for-each>
1203
    </xslo:for-each>
1205
    <xslo:for-each select="marc:subfield">
1204
    <xslo:for-each select="marc:subfield">
1206
      <xslo:if test="contains('g', @code)">
1205
      <xslo:if test="contains('g', @code)">
1207
        <z:index name="price:w">
1206
        <z:index name="price:w Any:w Any:p">
1208
          <xslo:value-of select="."/>
1207
          <xslo:value-of select="."/>
1209
        </z:index>
1208
        </z:index>
1210
      </xslo:if>
1209
      </xslo:if>
1211
    </xslo:for-each>
1210
    </xslo:for-each>
1212
    <xslo:for-each select="marc:subfield">
1211
    <xslo:for-each select="marc:subfield">
1213
      <xslo:if test="contains('i', @code)">
1212
      <xslo:if test="contains('i', @code)">
1214
        <z:index name="stocknumber:w">
1213
        <z:index name="stocknumber:w Any:w Any:p">
1215
          <xslo:value-of select="."/>
1214
          <xslo:value-of select="."/>
1216
        </z:index>
1215
        </z:index>
1217
      </xslo:if>
1216
      </xslo:if>
1218
    </xslo:for-each>
1217
    </xslo:for-each>
1219
    <xslo:for-each select="marc:subfield">
1218
    <xslo:for-each select="marc:subfield">
1220
      <xslo:if test="contains('j', @code)">
1219
      <xslo:if test="contains('j', @code)">
1221
        <z:index name="stack:n stack:w">
1220
        <z:index name="stack:n stack:w Any:w Any:p">
1222
          <xslo:value-of select="."/>
1221
          <xslo:value-of select="."/>
1223
        </z:index>
1222
        </z:index>
1224
      </xslo:if>
1223
      </xslo:if>
1225
    </xslo:for-each>
1224
    </xslo:for-each>
1226
    <xslo:for-each select="marc:subfield">
1225
    <xslo:for-each select="marc:subfield">
1227
      <xslo:if test="contains('l', @code)">
1226
      <xslo:if test="contains('l', @code)">
1228
        <z:index name="issues:n issues:w issues:s">
1227
        <z:index name="issues:n issues:w issues:s Any:w Any:p">
1229
          <xslo:value-of select="."/>
1228
          <xslo:value-of select="."/>
1230
        </z:index>
1229
        </z:index>
1231
      </xslo:if>
1230
      </xslo:if>
1232
    </xslo:for-each>
1231
    </xslo:for-each>
1233
    <xslo:for-each select="marc:subfield">
1232
    <xslo:for-each select="marc:subfield">
1234
      <xslo:if test="contains('m', @code)">
1233
      <xslo:if test="contains('m', @code)">
1235
        <z:index name="renewals:n renewals:w">
1234
        <z:index name="renewals:n renewals:w Any:w Any:p">
1236
          <xslo:value-of select="."/>
1235
          <xslo:value-of select="."/>
1237
        </z:index>
1236
        </z:index>
1238
      </xslo:if>
1237
      </xslo:if>
1239
    </xslo:for-each>
1238
    </xslo:for-each>
1240
    <xslo:for-each select="marc:subfield">
1239
    <xslo:for-each select="marc:subfield">
1241
      <xslo:if test="contains('n', @code)">
1240
      <xslo:if test="contains('n', @code)">
1242
        <z:index name="reserves:n reserves:w">
1241
        <z:index name="reserves:n reserves:w Any:w Any:p">
1243
          <xslo:value-of select="."/>
1242
          <xslo:value-of select="."/>
1244
        </z:index>
1243
        </z:index>
1245
      </xslo:if>
1244
      </xslo:if>
1246
    </xslo:for-each>
1245
    </xslo:for-each>
1247
    <xslo:for-each select="marc:subfield">
1246
    <xslo:for-each select="marc:subfield">
1248
      <xslo:if test="contains('o', @code)">
1247
      <xslo:if test="contains('o', @code)">
1249
        <z:index name="Local-classification:w Local-classification:p Local-classification:s">
1248
        <z:index name="Local-classification:w Local-classification:p Local-classification:s Any:w Any:p">
1250
          <xslo:value-of select="."/>
1249
          <xslo:value-of select="."/>
1251
        </z:index>
1250
        </z:index>
1252
      </xslo:if>
1251
      </xslo:if>
1253
    </xslo:for-each>
1252
    </xslo:for-each>
1254
    <xslo:for-each select="marc:subfield">
1253
    <xslo:for-each select="marc:subfield">
1255
      <xslo:if test="contains('p', @code)">
1254
      <xslo:if test="contains('p', @code)">
1256
        <z:index name="barcode:w barcode:n">
1255
        <z:index name="barcode:w barcode:n Any:w Any:p">
1257
          <xslo:value-of select="."/>
1256
          <xslo:value-of select="."/>
1258
        </z:index>
1257
        </z:index>
1259
      </xslo:if>
1258
      </xslo:if>
1260
    </xslo:for-each>
1259
    </xslo:for-each>
1261
    <xslo:for-each select="marc:subfield">
1260
    <xslo:for-each select="marc:subfield">
1262
      <xslo:if test="contains('q', @code)">
1261
      <xslo:if test="contains('q', @code)">
1263
        <z:index name="onloan:n onloan:w">
1262
        <z:index name="onloan:n onloan:w Any:w Any:p">
1264
          <xslo:value-of select="."/>
1263
          <xslo:value-of select="."/>
1265
        </z:index>
1264
        </z:index>
1266
      </xslo:if>
1265
      </xslo:if>
1267
    </xslo:for-each>
1266
    </xslo:for-each>
1268
    <xslo:for-each select="marc:subfield">
1267
    <xslo:for-each select="marc:subfield">
1269
      <xslo:if test="contains('r', @code)">
1268
      <xslo:if test="contains('r', @code)">
1270
        <z:index name="datelastseen:w">
1269
        <z:index name="datelastseen:w Any:w Any:p">
1271
          <xslo:value-of select="."/>
1270
          <xslo:value-of select="."/>
1272
        </z:index>
1271
        </z:index>
1273
      </xslo:if>
1272
      </xslo:if>
1274
    </xslo:for-each>
1273
    </xslo:for-each>
1275
    <xslo:for-each select="marc:subfield">
1274
    <xslo:for-each select="marc:subfield">
1276
      <xslo:if test="contains('s', @code)">
1275
      <xslo:if test="contains('s', @code)">
1277
        <z:index name="datelastborrowed:w">
1276
        <z:index name="datelastborrowed:w Any:w Any:p">
1278
          <xslo:value-of select="."/>
1277
          <xslo:value-of select="."/>
1279
        </z:index>
1278
        </z:index>
1280
      </xslo:if>
1279
      </xslo:if>
1281
    </xslo:for-each>
1280
    </xslo:for-each>
1282
    <xslo:for-each select="marc:subfield">
1281
    <xslo:for-each select="marc:subfield">
1283
      <xslo:if test="contains('t', @code)">
1282
      <xslo:if test="contains('t', @code)">
1284
        <z:index name="copynumber:w">
1283
        <z:index name="copynumber:w Any:w Any:p">
1285
          <xslo:value-of select="."/>
1284
          <xslo:value-of select="."/>
1286
        </z:index>
1285
        </z:index>
1287
      </xslo:if>
1286
      </xslo:if>
1288
    </xslo:for-each>
1287
    </xslo:for-each>
1289
    <xslo:for-each select="marc:subfield">
1288
    <xslo:for-each select="marc:subfield">
1290
      <xslo:if test="contains('u', @code)">
1289
      <xslo:if test="contains('u', @code)">
1291
        <z:index name="uri:u">
1290
        <z:index name="uri:u Any:w Any:p">
1292
          <xslo:value-of select="."/>
1291
          <xslo:value-of select="."/>
1293
        </z:index>
1292
        </z:index>
1294
      </xslo:if>
1293
      </xslo:if>
1295
    </xslo:for-each>
1294
    </xslo:for-each>
1296
    <xslo:for-each select="marc:subfield">
1295
    <xslo:for-each select="marc:subfield">
1297
      <xslo:if test="contains('v', @code)">
1296
      <xslo:if test="contains('v', @code)">
1298
        <z:index name="replacementprice:w">
1297
        <z:index name="replacementprice:w Any:w Any:p">
1299
          <xslo:value-of select="."/>
1298
          <xslo:value-of select="."/>
1300
        </z:index>
1299
        </z:index>
1301
      </xslo:if>
1300
      </xslo:if>
1302
    </xslo:for-each>
1301
    </xslo:for-each>
1303
    <xslo:for-each select="marc:subfield">
1302
    <xslo:for-each select="marc:subfield">
1304
      <xslo:if test="contains('w', @code)">
1303
      <xslo:if test="contains('w', @code)">
1305
        <z:index name="replacementpricedate:w">
1304
        <z:index name="replacementpricedate:w Any:w Any:p">
1306
          <xslo:value-of select="."/>
1305
          <xslo:value-of select="."/>
1307
        </z:index>
1306
        </z:index>
1308
      </xslo:if>
1307
      </xslo:if>
1309
    </xslo:for-each>
1308
    </xslo:for-each>
1310
    <xslo:for-each select="marc:subfield">
1309
    <xslo:for-each select="marc:subfield">
1311
      <xslo:if test="contains('y', @code)">
1310
      <xslo:if test="contains('y', @code)">
1312
        <z:index name="itype:w itype:p">
1311
        <z:index name="itype:w itype:p Any:w Any:p">
1313
          <xslo:value-of select="."/>
1312
          <xslo:value-of select="."/>
1314
        </z:index>
1313
        </z:index>
1315
      </xslo:if>
1314
      </xslo:if>
1316
    </xslo:for-each>
1315
    </xslo:for-each>
1317
    <xslo:for-each select="marc:subfield">
1316
    <xslo:for-each select="marc:subfield">
1318
      <xslo:if test="contains('z', @code)">
1317
      <xslo:if test="contains('z', @code)">
1319
        <z:index name="Note:w Note:p">
1318
        <z:index name="Note:w Note:p Any:w Any:p">
1320
          <xslo:value-of select="."/>
1319
          <xslo:value-of select="."/>
1321
        </z:index>
1320
        </z:index>
1322
      </xslo:if>
1321
      </xslo:if>
1323
    </xslo:for-each>
1322
    </xslo:for-each>
1324
  </xslo:template>
1323
  </xslo:template>
1325
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1324
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1326
    <z:index name="LC-card-number:w Identifier-standard:w">
1325
    <z:index name="LC-card-number:w Identifier-standard:w Any:w Any:p">
1327
      <xslo:variable name="raw_heading">
1326
      <xslo:variable name="raw_heading">
1328
        <xslo:for-each select="marc:subfield">
1327
        <xslo:for-each select="marc:subfield">
1329
          <xslo:if test="position() &gt; 1">
1328
          <xslo:if test="position() &gt; 1">
Lines 1336-1342 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1336
    </z:index>
1335
    </z:index>
1337
  </xslo:template>
1336
  </xslo:template>
1338
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='011']">
1337
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='011']">
1339
    <z:index name="LC-card-number:w Identifier-standard:w">
1338
    <z:index name="LC-card-number:w Identifier-standard:w Any:w Any:p">
1340
      <xslo:variable name="raw_heading">
1339
      <xslo:variable name="raw_heading">
1341
        <xslo:for-each select="marc:subfield">
1340
        <xslo:for-each select="marc:subfield">
1342
          <xslo:if test="position() &gt; 1">
1341
          <xslo:if test="position() &gt; 1">
Lines 1349-1355 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1349
    </z:index>
1348
    </z:index>
1350
  </xslo:template>
1349
  </xslo:template>
1351
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1350
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1352
    <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1351
    <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w Any:w Any:p">
1353
      <xslo:variable name="raw_heading">
1352
      <xslo:variable name="raw_heading">
1354
        <xslo:for-each select="marc:subfield">
1353
        <xslo:for-each select="marc:subfield">
1355
          <xslo:if test="position() &gt; 1">
1354
          <xslo:if test="position() &gt; 1">
Lines 1362-1368 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1362
    </z:index>
1361
    </z:index>
1363
  </xslo:template>
1362
  </xslo:template>
1364
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='017']">
1363
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='017']">
1365
    <z:index name="Number-legal-deposit:w Identifier-standard:w">
1364
    <z:index name="Number-legal-deposit:w Identifier-standard:w Any:w Any:p">
1366
      <xslo:variable name="raw_heading">
1365
      <xslo:variable name="raw_heading">
1367
        <xslo:for-each select="marc:subfield">
1366
        <xslo:for-each select="marc:subfield">
1368
          <xslo:if test="position() &gt; 1">
1367
          <xslo:if test="position() &gt; 1">
Lines 1375-1381 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1375
    </z:index>
1374
    </z:index>
1376
  </xslo:template>
1375
  </xslo:template>
1377
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='018']">
1376
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='018']">
1378
    <z:index name="Identifier-standard:w">
1377
    <z:index name="Identifier-standard:w Any:w Any:p">
1379
      <xslo:variable name="raw_heading">
1378
      <xslo:variable name="raw_heading">
1380
        <xslo:for-each select="marc:subfield">
1379
        <xslo:for-each select="marc:subfield">
1381
          <xslo:if test="position() &gt; 1">
1380
          <xslo:if test="position() &gt; 1">
Lines 1388-1394 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1388
    </z:index>
1387
    </z:index>
1389
  </xslo:template>
1388
  </xslo:template>
1390
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1389
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1391
    <z:index name="Identifier-standard:w">
1390
    <z:index name="Identifier-standard:w Any:w Any:p">
1392
      <xslo:variable name="raw_heading">
1391
      <xslo:variable name="raw_heading">
1393
        <xslo:for-each select="marc:subfield">
1392
        <xslo:for-each select="marc:subfield">
1394
          <xslo:if test="position() &gt; 1">
1393
          <xslo:if test="position() &gt; 1">
Lines 1401-1407 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1401
    </z:index>
1400
    </z:index>
1402
  </xslo:template>
1401
  </xslo:template>
1403
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1402
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1404
    <z:index name="Identifier-standard:w">
1403
    <z:index name="Identifier-standard:w Any:w Any:p">
1405
      <xslo:variable name="raw_heading">
1404
      <xslo:variable name="raw_heading">
1406
        <xslo:for-each select="marc:subfield">
1405
        <xslo:for-each select="marc:subfield">
1407
          <xslo:if test="position() &gt; 1">
1406
          <xslo:if test="position() &gt; 1">
Lines 1414-1420 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1414
    </z:index>
1413
    </z:index>
1415
  </xslo:template>
1414
  </xslo:template>
1416
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='023']">
1415
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='023']">
1417
    <z:index name="Identifier-standard:w">
1416
    <z:index name="Identifier-standard:w Any:w Any:p">
1418
      <xslo:variable name="raw_heading">
1417
      <xslo:variable name="raw_heading">
1419
        <xslo:for-each select="marc:subfield">
1418
        <xslo:for-each select="marc:subfield">
1420
          <xslo:if test="position() &gt; 1">
1419
          <xslo:if test="position() &gt; 1">
Lines 1427-1433 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1427
    </z:index>
1426
    </z:index>
1428
  </xslo:template>
1427
  </xslo:template>
1429
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1428
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1430
    <z:index name="Identifier-standard:w">
1429
    <z:index name="Identifier-standard:w Any:w Any:p">
1431
      <xslo:variable name="raw_heading">
1430
      <xslo:variable name="raw_heading">
1432
        <xslo:for-each select="marc:subfield">
1431
        <xslo:for-each select="marc:subfield">
1433
          <xslo:if test="position() &gt; 1">
1432
          <xslo:if test="position() &gt; 1">
Lines 1440-1446 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1440
    </z:index>
1439
    </z:index>
1441
  </xslo:template>
1440
  </xslo:template>
1442
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1441
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1443
    <z:index name="Identifier-standard:w">
1442
    <z:index name="Identifier-standard:w Any:w Any:p">
1444
      <xslo:variable name="raw_heading">
1443
      <xslo:variable name="raw_heading">
1445
        <xslo:for-each select="marc:subfield">
1444
        <xslo:for-each select="marc:subfield">
1446
          <xslo:if test="position() &gt; 1">
1445
          <xslo:if test="position() &gt; 1">
Lines 1453-1459 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1453
    </z:index>
1452
    </z:index>
1454
  </xslo:template>
1453
  </xslo:template>
1455
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1454
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1456
    <z:index name="Report-number:w Identifier-standard:w">
1455
    <z:index name="Report-number:w Identifier-standard:w Any:w Any:p">
1457
      <xslo:variable name="raw_heading">
1456
      <xslo:variable name="raw_heading">
1458
        <xslo:for-each select="marc:subfield">
1457
        <xslo:for-each select="marc:subfield">
1459
          <xslo:if test="position() &gt; 1">
1458
          <xslo:if test="position() &gt; 1">
Lines 1466-1472 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1466
    </z:index>
1465
    </z:index>
1467
  </xslo:template>
1466
  </xslo:template>
1468
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1467
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1469
    <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
1468
    <z:index name="Identifier-publisher-for-music:w Identifier-standard:w Any:w Any:p">
1470
      <xslo:variable name="raw_heading">
1469
      <xslo:variable name="raw_heading">
1471
        <xslo:for-each select="marc:subfield">
1470
        <xslo:for-each select="marc:subfield">
1472
          <xslo:if test="position() &gt; 1">
1471
          <xslo:if test="position() &gt; 1">
Lines 1479-1485 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1479
    </z:index>
1478
    </z:index>
1480
  </xslo:template>
1479
  </xslo:template>
1481
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1480
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1482
    <z:index name="CODEN:w Identifier-standard:w">
1481
    <z:index name="CODEN:w Identifier-standard:w Any:w Any:p">
1483
      <xslo:variable name="raw_heading">
1482
      <xslo:variable name="raw_heading">
1484
        <xslo:for-each select="marc:subfield">
1483
        <xslo:for-each select="marc:subfield">
1485
          <xslo:if test="position() &gt; 1">
1484
          <xslo:if test="position() &gt; 1">
Lines 1492-1498 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1492
    </z:index>
1491
    </z:index>
1493
  </xslo:template>
1492
  </xslo:template>
1494
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='034']">
1493
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='034']">
1495
    <z:index name="Map-scale:w">
1494
    <z:index name="Map-scale:w Any:w Any:p">
1496
      <xslo:variable name="raw_heading">
1495
      <xslo:variable name="raw_heading">
1497
        <xslo:for-each select="marc:subfield">
1496
        <xslo:for-each select="marc:subfield">
1498
          <xslo:if test="position() &gt; 1">
1497
          <xslo:if test="position() &gt; 1">
Lines 1505-1511 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1505
    </z:index>
1504
    </z:index>
1506
  </xslo:template>
1505
  </xslo:template>
1507
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='037']">
1506
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='037']">
1508
    <z:index name="Identifier-standard:w Stock-number:w">
1507
    <z:index name="Identifier-standard:w Stock-number:w Any:w Any:p">
1509
      <xslo:variable name="raw_heading">
1508
      <xslo:variable name="raw_heading">
1510
        <xslo:for-each select="marc:subfield">
1509
        <xslo:for-each select="marc:subfield">
1511
          <xslo:if test="position() &gt; 1">
1510
          <xslo:if test="position() &gt; 1">
Lines 1518-1524 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1518
    </z:index>
1517
    </z:index>
1519
  </xslo:template>
1518
  </xslo:template>
1520
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1519
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1521
    <z:index name="Code-institution:w Record-source:w">
1520
    <z:index name="Code-institution:w Record-source:w Any:w Any:p">
1522
      <xslo:variable name="raw_heading">
1521
      <xslo:variable name="raw_heading">
1523
        <xslo:for-each select="marc:subfield">
1522
        <xslo:for-each select="marc:subfield">
1524
          <xslo:if test="position() &gt; 1">
1523
          <xslo:if test="position() &gt; 1">
Lines 1531-1537 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1531
    </z:index>
1530
    </z:index>
1532
  </xslo:template>
1531
  </xslo:template>
1533
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1532
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1534
    <z:index name="Code-geographic:w">
1533
    <z:index name="Code-geographic:w Any:w Any:p">
1535
      <xslo:variable name="raw_heading">
1534
      <xslo:variable name="raw_heading">
1536
        <xslo:for-each select="marc:subfield">
1535
        <xslo:for-each select="marc:subfield">
1537
          <xslo:if test="position() &gt; 1">
1536
          <xslo:if test="position() &gt; 1">
Lines 1544-1550 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1544
    </z:index>
1543
    </z:index>
1545
  </xslo:template>
1544
  </xslo:template>
1546
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='050']">
1545
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='050']">
1547
    <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s">
1546
    <z:index name="LC-call-number:w LC-call-number:p LC-call-number:s Any:w Any:p">
1548
      <xslo:variable name="raw_heading">
1547
      <xslo:variable name="raw_heading">
1549
        <xslo:for-each select="marc:subfield">
1548
        <xslo:for-each select="marc:subfield">
1550
          <xslo:if test="position() &gt; 1">
1549
          <xslo:if test="position() &gt; 1">
Lines 1557-1563 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1557
    </z:index>
1556
    </z:index>
1558
  </xslo:template>
1557
  </xslo:template>
1559
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='052']">
1558
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='052']">
1560
    <z:index name="Geographic-class:w">
1559
    <z:index name="Geographic-class:w Any:w Any:p">
1561
      <xslo:variable name="raw_heading">
1560
      <xslo:variable name="raw_heading">
1562
        <xslo:for-each select="marc:subfield">
1561
        <xslo:for-each select="marc:subfield">
1563
          <xslo:if test="position() &gt; 1">
1562
          <xslo:if test="position() &gt; 1">
Lines 1570-1576 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1570
    </z:index>
1569
    </z:index>
1571
  </xslo:template>
1570
  </xslo:template>
1572
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1571
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1573
    <z:index name="NLM-call-number:w">
1572
    <z:index name="NLM-call-number:w Any:w Any:p">
1574
      <xslo:variable name="raw_heading">
1573
      <xslo:variable name="raw_heading">
1575
        <xslo:for-each select="marc:subfield">
1574
        <xslo:for-each select="marc:subfield">
1576
          <xslo:if test="position() &gt; 1">
1575
          <xslo:if test="position() &gt; 1">
Lines 1583-1589 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1583
    </z:index>
1582
    </z:index>
1584
  </xslo:template>
1583
  </xslo:template>
1585
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='070']">
1584
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='070']">
1586
    <z:index name="NAL-call-number:w">
1585
    <z:index name="NAL-call-number:w Any:w Any:p">
1587
      <xslo:variable name="raw_heading">
1586
      <xslo:variable name="raw_heading">
1588
        <xslo:for-each select="marc:subfield">
1587
        <xslo:for-each select="marc:subfield">
1589
          <xslo:if test="position() &gt; 1">
1588
          <xslo:if test="position() &gt; 1">
Lines 1596-1602 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1596
    </z:index>
1595
    </z:index>
1597
  </xslo:template>
1596
  </xslo:template>
1598
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1597
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1599
    <z:index name="UDC-classification:w">
1598
    <z:index name="UDC-classification:w Any:w Any:p">
1600
      <xslo:variable name="raw_heading">
1599
      <xslo:variable name="raw_heading">
1601
        <xslo:for-each select="marc:subfield">
1600
        <xslo:for-each select="marc:subfield">
1602
          <xslo:if test="position() &gt; 1">
1601
          <xslo:if test="position() &gt; 1">
Lines 1609-1615 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1609
    </z:index>
1608
    </z:index>
1610
  </xslo:template>
1609
  </xslo:template>
1611
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1610
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1612
    <z:index name="Dewey-classification:w Dewey-classification:s">
1611
    <z:index name="Dewey-classification:w Dewey-classification:s Any:w Any:p">
1613
      <xslo:variable name="raw_heading">
1612
      <xslo:variable name="raw_heading">
1614
        <xslo:for-each select="marc:subfield">
1613
        <xslo:for-each select="marc:subfield">
1615
          <xslo:if test="position() &gt; 1">
1614
          <xslo:if test="position() &gt; 1">
Lines 1622-1628 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1622
    </z:index>
1621
    </z:index>
1623
  </xslo:template>
1622
  </xslo:template>
1624
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='086']">
1623
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='086']">
1625
    <z:index name="Number-govt-pub:w">
1624
    <z:index name="Number-govt-pub:w Any:w Any:p">
1626
      <xslo:variable name="raw_heading">
1625
      <xslo:variable name="raw_heading">
1627
        <xslo:for-each select="marc:subfield">
1626
        <xslo:for-each select="marc:subfield">
1628
          <xslo:if test="position() &gt; 1">
1627
          <xslo:if test="position() &gt; 1">
Lines 1635-1641 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1635
    </z:index>
1634
    </z:index>
1636
  </xslo:template>
1635
  </xslo:template>
1637
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1636
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1638
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w">
1637
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w Any:w Any:p">
1639
      <xslo:variable name="raw_heading">
1638
      <xslo:variable name="raw_heading">
1640
        <xslo:for-each select="marc:subfield">
1639
        <xslo:for-each select="marc:subfield">
1641
          <xslo:if test="position() &gt; 1">
1640
          <xslo:if test="position() &gt; 1">
Lines 1648-1654 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1648
    </z:index>
1647
    </z:index>
1649
  </xslo:template>
1648
  </xslo:template>
1650
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1649
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1651
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w">
1650
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w Any:w Any:p">
1652
      <xslo:variable name="raw_heading">
1651
      <xslo:variable name="raw_heading">
1653
        <xslo:for-each select="marc:subfield">
1652
        <xslo:for-each select="marc:subfield">
1654
          <xslo:if test="position() &gt; 1">
1653
          <xslo:if test="position() &gt; 1">
Lines 1661-1667 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1661
    </z:index>
1660
    </z:index>
1662
  </xslo:template>
1661
  </xslo:template>
1663
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1662
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1664
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w">
1663
    <z:index name="Author:w Author:p Author:s Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w Any:w Any:p">
1665
      <xslo:variable name="raw_heading">
1664
      <xslo:variable name="raw_heading">
1666
        <xslo:for-each select="marc:subfield">
1665
        <xslo:for-each select="marc:subfield">
1667
          <xslo:if test="position() &gt; 1">
1666
          <xslo:if test="position() &gt; 1">
Lines 1674-1680 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1674
    </z:index>
1673
    </z:index>
1675
  </xslo:template>
1674
  </xslo:template>
1676
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1675
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1677
    <z:index name="Title:w Title:p Title-uniform:w">
1676
    <z:index name="Title:w Title:p Title-uniform:w Any:w Any:p">
1678
      <xslo:variable name="raw_heading">
1677
      <xslo:variable name="raw_heading">
1679
        <xslo:for-each select="marc:subfield">
1678
        <xslo:for-each select="marc:subfield">
1680
          <xslo:if test="position() &gt; 1">
1679
          <xslo:if test="position() &gt; 1">
Lines 1687-1693 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1687
    </z:index>
1686
    </z:index>
1688
  </xslo:template>
1687
  </xslo:template>
1689
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1688
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1690
    <z:index name="Title:w Title:p Title-abbreviated:w">
1689
    <z:index name="Title:w Title:p Title-abbreviated:w Any:w Any:p">
1691
      <xslo:variable name="raw_heading">
1690
      <xslo:variable name="raw_heading">
1692
        <xslo:for-each select="marc:subfield">
1691
        <xslo:for-each select="marc:subfield">
1693
          <xslo:if test="position() &gt; 1">
1692
          <xslo:if test="position() &gt; 1">
Lines 1700-1706 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1700
    </z:index>
1699
    </z:index>
1701
  </xslo:template>
1700
  </xslo:template>
1702
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='211']">
1701
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='211']">
1703
    <z:index name="Title:w Title:p Title-abbreviated:w">
1702
    <z:index name="Title:w Title:p Title-abbreviated:w Any:w Any:p">
1704
      <xslo:variable name="raw_heading">
1703
      <xslo:variable name="raw_heading">
1705
        <xslo:for-each select="marc:subfield">
1704
        <xslo:for-each select="marc:subfield">
1706
          <xslo:if test="position() &gt; 1">
1705
          <xslo:if test="position() &gt; 1">
Lines 1713-1719 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1713
    </z:index>
1712
    </z:index>
1714
  </xslo:template>
1713
  </xslo:template>
1715
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='212']">
1714
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='212']">
1716
    <z:index name="Title:w Title:p Title-other-variant:w">
1715
    <z:index name="Title:w Title:p Title-other-variant:w Any:w Any:p">
1717
      <xslo:variable name="raw_heading">
1716
      <xslo:variable name="raw_heading">
1718
        <xslo:for-each select="marc:subfield">
1717
        <xslo:for-each select="marc:subfield">
1719
          <xslo:if test="position() &gt; 1">
1718
          <xslo:if test="position() &gt; 1">
Lines 1726-1732 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1726
    </z:index>
1725
    </z:index>
1727
  </xslo:template>
1726
  </xslo:template>
1728
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='214']">
1727
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='214']">
1729
    <z:index name="Title:w Title:p Title-expanded:w">
1728
    <z:index name="Title:w Title:p Title-expanded:w Any:w Any:p">
1730
      <xslo:variable name="raw_heading">
1729
      <xslo:variable name="raw_heading">
1731
        <xslo:for-each select="marc:subfield">
1730
        <xslo:for-each select="marc:subfield">
1732
          <xslo:if test="position() &gt; 1">
1731
          <xslo:if test="position() &gt; 1">
Lines 1739-1745 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1739
    </z:index>
1738
    </z:index>
1740
  </xslo:template>
1739
  </xslo:template>
1741
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1740
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1742
    <z:index name="Title:w Title:p Title-key:w">
1741
    <z:index name="Title:w Title:p Title-key:w Any:w Any:p">
1743
      <xslo:variable name="raw_heading">
1742
      <xslo:variable name="raw_heading">
1744
        <xslo:for-each select="marc:subfield">
1743
        <xslo:for-each select="marc:subfield">
1745
          <xslo:if test="position() &gt; 1">
1744
          <xslo:if test="position() &gt; 1">
Lines 1752-1758 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1752
    </z:index>
1751
    </z:index>
1753
  </xslo:template>
1752
  </xslo:template>
1754
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1753
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1755
    <z:index name="Title:w Title:p Title-uniform:w">
1754
    <z:index name="Title:w Title:p Title-uniform:w Any:w Any:p">
1756
      <xslo:variable name="raw_heading">
1755
      <xslo:variable name="raw_heading">
1757
        <xslo:for-each select="marc:subfield">
1756
        <xslo:for-each select="marc:subfield">
1758
          <xslo:if test="position() &gt; 1">
1757
          <xslo:if test="position() &gt; 1">
Lines 1765-1771 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1765
    </z:index>
1764
    </z:index>
1766
  </xslo:template>
1765
  </xslo:template>
1767
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='243']">
1766
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='243']">
1768
    <z:index name="Title:w Title:p Title-collective:w">
1767
    <z:index name="Title:w Title:p Title-collective:w Any:w Any:p">
1769
      <xslo:variable name="raw_heading">
1768
      <xslo:variable name="raw_heading">
1770
        <xslo:for-each select="marc:subfield">
1769
        <xslo:for-each select="marc:subfield">
1771
          <xslo:if test="position() &gt; 1">
1770
          <xslo:if test="position() &gt; 1">
Lines 1778-1784 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1778
    </z:index>
1777
    </z:index>
1779
  </xslo:template>
1778
  </xslo:template>
1780
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1779
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1781
    <z:index name="Title:w Title:p">
1780
    <z:index name="Title:w Title:p Any:w Any:p">
1782
      <xslo:variable name="raw_heading">
1781
      <xslo:variable name="raw_heading">
1783
        <xslo:for-each select="marc:subfield">
1782
        <xslo:for-each select="marc:subfield">
1784
          <xslo:if test="position() &gt; 1">
1783
          <xslo:if test="position() &gt; 1">
Lines 1791-1797 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1791
    </z:index>
1790
    </z:index>
1792
  </xslo:template>
1791
  </xslo:template>
1793
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1792
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1794
    <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
1793
    <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w Any:w Any:p">
1795
      <xslo:variable name="raw_heading">
1794
      <xslo:variable name="raw_heading">
1796
        <xslo:for-each select="marc:subfield">
1795
        <xslo:for-each select="marc:subfield">
1797
          <xslo:if test="position() &gt; 1">
1796
          <xslo:if test="position() &gt; 1">
Lines 1804-1810 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1804
    </z:index>
1803
    </z:index>
1805
  </xslo:template>
1804
  </xslo:template>
1806
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='247']">
1805
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='247']">
1807
    <z:index name="Title:w Title:p Title-former:w Title-other-variant:w Related-periodical:w">
1806
    <z:index name="Title:w Title:p Title-former:w Title-other-variant:w Related-periodical:w Any:w Any:p">
1808
      <xslo:variable name="raw_heading">
1807
      <xslo:variable name="raw_heading">
1809
        <xslo:for-each select="marc:subfield">
1808
        <xslo:for-each select="marc:subfield">
1810
          <xslo:if test="position() &gt; 1">
1809
          <xslo:if test="position() &gt; 1">
Lines 1817-1823 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1817
    </z:index>
1816
    </z:index>
1818
  </xslo:template>
1817
  </xslo:template>
1819
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1818
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1820
    <z:index name="pl:w">
1819
    <z:index name="pl:w Any:w Any:p">
1821
      <xslo:variable name="raw_heading">
1820
      <xslo:variable name="raw_heading">
1822
        <xslo:for-each select="marc:subfield">
1821
        <xslo:for-each select="marc:subfield">
1823
          <xslo:if test="position() &gt; 1">
1822
          <xslo:if test="position() &gt; 1">
Lines 1830-1836 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1830
    </z:index>
1829
    </z:index>
1831
  </xslo:template>
1830
  </xslo:template>
1832
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1831
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1833
    <z:index name="Extent:w Extent:p">
1832
    <z:index name="Extent:w Extent:p Any:w Any:p">
1834
      <xslo:variable name="raw_heading">
1833
      <xslo:variable name="raw_heading">
1835
        <xslo:for-each select="marc:subfield">
1834
        <xslo:for-each select="marc:subfield">
1836
          <xslo:if test="position() &gt; 1">
1835
          <xslo:if test="position() &gt; 1">
Lines 1843-1849 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1843
    </z:index>
1842
    </z:index>
1844
  </xslo:template>
1843
  </xslo:template>
1845
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='400']">
1844
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='400']">
1846
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
1845
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w Any:w Any:p">
1847
      <xslo:variable name="raw_heading">
1846
      <xslo:variable name="raw_heading">
1848
        <xslo:for-each select="marc:subfield">
1847
        <xslo:for-each select="marc:subfield">
1849
          <xslo:if test="position() &gt; 1">
1848
          <xslo:if test="position() &gt; 1">
Lines 1856-1862 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1856
    </z:index>
1855
    </z:index>
1857
  </xslo:template>
1856
  </xslo:template>
1858
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='410']">
1857
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='410']">
1859
    <z:index name="Author:w Corporate-name:w">
1858
    <z:index name="Author:w Corporate-name:w Any:w Any:p">
1860
      <xslo:variable name="raw_heading">
1859
      <xslo:variable name="raw_heading">
1861
        <xslo:for-each select="marc:subfield">
1860
        <xslo:for-each select="marc:subfield">
1862
          <xslo:if test="position() &gt; 1">
1861
          <xslo:if test="position() &gt; 1">
Lines 1869-1875 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1869
    </z:index>
1868
    </z:index>
1870
  </xslo:template>
1869
  </xslo:template>
1871
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='411']">
1870
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='411']">
1872
    <z:index name="Author:w Conference-name:w">
1871
    <z:index name="Author:w Conference-name:w Any:w Any:p">
1873
      <xslo:variable name="raw_heading">
1872
      <xslo:variable name="raw_heading">
1874
        <xslo:for-each select="marc:subfield">
1873
        <xslo:for-each select="marc:subfield">
1875
          <xslo:if test="position() &gt; 1">
1874
          <xslo:if test="position() &gt; 1">
Lines 1882-1888 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1882
    </z:index>
1881
    </z:index>
1883
  </xslo:template>
1882
  </xslo:template>
1884
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
1883
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
1885
    <z:index name="Title-series:w Title-series:p Title:w Title-series:w">
1884
    <z:index name="Title-series:w Title-series:p Title:w Title-series:w Any:w Any:p">
1886
      <xslo:variable name="raw_heading">
1885
      <xslo:variable name="raw_heading">
1887
        <xslo:for-each select="marc:subfield">
1886
        <xslo:for-each select="marc:subfield">
1888
          <xslo:if test="position() &gt; 1">
1887
          <xslo:if test="position() &gt; 1">
Lines 1895-1901 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1895
    </z:index>
1894
    </z:index>
1896
  </xslo:template>
1895
  </xslo:template>
1897
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
1896
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
1898
    <z:index name="Title:w Title-series:w">
1897
    <z:index name="Title:w Title-series:w Any:w Any:p">
1899
      <xslo:variable name="raw_heading">
1898
      <xslo:variable name="raw_heading">
1900
        <xslo:for-each select="marc:subfield">
1899
        <xslo:for-each select="marc:subfield">
1901
          <xslo:if test="position() &gt; 1">
1900
          <xslo:if test="position() &gt; 1">
Lines 1908-1914 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1908
    </z:index>
1907
    </z:index>
1909
  </xslo:template>
1908
  </xslo:template>
1910
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
1909
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
1911
    <z:index name="Note:w Note:p">
1910
    <z:index name="Note:w Note:p Any:w Any:p">
1912
      <xslo:variable name="raw_heading">
1911
      <xslo:variable name="raw_heading">
1913
        <xslo:for-each select="marc:subfield">
1912
        <xslo:for-each select="marc:subfield">
1914
          <xslo:if test="position() &gt; 1">
1913
          <xslo:if test="position() &gt; 1">
Lines 1921-1927 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1921
    </z:index>
1920
    </z:index>
1922
  </xslo:template>
1921
  </xslo:template>
1923
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
1922
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
1924
    <z:index name="Material-type:w">
1923
    <z:index name="Material-type:w Any:w Any:p">
1925
      <xslo:variable name="raw_heading">
1924
      <xslo:variable name="raw_heading">
1926
        <xslo:for-each select="marc:subfield">
1925
        <xslo:for-each select="marc:subfield">
1927
          <xslo:if test="position() &gt; 1">
1926
          <xslo:if test="position() &gt; 1">
Lines 1934-1940 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1934
    </z:index>
1933
    </z:index>
1935
  </xslo:template>
1934
  </xslo:template>
1936
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
1935
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
1937
    <z:index name="Note:w Note:p">
1936
    <z:index name="Note:w Note:p Any:w Any:p">
1938
      <xslo:variable name="raw_heading">
1937
      <xslo:variable name="raw_heading">
1939
        <xslo:for-each select="marc:subfield">
1938
        <xslo:for-each select="marc:subfield">
1940
          <xslo:if test="position() &gt; 1">
1939
          <xslo:if test="position() &gt; 1">
Lines 1947-1953 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1947
    </z:index>
1946
    </z:index>
1948
  </xslo:template>
1947
  </xslo:template>
1949
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
1948
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
1950
    <z:index name="Indexed-by:w">
1949
    <z:index name="Indexed-by:w Any:w Any:p">
1951
      <xslo:variable name="raw_heading">
1950
      <xslo:variable name="raw_heading">
1952
        <xslo:for-each select="marc:subfield">
1951
        <xslo:for-each select="marc:subfield">
1953
          <xslo:if test="position() &gt; 1">
1952
          <xslo:if test="position() &gt; 1">
Lines 1960-1966 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1960
    </z:index>
1959
    </z:index>
1961
  </xslo:template>
1960
  </xslo:template>
1962
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
1961
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
1963
    <z:index name="Abstract:w Abstract:p">
1962
    <z:index name="Abstract:w Abstract:p Any:w Any:p">
1964
      <xslo:variable name="raw_heading">
1963
      <xslo:variable name="raw_heading">
1965
        <xslo:for-each select="marc:subfield">
1964
        <xslo:for-each select="marc:subfield">
1966
          <xslo:if test="position() &gt; 1">
1965
          <xslo:if test="position() &gt; 1">
Lines 1973-1979 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1973
    </z:index>
1972
    </z:index>
1974
  </xslo:template>
1973
  </xslo:template>
1975
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='590']">
1974
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='590']">
1976
    <z:index name="Note:w Note:p">
1975
    <z:index name="Note:w Note:p Any:w Any:p">
1977
      <xslo:variable name="raw_heading">
1976
      <xslo:variable name="raw_heading">
1978
        <xslo:for-each select="marc:subfield">
1977
        <xslo:for-each select="marc:subfield">
1979
          <xslo:if test="position() &gt; 1">
1978
          <xslo:if test="position() &gt; 1">
Lines 1986-1992 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1986
    </z:index>
1985
    </z:index>
1987
  </xslo:template>
1986
  </xslo:template>
1988
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
1987
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
1989
    <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
1988
    <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p Any:w Any:p">
1990
      <xslo:variable name="raw_heading">
1989
      <xslo:variable name="raw_heading">
1991
        <xslo:for-each select="marc:subfield">
1990
        <xslo:for-each select="marc:subfield">
1992
          <xslo:if test="position() &gt; 1">
1991
          <xslo:if test="position() &gt; 1">
Lines 1999-2005 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1999
    </z:index>
1998
    </z:index>
2000
  </xslo:template>
1999
  </xslo:template>
2001
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2000
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2002
    <z:index name="Name:w Subject:w Subject:p Corporate-name:w">
2001
    <z:index name="Name:w Subject:w Subject:p Corporate-name:w Any:w Any:p">
2003
      <xslo:variable name="raw_heading">
2002
      <xslo:variable name="raw_heading">
2004
        <xslo:for-each select="marc:subfield">
2003
        <xslo:for-each select="marc:subfield">
2005
          <xslo:if test="position() &gt; 1">
2004
          <xslo:if test="position() &gt; 1">
Lines 2012-2018 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2012
    </z:index>
2011
    </z:index>
2013
  </xslo:template>
2012
  </xslo:template>
2014
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
2013
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
2015
    <z:index name="Conference-name:w Name:w Subject:w Subject:p">
2014
    <z:index name="Conference-name:w Name:w Subject:w Subject:p Any:w Any:p">
2016
      <xslo:variable name="raw_heading">
2015
      <xslo:variable name="raw_heading">
2017
        <xslo:for-each select="marc:subfield">
2016
        <xslo:for-each select="marc:subfield">
2018
          <xslo:if test="position() &gt; 1">
2017
          <xslo:if test="position() &gt; 1">
Lines 2025-2031 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2025
    </z:index>
2024
    </z:index>
2026
  </xslo:template>
2025
  </xslo:template>
2027
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2026
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2028
    <z:index name="Subject:w Subject:p">
2027
    <z:index name="Subject:w Subject:p Any:w Any:p">
2029
      <xslo:variable name="raw_heading">
2028
      <xslo:variable name="raw_heading">
2030
        <xslo:for-each select="marc:subfield">
2029
        <xslo:for-each select="marc:subfield">
2031
          <xslo:if test="position() &gt; 1">
2030
          <xslo:if test="position() &gt; 1">
Lines 2038-2044 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2038
    </z:index>
2037
    </z:index>
2039
  </xslo:template>
2038
  </xslo:template>
2040
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
2039
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
2041
    <z:index name="Subject:w Subject:p">
2040
    <z:index name="Subject:w Subject:p Any:w Any:p">
2042
      <xslo:variable name="raw_heading">
2041
      <xslo:variable name="raw_heading">
2043
        <xslo:for-each select="marc:subfield">
2042
        <xslo:for-each select="marc:subfield">
2044
          <xslo:if test="position() &gt; 1">
2043
          <xslo:if test="position() &gt; 1">
Lines 2051-2057 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2051
    </z:index>
2050
    </z:index>
2052
  </xslo:template>
2051
  </xslo:template>
2053
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
2052
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
2054
    <z:index name="Name-geographic:w Subject:w Subject:p">
2053
    <z:index name="Name-geographic:w Subject:w Subject:p Any:w Any:p">
2055
      <xslo:variable name="raw_heading">
2054
      <xslo:variable name="raw_heading">
2056
        <xslo:for-each select="marc:subfield">
2055
        <xslo:for-each select="marc:subfield">
2057
          <xslo:if test="position() &gt; 1">
2056
          <xslo:if test="position() &gt; 1">
Lines 2064-2070 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2064
    </z:index>
2063
    </z:index>
2065
  </xslo:template>
2064
  </xslo:template>
2066
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
2065
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
2067
    <z:index name="Subject:w Subject:p">
2066
    <z:index name="Subject:w Subject:p Any:w Any:p">
2068
      <xslo:variable name="raw_heading">
2067
      <xslo:variable name="raw_heading">
2069
        <xslo:for-each select="marc:subfield">
2068
        <xslo:for-each select="marc:subfield">
2070
          <xslo:if test="position() &gt; 1">
2069
          <xslo:if test="position() &gt; 1">
Lines 2077-2083 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2077
    </z:index>
2076
    </z:index>
2078
  </xslo:template>
2077
  </xslo:template>
2079
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
2078
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
2080
    <z:index name="Subject:w Subject:p">
2079
    <z:index name="Subject:w Subject:p Any:w Any:p">
2081
      <xslo:variable name="raw_heading">
2080
      <xslo:variable name="raw_heading">
2082
        <xslo:for-each select="marc:subfield">
2081
        <xslo:for-each select="marc:subfield">
2083
          <xslo:if test="position() &gt; 1">
2082
          <xslo:if test="position() &gt; 1">
Lines 2090-2096 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2090
    </z:index>
2089
    </z:index>
2091
  </xslo:template>
2090
  </xslo:template>
2092
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
2091
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
2093
    <z:index name="Subject:w Subject:p">
2092
    <z:index name="Subject:w Subject:p Any:w Any:p">
2094
      <xslo:variable name="raw_heading">
2093
      <xslo:variable name="raw_heading">
2095
        <xslo:for-each select="marc:subfield">
2094
        <xslo:for-each select="marc:subfield">
2096
          <xslo:if test="position() &gt; 1">
2095
          <xslo:if test="position() &gt; 1">
Lines 2103-2109 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2103
    </z:index>
2102
    </z:index>
2104
  </xslo:template>
2103
  </xslo:template>
2105
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
2104
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
2106
    <z:index name="Subject:w Subject:p">
2105
    <z:index name="Subject:w Subject:p Any:w Any:p">
2107
      <xslo:variable name="raw_heading">
2106
      <xslo:variable name="raw_heading">
2108
        <xslo:for-each select="marc:subfield">
2107
        <xslo:for-each select="marc:subfield">
2109
          <xslo:if test="position() &gt; 1">
2108
          <xslo:if test="position() &gt; 1">
Lines 2116-2122 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2116
    </z:index>
2115
    </z:index>
2117
  </xslo:template>
2116
  </xslo:template>
2118
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
2117
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
2119
    <z:index name="Subject:w Subject:p">
2118
    <z:index name="Subject:w Subject:p Any:w Any:p">
2120
      <xslo:variable name="raw_heading">
2119
      <xslo:variable name="raw_heading">
2121
        <xslo:for-each select="marc:subfield">
2120
        <xslo:for-each select="marc:subfield">
2122
          <xslo:if test="position() &gt; 1">
2121
          <xslo:if test="position() &gt; 1">
Lines 2129-2135 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2129
    </z:index>
2128
    </z:index>
2130
  </xslo:template>
2129
  </xslo:template>
2131
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='658']">
2130
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='658']">
2132
    <z:index name="Subject:w Subject:p">
2131
    <z:index name="Subject:w Subject:p Any:w Any:p">
2133
      <xslo:variable name="raw_heading">
2132
      <xslo:variable name="raw_heading">
2134
        <xslo:for-each select="marc:subfield">
2133
        <xslo:for-each select="marc:subfield">
2135
          <xslo:if test="position() &gt; 1">
2134
          <xslo:if test="position() &gt; 1">
Lines 2142-2148 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2142
    </z:index>
2141
    </z:index>
2143
  </xslo:template>
2142
  </xslo:template>
2144
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
2143
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
2145
    <z:index name="Subject:w Subject:p">
2144
    <z:index name="Subject:w Subject:p Any:w Any:p">
2146
      <xslo:variable name="raw_heading">
2145
      <xslo:variable name="raw_heading">
2147
        <xslo:for-each select="marc:subfield">
2146
        <xslo:for-each select="marc:subfield">
2148
          <xslo:if test="position() &gt; 1">
2147
          <xslo:if test="position() &gt; 1">
Lines 2155-2161 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2155
    </z:index>
2154
    </z:index>
2156
  </xslo:template>
2155
  </xslo:template>
2157
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2156
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2158
    <z:index name="Author:w Author:p Author-name-personal:w Name:w Editor:w Personal-name:w">
2157
    <z:index name="Author:w Author:p Author-name-personal:w Name:w Editor:w Personal-name:w Any:w Any:p">
2159
      <xslo:variable name="raw_heading">
2158
      <xslo:variable name="raw_heading">
2160
        <xslo:for-each select="marc:subfield">
2159
        <xslo:for-each select="marc:subfield">
2161
          <xslo:if test="position() &gt; 1">
2160
          <xslo:if test="position() &gt; 1">
Lines 2168-2174 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2168
    </z:index>
2167
    </z:index>
2169
  </xslo:template>
2168
  </xslo:template>
2170
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2169
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2171
    <z:index name="Author:w Author:p Corporate-name:w Name:w">
2170
    <z:index name="Author:w Author:p Corporate-name:w Name:w Any:w Any:p">
2172
      <xslo:variable name="raw_heading">
2171
      <xslo:variable name="raw_heading">
2173
        <xslo:for-each select="marc:subfield">
2172
        <xslo:for-each select="marc:subfield">
2174
          <xslo:if test="position() &gt; 1">
2173
          <xslo:if test="position() &gt; 1">
Lines 2181-2187 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2181
    </z:index>
2180
    </z:index>
2182
  </xslo:template>
2181
  </xslo:template>
2183
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2182
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2184
    <z:index name="Author:w Author:p Author-name-corporate:w Name:w Conference-name:w">
2183
    <z:index name="Author:w Author:p Author-name-corporate:w Name:w Conference-name:w Any:w Any:p">
2185
      <xslo:variable name="raw_heading">
2184
      <xslo:variable name="raw_heading">
2186
        <xslo:for-each select="marc:subfield">
2185
        <xslo:for-each select="marc:subfield">
2187
          <xslo:if test="position() &gt; 1">
2186
          <xslo:if test="position() &gt; 1">
Lines 2194-2200 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2194
    </z:index>
2193
    </z:index>
2195
  </xslo:template>
2194
  </xslo:template>
2196
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2195
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2197
    <z:index name="Title:w Title:p Title-uniform:w">
2196
    <z:index name="Title:w Title:p Title-uniform:w Any:w Any:p">
2198
      <xslo:variable name="raw_heading">
2197
      <xslo:variable name="raw_heading">
2199
        <xslo:for-each select="marc:subfield">
2198
        <xslo:for-each select="marc:subfield">
2200
          <xslo:if test="position() &gt; 1">
2199
          <xslo:if test="position() &gt; 1">
Lines 2207-2213 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2207
    </z:index>
2206
    </z:index>
2208
  </xslo:template>
2207
  </xslo:template>
2209
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
2208
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
2210
    <z:index name="Title:w Title:p Title-other-variant:w">
2209
    <z:index name="Title:w Title:p Title-other-variant:w Any:w Any:p">
2211
      <xslo:variable name="raw_heading">
2210
      <xslo:variable name="raw_heading">
2212
        <xslo:for-each select="marc:subfield">
2211
        <xslo:for-each select="marc:subfield">
2213
          <xslo:if test="position() &gt; 1">
2212
          <xslo:if test="position() &gt; 1">
Lines 2220-2226 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2220
    </z:index>
2219
    </z:index>
2221
  </xslo:template>
2220
  </xslo:template>
2222
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='751']">
2221
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='751']">
2223
    <z:index name="Name-geographic:w">
2222
    <z:index name="Name-geographic:w Any:w Any:p">
2224
      <xslo:variable name="raw_heading">
2223
      <xslo:variable name="raw_heading">
2225
        <xslo:for-each select="marc:subfield">
2224
        <xslo:for-each select="marc:subfield">
2226
          <xslo:if test="position() &gt; 1">
2225
          <xslo:if test="position() &gt; 1">
Lines 2233-2239 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2233
    </z:index>
2232
    </z:index>
2234
  </xslo:template>
2233
  </xslo:template>
2235
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
2234
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
2236
    <z:index name="Title:w Title:p Title-former:w Related-periodical:w">
2235
    <z:index name="Title:w Title:p Title-former:w Related-periodical:w Any:w Any:p">
2237
      <xslo:variable name="raw_heading">
2236
      <xslo:variable name="raw_heading">
2238
        <xslo:for-each select="marc:subfield">
2237
        <xslo:for-each select="marc:subfield">
2239
          <xslo:if test="position() &gt; 1">
2238
          <xslo:if test="position() &gt; 1">
Lines 2246-2252 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2246
    </z:index>
2245
    </z:index>
2247
  </xslo:template>
2246
  </xslo:template>
2248
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
2247
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
2249
    <z:index name="Title:w Title:p Title-later:w Related-periodical:w">
2248
    <z:index name="Title:w Title:p Title-later:w Related-periodical:w Any:w Any:p">
2250
      <xslo:variable name="raw_heading">
2249
      <xslo:variable name="raw_heading">
2251
        <xslo:for-each select="marc:subfield">
2250
        <xslo:for-each select="marc:subfield">
2252
          <xslo:if test="position() &gt; 1">
2251
          <xslo:if test="position() &gt; 1">
Lines 2259-2265 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2259
    </z:index>
2258
    </z:index>
2260
  </xslo:template>
2259
  </xslo:template>
2261
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
2260
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
2262
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
2261
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w Any:w Any:p">
2263
      <xslo:variable name="raw_heading">
2262
      <xslo:variable name="raw_heading">
2264
        <xslo:for-each select="marc:subfield">
2263
        <xslo:for-each select="marc:subfield">
2265
          <xslo:if test="position() &gt; 1">
2264
          <xslo:if test="position() &gt; 1">
Lines 2272-2278 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2272
    </z:index>
2271
    </z:index>
2273
  </xslo:template>
2272
  </xslo:template>
2274
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
2273
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
2275
    <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w">
2274
    <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w Any:w Any:p">
2276
      <xslo:variable name="raw_heading">
2275
      <xslo:variable name="raw_heading">
2277
        <xslo:for-each select="marc:subfield">
2276
        <xslo:for-each select="marc:subfield">
2278
          <xslo:if test="position() &gt; 1">
2277
          <xslo:if test="position() &gt; 1">
Lines 2285-2291 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2285
    </z:index>
2284
    </z:index>
2286
  </xslo:template>
2285
  </xslo:template>
2287
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
2286
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
2288
    <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w">
2287
    <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w Any:w Any:p">
2289
      <xslo:variable name="raw_heading">
2288
      <xslo:variable name="raw_heading">
2290
        <xslo:for-each select="marc:subfield">
2289
        <xslo:for-each select="marc:subfield">
2291
          <xslo:if test="position() &gt; 1">
2290
          <xslo:if test="position() &gt; 1">
Lines 2298-2304 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2298
    </z:index>
2297
    </z:index>
2299
  </xslo:template>
2298
  </xslo:template>
2300
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
2299
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
2301
    <z:index name="Title:w Title-series:w Title-series:p">
2300
    <z:index name="Title:w Title-series:w Title-series:p Any:w Any:p">
2302
      <xslo:variable name="raw_heading">
2301
      <xslo:variable name="raw_heading">
2303
        <xslo:for-each select="marc:subfield">
2302
        <xslo:for-each select="marc:subfield">
2304
          <xslo:if test="position() &gt; 1">
2303
          <xslo:if test="position() &gt; 1">
Lines 2311-2317 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2311
    </z:index>
2310
    </z:index>
2312
  </xslo:template>
2311
  </xslo:template>
2313
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='840']">
2312
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='840']">
2314
    <z:index name="Title:w Title-series:w Title-series:p">
2313
    <z:index name="Title:w Title-series:w Title-series:p Any:w Any:p">
2315
      <xslo:variable name="raw_heading">
2314
      <xslo:variable name="raw_heading">
2316
        <xslo:for-each select="marc:subfield">
2315
        <xslo:for-each select="marc:subfield">
2317
          <xslo:if test="position() &gt; 1">
2316
          <xslo:if test="position() &gt; 1">
Lines 2323-2333 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2323
      <xslo:value-of select="normalize-space($raw_heading)"/>
2322
      <xslo:value-of select="normalize-space($raw_heading)"/>
2324
    </z:index>
2323
    </z:index>
2325
  </xslo:template>
2324
  </xslo:template>
2326
  <xslo:template mode="index_all" match="text()">
2327
    <z:index name="Any:w Any:p">
2328
      <xslo:value-of select="."/>
2329
    </z:index>
2330
  </xslo:template>
2331
  <xslo:template name="chopPunctuation">
2325
  <xslo:template name="chopPunctuation">
2332
    <xslo:param name="chopString"/>
2326
    <xslo:param name="chopString"/>
2333
    <xslo:variable name="length" select="string-length($chopString)"/>
2327
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (-182 / +176 lines)
Lines 39-45 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
      <xslo:apply-templates mode="index_heading_conditional"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
42
      <xslo:apply-templates mode="index_all"/>
43
    </z:record>
42
    </z:record>
44
  </xslo:template>
43
  </xslo:template>
45
  <xslo:template match="marc:leader">
44
  <xslo:template match="marc:leader">
Lines 128-134 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
128
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
127
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='020']">
129
    <xslo:for-each select="marc:subfield">
128
    <xslo:for-each select="marc:subfield">
130
      <xslo:if test="contains('a', @code)">
129
      <xslo:if test="contains('a', @code)">
131
        <z:index name="ISBN:w Identifier-standard:w">
130
        <z:index name="ISBN:w Identifier-standard:w Any:w Any:p">
132
          <xslo:value-of select="."/>
131
          <xslo:value-of select="."/>
133
        </z:index>
132
        </z:index>
134
      </xslo:if>
133
      </xslo:if>
Lines 137-143 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
137
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
136
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']">
138
    <xslo:for-each select="marc:subfield">
137
    <xslo:for-each select="marc:subfield">
139
      <xslo:if test="contains('a', @code)">
138
      <xslo:if test="contains('a', @code)">
140
        <z:index name="ISSN:w ISBN:w">
139
        <z:index name="ISSN:w ISBN:w Any:w Any:p">
141
          <xslo:value-of select="."/>
140
          <xslo:value-of select="."/>
142
        </z:index>
141
        </z:index>
143
      </xslo:if>
142
      </xslo:if>
Lines 146-159 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
146
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
145
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
147
    <xslo:for-each select="marc:subfield">
146
    <xslo:for-each select="marc:subfield">
148
      <xslo:if test="contains('9', @code)">
147
      <xslo:if test="contains('9', @code)">
149
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
148
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
150
          <xslo:value-of select="."/>
149
          <xslo:value-of select="."/>
151
        </z:index>
150
        </z:index>
152
      </xslo:if>
151
      </xslo:if>
153
    </xslo:for-each>
152
    </xslo:for-each>
154
    <xslo:for-each select="marc:subfield">
153
    <xslo:for-each select="marc:subfield">
155
      <xslo:if test="contains('a', @code)">
154
      <xslo:if test="contains('a', @code)">
156
        <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s">
155
        <z:index name="Author:w Author:p Author:s Editor:w Author-personal-bibliography:w Author-personal-bibliography:p Author-personal-bibliography:s Any:w Any:p">
157
          <xslo:value-of select="."/>
156
          <xslo:value-of select="."/>
158
        </z:index>
157
        </z:index>
159
      </xslo:if>
158
      </xslo:if>
Lines 162-168 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
162
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
161
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
163
    <xslo:for-each select="marc:subfield">
162
    <xslo:for-each select="marc:subfield">
164
      <xslo:if test="contains('9', @code)">
163
      <xslo:if test="contains('9', @code)">
165
        <z:index name="Koha-Auth-Number:w">
164
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
166
          <xslo:value-of select="."/>
165
          <xslo:value-of select="."/>
167
        </z:index>
166
        </z:index>
168
      </xslo:if>
167
      </xslo:if>
Lines 171-177 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
171
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
170
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='111']">
172
    <xslo:for-each select="marc:subfield">
171
    <xslo:for-each select="marc:subfield">
173
      <xslo:if test="contains('9', @code)">
172
      <xslo:if test="contains('9', @code)">
174
        <z:index name="Koha-Auth-Number:w">
173
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
175
          <xslo:value-of select="."/>
174
          <xslo:value-of select="."/>
176
        </z:index>
175
        </z:index>
177
      </xslo:if>
176
      </xslo:if>
Lines 180-207 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
180
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
179
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='130']">
181
    <xslo:for-each select="marc:subfield">
180
    <xslo:for-each select="marc:subfield">
182
      <xslo:if test="contains('i', @code)">
181
      <xslo:if test="contains('i', @code)">
183
        <z:index name="Thematic-number:w">
182
        <z:index name="Thematic-number:w Any:w Any:p">
184
          <xslo:value-of select="."/>
183
          <xslo:value-of select="."/>
185
        </z:index>
184
        </z:index>
186
      </xslo:if>
185
      </xslo:if>
187
    </xslo:for-each>
186
    </xslo:for-each>
188
    <xslo:for-each select="marc:subfield">
187
    <xslo:for-each select="marc:subfield">
189
      <xslo:if test="contains('n', @code)">
188
      <xslo:if test="contains('n', @code)">
190
        <z:index name="Thematic-number:w">
189
        <z:index name="Thematic-number:w Any:w Any:p">
191
          <xslo:value-of select="."/>
190
          <xslo:value-of select="."/>
192
        </z:index>
191
        </z:index>
193
      </xslo:if>
192
      </xslo:if>
194
    </xslo:for-each>
193
    </xslo:for-each>
195
    <xslo:for-each select="marc:subfield">
194
    <xslo:for-each select="marc:subfield">
196
      <xslo:if test="contains('r', @code)">
195
      <xslo:if test="contains('r', @code)">
197
        <z:index name="Music-key:w">
196
        <z:index name="Music-key:w Any:w Any:p">
198
          <xslo:value-of select="."/>
197
          <xslo:value-of select="."/>
199
        </z:index>
198
        </z:index>
200
      </xslo:if>
199
      </xslo:if>
201
    </xslo:for-each>
200
    </xslo:for-each>
202
    <xslo:for-each select="marc:subfield">
201
    <xslo:for-each select="marc:subfield">
203
      <xslo:if test="contains('9', @code)">
202
      <xslo:if test="contains('9', @code)">
204
        <z:index name="Koha-Auth-Number:w">
203
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
205
          <xslo:value-of select="."/>
204
          <xslo:value-of select="."/>
206
        </z:index>
205
        </z:index>
207
      </xslo:if>
206
      </xslo:if>
Lines 210-230 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
210
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
209
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
211
    <xslo:for-each select="marc:subfield">
210
    <xslo:for-each select="marc:subfield">
212
      <xslo:if test="contains('i', @code)">
211
      <xslo:if test="contains('i', @code)">
213
        <z:index name="Thematic-number:w">
212
        <z:index name="Thematic-number:w Any:w Any:p">
214
          <xslo:value-of select="."/>
213
          <xslo:value-of select="."/>
215
        </z:index>
214
        </z:index>
216
      </xslo:if>
215
      </xslo:if>
217
    </xslo:for-each>
216
    </xslo:for-each>
218
    <xslo:for-each select="marc:subfield">
217
    <xslo:for-each select="marc:subfield">
219
      <xslo:if test="contains('r', @code)">
218
      <xslo:if test="contains('r', @code)">
220
        <z:index name="Music-key:w">
219
        <z:index name="Music-key:w Any:w Any:p">
221
          <xslo:value-of select="."/>
220
          <xslo:value-of select="."/>
222
        </z:index>
221
        </z:index>
223
      </xslo:if>
222
      </xslo:if>
224
    </xslo:for-each>
223
    </xslo:for-each>
225
    <xslo:for-each select="marc:subfield">
224
    <xslo:for-each select="marc:subfield">
226
      <xslo:if test="contains('n', @code)">
225
      <xslo:if test="contains('n', @code)">
227
        <z:index name="Thematic-number:w">
226
        <z:index name="Thematic-number:w Any:w Any:p">
228
          <xslo:value-of select="."/>
227
          <xslo:value-of select="."/>
229
        </z:index>
228
        </z:index>
230
      </xslo:if>
229
      </xslo:if>
Lines 233-253 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
233
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
232
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
234
    <xslo:for-each select="marc:subfield">
233
    <xslo:for-each select="marc:subfield">
235
      <xslo:if test="contains('a', @code)">
234
      <xslo:if test="contains('a', @code)">
236
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
235
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s Any:w Any:p">
237
          <xslo:value-of select="."/>
236
          <xslo:value-of select="."/>
238
        </z:index>
237
        </z:index>
239
      </xslo:if>
238
      </xslo:if>
240
    </xslo:for-each>
239
    </xslo:for-each>
241
    <xslo:for-each select="marc:subfield">
240
    <xslo:for-each select="marc:subfield">
242
      <xslo:if test="contains('c', @code)">
241
      <xslo:if test="contains('c', @code)">
243
        <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s">
242
        <z:index name="Author:w Author-in-order:w Author-in-order:p Author-in-order:s Any:w Any:p">
244
          <xslo:value-of select="."/>
243
          <xslo:value-of select="."/>
245
        </z:index>
244
        </z:index>
246
      </xslo:if>
245
      </xslo:if>
247
    </xslo:for-each>
246
    </xslo:for-each>
248
    <xslo:for-each select="marc:subfield">
247
    <xslo:for-each select="marc:subfield">
249
      <xslo:if test="contains('9', @code)">
248
      <xslo:if test="contains('9', @code)">
250
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
249
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
251
          <xslo:value-of select="."/>
250
          <xslo:value-of select="."/>
252
        </z:index>
251
        </z:index>
253
      </xslo:if>
252
      </xslo:if>
Lines 256-276 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
256
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
255
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
257
    <xslo:for-each select="marc:subfield">
256
    <xslo:for-each select="marc:subfield">
258
      <xslo:if test="contains('a', @code)">
257
      <xslo:if test="contains('a', @code)">
259
        <z:index name="pl:w pl:p">
258
        <z:index name="pl:w pl:p Any:w Any:p">
260
          <xslo:value-of select="."/>
259
          <xslo:value-of select="."/>
261
        </z:index>
260
        </z:index>
262
      </xslo:if>
261
      </xslo:if>
263
    </xslo:for-each>
262
    </xslo:for-each>
264
    <xslo:for-each select="marc:subfield">
263
    <xslo:for-each select="marc:subfield">
265
      <xslo:if test="contains('b', @code)">
264
      <xslo:if test="contains('b', @code)">
266
        <z:index name="Publisher:w Publisher:p">
265
        <z:index name="Publisher:w Publisher:p Any:w Any:p">
267
          <xslo:value-of select="."/>
266
          <xslo:value-of select="."/>
268
        </z:index>
267
        </z:index>
269
      </xslo:if>
268
      </xslo:if>
270
    </xslo:for-each>
269
    </xslo:for-each>
271
    <xslo:for-each select="marc:subfield">
270
    <xslo:for-each select="marc:subfield">
272
      <xslo:if test="contains('c', @code)">
271
      <xslo:if test="contains('c', @code)">
273
        <z:index name="copydate:w copydate:s">
272
        <z:index name="copydate:w copydate:s Any:w Any:p">
274
          <xslo:value-of select="."/>
273
          <xslo:value-of select="."/>
275
        </z:index>
274
        </z:index>
276
      </xslo:if>
275
      </xslo:if>
Lines 279-292 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
279
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
278
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
280
    <xslo:for-each select="marc:subfield">
279
    <xslo:for-each select="marc:subfield">
281
      <xslo:if test="contains('a', @code)">
280
      <xslo:if test="contains('a', @code)">
282
        <z:index name="Title-series:w Title-series:p">
281
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
283
          <xslo:value-of select="."/>
282
          <xslo:value-of select="."/>
284
        </z:index>
283
        </z:index>
285
      </xslo:if>
284
      </xslo:if>
286
    </xslo:for-each>
285
    </xslo:for-each>
287
    <xslo:for-each select="marc:subfield">
286
    <xslo:for-each select="marc:subfield">
288
      <xslo:if test="contains('9', @code)">
287
      <xslo:if test="contains('9', @code)">
289
        <z:index name="Koha-Auth-Number:w">
288
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
290
          <xslo:value-of select="."/>
289
          <xslo:value-of select="."/>
291
        </z:index>
290
        </z:index>
292
      </xslo:if>
291
      </xslo:if>
Lines 295-308 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
295
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
294
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='490']">
296
    <xslo:for-each select="marc:subfield">
295
    <xslo:for-each select="marc:subfield">
297
      <xslo:if test="contains('a', @code)">
296
      <xslo:if test="contains('a', @code)">
298
        <z:index name="Title-series:w Title-series:p">
297
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
299
          <xslo:value-of select="."/>
298
          <xslo:value-of select="."/>
300
        </z:index>
299
        </z:index>
301
      </xslo:if>
300
      </xslo:if>
302
    </xslo:for-each>
301
    </xslo:for-each>
303
    <xslo:for-each select="marc:subfield">
302
    <xslo:for-each select="marc:subfield">
304
      <xslo:if test="contains('9', @code)">
303
      <xslo:if test="contains('9', @code)">
305
        <z:index name="Koha-Auth-Number:w">
304
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
306
          <xslo:value-of select="."/>
305
          <xslo:value-of select="."/>
307
        </z:index>
306
        </z:index>
308
      </xslo:if>
307
      </xslo:if>
Lines 311-331 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
311
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
310
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
312
    <xslo:for-each select="marc:subfield">
311
    <xslo:for-each select="marc:subfield">
313
      <xslo:if test="contains('a', @code)">
312
      <xslo:if test="contains('a', @code)">
314
        <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
313
        <z:index name="Name-and-title:w Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p Any:w Any:p">
315
          <xslo:value-of select="."/>
314
          <xslo:value-of select="."/>
316
        </z:index>
315
        </z:index>
317
      </xslo:if>
316
      </xslo:if>
318
    </xslo:for-each>
317
    </xslo:for-each>
319
    <xslo:for-each select="marc:subfield">
318
    <xslo:for-each select="marc:subfield">
320
      <xslo:if test="contains('t', @code)">
319
      <xslo:if test="contains('t', @code)">
321
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
320
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
322
          <xslo:value-of select="."/>
321
          <xslo:value-of select="."/>
323
        </z:index>
322
        </z:index>
324
      </xslo:if>
323
      </xslo:if>
325
    </xslo:for-each>
324
    </xslo:for-each>
326
    <xslo:for-each select="marc:subfield">
325
    <xslo:for-each select="marc:subfield">
327
      <xslo:if test="contains('9', @code)">
326
      <xslo:if test="contains('9', @code)">
328
        <z:index name="Koha-Auth-Number:w">
327
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
329
          <xslo:value-of select="."/>
328
          <xslo:value-of select="."/>
330
        </z:index>
329
        </z:index>
331
      </xslo:if>
330
      </xslo:if>
Lines 334-354 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
334
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
333
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
335
    <xslo:for-each select="marc:subfield">
334
    <xslo:for-each select="marc:subfield">
336
      <xslo:if test="contains('a', @code)">
335
      <xslo:if test="contains('a', @code)">
337
        <z:index name="Name-and-title:w Subject:w Subject:p">
336
        <z:index name="Name-and-title:w Subject:w Subject:p Any:w Any:p">
338
          <xslo:value-of select="."/>
337
          <xslo:value-of select="."/>
339
        </z:index>
338
        </z:index>
340
      </xslo:if>
339
      </xslo:if>
341
    </xslo:for-each>
340
    </xslo:for-each>
342
    <xslo:for-each select="marc:subfield">
341
    <xslo:for-each select="marc:subfield">
343
      <xslo:if test="contains('t', @code)">
342
      <xslo:if test="contains('t', @code)">
344
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
343
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
345
          <xslo:value-of select="."/>
344
          <xslo:value-of select="."/>
346
        </z:index>
345
        </z:index>
347
      </xslo:if>
346
      </xslo:if>
348
    </xslo:for-each>
347
    </xslo:for-each>
349
    <xslo:for-each select="marc:subfield">
348
    <xslo:for-each select="marc:subfield">
350
      <xslo:if test="contains('9', @code)">
349
      <xslo:if test="contains('9', @code)">
351
        <z:index name="Koha-Auth-Number:w">
350
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
352
          <xslo:value-of select="."/>
351
          <xslo:value-of select="."/>
353
        </z:index>
352
        </z:index>
354
      </xslo:if>
353
      </xslo:if>
Lines 357-377 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
357
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
356
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='611']">
358
    <xslo:for-each select="marc:subfield">
357
    <xslo:for-each select="marc:subfield">
359
      <xslo:if test="contains('a', @code)">
358
      <xslo:if test="contains('a', @code)">
360
        <z:index name="Name-and-title:w Subject:w Subject:p">
359
        <z:index name="Name-and-title:w Subject:w Subject:p Any:w Any:p">
361
          <xslo:value-of select="."/>
360
          <xslo:value-of select="."/>
362
        </z:index>
361
        </z:index>
363
      </xslo:if>
362
      </xslo:if>
364
    </xslo:for-each>
363
    </xslo:for-each>
365
    <xslo:for-each select="marc:subfield">
364
    <xslo:for-each select="marc:subfield">
366
      <xslo:if test="contains('t', @code)">
365
      <xslo:if test="contains('t', @code)">
367
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p">
366
        <z:index name="Name-and-title:w Title:w Subject:w Subject:p Any:w Any:p">
368
          <xslo:value-of select="."/>
367
          <xslo:value-of select="."/>
369
        </z:index>
368
        </z:index>
370
      </xslo:if>
369
      </xslo:if>
371
    </xslo:for-each>
370
    </xslo:for-each>
372
    <xslo:for-each select="marc:subfield">
371
    <xslo:for-each select="marc:subfield">
373
      <xslo:if test="contains('9', @code)">
372
      <xslo:if test="contains('9', @code)">
374
        <z:index name="Koha-Auth-Number:w">
373
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
375
          <xslo:value-of select="."/>
374
          <xslo:value-of select="."/>
376
        </z:index>
375
        </z:index>
377
      </xslo:if>
376
      </xslo:if>
Lines 380-407 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
380
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
379
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
381
    <xslo:for-each select="marc:subfield">
380
    <xslo:for-each select="marc:subfield">
382
      <xslo:if test="contains('i', @code)">
381
      <xslo:if test="contains('i', @code)">
383
        <z:index name="Thematic-number:w Subject:w Subject:p">
382
        <z:index name="Thematic-number:w Subject:w Subject:p Any:w Any:p">
384
          <xslo:value-of select="."/>
383
          <xslo:value-of select="."/>
385
        </z:index>
384
        </z:index>
386
      </xslo:if>
385
      </xslo:if>
387
    </xslo:for-each>
386
    </xslo:for-each>
388
    <xslo:for-each select="marc:subfield">
387
    <xslo:for-each select="marc:subfield">
389
      <xslo:if test="contains('n', @code)">
388
      <xslo:if test="contains('n', @code)">
390
        <z:index name="Thematic-number:w Subject:w Subject:p">
389
        <z:index name="Thematic-number:w Subject:w Subject:p Any:w Any:p">
391
          <xslo:value-of select="."/>
390
          <xslo:value-of select="."/>
392
        </z:index>
391
        </z:index>
393
      </xslo:if>
392
      </xslo:if>
394
    </xslo:for-each>
393
    </xslo:for-each>
395
    <xslo:for-each select="marc:subfield">
394
    <xslo:for-each select="marc:subfield">
396
      <xslo:if test="contains('r', @code)">
395
      <xslo:if test="contains('r', @code)">
397
        <z:index name="Music-key:w Subject:w Subject:p">
396
        <z:index name="Music-key:w Subject:w Subject:p Any:w Any:p">
398
          <xslo:value-of select="."/>
397
          <xslo:value-of select="."/>
399
        </z:index>
398
        </z:index>
400
      </xslo:if>
399
      </xslo:if>
401
    </xslo:for-each>
400
    </xslo:for-each>
402
    <xslo:for-each select="marc:subfield">
401
    <xslo:for-each select="marc:subfield">
403
      <xslo:if test="contains('9', @code)">
402
      <xslo:if test="contains('9', @code)">
404
        <z:index name="Koha-Auth-Number:w">
403
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
405
          <xslo:value-of select="."/>
404
          <xslo:value-of select="."/>
406
        </z:index>
405
        </z:index>
407
      </xslo:if>
406
      </xslo:if>
Lines 410-416 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
410
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
409
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
411
    <xslo:for-each select="marc:subfield">
410
    <xslo:for-each select="marc:subfield">
412
      <xslo:if test="contains('9', @code)">
411
      <xslo:if test="contains('9', @code)">
413
        <z:index name="Koha-Auth-Number:w">
412
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
414
          <xslo:value-of select="."/>
413
          <xslo:value-of select="."/>
415
        </z:index>
414
        </z:index>
416
      </xslo:if>
415
      </xslo:if>
Lines 419-425 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
419
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
418
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='651']">
420
    <xslo:for-each select="marc:subfield">
419
    <xslo:for-each select="marc:subfield">
421
      <xslo:if test="contains('9', @code)">
420
      <xslo:if test="contains('9', @code)">
422
        <z:index name="Koha-Auth-Number:w">
421
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
423
          <xslo:value-of select="."/>
422
          <xslo:value-of select="."/>
424
        </z:index>
423
        </z:index>
425
      </xslo:if>
424
      </xslo:if>
Lines 428-434 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
428
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
427
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='652']">
429
    <xslo:for-each select="marc:subfield">
428
    <xslo:for-each select="marc:subfield">
430
      <xslo:if test="contains('9', @code)">
429
      <xslo:if test="contains('9', @code)">
431
        <z:index name="Koha-Auth-Number:w">
430
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
432
          <xslo:value-of select="."/>
431
          <xslo:value-of select="."/>
433
        </z:index>
432
        </z:index>
434
      </xslo:if>
433
      </xslo:if>
Lines 437-443 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
437
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
436
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']">
438
    <xslo:for-each select="marc:subfield">
437
    <xslo:for-each select="marc:subfield">
439
      <xslo:if test="contains('9', @code)">
438
      <xslo:if test="contains('9', @code)">
440
        <z:index name="Koha-Auth-Number:w">
439
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
441
          <xslo:value-of select="."/>
440
          <xslo:value-of select="."/>
442
        </z:index>
441
        </z:index>
443
      </xslo:if>
442
      </xslo:if>
Lines 446-452 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
446
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
445
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='654']">
447
    <xslo:for-each select="marc:subfield">
446
    <xslo:for-each select="marc:subfield">
448
      <xslo:if test="contains('9', @code)">
447
      <xslo:if test="contains('9', @code)">
449
        <z:index name="Koha-Auth-Number:w">
448
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
450
          <xslo:value-of select="."/>
449
          <xslo:value-of select="."/>
451
        </z:index>
450
        </z:index>
452
      </xslo:if>
451
      </xslo:if>
Lines 455-461 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
455
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
454
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']">
456
    <xslo:for-each select="marc:subfield">
455
    <xslo:for-each select="marc:subfield">
457
      <xslo:if test="contains('9', @code)">
456
      <xslo:if test="contains('9', @code)">
458
        <z:index name="Koha-Auth-Number:w">
457
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
459
          <xslo:value-of select="."/>
458
          <xslo:value-of select="."/>
460
        </z:index>
459
        </z:index>
461
      </xslo:if>
460
      </xslo:if>
Lines 464-470 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
464
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
463
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='656']">
465
    <xslo:for-each select="marc:subfield">
464
    <xslo:for-each select="marc:subfield">
466
      <xslo:if test="contains('9', @code)">
465
      <xslo:if test="contains('9', @code)">
467
        <z:index name="Koha-Auth-Number:w">
466
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
468
          <xslo:value-of select="."/>
467
          <xslo:value-of select="."/>
469
        </z:index>
468
        </z:index>
470
      </xslo:if>
469
      </xslo:if>
Lines 473-479 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
473
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
472
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='657']">
474
    <xslo:for-each select="marc:subfield">
473
    <xslo:for-each select="marc:subfield">
475
      <xslo:if test="contains('9', @code)">
474
      <xslo:if test="contains('9', @code)">
476
        <z:index name="Koha-Auth-Number:w">
475
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
477
          <xslo:value-of select="."/>
476
          <xslo:value-of select="."/>
478
        </z:index>
477
        </z:index>
479
      </xslo:if>
478
      </xslo:if>
Lines 482-488 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
482
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
481
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='690']">
483
    <xslo:for-each select="marc:subfield">
482
    <xslo:for-each select="marc:subfield">
484
      <xslo:if test="contains('9', @code)">
483
      <xslo:if test="contains('9', @code)">
485
        <z:index name="Koha-Auth-Number:w">
484
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
486
          <xslo:value-of select="."/>
485
          <xslo:value-of select="."/>
487
        </z:index>
486
        </z:index>
488
      </xslo:if>
487
      </xslo:if>
Lines 491-532 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
491
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
490
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
492
    <xslo:for-each select="marc:subfield">
491
    <xslo:for-each select="marc:subfield">
493
      <xslo:if test="contains('9', @code)">
492
      <xslo:if test="contains('9', @code)">
494
        <z:index name="Cross-Reference:w Koha-Auth-Number:w">
493
        <z:index name="Cross-Reference:w Koha-Auth-Number:w Any:w Any:p">
495
          <xslo:value-of select="."/>
494
          <xslo:value-of select="."/>
496
        </z:index>
495
        </z:index>
497
      </xslo:if>
496
      </xslo:if>
498
    </xslo:for-each>
497
    </xslo:for-each>
499
    <xslo:for-each select="marc:subfield">
498
    <xslo:for-each select="marc:subfield">
500
      <xslo:if test="contains('a', @code)">
499
      <xslo:if test="contains('a', @code)">
501
        <z:index name="Author:w Author:p">
500
        <z:index name="Author:w Author:p Any:w Any:p">
502
          <xslo:value-of select="."/>
501
          <xslo:value-of select="."/>
503
        </z:index>
502
        </z:index>
504
      </xslo:if>
503
      </xslo:if>
505
    </xslo:for-each>
504
    </xslo:for-each>
506
    <xslo:for-each select="marc:subfield">
505
    <xslo:for-each select="marc:subfield">
507
      <xslo:if test="contains('i', @code)">
506
      <xslo:if test="contains('i', @code)">
508
        <z:index name="Thematic-number:w">
507
        <z:index name="Thematic-number:w Any:w Any:p">
509
          <xslo:value-of select="."/>
508
          <xslo:value-of select="."/>
510
        </z:index>
509
        </z:index>
511
      </xslo:if>
510
      </xslo:if>
512
    </xslo:for-each>
511
    </xslo:for-each>
513
    <xslo:for-each select="marc:subfield">
512
    <xslo:for-each select="marc:subfield">
514
      <xslo:if test="contains('n', @code)">
513
      <xslo:if test="contains('n', @code)">
515
        <z:index name="Thematic-number:w">
514
        <z:index name="Thematic-number:w Any:w Any:p">
516
          <xslo:value-of select="."/>
515
          <xslo:value-of select="."/>
517
        </z:index>
516
        </z:index>
518
      </xslo:if>
517
      </xslo:if>
519
    </xslo:for-each>
518
    </xslo:for-each>
520
    <xslo:for-each select="marc:subfield">
519
    <xslo:for-each select="marc:subfield">
521
      <xslo:if test="contains('r', @code)">
520
      <xslo:if test="contains('r', @code)">
522
        <z:index name="Music-key:w">
521
        <z:index name="Music-key:w Any:w Any:p">
523
          <xslo:value-of select="."/>
522
          <xslo:value-of select="."/>
524
        </z:index>
523
        </z:index>
525
      </xslo:if>
524
      </xslo:if>
526
    </xslo:for-each>
525
    </xslo:for-each>
527
    <xslo:for-each select="marc:subfield">
526
    <xslo:for-each select="marc:subfield">
528
      <xslo:if test="contains('t', @code)">
527
      <xslo:if test="contains('t', @code)">
529
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
528
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w Any:w Any:p">
530
          <xslo:value-of select="."/>
529
          <xslo:value-of select="."/>
531
        </z:index>
530
        </z:index>
532
      </xslo:if>
531
      </xslo:if>
Lines 535-562 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
535
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
534
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
536
    <xslo:for-each select="marc:subfield">
535
    <xslo:for-each select="marc:subfield">
537
      <xslo:if test="contains('t', @code)">
536
      <xslo:if test="contains('t', @code)">
538
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w">
537
        <z:index name="Author-title:w Name-and-title:w Title:w Title-uniform:w Any:w Any:p">
539
          <xslo:value-of select="."/>
538
          <xslo:value-of select="."/>
540
        </z:index>
539
        </z:index>
541
      </xslo:if>
540
      </xslo:if>
542
    </xslo:for-each>
541
    </xslo:for-each>
543
    <xslo:for-each select="marc:subfield">
542
    <xslo:for-each select="marc:subfield">
544
      <xslo:if test="contains('a', @code)">
543
      <xslo:if test="contains('a', @code)">
545
        <z:index name="Name-and-title:w">
544
        <z:index name="Name-and-title:w Any:w Any:p">
546
          <xslo:value-of select="."/>
545
          <xslo:value-of select="."/>
547
        </z:index>
546
        </z:index>
548
      </xslo:if>
547
      </xslo:if>
549
    </xslo:for-each>
548
    </xslo:for-each>
550
    <xslo:for-each select="marc:subfield">
549
    <xslo:for-each select="marc:subfield">
551
      <xslo:if test="contains('i', @code)">
550
      <xslo:if test="contains('i', @code)">
552
        <z:index name="Thematic-number:w">
551
        <z:index name="Thematic-number:w Any:w Any:p">
553
          <xslo:value-of select="."/>
552
          <xslo:value-of select="."/>
554
        </z:index>
553
        </z:index>
555
      </xslo:if>
554
      </xslo:if>
556
    </xslo:for-each>
555
    </xslo:for-each>
557
    <xslo:for-each select="marc:subfield">
556
    <xslo:for-each select="marc:subfield">
558
      <xslo:if test="contains('9', @code)">
557
      <xslo:if test="contains('9', @code)">
559
        <z:index name="Koha-Auth-Number:w">
558
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
560
          <xslo:value-of select="."/>
559
          <xslo:value-of select="."/>
561
        </z:index>
560
        </z:index>
562
      </xslo:if>
561
      </xslo:if>
Lines 565-585 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
565
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
564
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
566
    <xslo:for-each select="marc:subfield">
565
    <xslo:for-each select="marc:subfield">
567
      <xslo:if test="contains('a', @code)">
566
      <xslo:if test="contains('a', @code)">
568
        <z:index name="Name-and-title:w">
567
        <z:index name="Name-and-title:w Any:w Any:p">
569
          <xslo:value-of select="."/>
568
          <xslo:value-of select="."/>
570
        </z:index>
569
        </z:index>
571
      </xslo:if>
570
      </xslo:if>
572
    </xslo:for-each>
571
    </xslo:for-each>
573
    <xslo:for-each select="marc:subfield">
572
    <xslo:for-each select="marc:subfield">
574
      <xslo:if test="contains('t', @code)">
573
      <xslo:if test="contains('t', @code)">
575
        <z:index name="Author-title:w Title:w Title-uniform:w">
574
        <z:index name="Author-title:w Title:w Title-uniform:w Any:w Any:p">
576
          <xslo:value-of select="."/>
575
          <xslo:value-of select="."/>
577
        </z:index>
576
        </z:index>
578
      </xslo:if>
577
      </xslo:if>
579
    </xslo:for-each>
578
    </xslo:for-each>
580
    <xslo:for-each select="marc:subfield">
579
    <xslo:for-each select="marc:subfield">
581
      <xslo:if test="contains('9', @code)">
580
      <xslo:if test="contains('9', @code)">
582
        <z:index name="Koha-Auth-Number:w">
581
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
583
          <xslo:value-of select="."/>
582
          <xslo:value-of select="."/>
584
        </z:index>
583
        </z:index>
585
      </xslo:if>
584
      </xslo:if>
Lines 588-615 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
588
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
587
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
589
    <xslo:for-each select="marc:subfield">
588
    <xslo:for-each select="marc:subfield">
590
      <xslo:if test="contains('i', @code)">
589
      <xslo:if test="contains('i', @code)">
591
        <z:index name="Thematic-number:w">
590
        <z:index name="Thematic-number:w Any:w Any:p">
592
          <xslo:value-of select="."/>
591
          <xslo:value-of select="."/>
593
        </z:index>
592
        </z:index>
594
      </xslo:if>
593
      </xslo:if>
595
    </xslo:for-each>
594
    </xslo:for-each>
596
    <xslo:for-each select="marc:subfield">
595
    <xslo:for-each select="marc:subfield">
597
      <xslo:if test="contains('n', @code)">
596
      <xslo:if test="contains('n', @code)">
598
        <z:index name="Thematic-number:w">
597
        <z:index name="Thematic-number:w Any:w Any:p">
599
          <xslo:value-of select="."/>
598
          <xslo:value-of select="."/>
600
        </z:index>
599
        </z:index>
601
      </xslo:if>
600
      </xslo:if>
602
    </xslo:for-each>
601
    </xslo:for-each>
603
    <xslo:for-each select="marc:subfield">
602
    <xslo:for-each select="marc:subfield">
604
      <xslo:if test="contains('r', @code)">
603
      <xslo:if test="contains('r', @code)">
605
        <z:index name="Music-key:w">
604
        <z:index name="Music-key:w Any:w Any:p">
606
          <xslo:value-of select="."/>
605
          <xslo:value-of select="."/>
607
        </z:index>
606
        </z:index>
608
      </xslo:if>
607
      </xslo:if>
609
    </xslo:for-each>
608
    </xslo:for-each>
610
    <xslo:for-each select="marc:subfield">
609
    <xslo:for-each select="marc:subfield">
611
      <xslo:if test="contains('9', @code)">
610
      <xslo:if test="contains('9', @code)">
612
        <z:index name="Koha-Auth-Number:w">
611
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
613
          <xslo:value-of select="."/>
612
          <xslo:value-of select="."/>
614
        </z:index>
613
        </z:index>
615
      </xslo:if>
614
      </xslo:if>
Lines 618-645 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
618
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
617
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='773']">
619
    <xslo:for-each select="marc:subfield">
618
    <xslo:for-each select="marc:subfield">
620
      <xslo:if test="contains('a', @code)">
619
      <xslo:if test="contains('a', @code)">
621
        <z:index name="Host-item:w">
620
        <z:index name="Host-item:w Any:w Any:p">
622
          <xslo:value-of select="."/>
621
          <xslo:value-of select="."/>
623
        </z:index>
622
        </z:index>
624
      </xslo:if>
623
      </xslo:if>
625
    </xslo:for-each>
624
    </xslo:for-each>
626
    <xslo:for-each select="marc:subfield">
625
    <xslo:for-each select="marc:subfield">
627
      <xslo:if test="contains('9', @code)">
626
      <xslo:if test="contains('9', @code)">
628
        <z:index name="Host-Item-Number:w">
627
        <z:index name="Host-Item-Number:w Any:w Any:p">
629
          <xslo:value-of select="."/>
628
          <xslo:value-of select="."/>
630
        </z:index>
629
        </z:index>
631
      </xslo:if>
630
      </xslo:if>
632
    </xslo:for-each>
631
    </xslo:for-each>
633
    <xslo:for-each select="marc:subfield">
632
    <xslo:for-each select="marc:subfield">
634
      <xslo:if test="contains('t', @code)">
633
      <xslo:if test="contains('t', @code)">
635
        <z:index name="Host-item:w">
634
        <z:index name="Host-item:w Any:w Any:p">
636
          <xslo:value-of select="."/>
635
          <xslo:value-of select="."/>
637
        </z:index>
636
        </z:index>
638
      </xslo:if>
637
      </xslo:if>
639
    </xslo:for-each>
638
    </xslo:for-each>
640
    <xslo:for-each select="marc:subfield">
639
    <xslo:for-each select="marc:subfield">
641
      <xslo:if test="contains('w', @code)">
640
      <xslo:if test="contains('w', @code)">
642
        <z:index name="Record-control-number:w">
641
        <z:index name="Record-control-number:w Any:w Any:p">
643
          <xslo:value-of select="."/>
642
          <xslo:value-of select="."/>
644
        </z:index>
643
        </z:index>
645
      </xslo:if>
644
      </xslo:if>
Lines 648-654 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
648
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
647
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
649
    <xslo:for-each select="marc:subfield">
648
    <xslo:for-each select="marc:subfield">
650
      <xslo:if test="contains('t', @code)">
649
      <xslo:if test="contains('t', @code)">
651
        <z:index name="Title:w">
650
        <z:index name="Title:w Any:w Any:p">
652
          <xslo:value-of select="."/>
651
          <xslo:value-of select="."/>
653
        </z:index>
652
        </z:index>
654
      </xslo:if>
653
      </xslo:if>
Lines 657-677 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
657
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
656
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='800']">
658
    <xslo:for-each select="marc:subfield">
657
    <xslo:for-each select="marc:subfield">
659
      <xslo:if test="contains('a', @code)">
658
      <xslo:if test="contains('a', @code)">
660
        <z:index name="Name-and-title:w">
659
        <z:index name="Name-and-title:w Any:w Any:p">
661
          <xslo:value-of select="."/>
660
          <xslo:value-of select="."/>
662
        </z:index>
661
        </z:index>
663
      </xslo:if>
662
      </xslo:if>
664
    </xslo:for-each>
663
    </xslo:for-each>
665
    <xslo:for-each select="marc:subfield">
664
    <xslo:for-each select="marc:subfield">
666
      <xslo:if test="contains('t', @code)">
665
      <xslo:if test="contains('t', @code)">
667
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
666
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Any:w Any:p">
668
          <xslo:value-of select="."/>
667
          <xslo:value-of select="."/>
669
        </z:index>
668
        </z:index>
670
      </xslo:if>
669
      </xslo:if>
671
    </xslo:for-each>
670
    </xslo:for-each>
672
    <xslo:for-each select="marc:subfield">
671
    <xslo:for-each select="marc:subfield">
673
      <xslo:if test="contains('9', @code)">
672
      <xslo:if test="contains('9', @code)">
674
        <z:index name="Koha-Auth-Number:w">
673
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
675
          <xslo:value-of select="."/>
674
          <xslo:value-of select="."/>
676
        </z:index>
675
        </z:index>
677
      </xslo:if>
676
      </xslo:if>
Lines 680-700 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
680
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
679
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='810']">
681
    <xslo:for-each select="marc:subfield">
680
    <xslo:for-each select="marc:subfield">
682
      <xslo:if test="contains('a', @code)">
681
      <xslo:if test="contains('a', @code)">
683
        <z:index name="Name-and-title:w">
682
        <z:index name="Name-and-title:w Any:w Any:p">
684
          <xslo:value-of select="."/>
683
          <xslo:value-of select="."/>
685
        </z:index>
684
        </z:index>
686
      </xslo:if>
685
      </xslo:if>
687
    </xslo:for-each>
686
    </xslo:for-each>
688
    <xslo:for-each select="marc:subfield">
687
    <xslo:for-each select="marc:subfield">
689
      <xslo:if test="contains('t', @code)">
688
      <xslo:if test="contains('t', @code)">
690
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
689
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Any:w Any:p">
691
          <xslo:value-of select="."/>
690
          <xslo:value-of select="."/>
692
        </z:index>
691
        </z:index>
693
      </xslo:if>
692
      </xslo:if>
694
    </xslo:for-each>
693
    </xslo:for-each>
695
    <xslo:for-each select="marc:subfield">
694
    <xslo:for-each select="marc:subfield">
696
      <xslo:if test="contains('9', @code)">
695
      <xslo:if test="contains('9', @code)">
697
        <z:index name="Koha-Auth-Number:w">
696
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
698
          <xslo:value-of select="."/>
697
          <xslo:value-of select="."/>
699
        </z:index>
698
        </z:index>
700
      </xslo:if>
699
      </xslo:if>
Lines 703-723 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
703
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
702
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='811']">
704
    <xslo:for-each select="marc:subfield">
703
    <xslo:for-each select="marc:subfield">
705
      <xslo:if test="contains('a', @code)">
704
      <xslo:if test="contains('a', @code)">
706
        <z:index name="Name-and-title:w">
705
        <z:index name="Name-and-title:w Any:w Any:p">
707
          <xslo:value-of select="."/>
706
          <xslo:value-of select="."/>
708
        </z:index>
707
        </z:index>
709
      </xslo:if>
708
      </xslo:if>
710
    </xslo:for-each>
709
    </xslo:for-each>
711
    <xslo:for-each select="marc:subfield">
710
    <xslo:for-each select="marc:subfield">
712
      <xslo:if test="contains('9', @code)">
711
      <xslo:if test="contains('9', @code)">
713
        <z:index name="Koha-Auth-Number:w">
712
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
714
          <xslo:value-of select="."/>
713
          <xslo:value-of select="."/>
715
        </z:index>
714
        </z:index>
716
      </xslo:if>
715
      </xslo:if>
717
    </xslo:for-each>
716
    </xslo:for-each>
718
    <xslo:for-each select="marc:subfield">
717
    <xslo:for-each select="marc:subfield">
719
      <xslo:if test="contains('t', @code)">
718
      <xslo:if test="contains('t', @code)">
720
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w">
719
        <z:index name="Author-title:w Name-and-title:w Title:w Title-series:w Any:w Any:p">
721
          <xslo:value-of select="."/>
720
          <xslo:value-of select="."/>
722
        </z:index>
721
        </z:index>
723
      </xslo:if>
722
      </xslo:if>
Lines 726-732 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
726
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
725
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
727
    <xslo:for-each select="marc:subfield">
726
    <xslo:for-each select="marc:subfield">
728
      <xslo:if test="contains('9', @code)">
727
      <xslo:if test="contains('9', @code)">
729
        <z:index name="Koha-Auth-Number:w">
728
        <z:index name="Koha-Auth-Number:w Any:w Any:p">
730
          <xslo:value-of select="."/>
729
          <xslo:value-of select="."/>
731
        </z:index>
730
        </z:index>
732
      </xslo:if>
731
      </xslo:if>
Lines 735-748 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
735
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
734
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
736
    <xslo:for-each select="marc:subfield">
735
    <xslo:for-each select="marc:subfield">
737
      <xslo:if test="contains('c', @code)">
736
      <xslo:if test="contains('c', @code)">
738
        <z:index name="Local-Number:n Local-Number:w Local-Number:s">
737
        <z:index name="Local-Number:n Local-Number:w Local-Number:s Any:w Any:p">
739
          <xslo:value-of select="."/>
738
          <xslo:value-of select="."/>
740
        </z:index>
739
        </z:index>
741
      </xslo:if>
740
      </xslo:if>
742
    </xslo:for-each>
741
    </xslo:for-each>
743
    <xslo:for-each select="marc:subfield">
742
    <xslo:for-each select="marc:subfield">
744
      <xslo:if test="contains('d', @code)">
743
      <xslo:if test="contains('d', @code)">
745
        <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s">
744
        <z:index name="biblioitemnumber:n biblioitemnumber:w biblioitemnumber:s Any:w Any:p">
746
          <xslo:value-of select="."/>
745
          <xslo:value-of select="."/>
747
        </z:index>
746
        </z:index>
748
      </xslo:if>
747
      </xslo:if>
Lines 751-813 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
751
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
750
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
752
    <xslo:for-each select="marc:subfield">
751
    <xslo:for-each select="marc:subfield">
753
      <xslo:if test="contains('0', @code)">
752
      <xslo:if test="contains('0', @code)">
754
        <z:index name="totalissues:n totalissues:s">
753
        <z:index name="totalissues:n totalissues:s Any:w Any:p">
755
          <xslo:value-of select="."/>
754
          <xslo:value-of select="."/>
756
        </z:index>
755
        </z:index>
757
      </xslo:if>
756
      </xslo:if>
758
    </xslo:for-each>
757
    </xslo:for-each>
759
    <xslo:for-each select="marc:subfield">
758
    <xslo:for-each select="marc:subfield">
760
      <xslo:if test="contains('2', @code)">
759
      <xslo:if test="contains('2', @code)">
761
        <z:index name="cn-bib-source:w">
760
        <z:index name="cn-bib-source:w Any:w Any:p">
762
          <xslo:value-of select="."/>
761
          <xslo:value-of select="."/>
763
        </z:index>
762
        </z:index>
764
      </xslo:if>
763
      </xslo:if>
765
    </xslo:for-each>
764
    </xslo:for-each>
766
    <xslo:for-each select="marc:subfield">
765
    <xslo:for-each select="marc:subfield">
767
      <xslo:if test="contains('6', @code)">
766
      <xslo:if test="contains('6', @code)">
768
        <z:index name="cn-bib-sort:n cn-bib-sort:s">
767
        <z:index name="cn-bib-sort:n cn-bib-sort:s Any:w Any:p">
769
          <xslo:value-of select="."/>
768
          <xslo:value-of select="."/>
770
        </z:index>
769
        </z:index>
771
      </xslo:if>
770
      </xslo:if>
772
    </xslo:for-each>
771
    </xslo:for-each>
773
    <xslo:for-each select="marc:subfield">
772
    <xslo:for-each select="marc:subfield">
774
      <xslo:if test="contains('c', @code)">
773
      <xslo:if test="contains('c', @code)">
775
        <z:index name="itemtype:w">
774
        <z:index name="itemtype:w Any:w Any:p">
776
          <xslo:value-of select="."/>
775
          <xslo:value-of select="."/>
777
        </z:index>
776
        </z:index>
778
      </xslo:if>
777
      </xslo:if>
779
    </xslo:for-each>
778
    </xslo:for-each>
780
    <xslo:for-each select="marc:subfield">
779
    <xslo:for-each select="marc:subfield">
781
      <xslo:if test="contains('n', @code)">
780
      <xslo:if test="contains('n', @code)">
782
        <z:index name="Suppress:w Suppress:n">
781
        <z:index name="Suppress:w Suppress:n Any:w Any:p">
783
          <xslo:value-of select="."/>
782
          <xslo:value-of select="."/>
784
        </z:index>
783
        </z:index>
785
      </xslo:if>
784
      </xslo:if>
786
    </xslo:for-each>
785
    </xslo:for-each>
787
    <xslo:for-each select="marc:subfield">
786
    <xslo:for-each select="marc:subfield">
788
      <xslo:if test="contains('h', @code)">
787
      <xslo:if test="contains('h', @code)">
789
        <z:index name="cn-class:w">
788
        <z:index name="cn-class:w Any:w Any:p">
790
          <xslo:value-of select="."/>
789
          <xslo:value-of select="."/>
791
        </z:index>
790
        </z:index>
792
      </xslo:if>
791
      </xslo:if>
793
    </xslo:for-each>
792
    </xslo:for-each>
794
    <xslo:for-each select="marc:subfield">
793
    <xslo:for-each select="marc:subfield">
795
      <xslo:if test="contains('i', @code)">
794
      <xslo:if test="contains('i', @code)">
796
        <z:index name="cn-item:w">
795
        <z:index name="cn-item:w Any:w Any:p">
797
          <xslo:value-of select="."/>
796
          <xslo:value-of select="."/>
798
        </z:index>
797
        </z:index>
799
      </xslo:if>
798
      </xslo:if>
800
    </xslo:for-each>
799
    </xslo:for-each>
801
    <xslo:for-each select="marc:subfield">
800
    <xslo:for-each select="marc:subfield">
802
      <xslo:if test="contains('k', @code)">
801
      <xslo:if test="contains('k', @code)">
803
        <z:index name="cn-prefix:w">
802
        <z:index name="cn-prefix:w Any:w Any:p">
804
          <xslo:value-of select="."/>
803
          <xslo:value-of select="."/>
805
        </z:index>
804
        </z:index>
806
      </xslo:if>
805
      </xslo:if>
807
    </xslo:for-each>
806
    </xslo:for-each>
808
    <xslo:for-each select="marc:subfield">
807
    <xslo:for-each select="marc:subfield">
809
      <xslo:if test="contains('m', @code)">
808
      <xslo:if test="contains('m', @code)">
810
        <z:index name="cn-suffix:w">
809
        <z:index name="cn-suffix:w Any:w Any:p">
811
          <xslo:value-of select="."/>
810
          <xslo:value-of select="."/>
812
        </z:index>
811
        </z:index>
813
      </xslo:if>
812
      </xslo:if>
Lines 816-1039 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
816
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
815
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='952']">
817
    <xslo:for-each select="marc:subfield">
816
    <xslo:for-each select="marc:subfield">
818
      <xslo:if test="contains('0', @code)">
817
      <xslo:if test="contains('0', @code)">
819
        <z:index name="withdrawn:n withdrawn:w">
818
        <z:index name="withdrawn:n withdrawn:w Any:w Any:p">
820
          <xslo:value-of select="."/>
819
          <xslo:value-of select="."/>
821
        </z:index>
820
        </z:index>
822
      </xslo:if>
821
      </xslo:if>
823
    </xslo:for-each>
822
    </xslo:for-each>
824
    <xslo:for-each select="marc:subfield">
823
    <xslo:for-each select="marc:subfield">
825
      <xslo:if test="contains('1', @code)">
824
      <xslo:if test="contains('1', @code)">
826
        <z:index name="lost:w lost:n">
825
        <z:index name="lost:w lost:n Any:w Any:p">
827
          <xslo:value-of select="."/>
826
          <xslo:value-of select="."/>
828
        </z:index>
827
        </z:index>
829
      </xslo:if>
828
      </xslo:if>
830
    </xslo:for-each>
829
    </xslo:for-each>
831
    <xslo:for-each select="marc:subfield">
830
    <xslo:for-each select="marc:subfield">
832
      <xslo:if test="contains('2', @code)">
831
      <xslo:if test="contains('2', @code)">
833
        <z:index name="classification-source:w">
832
        <z:index name="classification-source:w Any:w Any:p">
834
          <xslo:value-of select="."/>
833
          <xslo:value-of select="."/>
835
        </z:index>
834
        </z:index>
836
      </xslo:if>
835
      </xslo:if>
837
    </xslo:for-each>
836
    </xslo:for-each>
838
    <xslo:for-each select="marc:subfield">
837
    <xslo:for-each select="marc:subfield">
839
      <xslo:if test="contains('3', @code)">
838
      <xslo:if test="contains('3', @code)">
840
        <z:index name="materials-specified:w">
839
        <z:index name="materials-specified:w Any:w Any:p">
841
          <xslo:value-of select="."/>
840
          <xslo:value-of select="."/>
842
        </z:index>
841
        </z:index>
843
      </xslo:if>
842
      </xslo:if>
844
    </xslo:for-each>
843
    </xslo:for-each>
845
    <xslo:for-each select="marc:subfield">
844
    <xslo:for-each select="marc:subfield">
846
      <xslo:if test="contains('4', @code)">
845
      <xslo:if test="contains('4', @code)">
847
        <z:index name="damaged:n damaged:w">
846
        <z:index name="damaged:n damaged:w Any:w Any:p">
848
          <xslo:value-of select="."/>
847
          <xslo:value-of select="."/>
849
        </z:index>
848
        </z:index>
850
      </xslo:if>
849
      </xslo:if>
851
    </xslo:for-each>
850
    </xslo:for-each>
852
    <xslo:for-each select="marc:subfield">
851
    <xslo:for-each select="marc:subfield">
853
      <xslo:if test="contains('5', @code)">
852
      <xslo:if test="contains('5', @code)">
854
        <z:index name="restricted:n restricted:w">
853
        <z:index name="restricted:n restricted:w Any:w Any:p">
855
          <xslo:value-of select="."/>
854
          <xslo:value-of select="."/>
856
        </z:index>
855
        </z:index>
857
      </xslo:if>
856
      </xslo:if>
858
    </xslo:for-each>
857
    </xslo:for-each>
859
    <xslo:for-each select="marc:subfield">
858
    <xslo:for-each select="marc:subfield">
860
      <xslo:if test="contains('6', @code)">
859
      <xslo:if test="contains('6', @code)">
861
        <z:index name="cn-sort:n cn-sort:s">
860
        <z:index name="cn-sort:n cn-sort:s Any:w Any:p">
862
          <xslo:value-of select="."/>
861
          <xslo:value-of select="."/>
863
        </z:index>
862
        </z:index>
864
      </xslo:if>
863
      </xslo:if>
865
    </xslo:for-each>
864
    </xslo:for-each>
866
    <xslo:for-each select="marc:subfield">
865
    <xslo:for-each select="marc:subfield">
867
      <xslo:if test="contains('7', @code)">
866
      <xslo:if test="contains('7', @code)">
868
        <z:index name="notforloan:n notforloan:w">
867
        <z:index name="notforloan:n notforloan:w Any:w Any:p">
869
          <xslo:value-of select="."/>
868
          <xslo:value-of select="."/>
870
        </z:index>
869
        </z:index>
871
      </xslo:if>
870
      </xslo:if>
872
    </xslo:for-each>
871
    </xslo:for-each>
873
    <xslo:for-each select="marc:subfield">
872
    <xslo:for-each select="marc:subfield">
874
      <xslo:if test="contains('8', @code)">
873
      <xslo:if test="contains('8', @code)">
875
        <z:index name="ccode:w">
874
        <z:index name="ccode:w Any:w Any:p">
876
          <xslo:value-of select="."/>
875
          <xslo:value-of select="."/>
877
        </z:index>
876
        </z:index>
878
      </xslo:if>
877
      </xslo:if>
879
    </xslo:for-each>
878
    </xslo:for-each>
880
    <xslo:for-each select="marc:subfield">
879
    <xslo:for-each select="marc:subfield">
881
      <xslo:if test="contains('9', @code)">
880
      <xslo:if test="contains('9', @code)">
882
        <z:index name="itemnumber:n itemnumber:s">
881
        <z:index name="itemnumber:n itemnumber:s Any:w Any:p">
883
          <xslo:value-of select="."/>
882
          <xslo:value-of select="."/>
884
        </z:index>
883
        </z:index>
885
      </xslo:if>
884
      </xslo:if>
886
    </xslo:for-each>
885
    </xslo:for-each>
887
    <xslo:for-each select="marc:subfield">
886
    <xslo:for-each select="marc:subfield">
888
      <xslo:if test="contains('a', @code)">
887
      <xslo:if test="contains('a', @code)">
889
        <z:index name="homebranch:w">
888
        <z:index name="homebranch:w Any:w Any:p">
890
          <xslo:value-of select="."/>
889
          <xslo:value-of select="."/>
891
        </z:index>
890
        </z:index>
892
      </xslo:if>
891
      </xslo:if>
893
    </xslo:for-each>
892
    </xslo:for-each>
894
    <xslo:for-each select="marc:subfield">
893
    <xslo:for-each select="marc:subfield">
895
      <xslo:if test="contains('b', @code)">
894
      <xslo:if test="contains('b', @code)">
896
        <z:index name="holdingbranch:w">
895
        <z:index name="holdingbranch:w Any:w Any:p">
897
          <xslo:value-of select="."/>
896
          <xslo:value-of select="."/>
898
        </z:index>
897
        </z:index>
899
      </xslo:if>
898
      </xslo:if>
900
    </xslo:for-each>
899
    </xslo:for-each>
901
    <xslo:for-each select="marc:subfield">
900
    <xslo:for-each select="marc:subfield">
902
      <xslo:if test="contains('c', @code)">
901
      <xslo:if test="contains('c', @code)">
903
        <z:index name="location:w">
902
        <z:index name="location:w Any:w Any:p">
904
          <xslo:value-of select="."/>
903
          <xslo:value-of select="."/>
905
        </z:index>
904
        </z:index>
906
      </xslo:if>
905
      </xslo:if>
907
    </xslo:for-each>
906
    </xslo:for-each>
908
    <xslo:for-each select="marc:subfield">
907
    <xslo:for-each select="marc:subfield">
909
      <xslo:if test="contains('d', @code)">
908
      <xslo:if test="contains('d', @code)">
910
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s">
909
        <z:index name="Date-of-acquisition:w Date-of-acquisition:d Date-of-acquisition:s Any:w Any:p">
911
          <xslo:value-of select="."/>
910
          <xslo:value-of select="."/>
912
        </z:index>
911
        </z:index>
913
      </xslo:if>
912
      </xslo:if>
914
    </xslo:for-each>
913
    </xslo:for-each>
915
    <xslo:for-each select="marc:subfield">
914
    <xslo:for-each select="marc:subfield">
916
      <xslo:if test="contains('e', @code)">
915
      <xslo:if test="contains('e', @code)">
917
        <z:index name="acqsource:w">
916
        <z:index name="acqsource:w Any:w Any:p">
918
          <xslo:value-of select="."/>
917
          <xslo:value-of select="."/>
919
        </z:index>
918
        </z:index>
920
      </xslo:if>
919
      </xslo:if>
921
    </xslo:for-each>
920
    </xslo:for-each>
922
    <xslo:for-each select="marc:subfield">
921
    <xslo:for-each select="marc:subfield">
923
      <xslo:if test="contains('f', @code)">
922
      <xslo:if test="contains('f', @code)">
924
        <z:index name="coded-location-qualifier:w">
923
        <z:index name="coded-location-qualifier:w Any:w Any:p">
925
          <xslo:value-of select="."/>
924
          <xslo:value-of select="."/>
926
        </z:index>
925
        </z:index>
927
      </xslo:if>
926
      </xslo:if>
928
    </xslo:for-each>
927
    </xslo:for-each>
929
    <xslo:for-each select="marc:subfield">
928
    <xslo:for-each select="marc:subfield">
930
      <xslo:if test="contains('g', @code)">
929
      <xslo:if test="contains('g', @code)">
931
        <z:index name="price:w">
930
        <z:index name="price:w Any:w Any:p">
932
          <xslo:value-of select="."/>
931
          <xslo:value-of select="."/>
933
        </z:index>
932
        </z:index>
934
      </xslo:if>
933
      </xslo:if>
935
    </xslo:for-each>
934
    </xslo:for-each>
936
    <xslo:for-each select="marc:subfield">
935
    <xslo:for-each select="marc:subfield">
937
      <xslo:if test="contains('j', @code)">
936
      <xslo:if test="contains('j', @code)">
938
        <z:index name="stack:n stack:w">
937
        <z:index name="stack:n stack:w Any:w Any:p">
939
          <xslo:value-of select="."/>
938
          <xslo:value-of select="."/>
940
        </z:index>
939
        </z:index>
941
      </xslo:if>
940
      </xslo:if>
942
    </xslo:for-each>
941
    </xslo:for-each>
943
    <xslo:for-each select="marc:subfield">
942
    <xslo:for-each select="marc:subfield">
944
      <xslo:if test="contains('l', @code)">
943
      <xslo:if test="contains('l', @code)">
945
        <z:index name="issues:n issues:w issues:s">
944
        <z:index name="issues:n issues:w issues:s Any:w Any:p">
946
          <xslo:value-of select="."/>
945
          <xslo:value-of select="."/>
947
        </z:index>
946
        </z:index>
948
      </xslo:if>
947
      </xslo:if>
949
    </xslo:for-each>
948
    </xslo:for-each>
950
    <xslo:for-each select="marc:subfield">
949
    <xslo:for-each select="marc:subfield">
951
      <xslo:if test="contains('m', @code)">
950
      <xslo:if test="contains('m', @code)">
952
        <z:index name="renewals:n renewals:w">
951
        <z:index name="renewals:n renewals:w Any:w Any:p">
953
          <xslo:value-of select="."/>
952
          <xslo:value-of select="."/>
954
        </z:index>
953
        </z:index>
955
      </xslo:if>
954
      </xslo:if>
956
    </xslo:for-each>
955
    </xslo:for-each>
957
    <xslo:for-each select="marc:subfield">
956
    <xslo:for-each select="marc:subfield">
958
      <xslo:if test="contains('n', @code)">
957
      <xslo:if test="contains('n', @code)">
959
        <z:index name="reserves:n reserves:w">
958
        <z:index name="reserves:n reserves:w Any:w Any:p">
960
          <xslo:value-of select="."/>
959
          <xslo:value-of select="."/>
961
        </z:index>
960
        </z:index>
962
      </xslo:if>
961
      </xslo:if>
963
    </xslo:for-each>
962
    </xslo:for-each>
964
    <xslo:for-each select="marc:subfield">
963
    <xslo:for-each select="marc:subfield">
965
      <xslo:if test="contains('o', @code)">
964
      <xslo:if test="contains('o', @code)">
966
        <z:index name="Local-classification:w Local-classification:p Local-classification:s">
965
        <z:index name="Local-classification:w Local-classification:p Local-classification:s Any:w Any:p">
967
          <xslo:value-of select="."/>
966
          <xslo:value-of select="."/>
968
        </z:index>
967
        </z:index>
969
      </xslo:if>
968
      </xslo:if>
970
    </xslo:for-each>
969
    </xslo:for-each>
971
    <xslo:for-each select="marc:subfield">
970
    <xslo:for-each select="marc:subfield">
972
      <xslo:if test="contains('p', @code)">
971
      <xslo:if test="contains('p', @code)">
973
        <z:index name="barcode:w barcode:n">
972
        <z:index name="barcode:w barcode:n Any:w Any:p">
974
          <xslo:value-of select="."/>
973
          <xslo:value-of select="."/>
975
        </z:index>
974
        </z:index>
976
      </xslo:if>
975
      </xslo:if>
977
    </xslo:for-each>
976
    </xslo:for-each>
978
    <xslo:for-each select="marc:subfield">
977
    <xslo:for-each select="marc:subfield">
979
      <xslo:if test="contains('q', @code)">
978
      <xslo:if test="contains('q', @code)">
980
        <z:index name="onloan:n onloan:w">
979
        <z:index name="onloan:n onloan:w Any:w Any:p">
981
          <xslo:value-of select="."/>
980
          <xslo:value-of select="."/>
982
        </z:index>
981
        </z:index>
983
      </xslo:if>
982
      </xslo:if>
984
    </xslo:for-each>
983
    </xslo:for-each>
985
    <xslo:for-each select="marc:subfield">
984
    <xslo:for-each select="marc:subfield">
986
      <xslo:if test="contains('r', @code)">
985
      <xslo:if test="contains('r', @code)">
987
        <z:index name="datelastseen:w">
986
        <z:index name="datelastseen:w Any:w Any:p">
988
          <xslo:value-of select="."/>
987
          <xslo:value-of select="."/>
989
        </z:index>
988
        </z:index>
990
      </xslo:if>
989
      </xslo:if>
991
    </xslo:for-each>
990
    </xslo:for-each>
992
    <xslo:for-each select="marc:subfield">
991
    <xslo:for-each select="marc:subfield">
993
      <xslo:if test="contains('s', @code)">
992
      <xslo:if test="contains('s', @code)">
994
        <z:index name="datelastborrowed:w">
993
        <z:index name="datelastborrowed:w Any:w Any:p">
995
          <xslo:value-of select="."/>
994
          <xslo:value-of select="."/>
996
        </z:index>
995
        </z:index>
997
      </xslo:if>
996
      </xslo:if>
998
    </xslo:for-each>
997
    </xslo:for-each>
999
    <xslo:for-each select="marc:subfield">
998
    <xslo:for-each select="marc:subfield">
1000
      <xslo:if test="contains('t', @code)">
999
      <xslo:if test="contains('t', @code)">
1001
        <z:index name="copynumber:w">
1000
        <z:index name="copynumber:w Any:w Any:p">
1002
          <xslo:value-of select="."/>
1001
          <xslo:value-of select="."/>
1003
        </z:index>
1002
        </z:index>
1004
      </xslo:if>
1003
      </xslo:if>
1005
    </xslo:for-each>
1004
    </xslo:for-each>
1006
    <xslo:for-each select="marc:subfield">
1005
    <xslo:for-each select="marc:subfield">
1007
      <xslo:if test="contains('u', @code)">
1006
      <xslo:if test="contains('u', @code)">
1008
        <z:index name="uri:u">
1007
        <z:index name="uri:u Any:w Any:p">
1009
          <xslo:value-of select="."/>
1008
          <xslo:value-of select="."/>
1010
        </z:index>
1009
        </z:index>
1011
      </xslo:if>
1010
      </xslo:if>
1012
    </xslo:for-each>
1011
    </xslo:for-each>
1013
    <xslo:for-each select="marc:subfield">
1012
    <xslo:for-each select="marc:subfield">
1014
      <xslo:if test="contains('v', @code)">
1013
      <xslo:if test="contains('v', @code)">
1015
        <z:index name="replacementprice:w">
1014
        <z:index name="replacementprice:w Any:w Any:p">
1016
          <xslo:value-of select="."/>
1015
          <xslo:value-of select="."/>
1017
        </z:index>
1016
        </z:index>
1018
      </xslo:if>
1017
      </xslo:if>
1019
    </xslo:for-each>
1018
    </xslo:for-each>
1020
    <xslo:for-each select="marc:subfield">
1019
    <xslo:for-each select="marc:subfield">
1021
      <xslo:if test="contains('w', @code)">
1020
      <xslo:if test="contains('w', @code)">
1022
        <z:index name="replacementpricedate:w">
1021
        <z:index name="replacementpricedate:w Any:w Any:p">
1023
          <xslo:value-of select="."/>
1022
          <xslo:value-of select="."/>
1024
        </z:index>
1023
        </z:index>
1025
      </xslo:if>
1024
      </xslo:if>
1026
    </xslo:for-each>
1025
    </xslo:for-each>
1027
    <xslo:for-each select="marc:subfield">
1026
    <xslo:for-each select="marc:subfield">
1028
      <xslo:if test="contains('y', @code)">
1027
      <xslo:if test="contains('y', @code)">
1029
        <z:index name="itype:w">
1028
        <z:index name="itype:w Any:w Any:p">
1030
          <xslo:value-of select="."/>
1029
          <xslo:value-of select="."/>
1031
        </z:index>
1030
        </z:index>
1032
      </xslo:if>
1031
      </xslo:if>
1033
    </xslo:for-each>
1032
    </xslo:for-each>
1034
  </xslo:template>
1033
  </xslo:template>
1035
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1034
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='010']">
1036
    <z:index name="LC-card-number:w Identifier-standard:w">
1035
    <z:index name="LC-card-number:w Identifier-standard:w Any:w Any:p">
1037
      <xslo:variable name="raw_heading">
1036
      <xslo:variable name="raw_heading">
1038
        <xslo:for-each select="marc:subfield">
1037
        <xslo:for-each select="marc:subfield">
1039
          <xslo:if test="position() &gt; 1">
1038
          <xslo:if test="position() &gt; 1">
Lines 1046-1052 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1046
    </z:index>
1045
    </z:index>
1047
  </xslo:template>
1046
  </xslo:template>
1048
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1047
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='015']">
1049
    <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w">
1048
    <z:index name="BNB-card-number:w BGF-number:w Number-db:w Number-natl-biblio:w Identifier-standard:w Any:w Any:p">
1050
      <xslo:variable name="raw_heading">
1049
      <xslo:variable name="raw_heading">
1051
        <xslo:for-each select="marc:subfield">
1050
        <xslo:for-each select="marc:subfield">
1052
          <xslo:if test="position() &gt; 1">
1051
          <xslo:if test="position() &gt; 1">
Lines 1059-1065 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1059
    </z:index>
1058
    </z:index>
1060
  </xslo:template>
1059
  </xslo:template>
1061
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1060
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='020']">
1062
    <z:index name="ISBN:w Identifier-standard:w">
1061
    <z:index name="ISBN:w Identifier-standard:w Any:w Any:p">
1063
      <xslo:variable name="raw_heading">
1062
      <xslo:variable name="raw_heading">
1064
        <xslo:for-each select="marc:subfield">
1063
        <xslo:for-each select="marc:subfield">
1065
          <xslo:if test="position() &gt; 1">
1064
          <xslo:if test="position() &gt; 1">
Lines 1072-1078 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1072
    </z:index>
1071
    </z:index>
1073
  </xslo:template>
1072
  </xslo:template>
1074
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1073
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='022']">
1075
    <z:index name="ISSN:w Identifier-standard:w">
1074
    <z:index name="ISSN:w Identifier-standard:w Any:w Any:p">
1076
      <xslo:variable name="raw_heading">
1075
      <xslo:variable name="raw_heading">
1077
        <xslo:for-each select="marc:subfield">
1076
        <xslo:for-each select="marc:subfield">
1078
          <xslo:if test="position() &gt; 1">
1077
          <xslo:if test="position() &gt; 1">
Lines 1085-1091 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1085
    </z:index>
1084
    </z:index>
1086
  </xslo:template>
1085
  </xslo:template>
1087
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1086
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='024']">
1088
    <z:index name="Identifier-standard:w">
1087
    <z:index name="Identifier-standard:w Any:w Any:p">
1089
      <xslo:variable name="raw_heading">
1088
      <xslo:variable name="raw_heading">
1090
        <xslo:for-each select="marc:subfield">
1089
        <xslo:for-each select="marc:subfield">
1091
          <xslo:if test="position() &gt; 1">
1090
          <xslo:if test="position() &gt; 1">
Lines 1098-1104 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1098
    </z:index>
1097
    </z:index>
1099
  </xslo:template>
1098
  </xslo:template>
1100
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1099
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='025']">
1101
    <z:index name="Identifier-standard:w">
1100
    <z:index name="Identifier-standard:w Any:w Any:p">
1102
      <xslo:variable name="raw_heading">
1101
      <xslo:variable name="raw_heading">
1103
        <xslo:for-each select="marc:subfield">
1102
        <xslo:for-each select="marc:subfield">
1104
          <xslo:if test="position() &gt; 1">
1103
          <xslo:if test="position() &gt; 1">
Lines 1111-1117 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1111
    </z:index>
1110
    </z:index>
1112
  </xslo:template>
1111
  </xslo:template>
1113
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1112
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='027']">
1114
    <z:index name="Report-number:w Identifier-standard:w">
1113
    <z:index name="Report-number:w Identifier-standard:w Any:w Any:p">
1115
      <xslo:variable name="raw_heading">
1114
      <xslo:variable name="raw_heading">
1116
        <xslo:for-each select="marc:subfield">
1115
        <xslo:for-each select="marc:subfield">
1117
          <xslo:if test="position() &gt; 1">
1116
          <xslo:if test="position() &gt; 1">
Lines 1124-1130 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1124
    </z:index>
1123
    </z:index>
1125
  </xslo:template>
1124
  </xslo:template>
1126
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1125
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='028']">
1127
    <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
1126
    <z:index name="Identifier-publisher-for-music:w Identifier-standard:w Any:w Any:p">
1128
      <xslo:variable name="raw_heading">
1127
      <xslo:variable name="raw_heading">
1129
        <xslo:for-each select="marc:subfield">
1128
        <xslo:for-each select="marc:subfield">
1130
          <xslo:if test="position() &gt; 1">
1129
          <xslo:if test="position() &gt; 1">
Lines 1137-1143 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1137
    </z:index>
1136
    </z:index>
1138
  </xslo:template>
1137
  </xslo:template>
1139
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1138
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='030']">
1140
    <z:index name="CODEN:w Identifier-standard:w">
1139
    <z:index name="CODEN:w Identifier-standard:w Any:w Any:p">
1141
      <xslo:variable name="raw_heading">
1140
      <xslo:variable name="raw_heading">
1142
        <xslo:for-each select="marc:subfield">
1141
        <xslo:for-each select="marc:subfield">
1143
          <xslo:if test="position() &gt; 1">
1142
          <xslo:if test="position() &gt; 1">
Lines 1150-1156 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1150
    </z:index>
1149
    </z:index>
1151
  </xslo:template>
1150
  </xslo:template>
1152
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1151
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='040']">
1153
    <z:index name="Code-institution:w Record-source:w">
1152
    <z:index name="Code-institution:w Record-source:w Any:w Any:p">
1154
      <xslo:variable name="raw_heading">
1153
      <xslo:variable name="raw_heading">
1155
        <xslo:for-each select="marc:subfield">
1154
        <xslo:for-each select="marc:subfield">
1156
          <xslo:if test="position() &gt; 1">
1155
          <xslo:if test="position() &gt; 1">
Lines 1163-1169 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1163
    </z:index>
1162
    </z:index>
1164
  </xslo:template>
1163
  </xslo:template>
1165
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='041']">
1164
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='041']">
1166
    <z:index name="ln:w">
1165
    <z:index name="ln:w Any:w Any:p">
1167
      <xslo:variable name="raw_heading">
1166
      <xslo:variable name="raw_heading">
1168
        <xslo:for-each select="marc:subfield">
1167
        <xslo:for-each select="marc:subfield">
1169
          <xslo:if test="position() &gt; 1">
1168
          <xslo:if test="position() &gt; 1">
Lines 1176-1182 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1176
    </z:index>
1175
    </z:index>
1177
  </xslo:template>
1176
  </xslo:template>
1178
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1177
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='043']">
1179
    <z:index name="Code-geographic:w">
1178
    <z:index name="Code-geographic:w Any:w Any:p">
1180
      <xslo:variable name="raw_heading">
1179
      <xslo:variable name="raw_heading">
1181
        <xslo:for-each select="marc:subfield">
1180
        <xslo:for-each select="marc:subfield">
1182
          <xslo:if test="position() &gt; 1">
1181
          <xslo:if test="position() &gt; 1">
Lines 1189-1195 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1189
    </z:index>
1188
    </z:index>
1190
  </xslo:template>
1189
  </xslo:template>
1191
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1190
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='060']">
1192
    <z:index name="NLM-call-number:w">
1191
    <z:index name="NLM-call-number:w Any:w Any:p">
1193
      <xslo:variable name="raw_heading">
1192
      <xslo:variable name="raw_heading">
1194
        <xslo:for-each select="marc:subfield">
1193
        <xslo:for-each select="marc:subfield">
1195
          <xslo:if test="position() &gt; 1">
1194
          <xslo:if test="position() &gt; 1">
Lines 1202-1208 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1202
    </z:index>
1201
    </z:index>
1203
  </xslo:template>
1202
  </xslo:template>
1204
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1203
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='080']">
1205
    <z:index name="UDC-classification:w">
1204
    <z:index name="UDC-classification:w Any:w Any:p">
1206
      <xslo:variable name="raw_heading">
1205
      <xslo:variable name="raw_heading">
1207
        <xslo:for-each select="marc:subfield">
1206
        <xslo:for-each select="marc:subfield">
1208
          <xslo:if test="position() &gt; 1">
1207
          <xslo:if test="position() &gt; 1">
Lines 1215-1221 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1215
    </z:index>
1214
    </z:index>
1216
  </xslo:template>
1215
  </xslo:template>
1217
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1216
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='082']">
1218
    <z:index name="Dewey-classification:w Dewey-classification:s">
1217
    <z:index name="Dewey-classification:w Dewey-classification:s Any:w Any:p">
1219
      <xslo:variable name="raw_heading">
1218
      <xslo:variable name="raw_heading">
1220
        <xslo:for-each select="marc:subfield">
1219
        <xslo:for-each select="marc:subfield">
1221
          <xslo:if test="position() &gt; 1">
1220
          <xslo:if test="position() &gt; 1">
Lines 1228-1234 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1228
    </z:index>
1227
    </z:index>
1229
  </xslo:template>
1228
  </xslo:template>
1230
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1229
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='100']">
1231
    <z:index name="Author:w Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w">
1230
    <z:index name="Author:w Author-title:w Author-name-personal:w Name:w Name-and-title:w Personal-name:w Any:w Any:p">
1232
      <xslo:variable name="raw_heading">
1231
      <xslo:variable name="raw_heading">
1233
        <xslo:for-each select="marc:subfield">
1232
        <xslo:for-each select="marc:subfield">
1234
          <xslo:if test="position() &gt; 1">
1233
          <xslo:if test="position() &gt; 1">
Lines 1241-1247 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1241
    </z:index>
1240
    </z:index>
1242
  </xslo:template>
1241
  </xslo:template>
1243
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1242
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='110']">
1244
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w">
1243
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Corporate-name:w Any:w Any:p">
1245
      <xslo:variable name="raw_heading">
1244
      <xslo:variable name="raw_heading">
1246
        <xslo:for-each select="marc:subfield">
1245
        <xslo:for-each select="marc:subfield">
1247
          <xslo:if test="position() &gt; 1">
1246
          <xslo:if test="position() &gt; 1">
Lines 1254-1260 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1254
    </z:index>
1253
    </z:index>
1255
  </xslo:template>
1254
  </xslo:template>
1256
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1255
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='111']">
1257
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w">
1256
    <z:index name="Author:w Author-title:w Author-name-corporate:w Name:w Name-and-title:w Conference-name:w Any:w Any:p">
1258
      <xslo:variable name="raw_heading">
1257
      <xslo:variable name="raw_heading">
1259
        <xslo:for-each select="marc:subfield">
1258
        <xslo:for-each select="marc:subfield">
1260
          <xslo:if test="position() &gt; 1">
1259
          <xslo:if test="position() &gt; 1">
Lines 1267-1273 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1267
    </z:index>
1266
    </z:index>
1268
  </xslo:template>
1267
  </xslo:template>
1269
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1268
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='130']">
1270
    <z:index name="Title:w Title-uniform:w">
1269
    <z:index name="Title:w Title-uniform:w Any:w Any:p">
1271
      <xslo:variable name="raw_heading">
1270
      <xslo:variable name="raw_heading">
1272
        <xslo:for-each select="marc:subfield">
1271
        <xslo:for-each select="marc:subfield">
1273
          <xslo:if test="position() &gt; 1">
1272
          <xslo:if test="position() &gt; 1">
Lines 1280-1286 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1280
    </z:index>
1279
    </z:index>
1281
  </xslo:template>
1280
  </xslo:template>
1282
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1281
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='210']">
1283
    <z:index name="Title:w Title-abbreviated:w">
1282
    <z:index name="Title:w Title-abbreviated:w Any:w Any:p">
1284
      <xslo:variable name="raw_heading">
1283
      <xslo:variable name="raw_heading">
1285
        <xslo:for-each select="marc:subfield">
1284
        <xslo:for-each select="marc:subfield">
1286
          <xslo:if test="position() &gt; 1">
1285
          <xslo:if test="position() &gt; 1">
Lines 1293-1299 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1293
    </z:index>
1292
    </z:index>
1294
  </xslo:template>
1293
  </xslo:template>
1295
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1294
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='222']">
1296
    <z:index name="Title:w Title-key:w">
1295
    <z:index name="Title:w Title-key:w Any:w Any:p">
1297
      <xslo:variable name="raw_heading">
1296
      <xslo:variable name="raw_heading">
1298
        <xslo:for-each select="marc:subfield">
1297
        <xslo:for-each select="marc:subfield">
1299
          <xslo:if test="position() &gt; 1">
1298
          <xslo:if test="position() &gt; 1">
Lines 1306-1312 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1306
    </z:index>
1305
    </z:index>
1307
  </xslo:template>
1306
  </xslo:template>
1308
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1307
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='240']">
1309
    <z:index name="Title:w Title:p Title-uniform:w">
1308
    <z:index name="Title:w Title:p Title-uniform:w Any:w Any:p">
1310
      <xslo:variable name="raw_heading">
1309
      <xslo:variable name="raw_heading">
1311
        <xslo:for-each select="marc:subfield">
1310
        <xslo:for-each select="marc:subfield">
1312
          <xslo:if test="position() &gt; 1">
1311
          <xslo:if test="position() &gt; 1">
Lines 1319-1325 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1319
    </z:index>
1318
    </z:index>
1320
  </xslo:template>
1319
  </xslo:template>
1321
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1320
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
1322
    <z:index name="Title:w Title:p">
1321
    <z:index name="Title:w Title:p Any:w Any:p">
1323
      <xslo:variable name="raw_heading">
1322
      <xslo:variable name="raw_heading">
1324
        <xslo:for-each select="marc:subfield">
1323
        <xslo:for-each select="marc:subfield">
1325
          <xslo:if test="position() &gt; 1">
1324
          <xslo:if test="position() &gt; 1">
Lines 1332-1338 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1332
    </z:index>
1331
    </z:index>
1333
  </xslo:template>
1332
  </xslo:template>
1334
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1333
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='246']">
1335
    <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w">
1334
    <z:index name="Title:w Title:p Title-abbreviated:w Title-expanded:w Title-former:w Any:w Any:p">
1336
      <xslo:variable name="raw_heading">
1335
      <xslo:variable name="raw_heading">
1337
        <xslo:for-each select="marc:subfield">
1336
        <xslo:for-each select="marc:subfield">
1338
          <xslo:if test="position() &gt; 1">
1337
          <xslo:if test="position() &gt; 1">
Lines 1345-1351 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1345
    </z:index>
1344
    </z:index>
1346
  </xslo:template>
1345
  </xslo:template>
1347
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1346
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1348
    <z:index name="pl:w">
1347
    <z:index name="pl:w Any:w Any:p">
1349
      <xslo:variable name="raw_heading">
1348
      <xslo:variable name="raw_heading">
1350
        <xslo:for-each select="marc:subfield">
1349
        <xslo:for-each select="marc:subfield">
1351
          <xslo:if test="position() &gt; 1">
1350
          <xslo:if test="position() &gt; 1">
Lines 1358-1364 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1358
    </z:index>
1357
    </z:index>
1359
  </xslo:template>
1358
  </xslo:template>
1360
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1359
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='300']">
1361
    <z:index name="Extent:w Extent:p">
1360
    <z:index name="Extent:w Extent:p Any:w Any:p">
1362
      <xslo:variable name="raw_heading">
1361
      <xslo:variable name="raw_heading">
1363
        <xslo:for-each select="marc:subfield">
1362
        <xslo:for-each select="marc:subfield">
1364
          <xslo:if test="position() &gt; 1">
1363
          <xslo:if test="position() &gt; 1">
Lines 1371-1377 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1371
    </z:index>
1370
    </z:index>
1372
  </xslo:template>
1371
  </xslo:template>
1373
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
1372
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='440']">
1374
    <z:index name="Title-series:w Title-series:p Title:w Title-series:w">
1373
    <z:index name="Title-series:w Title-series:p Title:w Title-series:w Any:w Any:p">
1375
      <xslo:variable name="raw_heading">
1374
      <xslo:variable name="raw_heading">
1376
        <xslo:for-each select="marc:subfield">
1375
        <xslo:for-each select="marc:subfield">
1377
          <xslo:if test="position() &gt; 1">
1376
          <xslo:if test="position() &gt; 1">
Lines 1384-1390 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1384
    </z:index>
1383
    </z:index>
1385
  </xslo:template>
1384
  </xslo:template>
1386
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
1385
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='490']">
1387
    <z:index name="Title:w Title-series:w">
1386
    <z:index name="Title:w Title-series:w Any:w Any:p">
1388
      <xslo:variable name="raw_heading">
1387
      <xslo:variable name="raw_heading">
1389
        <xslo:for-each select="marc:subfield">
1388
        <xslo:for-each select="marc:subfield">
1390
          <xslo:if test="position() &gt; 1">
1389
          <xslo:if test="position() &gt; 1">
Lines 1397-1403 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1397
    </z:index>
1396
    </z:index>
1398
  </xslo:template>
1397
  </xslo:template>
1399
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
1398
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
1400
    <z:index name="Material-type:w">
1399
    <z:index name="Material-type:w Any:w Any:p">
1401
      <xslo:variable name="raw_heading">
1400
      <xslo:variable name="raw_heading">
1402
        <xslo:for-each select="marc:subfield">
1401
        <xslo:for-each select="marc:subfield">
1403
          <xslo:if test="position() &gt; 1">
1402
          <xslo:if test="position() &gt; 1">
Lines 1410-1416 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1410
    </z:index>
1409
    </z:index>
1411
  </xslo:template>
1410
  </xslo:template>
1412
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
1411
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='505']">
1413
    <z:index name="Note:w Note:p">
1412
    <z:index name="Note:w Note:p Any:w Any:p">
1414
      <xslo:variable name="raw_heading">
1413
      <xslo:variable name="raw_heading">
1415
        <xslo:for-each select="marc:subfield">
1414
        <xslo:for-each select="marc:subfield">
1416
          <xslo:if test="position() &gt; 1">
1415
          <xslo:if test="position() &gt; 1">
Lines 1423-1429 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1423
    </z:index>
1422
    </z:index>
1424
  </xslo:template>
1423
  </xslo:template>
1425
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
1424
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
1426
    <z:index name="Indexed-by:w">
1425
    <z:index name="Indexed-by:w Any:w Any:p">
1427
      <xslo:variable name="raw_heading">
1426
      <xslo:variable name="raw_heading">
1428
        <xslo:for-each select="marc:subfield">
1427
        <xslo:for-each select="marc:subfield">
1429
          <xslo:if test="position() &gt; 1">
1428
          <xslo:if test="position() &gt; 1">
Lines 1436-1442 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1436
    </z:index>
1435
    </z:index>
1437
  </xslo:template>
1436
  </xslo:template>
1438
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
1437
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
1439
    <z:index name="Abstract:w Abstract:p">
1438
    <z:index name="Abstract:w Abstract:p Any:w Any:p">
1440
      <xslo:variable name="raw_heading">
1439
      <xslo:variable name="raw_heading">
1441
        <xslo:for-each select="marc:subfield">
1440
        <xslo:for-each select="marc:subfield">
1442
          <xslo:if test="position() &gt; 1">
1441
          <xslo:if test="position() &gt; 1">
Lines 1449-1455 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1449
    </z:index>
1448
    </z:index>
1450
  </xslo:template>
1449
  </xslo:template>
1451
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
1450
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
1452
    <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p">
1451
    <z:index name="Name:w Personal-name:w Subject-name-personal:w Subject:w Subject:p Any:w Any:p">
1453
      <xslo:variable name="raw_heading">
1452
      <xslo:variable name="raw_heading">
1454
        <xslo:for-each select="marc:subfield">
1453
        <xslo:for-each select="marc:subfield">
1455
          <xslo:if test="position() &gt; 1">
1454
          <xslo:if test="position() &gt; 1">
Lines 1462-1468 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1462
    </z:index>
1461
    </z:index>
1463
  </xslo:template>
1462
  </xslo:template>
1464
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
1463
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
1465
    <z:index name="Name:w Subject:w Corporate-name:w Subject:w Subject:p">
1464
    <z:index name="Name:w Subject:w Corporate-name:w Subject:w Subject:p Any:w Any:p">
1466
      <xslo:variable name="raw_heading">
1465
      <xslo:variable name="raw_heading">
1467
        <xslo:for-each select="marc:subfield">
1466
        <xslo:for-each select="marc:subfield">
1468
          <xslo:if test="position() &gt; 1">
1467
          <xslo:if test="position() &gt; 1">
Lines 1475-1481 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1475
    </z:index>
1474
    </z:index>
1476
  </xslo:template>
1475
  </xslo:template>
1477
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
1476
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='611']">
1478
    <z:index name="Conference-name:w Subject:w Subject:p">
1477
    <z:index name="Conference-name:w Subject:w Subject:p Any:w Any:p">
1479
      <xslo:variable name="raw_heading">
1478
      <xslo:variable name="raw_heading">
1480
        <xslo:for-each select="marc:subfield">
1479
        <xslo:for-each select="marc:subfield">
1481
          <xslo:if test="position() &gt; 1">
1480
          <xslo:if test="position() &gt; 1">
Lines 1486-1492 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1486
      </xslo:variable>
1485
      </xslo:variable>
1487
      <xslo:value-of select="normalize-space($raw_heading)"/>
1486
      <xslo:value-of select="normalize-space($raw_heading)"/>
1488
    </z:index>
1487
    </z:index>
1489
    <z:index name="Name:w Subject:w Subject:p">
1488
    <z:index name="Name:w Subject:w Subject:p Any:w Any:p">
1490
      <xslo:variable name="raw_heading">
1489
      <xslo:variable name="raw_heading">
1491
        <xslo:for-each select="marc:subfield">
1490
        <xslo:for-each select="marc:subfield">
1492
          <xslo:if test="position() &gt; 1">
1491
          <xslo:if test="position() &gt; 1">
Lines 1499-1505 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1499
    </z:index>
1498
    </z:index>
1500
  </xslo:template>
1499
  </xslo:template>
1501
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
1500
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
1502
    <z:index name="Subject:w Subject:p">
1501
    <z:index name="Subject:w Subject:p Any:w Any:p">
1503
      <xslo:variable name="raw_heading">
1502
      <xslo:variable name="raw_heading">
1504
        <xslo:for-each select="marc:subfield">
1503
        <xslo:for-each select="marc:subfield">
1505
          <xslo:if test="position() &gt; 1">
1504
          <xslo:if test="position() &gt; 1">
Lines 1512-1518 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1512
    </z:index>
1511
    </z:index>
1513
  </xslo:template>
1512
  </xslo:template>
1514
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
1513
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='650']">
1515
    <z:index name="Subject:w Subject:p">
1514
    <z:index name="Subject:w Subject:p Any:w Any:p">
1516
      <xslo:variable name="raw_heading">
1515
      <xslo:variable name="raw_heading">
1517
        <xslo:for-each select="marc:subfield">
1516
        <xslo:for-each select="marc:subfield">
1518
          <xslo:if test="position() &gt; 1">
1517
          <xslo:if test="position() &gt; 1">
Lines 1525-1531 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1525
    </z:index>
1524
    </z:index>
1526
  </xslo:template>
1525
  </xslo:template>
1527
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
1526
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='651']">
1528
    <z:index name="Name-geographic:w Subject:w Subject:p">
1527
    <z:index name="Name-geographic:w Subject:w Subject:p Any:w Any:p">
1529
      <xslo:variable name="raw_heading">
1528
      <xslo:variable name="raw_heading">
1530
        <xslo:for-each select="marc:subfield">
1529
        <xslo:for-each select="marc:subfield">
1531
          <xslo:if test="position() &gt; 1">
1530
          <xslo:if test="position() &gt; 1">
Lines 1538-1544 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1538
    </z:index>
1537
    </z:index>
1539
  </xslo:template>
1538
  </xslo:template>
1540
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
1539
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='653']">
1541
    <z:index name="Subject:w Subject:p">
1540
    <z:index name="Subject:w Subject:p Any:w Any:p">
1542
      <xslo:variable name="raw_heading">
1541
      <xslo:variable name="raw_heading">
1543
        <xslo:for-each select="marc:subfield">
1542
        <xslo:for-each select="marc:subfield">
1544
          <xslo:if test="position() &gt; 1">
1543
          <xslo:if test="position() &gt; 1">
Lines 1551-1557 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1551
    </z:index>
1550
    </z:index>
1552
  </xslo:template>
1551
  </xslo:template>
1553
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
1552
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='654']">
1554
    <z:index name="Subject:w Subject:p">
1553
    <z:index name="Subject:w Subject:p Any:w Any:p">
1555
      <xslo:variable name="raw_heading">
1554
      <xslo:variable name="raw_heading">
1556
        <xslo:for-each select="marc:subfield">
1555
        <xslo:for-each select="marc:subfield">
1557
          <xslo:if test="position() &gt; 1">
1556
          <xslo:if test="position() &gt; 1">
Lines 1564-1570 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1564
    </z:index>
1563
    </z:index>
1565
  </xslo:template>
1564
  </xslo:template>
1566
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
1565
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='655']">
1567
    <z:index name="Subject:w Subject:p">
1566
    <z:index name="Subject:w Subject:p Any:w Any:p">
1568
      <xslo:variable name="raw_heading">
1567
      <xslo:variable name="raw_heading">
1569
        <xslo:for-each select="marc:subfield">
1568
        <xslo:for-each select="marc:subfield">
1570
          <xslo:if test="position() &gt; 1">
1569
          <xslo:if test="position() &gt; 1">
Lines 1577-1583 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1577
    </z:index>
1576
    </z:index>
1578
  </xslo:template>
1577
  </xslo:template>
1579
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
1578
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='656']">
1580
    <z:index name="Subject:w Subject:p">
1579
    <z:index name="Subject:w Subject:p Any:w Any:p">
1581
      <xslo:variable name="raw_heading">
1580
      <xslo:variable name="raw_heading">
1582
        <xslo:for-each select="marc:subfield">
1581
        <xslo:for-each select="marc:subfield">
1583
          <xslo:if test="position() &gt; 1">
1582
          <xslo:if test="position() &gt; 1">
Lines 1590-1596 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1590
    </z:index>
1589
    </z:index>
1591
  </xslo:template>
1590
  </xslo:template>
1592
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
1591
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='657']">
1593
    <z:index name="Subject:w Subject:p">
1592
    <z:index name="Subject:w Subject:p Any:w Any:p">
1594
      <xslo:variable name="raw_heading">
1593
      <xslo:variable name="raw_heading">
1595
        <xslo:for-each select="marc:subfield">
1594
        <xslo:for-each select="marc:subfield">
1596
          <xslo:if test="position() &gt; 1">
1595
          <xslo:if test="position() &gt; 1">
Lines 1603-1609 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1603
    </z:index>
1602
    </z:index>
1604
  </xslo:template>
1603
  </xslo:template>
1605
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
1604
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='690']">
1606
    <z:index name="Subject:w Subject:p">
1605
    <z:index name="Subject:w Subject:p Any:w Any:p">
1607
      <xslo:variable name="raw_heading">
1606
      <xslo:variable name="raw_heading">
1608
        <xslo:for-each select="marc:subfield">
1607
        <xslo:for-each select="marc:subfield">
1609
          <xslo:if test="position() &gt; 1">
1608
          <xslo:if test="position() &gt; 1">
Lines 1616-1622 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1616
    </z:index>
1615
    </z:index>
1617
  </xslo:template>
1616
  </xslo:template>
1618
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
1617
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
1619
    <z:index name="Author:w Author-name-corporate:w Author-name-personal:w Name:w Editor:w Personal-name:w">
1618
    <z:index name="Author:w Author-name-corporate:w Author-name-personal:w Name:w Editor:w Personal-name:w Any:w Any:p">
1620
      <xslo:variable name="raw_heading">
1619
      <xslo:variable name="raw_heading">
1621
        <xslo:for-each select="marc:subfield">
1620
        <xslo:for-each select="marc:subfield">
1622
          <xslo:if test="position() &gt; 1">
1621
          <xslo:if test="position() &gt; 1">
Lines 1629-1635 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1629
    </z:index>
1628
    </z:index>
1630
  </xslo:template>
1629
  </xslo:template>
1631
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
1630
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
1632
    <z:index name="Author:w Corporate-name:w">
1631
    <z:index name="Author:w Corporate-name:w Any:w Any:p">
1633
      <xslo:variable name="raw_heading">
1632
      <xslo:variable name="raw_heading">
1634
        <xslo:for-each select="marc:subfield">
1633
        <xslo:for-each select="marc:subfield">
1635
          <xslo:if test="position() &gt; 1">
1634
          <xslo:if test="position() &gt; 1">
Lines 1640-1646 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1640
      </xslo:variable>
1639
      </xslo:variable>
1641
      <xslo:value-of select="normalize-space($raw_heading)"/>
1640
      <xslo:value-of select="normalize-space($raw_heading)"/>
1642
    </z:index>
1641
    </z:index>
1643
    <z:index name="Author:w Name:w">
1642
    <z:index name="Author:w Name:w Any:w Any:p">
1644
      <xslo:variable name="raw_heading">
1643
      <xslo:variable name="raw_heading">
1645
        <xslo:for-each select="marc:subfield">
1644
        <xslo:for-each select="marc:subfield">
1646
          <xslo:if test="position() &gt; 1">
1645
          <xslo:if test="position() &gt; 1">
Lines 1653-1659 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1653
    </z:index>
1652
    </z:index>
1654
  </xslo:template>
1653
  </xslo:template>
1655
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
1654
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
1656
    <z:index name="Author-name-corporate:w Name:w Conference-name:w">
1655
    <z:index name="Author-name-corporate:w Name:w Conference-name:w Any:w Any:p">
1657
      <xslo:variable name="raw_heading">
1656
      <xslo:variable name="raw_heading">
1658
        <xslo:for-each select="marc:subfield">
1657
        <xslo:for-each select="marc:subfield">
1659
          <xslo:if test="position() &gt; 1">
1658
          <xslo:if test="position() &gt; 1">
Lines 1666-1672 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1666
    </z:index>
1665
    </z:index>
1667
  </xslo:template>
1666
  </xslo:template>
1668
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
1667
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
1669
    <z:index name="Title:w Title-uniform:w">
1668
    <z:index name="Title:w Title-uniform:w Any:w Any:p">
1670
      <xslo:variable name="raw_heading">
1669
      <xslo:variable name="raw_heading">
1671
        <xslo:for-each select="marc:subfield">
1670
        <xslo:for-each select="marc:subfield">
1672
          <xslo:if test="position() &gt; 1">
1671
          <xslo:if test="position() &gt; 1">
Lines 1679-1685 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1679
    </z:index>
1678
    </z:index>
1680
  </xslo:template>
1679
  </xslo:template>
1681
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
1680
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='740']">
1682
    <z:index name="Title:w Title-other-variant:w">
1681
    <z:index name="Title:w Title-other-variant:w Any:w Any:p">
1683
      <xslo:variable name="raw_heading">
1682
      <xslo:variable name="raw_heading">
1684
        <xslo:for-each select="marc:subfield">
1683
        <xslo:for-each select="marc:subfield">
1685
          <xslo:if test="position() &gt; 1">
1684
          <xslo:if test="position() &gt; 1">
Lines 1692-1698 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1692
    </z:index>
1691
    </z:index>
1693
  </xslo:template>
1692
  </xslo:template>
1694
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
1693
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='780']">
1695
    <z:index name="Title:w Title-former:w Related-periodical:w">
1694
    <z:index name="Title:w Title-former:w Related-periodical:w Any:w Any:p">
1696
      <xslo:variable name="raw_heading">
1695
      <xslo:variable name="raw_heading">
1697
        <xslo:for-each select="marc:subfield">
1696
        <xslo:for-each select="marc:subfield">
1698
          <xslo:if test="position() &gt; 1">
1697
          <xslo:if test="position() &gt; 1">
Lines 1705-1711 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1705
    </z:index>
1704
    </z:index>
1706
  </xslo:template>
1705
  </xslo:template>
1707
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
1706
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='785']">
1708
    <z:index name="Related-periodical:w">
1707
    <z:index name="Related-periodical:w Any:w Any:p">
1709
      <xslo:variable name="raw_heading">
1708
      <xslo:variable name="raw_heading">
1710
        <xslo:for-each select="marc:subfield">
1709
        <xslo:for-each select="marc:subfield">
1711
          <xslo:if test="position() &gt; 1">
1710
          <xslo:if test="position() &gt; 1">
Lines 1718-1724 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1718
    </z:index>
1717
    </z:index>
1719
  </xslo:template>
1718
  </xslo:template>
1720
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
1719
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='800']">
1721
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w">
1720
    <z:index name="Author:w Author-name-personal:w Name:w Personal-name:w Any:w Any:p">
1722
      <xslo:variable name="raw_heading">
1721
      <xslo:variable name="raw_heading">
1723
        <xslo:for-each select="marc:subfield">
1722
        <xslo:for-each select="marc:subfield">
1724
          <xslo:if test="position() &gt; 1">
1723
          <xslo:if test="position() &gt; 1">
Lines 1731-1737 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1731
    </z:index>
1730
    </z:index>
1732
  </xslo:template>
1731
  </xslo:template>
1733
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
1732
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='810']">
1734
    <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w">
1733
    <z:index name="Author:w Corporate-name:w Author-name-corporate:w Name:w Any:w Any:p">
1735
      <xslo:variable name="raw_heading">
1734
      <xslo:variable name="raw_heading">
1736
        <xslo:for-each select="marc:subfield">
1735
        <xslo:for-each select="marc:subfield">
1737
          <xslo:if test="position() &gt; 1">
1736
          <xslo:if test="position() &gt; 1">
Lines 1744-1750 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1744
    </z:index>
1743
    </z:index>
1745
  </xslo:template>
1744
  </xslo:template>
1746
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
1745
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='811']">
1747
    <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w">
1746
    <z:index name="Author:w Author-name-corporate:w Name:w Conference-name:w Any:w Any:p">
1748
      <xslo:variable name="raw_heading">
1747
      <xslo:variable name="raw_heading">
1749
        <xslo:for-each select="marc:subfield">
1748
        <xslo:for-each select="marc:subfield">
1750
          <xslo:if test="position() &gt; 1">
1749
          <xslo:if test="position() &gt; 1">
Lines 1757-1763 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1757
    </z:index>
1756
    </z:index>
1758
  </xslo:template>
1757
  </xslo:template>
1759
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
1758
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='830']">
1760
    <z:index name="Title:w Title-series:w">
1759
    <z:index name="Title:w Title-series:w Any:w Any:p">
1761
      <xslo:variable name="raw_heading">
1760
      <xslo:variable name="raw_heading">
1762
        <xslo:for-each select="marc:subfield">
1761
        <xslo:for-each select="marc:subfield">
1763
          <xslo:if test="position() &gt; 1">
1762
          <xslo:if test="position() &gt; 1">
Lines 1769-1779 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1769
      <xslo:value-of select="normalize-space($raw_heading)"/>
1768
      <xslo:value-of select="normalize-space($raw_heading)"/>
1770
    </z:index>
1769
    </z:index>
1771
  </xslo:template>
1770
  </xslo:template>
1772
  <xslo:template mode="index_all" match="text()">
1773
    <z:index name="Any:w Any:p">
1774
      <xslo:value-of select="."/>
1775
    </z:index>
1776
  </xslo:template>
1777
  <xslo:template name="chopPunctuation">
1771
  <xslo:template name="chopPunctuation">
1778
    <xslo:param name="chopString"/>
1772
    <xslo:param name="chopString"/>
1779
    <xslo:variable name="length" select="string-length($chopString)"/>
1773
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/marc_defs/unimarc/authorities/authority-zebra-indexdefs.xsl (-75 / +69 lines)
Lines 39-45 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
      <xslo:apply-templates mode="index_heading_conditional"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
42
      <xslo:apply-templates mode="index_all"/>
43
    </z:record>
42
    </z:record>
44
  </xslo:template>
43
  </xslo:template>
45
  <xslo:template match="marc:controlfield[@tag='001']">
44
  <xslo:template match="marc:controlfield[@tag='001']">
Lines 50-63 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
50
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
49
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
51
    <xslo:for-each select="marc:subfield">
50
    <xslo:for-each select="marc:subfield">
52
      <xslo:if test="contains('abcdfgjxyz', @code)">
51
      <xslo:if test="contains('abcdfgjxyz', @code)">
53
        <z:index name="Personal-name:w Personal-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
52
        <z:index name="Personal-name:w Personal-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
54
          <xslo:value-of select="."/>
53
          <xslo:value-of select="."/>
55
        </z:index>
54
        </z:index>
56
      </xslo:if>
55
      </xslo:if>
57
    </xslo:for-each>
56
    </xslo:for-each>
58
    <xslo:for-each select="marc:subfield">
57
    <xslo:for-each select="marc:subfield">
59
      <xslo:if test="contains('a', @code)">
58
      <xslo:if test="contains('a', @code)">
60
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s">
59
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Personal-name-heading:w Personal-name-heading:p Personal-name-heading:s Any:w Any:p">
61
          <xslo:value-of select="."/>
60
          <xslo:value-of select="."/>
62
        </z:index>
61
        </z:index>
63
      </xslo:if>
62
      </xslo:if>
Lines 66-72 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
66
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
65
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
67
    <xslo:for-each select="marc:subfield">
66
    <xslo:for-each select="marc:subfield">
68
      <xslo:if test="contains('abcdfgjxyz', @code)">
67
      <xslo:if test="contains('abcdfgjxyz', @code)">
69
        <z:index name="Personal-name-see:w Personal-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
68
        <z:index name="Personal-name-see:w Personal-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
70
          <xslo:value-of select="."/>
69
          <xslo:value-of select="."/>
71
        </z:index>
70
        </z:index>
72
      </xslo:if>
71
      </xslo:if>
Lines 75-81 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
75
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
74
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
76
    <xslo:for-each select="marc:subfield">
75
    <xslo:for-each select="marc:subfield">
77
      <xslo:if test="contains('abcdfgjxyz', @code)">
76
      <xslo:if test="contains('abcdfgjxyz', @code)">
78
        <z:index name="Personal-name-see-also:w Personal-name-see-also:p See-also:w See-also:p Match:w Match:p">
77
        <z:index name="Personal-name-see-also:w Personal-name-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
79
          <xslo:value-of select="."/>
78
          <xslo:value-of select="."/>
80
        </z:index>
79
        </z:index>
81
      </xslo:if>
80
      </xslo:if>
Lines 84-90 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
84
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
83
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
85
    <xslo:for-each select="marc:subfield">
84
    <xslo:for-each select="marc:subfield">
86
      <xslo:if test="contains('a', @code)">
85
      <xslo:if test="contains('a', @code)">
87
        <z:index name="Personal-name-parallel:w Personal-name-parallel:s Parallel:w Parallel:p Match:w Match:p">
86
        <z:index name="Personal-name-parallel:w Personal-name-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
88
          <xslo:value-of select="."/>
87
          <xslo:value-of select="."/>
89
        </z:index>
88
        </z:index>
90
      </xslo:if>
89
      </xslo:if>
Lines 93-106 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
93
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
92
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
94
    <xslo:for-each select="marc:subfield">
93
    <xslo:for-each select="marc:subfield">
95
      <xslo:if test="contains('abcdefgjxyz', @code)">
94
      <xslo:if test="contains('abcdefgjxyz', @code)">
96
        <z:index name="Corporate-name:w Corporate-name:p Conference-name:w Conference-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
95
        <z:index name="Corporate-name:w Corporate-name:p Conference-name:w Conference-name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
97
          <xslo:value-of select="."/>
96
          <xslo:value-of select="."/>
98
        </z:index>
97
        </z:index>
99
      </xslo:if>
98
      </xslo:if>
100
    </xslo:for-each>
99
    </xslo:for-each>
101
    <xslo:for-each select="marc:subfield">
100
    <xslo:for-each select="marc:subfield">
102
      <xslo:if test="contains('a', @code)">
101
      <xslo:if test="contains('a', @code)">
103
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Conference-name-heading:w Conference-name-heading:p Conference-name-heading:s">
102
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Corporate-name-heading:w Corporate-name-heading:p Corporate-name-heading:s Conference-name-heading:w Conference-name-heading:p Conference-name-heading:s Any:w Any:p">
104
          <xslo:value-of select="."/>
103
          <xslo:value-of select="."/>
105
        </z:index>
104
        </z:index>
106
      </xslo:if>
105
      </xslo:if>
Lines 109-115 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
109
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
108
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
110
    <xslo:for-each select="marc:subfield">
109
    <xslo:for-each select="marc:subfield">
111
      <xslo:if test="contains('abcdefgjxyz', @code)">
110
      <xslo:if test="contains('abcdefgjxyz', @code)">
112
        <z:index name="Corporate-name-see:w Corporate-name-see:p Conference-name-see:w Conference-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
111
        <z:index name="Corporate-name-see:w Corporate-name-see:p Conference-name-see:w Conference-name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
113
          <xslo:value-of select="."/>
112
          <xslo:value-of select="."/>
114
        </z:index>
113
        </z:index>
115
      </xslo:if>
114
      </xslo:if>
Lines 118-124 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
118
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
117
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
119
    <xslo:for-each select="marc:subfield">
118
    <xslo:for-each select="marc:subfield">
120
      <xslo:if test="contains('abcdefgjxyz', @code)">
119
      <xslo:if test="contains('abcdefgjxyz', @code)">
121
        <z:index name="Corporate-name-see-also:w Corporate-name-see-also:p Conference-name-see-also:w Conference-name-see-also:p See-also:w See-also:p Match:w Match:p">
120
        <z:index name="Corporate-name-see-also:w Corporate-name-see-also:p Conference-name-see-also:w Conference-name-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
122
          <xslo:value-of select="."/>
121
          <xslo:value-of select="."/>
123
        </z:index>
122
        </z:index>
124
      </xslo:if>
123
      </xslo:if>
Lines 127-133 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
127
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
126
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
128
    <xslo:for-each select="marc:subfield">
127
    <xslo:for-each select="marc:subfield">
129
      <xslo:if test="contains('abcdefgjxyz', @code)">
128
      <xslo:if test="contains('abcdefgjxyz', @code)">
130
        <z:index name="Corporate-name-parallel:w Corporate-name-parallel:s Conference-name-parallel:w Conference-name-parallel:s Parallel:w Parallel:p Match:w Match:p">
129
        <z:index name="Corporate-name-parallel:w Corporate-name-parallel:s Conference-name-parallel:w Conference-name-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
131
          <xslo:value-of select="."/>
130
          <xslo:value-of select="."/>
132
        </z:index>
131
        </z:index>
133
      </xslo:if>
132
      </xslo:if>
Lines 136-149 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
136
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='215']">
135
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='215']">
137
    <xslo:for-each select="marc:subfield">
136
    <xslo:for-each select="marc:subfield">
138
      <xslo:if test="contains('ajxyz', @code)">
137
      <xslo:if test="contains('ajxyz', @code)">
139
        <z:index name="Name-geographic:w Name-geographic:p Name-geographic:s Term-geographic:w Term-geographic:p Term-geographic:s Heading:w Heading:p Heading:s Match:w Match:p Match-heading:w Match-heading:p">
138
        <z:index name="Name-geographic:w Name-geographic:p Name-geographic:s Term-geographic:w Term-geographic:p Term-geographic:s Heading:w Heading:p Heading:s Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
140
          <xslo:value-of select="."/>
139
          <xslo:value-of select="."/>
141
        </z:index>
140
        </z:index>
142
      </xslo:if>
141
      </xslo:if>
143
    </xslo:for-each>
142
    </xslo:for-each>
144
    <xslo:for-each select="marc:subfield">
143
    <xslo:for-each select="marc:subfield">
145
      <xslo:if test="contains('a', @code)">
144
      <xslo:if test="contains('a', @code)">
146
        <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Term-geographic-heading:w Term-geographic-heading:p Term-geographic-heading:s">
145
        <z:index name="Heading-Main:w Heading-Main:p Heading-Main:s Name-geographic-heading:w Name-geographic-heading:p Name-geographic-heading:s Term-geographic-heading:w Term-geographic-heading:p Term-geographic-heading:s Any:w Any:p">
147
          <xslo:value-of select="."/>
146
          <xslo:value-of select="."/>
148
        </z:index>
147
        </z:index>
149
      </xslo:if>
148
      </xslo:if>
Lines 152-158 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
152
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
151
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
153
    <xslo:for-each select="marc:subfield">
152
    <xslo:for-each select="marc:subfield">
154
      <xslo:if test="contains('ajxyz', @code)">
153
      <xslo:if test="contains('ajxyz', @code)">
155
        <z:index name="Name-geographic-see:w Name-geographic-see:p Term-geographic-see:w Term-geographic-see:p Term-geographic-see:s See:w See:p See:s Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
154
        <z:index name="Name-geographic-see:w Name-geographic-see:p Term-geographic-see:w Term-geographic-see:p Term-geographic-see:s See:w See:p See:s Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
156
          <xslo:value-of select="."/>
155
          <xslo:value-of select="."/>
157
        </z:index>
156
        </z:index>
158
      </xslo:if>
157
      </xslo:if>
Lines 161-167 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
161
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
160
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
162
    <xslo:for-each select="marc:subfield">
161
    <xslo:for-each select="marc:subfield">
163
      <xslo:if test="contains('ajxyz', @code)">
162
      <xslo:if test="contains('ajxyz', @code)">
164
        <z:index name="Name-geographic-see-also:w Name-geographic-see-also:p Term-geographic-see-also:w Term-geographic-see-also:p Term-geographic-see-also:s See-also:w See-also:p Match:w Match:p">
163
        <z:index name="Name-geographic-see-also:w Name-geographic-see-also:p Term-geographic-see-also:w Term-geographic-see-also:p Term-geographic-see-also:s See-also:w See-also:p Match:w Match:p Any:w Any:p">
165
          <xslo:value-of select="."/>
164
          <xslo:value-of select="."/>
166
        </z:index>
165
        </z:index>
167
      </xslo:if>
166
      </xslo:if>
Lines 170-176 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
170
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='715']">
169
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='715']">
171
    <xslo:for-each select="marc:subfield">
170
    <xslo:for-each select="marc:subfield">
172
      <xslo:if test="contains('ajxyz', @code)">
171
      <xslo:if test="contains('ajxyz', @code)">
173
        <z:index name="Name-geographic-parallel:w Name-geographic-parallel:s Term-geographic-parallel:w Term-geographic-parallel:s Term-geographic-parallel:p Parallel:w Parallel:p Match:w Match:p">
172
        <z:index name="Name-geographic-parallel:w Name-geographic-parallel:s Term-geographic-parallel:w Term-geographic-parallel:s Term-geographic-parallel:p Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
174
          <xslo:value-of select="."/>
173
          <xslo:value-of select="."/>
175
        </z:index>
174
        </z:index>
176
      </xslo:if>
175
      </xslo:if>
Lines 179-192 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
179
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='216']">
178
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='216']">
180
    <xslo:for-each select="marc:subfield">
179
    <xslo:for-each select="marc:subfield">
181
      <xslo:if test="contains('afcjxyz', @code)">
180
      <xslo:if test="contains('afcjxyz', @code)">
182
        <z:index name="Trademark:w Trademark:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
181
        <z:index name="Trademark:w Trademark:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
183
          <xslo:value-of select="."/>
182
          <xslo:value-of select="."/>
184
        </z:index>
183
        </z:index>
185
      </xslo:if>
184
      </xslo:if>
186
    </xslo:for-each>
185
    </xslo:for-each>
187
    <xslo:for-each select="marc:subfield">
186
    <xslo:for-each select="marc:subfield">
188
      <xslo:if test="contains('a', @code)">
187
      <xslo:if test="contains('a', @code)">
189
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Trademark-heading:w Trademark-heading:p Trademark-heading:s">
188
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Trademark-heading:w Trademark-heading:p Trademark-heading:s Any:w Any:p">
190
          <xslo:value-of select="."/>
189
          <xslo:value-of select="."/>
191
        </z:index>
190
        </z:index>
192
      </xslo:if>
191
      </xslo:if>
Lines 195-201 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
195
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
194
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
196
    <xslo:for-each select="marc:subfield">
195
    <xslo:for-each select="marc:subfield">
197
      <xslo:if test="contains('afcjxyz', @code)">
196
      <xslo:if test="contains('afcjxyz', @code)">
198
        <z:index name="Trademark-see:w Trademark-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
197
        <z:index name="Trademark-see:w Trademark-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
199
          <xslo:value-of select="."/>
198
          <xslo:value-of select="."/>
200
        </z:index>
199
        </z:index>
201
      </xslo:if>
200
      </xslo:if>
Lines 204-210 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
204
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
203
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
205
    <xslo:for-each select="marc:subfield">
204
    <xslo:for-each select="marc:subfield">
206
      <xslo:if test="contains('afcjxyz', @code)">
205
      <xslo:if test="contains('afcjxyz', @code)">
207
        <z:index name="Trademark-see-also:w Trademark-see-also:p See-also:w See-also:p Match:w Match:p">
206
        <z:index name="Trademark-see-also:w Trademark-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
208
          <xslo:value-of select="."/>
207
          <xslo:value-of select="."/>
209
        </z:index>
208
        </z:index>
210
      </xslo:if>
209
      </xslo:if>
Lines 213-219 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
213
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
212
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
214
    <xslo:for-each select="marc:subfield">
213
    <xslo:for-each select="marc:subfield">
215
      <xslo:if test="contains('afcjxyz', @code)">
214
      <xslo:if test="contains('afcjxyz', @code)">
216
        <z:index name="Trademark-parallel:w Trademark-parallel:s Parallel:w Parallel:p Match:w Match:p">
215
        <z:index name="Trademark-parallel:w Trademark-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
217
          <xslo:value-of select="."/>
216
          <xslo:value-of select="."/>
218
        </z:index>
217
        </z:index>
219
      </xslo:if>
218
      </xslo:if>
Lines 222-235 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
222
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='220']">
221
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='220']">
223
    <xslo:for-each select="marc:subfield">
222
    <xslo:for-each select="marc:subfield">
224
      <xslo:if test="contains('afjxyz', @code)">
223
      <xslo:if test="contains('afjxyz', @code)">
225
        <z:index name="Name:w Name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
224
        <z:index name="Name:w Name:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
226
          <xslo:value-of select="."/>
225
          <xslo:value-of select="."/>
227
        </z:index>
226
        </z:index>
228
      </xslo:if>
227
      </xslo:if>
229
    </xslo:for-each>
228
    </xslo:for-each>
230
    <xslo:for-each select="marc:subfield">
229
    <xslo:for-each select="marc:subfield">
231
      <xslo:if test="contains('a', @code)">
230
      <xslo:if test="contains('a', @code)">
232
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-heading:w Name-heading:p Name-heading:s">
231
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-heading:w Name-heading:p Name-heading:s Any:w Any:p">
233
          <xslo:value-of select="."/>
232
          <xslo:value-of select="."/>
234
        </z:index>
233
        </z:index>
235
      </xslo:if>
234
      </xslo:if>
Lines 238-244 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
238
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
237
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
239
    <xslo:for-each select="marc:subfield">
238
    <xslo:for-each select="marc:subfield">
240
      <xslo:if test="contains('afjxyz', @code)">
239
      <xslo:if test="contains('afjxyz', @code)">
241
        <z:index name="Name-see:w Name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
240
        <z:index name="Name-see:w Name-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
242
          <xslo:value-of select="."/>
241
          <xslo:value-of select="."/>
243
        </z:index>
242
        </z:index>
244
      </xslo:if>
243
      </xslo:if>
Lines 247-253 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
247
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
246
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
248
    <xslo:for-each select="marc:subfield">
247
    <xslo:for-each select="marc:subfield">
249
      <xslo:if test="contains('afjxyz', @code)">
248
      <xslo:if test="contains('afjxyz', @code)">
250
        <z:index name="Name-see-also:w Name-see-also:p See-also:w See-also:p Match:w Match:p">
249
        <z:index name="Name-see-also:w Name-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
251
          <xslo:value-of select="."/>
250
          <xslo:value-of select="."/>
252
        </z:index>
251
        </z:index>
253
      </xslo:if>
252
      </xslo:if>
Lines 256-262 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
256
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
255
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
257
    <xslo:for-each select="marc:subfield">
256
    <xslo:for-each select="marc:subfield">
258
      <xslo:if test="contains('afjxyz', @code)">
257
      <xslo:if test="contains('afjxyz', @code)">
259
        <z:index name="Name-parallel:w Name-parallel:s Parallel:w Parallel:p Match:w Match:p">
258
        <z:index name="Name-parallel:w Name-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
260
          <xslo:value-of select="."/>
259
          <xslo:value-of select="."/>
261
        </z:index>
260
        </z:index>
262
      </xslo:if>
261
      </xslo:if>
Lines 265-278 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
265
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
264
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
266
    <xslo:for-each select="marc:subfield">
265
    <xslo:for-each select="marc:subfield">
267
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
266
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
268
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
267
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
269
          <xslo:value-of select="."/>
268
          <xslo:value-of select="."/>
270
        </z:index>
269
        </z:index>
271
      </xslo:if>
270
      </xslo:if>
272
    </xslo:for-each>
271
    </xslo:for-each>
273
    <xslo:for-each select="marc:subfield">
272
    <xslo:for-each select="marc:subfield">
274
      <xslo:if test="contains('a', @code)">
273
      <xslo:if test="contains('a', @code)">
275
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
274
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Any:w Any:p">
276
          <xslo:value-of select="."/>
275
          <xslo:value-of select="."/>
277
        </z:index>
276
        </z:index>
278
      </xslo:if>
277
      </xslo:if>
Lines 281-287 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
281
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
280
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
282
    <xslo:for-each select="marc:subfield">
281
    <xslo:for-each select="marc:subfield">
283
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
282
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
284
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
283
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
285
          <xslo:value-of select="."/>
284
          <xslo:value-of select="."/>
286
        </z:index>
285
        </z:index>
287
      </xslo:if>
286
      </xslo:if>
Lines 290-296 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
290
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
289
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
291
    <xslo:for-each select="marc:subfield">
290
    <xslo:for-each select="marc:subfield">
292
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
291
      <xslo:if test="contains('abhiklmnqrsuwjxyz', @code)">
293
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
292
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
294
          <xslo:value-of select="."/>
293
          <xslo:value-of select="."/>
295
        </z:index>
294
        </z:index>
296
      </xslo:if>
295
      </xslo:if>
Lines 299-305 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
299
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
298
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
300
    <xslo:for-each select="marc:subfield">
299
    <xslo:for-each select="marc:subfield">
301
      <xslo:if test="contains('a', @code)">
300
      <xslo:if test="contains('a', @code)">
302
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
301
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
303
          <xslo:value-of select="."/>
302
          <xslo:value-of select="."/>
304
        </z:index>
303
        </z:index>
305
      </xslo:if>
304
      </xslo:if>
Lines 308-321 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
308
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='235']">
307
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='235']">
309
    <xslo:for-each select="marc:subfield">
308
    <xslo:for-each select="marc:subfield">
310
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
309
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
311
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
310
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
312
          <xslo:value-of select="."/>
311
          <xslo:value-of select="."/>
313
        </z:index>
312
        </z:index>
314
      </xslo:if>
313
      </xslo:if>
315
    </xslo:for-each>
314
    </xslo:for-each>
316
    <xslo:for-each select="marc:subfield">
315
    <xslo:for-each select="marc:subfield">
317
      <xslo:if test="contains('a', @code)">
316
      <xslo:if test="contains('a', @code)">
318
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
317
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Any:w Any:p">
319
          <xslo:value-of select="."/>
318
          <xslo:value-of select="."/>
320
        </z:index>
319
        </z:index>
321
      </xslo:if>
320
      </xslo:if>
Lines 324-330 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
324
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
323
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
325
    <xslo:for-each select="marc:subfield">
324
    <xslo:for-each select="marc:subfield">
326
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
325
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
327
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
326
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
328
          <xslo:value-of select="."/>
327
          <xslo:value-of select="."/>
329
        </z:index>
328
        </z:index>
330
      </xslo:if>
329
      </xslo:if>
Lines 333-339 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
333
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='535']">
332
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='535']">
334
    <xslo:for-each select="marc:subfield">
333
    <xslo:for-each select="marc:subfield">
335
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
334
      <xslo:if test="contains('abekmrsuwjxyz', @code)">
336
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
335
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
337
          <xslo:value-of select="."/>
336
          <xslo:value-of select="."/>
338
        </z:index>
337
        </z:index>
339
      </xslo:if>
338
      </xslo:if>
Lines 342-348 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
342
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='735']">
341
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='735']">
343
    <xslo:for-each select="marc:subfield">
342
    <xslo:for-each select="marc:subfield">
344
      <xslo:if test="contains('a', @code)">
343
      <xslo:if test="contains('a', @code)">
345
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
344
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
346
          <xslo:value-of select="."/>
345
          <xslo:value-of select="."/>
347
        </z:index>
346
        </z:index>
348
      </xslo:if>
347
      </xslo:if>
Lines 351-364 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
351
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
350
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='240']">
352
    <xslo:for-each select="marc:subfield">
351
    <xslo:for-each select="marc:subfield">
353
      <xslo:if test="contains('atjxyz', @code)">
352
      <xslo:if test="contains('atjxyz', @code)">
354
        <z:index name="Name-Title:w Name-Title:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
353
        <z:index name="Name-Title:w Name-Title:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
355
          <xslo:value-of select="."/>
354
          <xslo:value-of select="."/>
356
        </z:index>
355
        </z:index>
357
      </xslo:if>
356
      </xslo:if>
358
    </xslo:for-each>
357
    </xslo:for-each>
359
    <xslo:for-each select="marc:subfield">
358
    <xslo:for-each select="marc:subfield">
360
      <xslo:if test="contains('a', @code)">
359
      <xslo:if test="contains('a', @code)">
361
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-Title-heading:w Name-Title-heading:p Name-Title-heading:s">
360
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Name-Title-heading:w Name-Title-heading:p Name-Title-heading:s Any:w Any:p">
362
          <xslo:value-of select="."/>
361
          <xslo:value-of select="."/>
363
        </z:index>
362
        </z:index>
364
      </xslo:if>
363
      </xslo:if>
Lines 367-373 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
367
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
366
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
368
    <xslo:for-each select="marc:subfield">
367
    <xslo:for-each select="marc:subfield">
369
      <xslo:if test="contains('atjxyz', @code)">
368
      <xslo:if test="contains('atjxyz', @code)">
370
        <z:index name="Name-Title-see:w Name-Title-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
369
        <z:index name="Name-Title-see:w Name-Title-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
371
          <xslo:value-of select="."/>
370
          <xslo:value-of select="."/>
372
        </z:index>
371
        </z:index>
373
      </xslo:if>
372
      </xslo:if>
Lines 376-382 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
376
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
375
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
377
    <xslo:for-each select="marc:subfield">
376
    <xslo:for-each select="marc:subfield">
378
      <xslo:if test="contains('atjxyz', @code)">
377
      <xslo:if test="contains('atjxyz', @code)">
379
        <z:index name="Name-Title-see-also:w Name-Title-see-also:p See-also:w See-also:p Match:w Match:p">
378
        <z:index name="Name-Title-see-also:w Name-Title-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
380
          <xslo:value-of select="."/>
379
          <xslo:value-of select="."/>
381
        </z:index>
380
        </z:index>
382
      </xslo:if>
381
      </xslo:if>
Lines 385-391 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
385
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='740']">
384
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='740']">
386
    <xslo:for-each select="marc:subfield">
385
    <xslo:for-each select="marc:subfield">
387
      <xslo:if test="contains('a', @code)">
386
      <xslo:if test="contains('a', @code)">
388
        <z:index name="Name-Title-parallel:w Name-Title-parallel:s Parallel:w Parallel:p Match:w Match:p">
387
        <z:index name="Name-Title-parallel:w Name-Title-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
389
          <xslo:value-of select="."/>
388
          <xslo:value-of select="."/>
390
        </z:index>
389
        </z:index>
391
      </xslo:if>
390
      </xslo:if>
Lines 394-407 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
394
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
393
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
395
    <xslo:for-each select="marc:subfield">
394
    <xslo:for-each select="marc:subfield">
396
      <xslo:if test="contains('atjxyz', @code)">
395
      <xslo:if test="contains('atjxyz', @code)">
397
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p">
396
        <z:index name="Title-uniform:w Title-uniform:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Any:w Any:p">
398
          <xslo:value-of select="."/>
397
          <xslo:value-of select="."/>
399
        </z:index>
398
        </z:index>
400
      </xslo:if>
399
      </xslo:if>
401
    </xslo:for-each>
400
    </xslo:for-each>
402
    <xslo:for-each select="marc:subfield">
401
    <xslo:for-each select="marc:subfield">
403
      <xslo:if test="contains('a', @code)">
402
      <xslo:if test="contains('a', @code)">
404
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s">
403
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Title-uniform-heading:w Title-uniform-heading:p Title-uniform-heading:s Any:w Any:p">
405
          <xslo:value-of select="."/>
404
          <xslo:value-of select="."/>
406
        </z:index>
405
        </z:index>
407
      </xslo:if>
406
      </xslo:if>
Lines 410-416 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
410
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
409
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
411
    <xslo:for-each select="marc:subfield">
410
    <xslo:for-each select="marc:subfield">
412
      <xslo:if test="contains('atjxyz', @code)">
411
      <xslo:if test="contains('atjxyz', @code)">
413
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
412
        <z:index name="Title-uniform-see:w Title-uniform-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
414
          <xslo:value-of select="."/>
413
          <xslo:value-of select="."/>
415
        </z:index>
414
        </z:index>
416
      </xslo:if>
415
      </xslo:if>
Lines 419-425 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
419
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
418
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
420
    <xslo:for-each select="marc:subfield">
419
    <xslo:for-each select="marc:subfield">
421
      <xslo:if test="contains('atjxyz', @code)">
420
      <xslo:if test="contains('atjxyz', @code)">
422
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p">
421
        <z:index name="Title-uniform-see-also:w Title-uniform-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
423
          <xslo:value-of select="."/>
422
          <xslo:value-of select="."/>
424
        </z:index>
423
        </z:index>
425
      </xslo:if>
424
      </xslo:if>
Lines 428-434 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
428
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='745']">
427
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='745']">
429
    <xslo:for-each select="marc:subfield">
428
    <xslo:for-each select="marc:subfield">
430
      <xslo:if test="contains('a', @code)">
429
      <xslo:if test="contains('a', @code)">
431
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p">
430
        <z:index name="Title-uniform-parallel:w Title-uniform-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
432
          <xslo:value-of select="."/>
431
          <xslo:value-of select="."/>
433
        </z:index>
432
        </z:index>
434
      </xslo:if>
433
      </xslo:if>
Lines 437-450 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
437
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='250']">
436
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='250']">
438
    <xslo:for-each select="marc:subfield">
437
    <xslo:for-each select="marc:subfield">
439
      <xslo:if test="contains('ajxyz', @code)">
438
      <xslo:if test="contains('ajxyz', @code)">
440
        <z:index name="Subject:w Subject:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Subject-heading:w Subject-heading:p Subject-heading:s">
439
        <z:index name="Subject:w Subject:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Subject-heading:w Subject-heading:p Subject-heading:s Any:w Any:p">
441
          <xslo:value-of select="."/>
440
          <xslo:value-of select="."/>
442
        </z:index>
441
        </z:index>
443
      </xslo:if>
442
      </xslo:if>
444
    </xslo:for-each>
443
    </xslo:for-each>
445
    <xslo:for-each select="marc:subfield">
444
    <xslo:for-each select="marc:subfield">
446
      <xslo:if test="contains('a', @code)">
445
      <xslo:if test="contains('a', @code)">
447
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
446
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
448
          <xslo:value-of select="."/>
447
          <xslo:value-of select="."/>
449
        </z:index>
448
        </z:index>
450
      </xslo:if>
449
      </xslo:if>
Lines 453-459 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
453
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='450']">
452
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='450']">
454
    <xslo:for-each select="marc:subfield">
453
    <xslo:for-each select="marc:subfield">
455
      <xslo:if test="contains('ajxyz', @code)">
454
      <xslo:if test="contains('ajxyz', @code)">
456
        <z:index name="Subject-see:w Subject-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
455
        <z:index name="Subject-see:w Subject-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
457
          <xslo:value-of select="."/>
456
          <xslo:value-of select="."/>
458
        </z:index>
457
        </z:index>
459
      </xslo:if>
458
      </xslo:if>
Lines 462-468 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
462
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='550']">
461
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='550']">
463
    <xslo:for-each select="marc:subfield">
462
    <xslo:for-each select="marc:subfield">
464
      <xslo:if test="contains('ajxyz', @code)">
463
      <xslo:if test="contains('ajxyz', @code)">
465
        <z:index name="Subject-see-also:w Subject-see-also:p See-also:w See-also:p Match:w Match:p">
464
        <z:index name="Subject-see-also:w Subject-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
466
          <xslo:value-of select="."/>
465
          <xslo:value-of select="."/>
467
        </z:index>
466
        </z:index>
468
      </xslo:if>
467
      </xslo:if>
Lines 471-477 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
471
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='750']">
470
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='750']">
472
    <xslo:for-each select="marc:subfield">
471
    <xslo:for-each select="marc:subfield">
473
      <xslo:if test="contains('a', @code)">
472
      <xslo:if test="contains('a', @code)">
474
        <z:index name="Subject-parallel:w Subject-parallel:s Parallel:w Parallel:p Match:w Match:p">
473
        <z:index name="Subject-parallel:w Subject-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
475
          <xslo:value-of select="."/>
474
          <xslo:value-of select="."/>
476
        </z:index>
475
        </z:index>
477
      </xslo:if>
476
      </xslo:if>
Lines 480-493 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
480
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
479
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
481
    <xslo:for-each select="marc:subfield">
480
    <xslo:for-each select="marc:subfield">
482
      <xslo:if test="contains('abcdjxyz', @code)">
481
      <xslo:if test="contains('abcdjxyz', @code)">
483
        <z:index name="Place:w Place:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Place-heading:w Place-heading:p Place-heading:s">
482
        <z:index name="Place:w Place:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Place-heading:w Place-heading:p Place-heading:s Any:w Any:p">
484
          <xslo:value-of select="."/>
483
          <xslo:value-of select="."/>
485
        </z:index>
484
        </z:index>
486
      </xslo:if>
485
      </xslo:if>
487
    </xslo:for-each>
486
    </xslo:for-each>
488
    <xslo:for-each select="marc:subfield">
487
    <xslo:for-each select="marc:subfield">
489
      <xslo:if test="contains('a', @code)">
488
      <xslo:if test="contains('a', @code)">
490
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
489
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
491
          <xslo:value-of select="."/>
490
          <xslo:value-of select="."/>
492
        </z:index>
491
        </z:index>
493
      </xslo:if>
492
      </xslo:if>
Lines 496-502 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
496
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='460']">
495
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='460']">
497
    <xslo:for-each select="marc:subfield">
496
    <xslo:for-each select="marc:subfield">
498
      <xslo:if test="contains('abcdjxyz', @code)">
497
      <xslo:if test="contains('abcdjxyz', @code)">
499
        <z:index name="Place-see:w Place-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
498
        <z:index name="Place-see:w Place-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
500
          <xslo:value-of select="."/>
499
          <xslo:value-of select="."/>
501
        </z:index>
500
        </z:index>
502
      </xslo:if>
501
      </xslo:if>
Lines 505-511 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
505
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
504
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
506
    <xslo:for-each select="marc:subfield">
505
    <xslo:for-each select="marc:subfield">
507
      <xslo:if test="contains('abcdjxyz', @code)">
506
      <xslo:if test="contains('abcdjxyz', @code)">
508
        <z:index name="Place-see-also:w Place-see-also:p See-also:w See-also:p Match:w Match:p">
507
        <z:index name="Place-see-also:w Place-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
509
          <xslo:value-of select="."/>
508
          <xslo:value-of select="."/>
510
        </z:index>
509
        </z:index>
511
      </xslo:if>
510
      </xslo:if>
Lines 514-520 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
514
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='760']">
513
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='760']">
515
    <xslo:for-each select="marc:subfield">
514
    <xslo:for-each select="marc:subfield">
516
      <xslo:if test="contains('a', @code)">
515
      <xslo:if test="contains('a', @code)">
517
        <z:index name="Place-parallel:w Place-parallel:s Parallel:w Parallel:p Match:w Match:p">
516
        <z:index name="Place-parallel:w Place-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
518
          <xslo:value-of select="."/>
517
          <xslo:value-of select="."/>
519
        </z:index>
518
        </z:index>
520
      </xslo:if>
519
      </xslo:if>
Lines 523-536 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
523
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='280']">
522
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='280']">
524
    <xslo:for-each select="marc:subfield">
523
    <xslo:for-each select="marc:subfield">
525
      <xslo:if test="contains('ajxyz', @code)">
524
      <xslo:if test="contains('ajxyz', @code)">
526
        <z:index name="Form:w Form:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Form-heading:w Form-heading:p Form-heading:s">
525
        <z:index name="Form:w Form:p Heading:w Heading:p Match:w Match:p Match-heading:w Match-heading:p Form-heading:w Form-heading:p Form-heading:s Any:w Any:p">
527
          <xslo:value-of select="."/>
526
          <xslo:value-of select="."/>
528
        </z:index>
527
        </z:index>
529
      </xslo:if>
528
      </xslo:if>
530
    </xslo:for-each>
529
    </xslo:for-each>
531
    <xslo:for-each select="marc:subfield">
530
    <xslo:for-each select="marc:subfield">
532
      <xslo:if test="contains('a', @code)">
531
      <xslo:if test="contains('a', @code)">
533
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s">
532
        <z:index name="Heading:s Heading-Main:w Heading-Main:p Heading-Main:s Any:w Any:p">
534
          <xslo:value-of select="."/>
533
          <xslo:value-of select="."/>
535
        </z:index>
534
        </z:index>
536
      </xslo:if>
535
      </xslo:if>
Lines 539-545 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
539
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='480']">
538
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='480']">
540
    <xslo:for-each select="marc:subfield">
539
    <xslo:for-each select="marc:subfield">
541
      <xslo:if test="contains('ajxyz', @code)">
540
      <xslo:if test="contains('ajxyz', @code)">
542
        <z:index name="Form-see:w Form-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p">
541
        <z:index name="Form-see:w Form-see:p See:w See:p Match:w Match:p Match-heading-see-form:w Match-heading-see-form:p Any:w Any:p">
543
          <xslo:value-of select="."/>
542
          <xslo:value-of select="."/>
544
        </z:index>
543
        </z:index>
545
      </xslo:if>
544
      </xslo:if>
Lines 548-554 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
548
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='580']">
547
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='580']">
549
    <xslo:for-each select="marc:subfield">
548
    <xslo:for-each select="marc:subfield">
550
      <xslo:if test="contains('ajxyz', @code)">
549
      <xslo:if test="contains('ajxyz', @code)">
551
        <z:index name="Form-see-also:w Form-see-also:p See-also:w See-also:p Match:w Match:p">
550
        <z:index name="Form-see-also:w Form-see-also:p See-also:w See-also:p Match:w Match:p Any:w Any:p">
552
          <xslo:value-of select="."/>
551
          <xslo:value-of select="."/>
553
        </z:index>
552
        </z:index>
554
      </xslo:if>
553
      </xslo:if>
Lines 557-563 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
557
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
556
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='780']">
558
    <xslo:for-each select="marc:subfield">
557
    <xslo:for-each select="marc:subfield">
559
      <xslo:if test="contains('a', @code)">
558
      <xslo:if test="contains('a', @code)">
560
        <z:index name="Form-parallel:w Form-parallel:s Parallel:w Parallel:p Match:w Match:p">
559
        <z:index name="Form-parallel:w Form-parallel:s Parallel:w Parallel:p Match:w Match:p Any:w Any:p">
561
          <xslo:value-of select="."/>
560
          <xslo:value-of select="."/>
562
        </z:index>
561
        </z:index>
563
      </xslo:if>
562
      </xslo:if>
Lines 566-572 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
566
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']">
565
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']">
567
    <xslo:for-each select="marc:subfield">
566
    <xslo:for-each select="marc:subfield">
568
      <xslo:if test="contains('a', @code)">
567
      <xslo:if test="contains('a', @code)">
569
        <z:index name="Note:w Note:p">
568
        <z:index name="Note:w Note:p Any:w Any:p">
570
          <xslo:value-of select="."/>
569
          <xslo:value-of select="."/>
571
        </z:index>
570
        </z:index>
572
      </xslo:if>
571
      </xslo:if>
Lines 575-581 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
575
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='305']">
574
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='305']">
576
    <xslo:for-each select="marc:subfield">
575
    <xslo:for-each select="marc:subfield">
577
      <xslo:if test="contains('a', @code)">
576
      <xslo:if test="contains('a', @code)">
578
        <z:index name="Note:w Note:p">
577
        <z:index name="Note:w Note:p Any:w Any:p">
579
          <xslo:value-of select="."/>
578
          <xslo:value-of select="."/>
580
        </z:index>
579
        </z:index>
581
      </xslo:if>
580
      </xslo:if>
Lines 584-590 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
584
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='310']">
583
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='310']">
585
    <xslo:for-each select="marc:subfield">
584
    <xslo:for-each select="marc:subfield">
586
      <xslo:if test="contains('a', @code)">
585
      <xslo:if test="contains('a', @code)">
587
        <z:index name="Note:w Note:p">
586
        <z:index name="Note:w Note:p Any:w Any:p">
588
          <xslo:value-of select="."/>
587
          <xslo:value-of select="."/>
589
        </z:index>
588
        </z:index>
590
      </xslo:if>
589
      </xslo:if>
Lines 593-599 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
593
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='320']">
592
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='320']">
594
    <xslo:for-each select="marc:subfield">
593
    <xslo:for-each select="marc:subfield">
595
      <xslo:if test="contains('a', @code)">
594
      <xslo:if test="contains('a', @code)">
596
        <z:index name="Note:w Note:p">
595
        <z:index name="Note:w Note:p Any:w Any:p">
597
          <xslo:value-of select="."/>
596
          <xslo:value-of select="."/>
598
        </z:index>
597
        </z:index>
599
      </xslo:if>
598
      </xslo:if>
Lines 602-608 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
602
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='330']">
601
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='330']">
603
    <xslo:for-each select="marc:subfield">
602
    <xslo:for-each select="marc:subfield">
604
      <xslo:if test="contains('a', @code)">
603
      <xslo:if test="contains('a', @code)">
605
        <z:index name="Note:w Note:p">
604
        <z:index name="Note:w Note:p Any:w Any:p">
606
          <xslo:value-of select="."/>
605
          <xslo:value-of select="."/>
607
        </z:index>
606
        </z:index>
608
      </xslo:if>
607
      </xslo:if>
Lines 611-617 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
611
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='340']">
610
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='340']">
612
    <xslo:for-each select="marc:subfield">
611
    <xslo:for-each select="marc:subfield">
613
      <xslo:if test="contains('a', @code)">
612
      <xslo:if test="contains('a', @code)">
614
        <z:index name="Note:w Note:p">
613
        <z:index name="Note:w Note:p Any:w Any:p">
615
          <xslo:value-of select="."/>
614
          <xslo:value-of select="."/>
616
        </z:index>
615
        </z:index>
617
      </xslo:if>
616
      </xslo:if>
Lines 620-626 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
620
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='356']">
619
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='356']">
621
    <xslo:for-each select="marc:subfield">
620
    <xslo:for-each select="marc:subfield">
622
      <xslo:if test="contains('a', @code)">
621
      <xslo:if test="contains('a', @code)">
623
        <z:index name="Note:w Note:p">
622
        <z:index name="Note:w Note:p Any:w Any:p">
624
          <xslo:value-of select="."/>
623
          <xslo:value-of select="."/>
625
        </z:index>
624
        </z:index>
626
      </xslo:if>
625
      </xslo:if>
Lines 629-635 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
629
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='152']">
628
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='152']">
630
    <xslo:for-each select="marc:subfield">
629
    <xslo:for-each select="marc:subfield">
631
      <xslo:if test="contains('b', @code)">
630
      <xslo:if test="contains('b', @code)">
632
        <z:index name="authtype:w authtype:p">
631
        <z:index name="authtype:w authtype:p Any:w Any:p">
633
          <xslo:value-of select="."/>
632
          <xslo:value-of select="."/>
634
        </z:index>
633
        </z:index>
635
      </xslo:if>
634
      </xslo:if>
Lines 638-654 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
638
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
637
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
639
    <xslo:for-each select="marc:subfield">
638
    <xslo:for-each select="marc:subfield">
640
      <xslo:if test="contains('a', @code)">
639
      <xslo:if test="contains('a', @code)">
641
        <z:index name="authtype:w">
640
        <z:index name="authtype:w Any:w Any:p">
642
          <xslo:value-of select="."/>
641
          <xslo:value-of select="."/>
643
        </z:index>
642
        </z:index>
644
      </xslo:if>
643
      </xslo:if>
645
    </xslo:for-each>
644
    </xslo:for-each>
646
  </xslo:template>
645
  </xslo:template>
647
  <xslo:template mode="index_all" match="text()">
648
    <z:index name="Any:w Any:p">
649
      <xslo:value-of select="."/>
650
    </z:index>
651
  </xslo:template>
652
  <xslo:template name="chopPunctuation">
646
  <xslo:template name="chopPunctuation">
653
    <xslo:param name="chopString"/>
647
    <xslo:param name="chopString"/>
654
    <xslo:variable name="length" select="string-length($chopString)"/>
648
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-339 / +333 lines)
Lines 39-45 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
      <xslo:apply-templates mode="index_heading_conditional"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
42
      <xslo:apply-templates mode="index_all"/>
43
    </z:record>
42
    </z:record>
44
  </xslo:template>
43
  </xslo:template>
45
  <xslo:template match="marc:controlfield[@tag='001']">
44
  <xslo:template match="marc:controlfield[@tag='001']">
Lines 61-67 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
61
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='090']">
60
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='090']">
62
    <xslo:for-each select="marc:subfield">
61
    <xslo:for-each select="marc:subfield">
63
      <xslo:if test="contains('9', @code)">
62
      <xslo:if test="contains('9', @code)">
64
        <z:index name="Local-number:w Local-number:n">
63
        <z:index name="Local-number:w Local-number:n Any:w Any:p">
65
          <xslo:value-of select="."/>
64
          <xslo:value-of select="."/>
66
        </z:index>
65
        </z:index>
67
      </xslo:if>
66
      </xslo:if>
Lines 70-90 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
70
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='099']">
69
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='099']">
71
    <xslo:for-each select="marc:subfield">
70
    <xslo:for-each select="marc:subfield">
72
      <xslo:if test="contains('c', @code)">
71
      <xslo:if test="contains('c', @code)">
73
        <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">
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 Any:w Any:p">
74
          <xslo:value-of select="."/>
73
          <xslo:value-of select="."/>
75
        </z:index>
74
        </z:index>
76
      </xslo:if>
75
      </xslo:if>
77
    </xslo:for-each>
76
    </xslo:for-each>
78
    <xslo:for-each select="marc:subfield">
77
    <xslo:for-each select="marc:subfield">
79
      <xslo:if test="contains('d', @code)">
78
      <xslo:if test="contains('d', @code)">
80
        <z:index name="Date/time-last-modified:s Date/time-last-modified:n Date/time-last-modified:y">
79
        <z:index name="Date/time-last-modified:s Date/time-last-modified:n Date/time-last-modified:y Any:w Any:p">
81
          <xslo:value-of select="."/>
80
          <xslo:value-of select="."/>
82
        </z:index>
81
        </z:index>
83
      </xslo:if>
82
      </xslo:if>
84
    </xslo:for-each>
83
    </xslo:for-each>
85
    <xslo:for-each select="marc:subfield">
84
    <xslo:for-each select="marc:subfield">
86
      <xslo:if test="contains('t', @code)">
85
      <xslo:if test="contains('t', @code)">
87
        <z:index name="ccode:w">
86
        <z:index name="ccode:w Any:w Any:p">
88
          <xslo:value-of select="."/>
87
          <xslo:value-of select="."/>
89
        </z:index>
88
        </z:index>
90
      </xslo:if>
89
      </xslo:if>
Lines 93-106 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
93
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='010']">
92
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='010']">
94
    <xslo:for-each select="marc:subfield">
93
    <xslo:for-each select="marc:subfield">
95
      <xslo:if test="contains('a', @code)">
94
      <xslo:if test="contains('a', @code)">
96
        <z:index name="ISBN:w">
95
        <z:index name="ISBN:w Any:w Any:p">
97
          <xslo:value-of select="."/>
96
          <xslo:value-of select="."/>
98
        </z:index>
97
        </z:index>
99
      </xslo:if>
98
      </xslo:if>
100
    </xslo:for-each>
99
    </xslo:for-each>
101
    <xslo:for-each select="marc:subfield">
100
    <xslo:for-each select="marc:subfield">
102
      <xslo:if test="contains('z', @code)">
101
      <xslo:if test="contains('z', @code)">
103
        <z:index name="ISBN:w Identifier-standard:w">
102
        <z:index name="ISBN:w Identifier-standard:w Any:w Any:p">
104
          <xslo:value-of select="."/>
103
          <xslo:value-of select="."/>
105
        </z:index>
104
        </z:index>
106
      </xslo:if>
105
      </xslo:if>
Lines 109-143 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
109
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='011']">
108
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='011']">
110
    <xslo:for-each select="marc:subfield">
109
    <xslo:for-each select="marc:subfield">
111
      <xslo:if test="contains('a', @code)">
110
      <xslo:if test="contains('a', @code)">
112
        <z:index name="ISSN:w Identifier-standard:w">
111
        <z:index name="ISSN:w Identifier-standard:w Any:w Any:p">
113
          <xslo:value-of select="."/>
112
          <xslo:value-of select="."/>
114
        </z:index>
113
        </z:index>
115
      </xslo:if>
114
      </xslo:if>
116
    </xslo:for-each>
115
    </xslo:for-each>
117
    <xslo:for-each select="marc:subfield">
116
    <xslo:for-each select="marc:subfield">
118
      <xslo:if test="contains('y', @code)">
117
      <xslo:if test="contains('y', @code)">
119
        <z:index name="ISSN:w Identifier-standard:w">
118
        <z:index name="ISSN:w Identifier-standard:w Any:w Any:p">
120
          <xslo:value-of select="."/>
119
          <xslo:value-of select="."/>
121
        </z:index>
120
        </z:index>
122
      </xslo:if>
121
      </xslo:if>
123
    </xslo:for-each>
122
    </xslo:for-each>
124
    <xslo:for-each select="marc:subfield">
123
    <xslo:for-each select="marc:subfield">
125
      <xslo:if test="contains('z', @code)">
124
      <xslo:if test="contains('z', @code)">
126
        <z:index name="ISSN:w Identifier-standard:w">
125
        <z:index name="ISSN:w Identifier-standard:w Any:w Any:p">
127
          <xslo:value-of select="."/>
126
          <xslo:value-of select="."/>
128
        </z:index>
127
        </z:index>
129
      </xslo:if>
128
      </xslo:if>
130
    </xslo:for-each>
129
    </xslo:for-each>
131
    <xslo:for-each select="marc:subfield">
130
    <xslo:for-each select="marc:subfield">
132
      <xslo:if test="contains('f', @code)">
131
      <xslo:if test="contains('f', @code)">
133
        <z:index name="Identifier-standard:w">
132
        <z:index name="Identifier-standard:w Any:w Any:p">
134
          <xslo:value-of select="."/>
133
          <xslo:value-of select="."/>
135
        </z:index>
134
        </z:index>
136
      </xslo:if>
135
      </xslo:if>
137
    </xslo:for-each>
136
    </xslo:for-each>
138
    <xslo:for-each select="marc:subfield">
137
    <xslo:for-each select="marc:subfield">
139
      <xslo:if test="contains('g', @code)">
138
      <xslo:if test="contains('g', @code)">
140
        <z:index name="Identifier-standard:w">
139
        <z:index name="Identifier-standard:w Any:w Any:p">
141
          <xslo:value-of select="."/>
140
          <xslo:value-of select="."/>
142
        </z:index>
141
        </z:index>
143
      </xslo:if>
142
      </xslo:if>
Lines 146-152 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
146
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='012']">
145
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='012']">
147
    <xslo:for-each select="marc:subfield">
146
    <xslo:for-each select="marc:subfield">
148
      <xslo:if test="contains('a', @code)">
147
      <xslo:if test="contains('a', @code)">
149
        <z:index name="Identifier-standard:w">
148
        <z:index name="Identifier-standard:w Any:w Any:p">
150
          <xslo:value-of select="."/>
149
          <xslo:value-of select="."/>
151
        </z:index>
150
        </z:index>
152
      </xslo:if>
151
      </xslo:if>
Lines 155-168 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
155
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='013']">
154
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='013']">
156
    <xslo:for-each select="marc:subfield">
155
    <xslo:for-each select="marc:subfield">
157
      <xslo:if test="contains('a', @code)">
156
      <xslo:if test="contains('a', @code)">
158
        <z:index name="Identifier-standard:w">
157
        <z:index name="Identifier-standard:w Any:w Any:p">
159
          <xslo:value-of select="."/>
158
          <xslo:value-of select="."/>
160
        </z:index>
159
        </z:index>
161
      </xslo:if>
160
      </xslo:if>
162
    </xslo:for-each>
161
    </xslo:for-each>
163
    <xslo:for-each select="marc:subfield">
162
    <xslo:for-each select="marc:subfield">
164
      <xslo:if test="contains('z', @code)">
163
      <xslo:if test="contains('z', @code)">
165
        <z:index name="Identifier-standard:w">
164
        <z:index name="Identifier-standard:w Any:w Any:p">
166
          <xslo:value-of select="."/>
165
          <xslo:value-of select="."/>
167
        </z:index>
166
        </z:index>
168
      </xslo:if>
167
      </xslo:if>
Lines 171-184 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
171
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='014']">
170
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='014']">
172
    <xslo:for-each select="marc:subfield">
171
    <xslo:for-each select="marc:subfield">
173
      <xslo:if test="contains('a', @code)">
172
      <xslo:if test="contains('a', @code)">
174
        <z:index name="Identifier-standard:w">
173
        <z:index name="Identifier-standard:w Any:w Any:p">
175
          <xslo:value-of select="."/>
174
          <xslo:value-of select="."/>
176
        </z:index>
175
        </z:index>
177
      </xslo:if>
176
      </xslo:if>
178
    </xslo:for-each>
177
    </xslo:for-each>
179
    <xslo:for-each select="marc:subfield">
178
    <xslo:for-each select="marc:subfield">
180
      <xslo:if test="contains('z', @code)">
179
      <xslo:if test="contains('z', @code)">
181
        <z:index name="Identifier-standard:w">
180
        <z:index name="Identifier-standard:w Any:w Any:p">
182
          <xslo:value-of select="."/>
181
          <xslo:value-of select="."/>
183
        </z:index>
182
        </z:index>
184
      </xslo:if>
183
      </xslo:if>
Lines 187-200 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
187
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='015']">
186
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='015']">
188
    <xslo:for-each select="marc:subfield">
187
    <xslo:for-each select="marc:subfield">
189
      <xslo:if test="contains('a', @code)">
188
      <xslo:if test="contains('a', @code)">
190
        <z:index name="Identifier-standard:w">
189
        <z:index name="Identifier-standard:w Any:w Any:p">
191
          <xslo:value-of select="."/>
190
          <xslo:value-of select="."/>
192
        </z:index>
191
        </z:index>
193
      </xslo:if>
192
      </xslo:if>
194
    </xslo:for-each>
193
    </xslo:for-each>
195
    <xslo:for-each select="marc:subfield">
194
    <xslo:for-each select="marc:subfield">
196
      <xslo:if test="contains('z', @code)">
195
      <xslo:if test="contains('z', @code)">
197
        <z:index name="Identifier-standard:w">
196
        <z:index name="Identifier-standard:w Any:w Any:p">
198
          <xslo:value-of select="."/>
197
          <xslo:value-of select="."/>
199
        </z:index>
198
        </z:index>
200
      </xslo:if>
199
      </xslo:if>
Lines 203-216 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
203
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='016']">
202
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='016']">
204
    <xslo:for-each select="marc:subfield">
203
    <xslo:for-each select="marc:subfield">
205
      <xslo:if test="contains('a', @code)">
204
      <xslo:if test="contains('a', @code)">
206
        <z:index name="Identifier-standard:w">
205
        <z:index name="Identifier-standard:w Any:w Any:p">
207
          <xslo:value-of select="."/>
206
          <xslo:value-of select="."/>
208
        </z:index>
207
        </z:index>
209
      </xslo:if>
208
      </xslo:if>
210
    </xslo:for-each>
209
    </xslo:for-each>
211
    <xslo:for-each select="marc:subfield">
210
    <xslo:for-each select="marc:subfield">
212
      <xslo:if test="contains('z', @code)">
211
      <xslo:if test="contains('z', @code)">
213
        <z:index name="Identifier-standard:w">
212
        <z:index name="Identifier-standard:w Any:w Any:p">
214
          <xslo:value-of select="."/>
213
          <xslo:value-of select="."/>
215
        </z:index>
214
        </z:index>
216
      </xslo:if>
215
      </xslo:if>
Lines 219-232 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
219
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='017']">
218
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='017']">
220
    <xslo:for-each select="marc:subfield">
219
    <xslo:for-each select="marc:subfield">
221
      <xslo:if test="contains('a', @code)">
220
      <xslo:if test="contains('a', @code)">
222
        <z:index name="Identifier-standard:w">
221
        <z:index name="Identifier-standard:w Any:w Any:p">
223
          <xslo:value-of select="."/>
222
          <xslo:value-of select="."/>
224
        </z:index>
223
        </z:index>
225
      </xslo:if>
224
      </xslo:if>
226
    </xslo:for-each>
225
    </xslo:for-each>
227
    <xslo:for-each select="marc:subfield">
226
    <xslo:for-each select="marc:subfield">
228
      <xslo:if test="contains('z', @code)">
227
      <xslo:if test="contains('z', @code)">
229
        <z:index name="Identifier-standard:w">
228
        <z:index name="Identifier-standard:w Any:w Any:p">
230
          <xslo:value-of select="."/>
229
          <xslo:value-of select="."/>
231
        </z:index>
230
        </z:index>
232
      </xslo:if>
231
      </xslo:if>
Lines 235-248 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
235
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
234
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
236
    <xslo:for-each select="marc:subfield">
235
    <xslo:for-each select="marc:subfield">
237
      <xslo:if test="contains('a', @code)">
236
      <xslo:if test="contains('a', @code)">
238
        <z:index name="Identifier-standard:w">
237
        <z:index name="Identifier-standard:w Any:w Any:p">
239
          <xslo:value-of select="."/>
238
          <xslo:value-of select="."/>
240
        </z:index>
239
        </z:index>
241
      </xslo:if>
240
      </xslo:if>
242
    </xslo:for-each>
241
    </xslo:for-each>
243
    <xslo:for-each select="marc:subfield">
242
    <xslo:for-each select="marc:subfield">
244
      <xslo:if test="contains('z', @code)">
243
      <xslo:if test="contains('z', @code)">
245
        <z:index name="Identifier-standard:w">
244
        <z:index name="Identifier-standard:w Any:w Any:p">
246
          <xslo:value-of select="."/>
245
          <xslo:value-of select="."/>
247
        </z:index>
246
        </z:index>
248
      </xslo:if>
247
      </xslo:if>
Lines 251-271 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
251
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='071']">
250
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='071']">
252
    <xslo:for-each select="marc:subfield">
251
    <xslo:for-each select="marc:subfield">
253
      <xslo:if test="contains('a', @code)">
252
      <xslo:if test="contains('a', @code)">
254
        <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
253
        <z:index name="Identifier-publisher-for-music:w Identifier-standard:w Any:w Any:p">
255
          <xslo:value-of select="."/>
254
          <xslo:value-of select="."/>
256
        </z:index>
255
        </z:index>
257
      </xslo:if>
256
      </xslo:if>
258
    </xslo:for-each>
257
    </xslo:for-each>
259
    <xslo:for-each select="marc:subfield">
258
    <xslo:for-each select="marc:subfield">
260
      <xslo:if test="contains('z', @code)">
259
      <xslo:if test="contains('z', @code)">
261
        <z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
260
        <z:index name="Identifier-publisher-for-music:w Identifier-standard:w Any:w Any:p">
262
          <xslo:value-of select="."/>
261
          <xslo:value-of select="."/>
263
        </z:index>
262
        </z:index>
264
      </xslo:if>
263
      </xslo:if>
265
    </xslo:for-each>
264
    </xslo:for-each>
266
    <xslo:for-each select="marc:subfield">
265
    <xslo:for-each select="marc:subfield">
267
      <xslo:if test="contains('b', @code)">
266
      <xslo:if test="contains('b', @code)">
268
        <z:index name="Publisher:w Publisher:p">
267
        <z:index name="Publisher:w Publisher:p Any:w Any:p">
269
          <xslo:value-of select="."/>
268
          <xslo:value-of select="."/>
270
        </z:index>
269
        </z:index>
271
      </xslo:if>
270
      </xslo:if>
Lines 274-287 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
274
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='072']">
273
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='072']">
275
    <xslo:for-each select="marc:subfield">
274
    <xslo:for-each select="marc:subfield">
276
      <xslo:if test="contains('a', @code)">
275
      <xslo:if test="contains('a', @code)">
277
        <z:index name="UPC:w Identifier-standard:w">
276
        <z:index name="UPC:w Identifier-standard:w Any:w Any:p">
278
          <xslo:value-of select="."/>
277
          <xslo:value-of select="."/>
279
        </z:index>
278
        </z:index>
280
      </xslo:if>
279
      </xslo:if>
281
    </xslo:for-each>
280
    </xslo:for-each>
282
    <xslo:for-each select="marc:subfield">
281
    <xslo:for-each select="marc:subfield">
283
      <xslo:if test="contains('z', @code)">
282
      <xslo:if test="contains('z', @code)">
284
        <z:index name="UPC:w Identifier-standard:w">
283
        <z:index name="UPC:w Identifier-standard:w Any:w Any:p">
285
          <xslo:value-of select="."/>
284
          <xslo:value-of select="."/>
286
        </z:index>
285
        </z:index>
287
      </xslo:if>
286
      </xslo:if>
Lines 290-303 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
290
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='073']">
289
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='073']">
291
    <xslo:for-each select="marc:subfield">
290
    <xslo:for-each select="marc:subfield">
292
      <xslo:if test="contains('a', @code)">
291
      <xslo:if test="contains('a', @code)">
293
        <z:index name="EAN:w Identifier-standard:w">
292
        <z:index name="EAN:w Identifier-standard:w Any:w Any:p">
294
          <xslo:value-of select="."/>
293
          <xslo:value-of select="."/>
295
        </z:index>
294
        </z:index>
296
      </xslo:if>
295
      </xslo:if>
297
    </xslo:for-each>
296
    </xslo:for-each>
298
    <xslo:for-each select="marc:subfield">
297
    <xslo:for-each select="marc:subfield">
299
      <xslo:if test="contains('z', @code)">
298
      <xslo:if test="contains('z', @code)">
300
        <z:index name="EAN:w Identifier-standard:w">
299
        <z:index name="EAN:w Identifier-standard:w Any:w Any:p">
301
          <xslo:value-of select="."/>
300
          <xslo:value-of select="."/>
302
        </z:index>
301
        </z:index>
303
      </xslo:if>
302
      </xslo:if>
Lines 306-361 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
306
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
305
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
307
    <xslo:for-each select="marc:subfield">
306
    <xslo:for-each select="marc:subfield">
308
      <xslo:if test="contains('b', @code)">
307
      <xslo:if test="contains('b', @code)">
309
        <z:index name="itemtype:w itemtype:p itype:w itype:p Material-type:w Material-type:p">
308
        <z:index name="itemtype:w itemtype:p itype:w itype:p Material-type:w Material-type:p Any:w Any:p">
310
          <xslo:value-of select="."/>
309
          <xslo:value-of select="."/>
311
        </z:index>
310
        </z:index>
312
      </xslo:if>
311
      </xslo:if>
313
    </xslo:for-each>
312
    </xslo:for-each>
314
    <xslo:for-each select="marc:subfield">
313
    <xslo:for-each select="marc:subfield">
315
      <xslo:if test="contains('f', @code)">
314
      <xslo:if test="contains('f', @code)">
316
        <z:index name="Author:w Author:p">
315
        <z:index name="Author:w Author:p Any:w Any:p">
317
          <xslo:value-of select="."/>
316
          <xslo:value-of select="."/>
318
        </z:index>
317
        </z:index>
319
      </xslo:if>
318
      </xslo:if>
320
    </xslo:for-each>
319
    </xslo:for-each>
321
    <xslo:for-each select="marc:subfield">
320
    <xslo:for-each select="marc:subfield">
322
      <xslo:if test="contains('g', @code)">
321
      <xslo:if test="contains('g', @code)">
323
        <z:index name="Author:w Author:p">
322
        <z:index name="Author:w Author:p Any:w Any:p">
324
          <xslo:value-of select="."/>
323
          <xslo:value-of select="."/>
325
        </z:index>
324
        </z:index>
326
      </xslo:if>
325
      </xslo:if>
327
    </xslo:for-each>
326
    </xslo:for-each>
328
    <xslo:for-each select="marc:subfield">
327
    <xslo:for-each select="marc:subfield">
329
      <xslo:if test="contains('a', @code)">
328
      <xslo:if test="contains('a', @code)">
330
        <z:index name="Title:w Title:p Title:s Title-cover:w Title-cover:p Title-cover:s">
329
        <z:index name="Title:w Title:p Title:s Title-cover:w Title-cover:p Title-cover:s Any:w Any:p">
331
          <xslo:value-of select="."/>
330
          <xslo:value-of select="."/>
332
        </z:index>
331
        </z:index>
333
      </xslo:if>
332
      </xslo:if>
334
    </xslo:for-each>
333
    </xslo:for-each>
335
    <xslo:for-each select="marc:subfield">
334
    <xslo:for-each select="marc:subfield">
336
      <xslo:if test="contains('c', @code)">
335
      <xslo:if test="contains('c', @code)">
337
        <z:index name="Title:w Title:p">
336
        <z:index name="Title:w Title:p Any:w Any:p">
338
          <xslo:value-of select="."/>
337
          <xslo:value-of select="."/>
339
        </z:index>
338
        </z:index>
340
      </xslo:if>
339
      </xslo:if>
341
    </xslo:for-each>
340
    </xslo:for-each>
342
    <xslo:for-each select="marc:subfield">
341
    <xslo:for-each select="marc:subfield">
343
      <xslo:if test="contains('d', @code)">
342
      <xslo:if test="contains('d', @code)">
344
        <z:index name="Title:w Title:p">
343
        <z:index name="Title:w Title:p Any:w Any:p">
345
          <xslo:value-of select="."/>
344
          <xslo:value-of select="."/>
346
        </z:index>
345
        </z:index>
347
      </xslo:if>
346
      </xslo:if>
348
    </xslo:for-each>
347
    </xslo:for-each>
349
    <xslo:for-each select="marc:subfield">
348
    <xslo:for-each select="marc:subfield">
350
      <xslo:if test="contains('e', @code)">
349
      <xslo:if test="contains('e', @code)">
351
        <z:index name="Title:w Title:p Title-cover:w Title-cover:p">
350
        <z:index name="Title:w Title:p Title-cover:w Title-cover:p Any:w Any:p">
352
          <xslo:value-of select="."/>
351
          <xslo:value-of select="."/>
353
        </z:index>
352
        </z:index>
354
      </xslo:if>
353
      </xslo:if>
355
    </xslo:for-each>
354
    </xslo:for-each>
356
    <xslo:for-each select="marc:subfield">
355
    <xslo:for-each select="marc:subfield">
357
      <xslo:if test="contains('i', @code)">
356
      <xslo:if test="contains('i', @code)">
358
        <z:index name="Title:w Title:p Title-cover:w Title-cover:p">
357
        <z:index name="Title:w Title:p Title-cover:w Title-cover:p Any:w Any:p">
359
          <xslo:value-of select="."/>
358
          <xslo:value-of select="."/>
360
        </z:index>
359
        </z:index>
361
      </xslo:if>
360
      </xslo:if>
Lines 364-468 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
364
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
363
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
365
    <xslo:for-each select="marc:subfield">
364
    <xslo:for-each select="marc:subfield">
366
      <xslo:if test="contains('r', @code)">
365
      <xslo:if test="contains('r', @code)">
367
        <z:index name="itemtype:w itemtype:p itype:w itype:p">
366
        <z:index name="itemtype:w itemtype:p itype:w itype:p Any:w Any:p">
368
          <xslo:value-of select="."/>
367
          <xslo:value-of select="."/>
369
        </z:index>
368
        </z:index>
370
      </xslo:if>
369
      </xslo:if>
371
    </xslo:for-each>
370
    </xslo:for-each>
372
    <xslo:for-each select="marc:subfield">
371
    <xslo:for-each select="marc:subfield">
373
      <xslo:if test="contains('1', @code)">
372
      <xslo:if test="contains('1', @code)">
374
        <z:index name="damaged:w damaged:n item:w">
373
        <z:index name="damaged:w damaged:n item:w Any:w Any:p">
375
          <xslo:value-of select="."/>
374
          <xslo:value-of select="."/>
376
        </z:index>
375
        </z:index>
377
      </xslo:if>
376
      </xslo:if>
378
    </xslo:for-each>
377
    </xslo:for-each>
379
    <xslo:for-each select="marc:subfield">
378
    <xslo:for-each select="marc:subfield">
380
      <xslo:if test="contains('2', @code)">
379
      <xslo:if test="contains('2', @code)">
381
        <z:index name="lost:w lost:n item:w">
380
        <z:index name="lost:w lost:n item:w Any:w Any:p">
382
          <xslo:value-of select="."/>
381
          <xslo:value-of select="."/>
383
        </z:index>
382
        </z:index>
384
      </xslo:if>
383
      </xslo:if>
385
    </xslo:for-each>
384
    </xslo:for-each>
386
    <xslo:for-each select="marc:subfield">
385
    <xslo:for-each select="marc:subfield">
387
      <xslo:if test="contains('3', @code)">
386
      <xslo:if test="contains('3', @code)">
388
        <z:index name="withdrawn:w withdrawn:n item:w">
387
        <z:index name="withdrawn:w withdrawn:n item:w Any:w Any:p">
389
          <xslo:value-of select="."/>
388
          <xslo:value-of select="."/>
390
        </z:index>
389
        </z:index>
391
      </xslo:if>
390
      </xslo:if>
392
    </xslo:for-each>
391
    </xslo:for-each>
393
    <xslo:for-each select="marc:subfield">
392
    <xslo:for-each select="marc:subfield">
394
      <xslo:if test="contains('a', @code)">
393
      <xslo:if test="contains('a', @code)">
395
        <z:index name="homebranch:w Host-item:w item:w">
394
        <z:index name="homebranch:w Host-item:w item:w Any:w Any:p">
396
          <xslo:value-of select="."/>
395
          <xslo:value-of select="."/>
397
        </z:index>
396
        </z:index>
398
      </xslo:if>
397
      </xslo:if>
399
    </xslo:for-each>
398
    </xslo:for-each>
400
    <xslo:for-each select="marc:subfield">
399
    <xslo:for-each select="marc:subfield">
401
      <xslo:if test="contains('b', @code)">
400
      <xslo:if test="contains('b', @code)">
402
        <z:index name="homebranch:w Host-item:w item:w">
401
        <z:index name="homebranch:w Host-item:w item:w Any:w Any:p">
403
          <xslo:value-of select="."/>
402
          <xslo:value-of select="."/>
404
        </z:index>
403
        </z:index>
405
      </xslo:if>
404
      </xslo:if>
406
    </xslo:for-each>
405
    </xslo:for-each>
407
    <xslo:for-each select="marc:subfield">
406
    <xslo:for-each select="marc:subfield">
408
      <xslo:if test="contains('c', @code)">
407
      <xslo:if test="contains('c', @code)">
409
        <z:index name="holdingbranch:w Record-Source:w item:w">
408
        <z:index name="holdingbranch:w Record-Source:w item:w Any:w Any:p">
410
          <xslo:value-of select="."/>
409
          <xslo:value-of select="."/>
411
        </z:index>
410
        </z:index>
412
      </xslo:if>
411
      </xslo:if>
413
    </xslo:for-each>
412
    </xslo:for-each>
414
    <xslo:for-each select="marc:subfield">
413
    <xslo:for-each select="marc:subfield">
415
      <xslo:if test="contains('d', @code)">
414
      <xslo:if test="contains('d', @code)">
416
        <z:index name="holdingbranch:w Record-Source:w item:w">
415
        <z:index name="holdingbranch:w Record-Source:w item:w Any:w Any:p">
417
          <xslo:value-of select="."/>
416
          <xslo:value-of select="."/>
418
        </z:index>
417
        </z:index>
419
      </xslo:if>
418
      </xslo:if>
420
    </xslo:for-each>
419
    </xslo:for-each>
421
    <xslo:for-each select="marc:subfield">
420
    <xslo:for-each select="marc:subfield">
422
      <xslo:if test="contains('e', @code)">
421
      <xslo:if test="contains('e', @code)">
423
        <z:index name="location:w location:p item:w">
422
        <z:index name="location:w location:p item:w Any:w Any:p">
424
          <xslo:value-of select="."/>
423
          <xslo:value-of select="."/>
425
        </z:index>
424
        </z:index>
426
      </xslo:if>
425
      </xslo:if>
427
    </xslo:for-each>
426
    </xslo:for-each>
428
    <xslo:for-each select="marc:subfield">
427
    <xslo:for-each select="marc:subfield">
429
      <xslo:if test="contains('f', @code)">
428
      <xslo:if test="contains('f', @code)">
430
        <z:index name="barcode:w barcode:p item:w">
429
        <z:index name="barcode:w barcode:p item:w Any:w Any:p">
431
          <xslo:value-of select="."/>
430
          <xslo:value-of select="."/>
432
        </z:index>
431
        </z:index>
433
      </xslo:if>
432
      </xslo:if>
434
    </xslo:for-each>
433
    </xslo:for-each>
435
    <xslo:for-each select="marc:subfield">
434
    <xslo:for-each select="marc:subfield">
436
      <xslo:if test="contains('h', @code)">
435
      <xslo:if test="contains('h', @code)">
437
        <z:index name="ccode:w ccode:p item:w">
436
        <z:index name="ccode:w ccode:p item:w Any:w Any:p">
438
          <xslo:value-of select="."/>
437
          <xslo:value-of select="."/>
439
        </z:index>
438
        </z:index>
440
      </xslo:if>
439
      </xslo:if>
441
    </xslo:for-each>
440
    </xslo:for-each>
442
    <xslo:for-each select="marc:subfield">
441
    <xslo:for-each select="marc:subfield">
443
      <xslo:if test="contains('j', @code)">
442
      <xslo:if test="contains('j', @code)">
444
        <z:index name="LC-card-number:s item:w">
443
        <z:index name="LC-card-number:s item:w Any:w Any:p">
445
          <xslo:value-of select="."/>
444
          <xslo:value-of select="."/>
446
        </z:index>
445
        </z:index>
447
      </xslo:if>
446
      </xslo:if>
448
    </xslo:for-each>
447
    </xslo:for-each>
449
    <xslo:for-each select="marc:subfield">
448
    <xslo:for-each select="marc:subfield">
450
      <xslo:if test="contains('k', @code)">
449
      <xslo:if test="contains('k', @code)">
451
        <z:index name="Call-Number:w Local-classification:w lcn:w Call-Number:p Local-classification:p lcn:p item:w Local-classification:s">
450
        <z:index name="Call-Number:w Local-classification:w lcn:w Call-Number:p Local-classification:p lcn:p item:w Local-classification:s Any:w Any:p">
452
          <xslo:value-of select="."/>
451
          <xslo:value-of select="."/>
453
        </z:index>
452
        </z:index>
454
      </xslo:if>
453
      </xslo:if>
455
    </xslo:for-each>
454
    </xslo:for-each>
456
    <xslo:for-each select="marc:subfield">
455
    <xslo:for-each select="marc:subfield">
457
      <xslo:if test="contains('n', @code)">
456
      <xslo:if test="contains('n', @code)">
458
        <z:index name="onloan:d onloan:n onloan:s onloan:w item:w">
457
        <z:index name="onloan:d onloan:n onloan:s onloan:w item:w Any:w Any:p">
459
          <xslo:value-of select="."/>
458
          <xslo:value-of select="."/>
460
        </z:index>
459
        </z:index>
461
      </xslo:if>
460
      </xslo:if>
462
    </xslo:for-each>
461
    </xslo:for-each>
463
    <xslo:for-each select="marc:subfield">
462
    <xslo:for-each select="marc:subfield">
464
      <xslo:if test="contains('u', @code)">
463
      <xslo:if test="contains('u', @code)">
465
        <z:index name="Note:w Note:p item:w">
464
        <z:index name="Note:w Note:p item:w Any:w Any:p">
466
          <xslo:value-of select="."/>
465
          <xslo:value-of select="."/>
467
        </z:index>
466
        </z:index>
468
      </xslo:if>
467
      </xslo:if>
Lines 471-533 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
471
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
470
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
472
    <xslo:for-each select="marc:subfield">
471
    <xslo:for-each select="marc:subfield">
473
      <xslo:if test="contains('a', @code)">
472
      <xslo:if test="contains('a', @code)">
474
        <z:index name="tpubdate:s">
473
        <z:index name="tpubdate:s Any:w Any:p">
475
          <xslo:value-of select="substring(., 9, 1)"/>
474
          <xslo:value-of select="substring(., 9, 1)"/>
476
        </z:index>
475
        </z:index>
477
      </xslo:if>
476
      </xslo:if>
478
    </xslo:for-each>
477
    </xslo:for-each>
479
    <xslo:for-each select="marc:subfield">
478
    <xslo:for-each select="marc:subfield">
480
      <xslo:if test="contains('a', @code)">
479
      <xslo:if test="contains('a', @code)">
481
        <z:index name="ta:w">
480
        <z:index name="ta:w Any:w Any:p">
482
          <xslo:value-of select="substring(., 18, 1)"/>
481
          <xslo:value-of select="substring(., 18, 1)"/>
483
        </z:index>
482
        </z:index>
484
      </xslo:if>
483
      </xslo:if>
485
    </xslo:for-each>
484
    </xslo:for-each>
486
    <xslo:for-each select="marc:subfield">
485
    <xslo:for-each select="marc:subfield">
487
      <xslo:if test="contains('a', @code)">
486
      <xslo:if test="contains('a', @code)">
488
        <z:index name="ta:w">
487
        <z:index name="ta:w Any:w Any:p">
489
          <xslo:value-of select="substring(., 19, 1)"/>
488
          <xslo:value-of select="substring(., 19, 1)"/>
490
        </z:index>
489
        </z:index>
491
      </xslo:if>
490
      </xslo:if>
492
    </xslo:for-each>
491
    </xslo:for-each>
493
    <xslo:for-each select="marc:subfield">
492
    <xslo:for-each select="marc:subfield">
494
      <xslo:if test="contains('a', @code)">
493
      <xslo:if test="contains('a', @code)">
495
        <z:index name="ta:w">
494
        <z:index name="ta:w Any:w Any:p">
496
          <xslo:value-of select="substring(., 20, 1)"/>
495
          <xslo:value-of select="substring(., 20, 1)"/>
497
        </z:index>
496
        </z:index>
498
      </xslo:if>
497
      </xslo:if>
499
    </xslo:for-each>
498
    </xslo:for-each>
500
    <xslo:for-each select="marc:subfield">
499
    <xslo:for-each select="marc:subfield">
501
      <xslo:if test="contains('a', @code)">
500
      <xslo:if test="contains('a', @code)">
502
        <z:index name="Modified-code:n">
501
        <z:index name="Modified-code:n Any:w Any:p">
503
          <xslo:value-of select="substring(., 22, 1)"/>
502
          <xslo:value-of select="substring(., 22, 1)"/>
504
        </z:index>
503
        </z:index>
505
      </xslo:if>
504
      </xslo:if>
506
    </xslo:for-each>
505
    </xslo:for-each>
507
    <xslo:for-each select="marc:subfield">
506
    <xslo:for-each select="marc:subfield">
508
      <xslo:if test="contains('a', @code)">
507
      <xslo:if test="contains('a', @code)">
509
        <z:index name="char-encoding:n">
508
        <z:index name="char-encoding:n Any:w Any:p">
510
          <xslo:value-of select="substring(., 27, 2)"/>
509
          <xslo:value-of select="substring(., 27, 2)"/>
511
        </z:index>
510
        </z:index>
512
      </xslo:if>
511
      </xslo:if>
513
    </xslo:for-each>
512
    </xslo:for-each>
514
    <xslo:for-each select="marc:subfield">
513
    <xslo:for-each select="marc:subfield">
515
      <xslo:if test="contains('a', @code)">
514
      <xslo:if test="contains('a', @code)">
516
        <z:index name="char-encoding:n">
515
        <z:index name="char-encoding:n Any:w Any:p">
517
          <xslo:value-of select="substring(., 29, 2)"/>
516
          <xslo:value-of select="substring(., 29, 2)"/>
518
        </z:index>
517
        </z:index>
519
      </xslo:if>
518
      </xslo:if>
520
    </xslo:for-each>
519
    </xslo:for-each>
521
    <xslo:for-each select="marc:subfield">
520
    <xslo:for-each select="marc:subfield">
522
      <xslo:if test="contains('a', @code)">
521
      <xslo:if test="contains('a', @code)">
523
        <z:index name="char-encoding:n">
522
        <z:index name="char-encoding:n Any:w Any:p">
524
          <xslo:value-of select="substring(., 31, 2)"/>
523
          <xslo:value-of select="substring(., 31, 2)"/>
525
        </z:index>
524
        </z:index>
526
      </xslo:if>
525
      </xslo:if>
527
    </xslo:for-each>
526
    </xslo:for-each>
528
    <xslo:for-each select="marc:subfield">
527
    <xslo:for-each select="marc:subfield">
529
      <xslo:if test="contains('a', @code)">
528
      <xslo:if test="contains('a', @code)">
530
        <z:index name="script-Title:n">
529
        <z:index name="script-Title:n Any:w Any:p">
531
          <xslo:value-of select="substring(., 35, 2)"/>
530
          <xslo:value-of select="substring(., 35, 2)"/>
532
        </z:index>
531
        </z:index>
533
      </xslo:if>
532
      </xslo:if>
Lines 536-542 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
536
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='101']">
535
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='101']">
537
    <xslo:for-each select="marc:subfield">
536
    <xslo:for-each select="marc:subfield">
538
      <xslo:if test="contains('a', @code)">
537
      <xslo:if test="contains('a', @code)">
539
        <z:index name="ln:w">
538
        <z:index name="ln:w Any:w Any:p">
540
          <xslo:value-of select="."/>
539
          <xslo:value-of select="."/>
541
        </z:index>
540
        </z:index>
542
      </xslo:if>
541
      </xslo:if>
Lines 545-551 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
545
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='102']">
544
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='102']">
546
    <xslo:for-each select="marc:subfield">
545
    <xslo:for-each select="marc:subfield">
547
      <xslo:if test="contains('a', @code)">
546
      <xslo:if test="contains('a', @code)">
548
        <z:index name="Country-publication:w">
547
        <z:index name="Country-publication:w Any:w Any:p">
549
          <xslo:value-of select="."/>
548
          <xslo:value-of select="."/>
550
        </z:index>
549
        </z:index>
551
      </xslo:if>
550
      </xslo:if>
Lines 554-644 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
554
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='105']">
553
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='105']">
555
    <xslo:for-each select="marc:subfield">
554
    <xslo:for-each select="marc:subfield">
556
      <xslo:if test="contains('a', @code)">
555
      <xslo:if test="contains('a', @code)">
557
        <z:index name="ff8-18-21:w">
556
        <z:index name="ff8-18-21:w Any:w Any:p">
558
          <xslo:value-of select="substring(., 1, 1)"/>
557
          <xslo:value-of select="substring(., 1, 1)"/>
559
        </z:index>
558
        </z:index>
560
      </xslo:if>
559
      </xslo:if>
561
    </xslo:for-each>
560
    </xslo:for-each>
562
    <xslo:for-each select="marc:subfield">
561
    <xslo:for-each select="marc:subfield">
563
      <xslo:if test="contains('a', @code)">
562
      <xslo:if test="contains('a', @code)">
564
        <z:index name="ff8-18-21:w">
563
        <z:index name="ff8-18-21:w Any:w Any:p">
565
          <xslo:value-of select="substring(., 2, 1)"/>
564
          <xslo:value-of select="substring(., 2, 1)"/>
566
        </z:index>
565
        </z:index>
567
      </xslo:if>
566
      </xslo:if>
568
    </xslo:for-each>
567
    </xslo:for-each>
569
    <xslo:for-each select="marc:subfield">
568
    <xslo:for-each select="marc:subfield">
570
      <xslo:if test="contains('a', @code)">
569
      <xslo:if test="contains('a', @code)">
571
        <z:index name="ff8-18-21:w">
570
        <z:index name="ff8-18-21:w Any:w Any:p">
572
          <xslo:value-of select="substring(., 3, 1)"/>
571
          <xslo:value-of select="substring(., 3, 1)"/>
573
        </z:index>
572
        </z:index>
574
      </xslo:if>
573
      </xslo:if>
575
    </xslo:for-each>
574
    </xslo:for-each>
576
    <xslo:for-each select="marc:subfield">
575
    <xslo:for-each select="marc:subfield">
577
      <xslo:if test="contains('a', @code)">
576
      <xslo:if test="contains('a', @code)">
578
        <z:index name="ff8-18-21:w">
577
        <z:index name="ff8-18-21:w Any:w Any:p">
579
          <xslo:value-of select="substring(., 4, 1)"/>
578
          <xslo:value-of select="substring(., 4, 1)"/>
580
        </z:index>
579
        </z:index>
581
      </xslo:if>
580
      </xslo:if>
582
    </xslo:for-each>
581
    </xslo:for-each>
583
    <xslo:for-each select="marc:subfield">
582
    <xslo:for-each select="marc:subfield">
584
      <xslo:if test="contains('a', @code)">
583
      <xslo:if test="contains('a', @code)">
585
        <z:index name="ctype:w">
584
        <z:index name="ctype:w Any:w Any:p">
586
          <xslo:value-of select="substring(., 5, 1)"/>
585
          <xslo:value-of select="substring(., 5, 1)"/>
587
        </z:index>
586
        </z:index>
588
      </xslo:if>
587
      </xslo:if>
589
    </xslo:for-each>
588
    </xslo:for-each>
590
    <xslo:for-each select="marc:subfield">
589
    <xslo:for-each select="marc:subfield">
591
      <xslo:if test="contains('a', @code)">
590
      <xslo:if test="contains('a', @code)">
592
        <z:index name="ctype:w">
591
        <z:index name="ctype:w Any:w Any:p">
593
          <xslo:value-of select="substring(., 6, 1)"/>
592
          <xslo:value-of select="substring(., 6, 1)"/>
594
        </z:index>
593
        </z:index>
595
      </xslo:if>
594
      </xslo:if>
596
    </xslo:for-each>
595
    </xslo:for-each>
597
    <xslo:for-each select="marc:subfield">
596
    <xslo:for-each select="marc:subfield">
598
      <xslo:if test="contains('a', @code)">
597
      <xslo:if test="contains('a', @code)">
599
        <z:index name="ctype:w">
598
        <z:index name="ctype:w Any:w Any:p">
600
          <xslo:value-of select="substring(., 7, 1)"/>
599
          <xslo:value-of select="substring(., 7, 1)"/>
601
        </z:index>
600
        </z:index>
602
      </xslo:if>
601
      </xslo:if>
603
    </xslo:for-each>
602
    </xslo:for-each>
604
    <xslo:for-each select="marc:subfield">
603
    <xslo:for-each select="marc:subfield">
605
      <xslo:if test="contains('a', @code)">
604
      <xslo:if test="contains('a', @code)">
606
        <z:index name="ctype:w">
605
        <z:index name="ctype:w Any:w Any:p">
607
          <xslo:value-of select="substring(., 8, 1)"/>
606
          <xslo:value-of select="substring(., 8, 1)"/>
608
        </z:index>
607
        </z:index>
609
      </xslo:if>
608
      </xslo:if>
610
    </xslo:for-each>
609
    </xslo:for-each>
611
    <xslo:for-each select="marc:subfield">
610
    <xslo:for-each select="marc:subfield">
612
      <xslo:if test="contains('a', @code)">
611
      <xslo:if test="contains('a', @code)">
613
        <z:index name="ff8-29:w">
612
        <z:index name="ff8-29:w Any:w Any:p">
614
          <xslo:value-of select="substring(., 9, 1)"/>
613
          <xslo:value-of select="substring(., 9, 1)"/>
615
        </z:index>
614
        </z:index>
616
      </xslo:if>
615
      </xslo:if>
617
    </xslo:for-each>
616
    </xslo:for-each>
618
    <xslo:for-each select="marc:subfield">
617
    <xslo:for-each select="marc:subfield">
619
      <xslo:if test="contains('a', @code)">
618
      <xslo:if test="contains('a', @code)">
620
        <z:index name="ff8-30:w">
619
        <z:index name="ff8-30:w Any:w Any:p">
621
          <xslo:value-of select="substring(., 10, 1)"/>
620
          <xslo:value-of select="substring(., 10, 1)"/>
622
        </z:index>
621
        </z:index>
623
      </xslo:if>
622
      </xslo:if>
624
    </xslo:for-each>
623
    </xslo:for-each>
625
    <xslo:for-each select="marc:subfield">
624
    <xslo:for-each select="marc:subfield">
626
      <xslo:if test="contains('a', @code)">
625
      <xslo:if test="contains('a', @code)">
627
        <z:index name="ff8-31:w">
626
        <z:index name="ff8-31:w Any:w Any:p">
628
          <xslo:value-of select="substring(., 11, 1)"/>
627
          <xslo:value-of select="substring(., 11, 1)"/>
629
        </z:index>
628
        </z:index>
630
      </xslo:if>
629
      </xslo:if>
631
    </xslo:for-each>
630
    </xslo:for-each>
632
    <xslo:for-each select="marc:subfield">
631
    <xslo:for-each select="marc:subfield">
633
      <xslo:if test="contains('a', @code)">
632
      <xslo:if test="contains('a', @code)">
634
        <z:index name="lf:w">
633
        <z:index name="lf:w Any:w Any:p">
635
          <xslo:value-of select="substring(., 12, 1)"/>
634
          <xslo:value-of select="substring(., 12, 1)"/>
636
        </z:index>
635
        </z:index>
637
      </xslo:if>
636
      </xslo:if>
638
    </xslo:for-each>
637
    </xslo:for-each>
639
    <xslo:for-each select="marc:subfield">
638
    <xslo:for-each select="marc:subfield">
640
      <xslo:if test="contains('a', @code)">
639
      <xslo:if test="contains('a', @code)">
641
        <z:index name="bio:w">
640
        <z:index name="bio:w Any:w Any:p">
642
          <xslo:value-of select="substring(., 13, 1)"/>
641
          <xslo:value-of select="substring(., 13, 1)"/>
643
        </z:index>
642
        </z:index>
644
      </xslo:if>
643
      </xslo:if>
Lines 647-653 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
647
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']">
646
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']">
648
    <xslo:for-each select="marc:subfield">
647
    <xslo:for-each select="marc:subfield">
649
      <xslo:if test="contains('a', @code)">
648
      <xslo:if test="contains('a', @code)">
650
        <z:index name="ff8-23:w ff8-23:p">
649
        <z:index name="ff8-23:w ff8-23:p Any:w Any:p">
651
          <xslo:value-of select="."/>
650
          <xslo:value-of select="."/>
652
        </z:index>
651
        </z:index>
653
      </xslo:if>
652
      </xslo:if>
Lines 656-718 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
656
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
655
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
657
    <xslo:for-each select="marc:subfield">
656
    <xslo:for-each select="marc:subfield">
658
      <xslo:if test="contains('a', @code)">
657
      <xslo:if test="contains('a', @code)">
659
        <z:index name="ff8-21:w">
658
        <z:index name="ff8-21:w Any:w Any:p">
660
          <xslo:value-of select="substring(., 1, 1)"/>
659
          <xslo:value-of select="substring(., 1, 1)"/>
661
        </z:index>
660
        </z:index>
662
      </xslo:if>
661
      </xslo:if>
663
    </xslo:for-each>
662
    </xslo:for-each>
664
    <xslo:for-each select="marc:subfield">
663
    <xslo:for-each select="marc:subfield">
665
      <xslo:if test="contains('a', @code)">
664
      <xslo:if test="contains('a', @code)">
666
        <z:index name="ff8-18:w">
665
        <z:index name="ff8-18:w Any:w Any:p">
667
          <xslo:value-of select="substring(., 2, 1)"/>
666
          <xslo:value-of select="substring(., 2, 1)"/>
668
        </z:index>
667
        </z:index>
669
      </xslo:if>
668
      </xslo:if>
670
    </xslo:for-each>
669
    </xslo:for-each>
671
    <xslo:for-each select="marc:subfield">
670
    <xslo:for-each select="marc:subfield">
672
      <xslo:if test="contains('a', @code)">
671
      <xslo:if test="contains('a', @code)">
673
        <z:index name="ff8-19:w">
672
        <z:index name="ff8-19:w Any:w Any:p">
674
          <xslo:value-of select="substring(., 3, 1)"/>
673
          <xslo:value-of select="substring(., 3, 1)"/>
675
        </z:index>
674
        </z:index>
676
      </xslo:if>
675
      </xslo:if>
677
    </xslo:for-each>
676
    </xslo:for-each>
678
    <xslo:for-each select="marc:subfield">
677
    <xslo:for-each select="marc:subfield">
679
      <xslo:if test="contains('a', @code)">
678
      <xslo:if test="contains('a', @code)">
680
        <z:index name="ctype:w">
679
        <z:index name="ctype:w Any:w Any:p">
681
          <xslo:value-of select="substring(., 4, 1)"/>
680
          <xslo:value-of select="substring(., 4, 1)"/>
682
        </z:index>
681
        </z:index>
683
      </xslo:if>
682
      </xslo:if>
684
    </xslo:for-each>
683
    </xslo:for-each>
685
    <xslo:for-each select="marc:subfield">
684
    <xslo:for-each select="marc:subfield">
686
      <xslo:if test="contains('a', @code)">
685
      <xslo:if test="contains('a', @code)">
687
        <z:index name="ctype:w">
686
        <z:index name="ctype:w Any:w Any:p">
688
          <xslo:value-of select="substring(., 5, 1)"/>
687
          <xslo:value-of select="substring(., 5, 1)"/>
689
        </z:index>
688
        </z:index>
690
      </xslo:if>
689
      </xslo:if>
691
    </xslo:for-each>
690
    </xslo:for-each>
692
    <xslo:for-each select="marc:subfield">
691
    <xslo:for-each select="marc:subfield">
693
      <xslo:if test="contains('a', @code)">
692
      <xslo:if test="contains('a', @code)">
694
        <z:index name="ff8-29:w">
693
        <z:index name="ff8-29:w Any:w Any:p">
695
          <xslo:value-of select="substring(., 8, 1)"/>
694
          <xslo:value-of select="substring(., 8, 1)"/>
696
        </z:index>
695
        </z:index>
697
      </xslo:if>
696
      </xslo:if>
698
    </xslo:for-each>
697
    </xslo:for-each>
699
    <xslo:for-each select="marc:subfield">
698
    <xslo:for-each select="marc:subfield">
700
      <xslo:if test="contains('a', @code)">
699
      <xslo:if test="contains('a', @code)">
701
        <z:index name="Title-page-availability:w">
700
        <z:index name="Title-page-availability:w Any:w Any:p">
702
          <xslo:value-of select="substring(., 9, 1)"/>
701
          <xslo:value-of select="substring(., 9, 1)"/>
703
        </z:index>
702
        </z:index>
704
      </xslo:if>
703
      </xslo:if>
705
    </xslo:for-each>
704
    </xslo:for-each>
706
    <xslo:for-each select="marc:subfield">
705
    <xslo:for-each select="marc:subfield">
707
      <xslo:if test="contains('a', @code)">
706
      <xslo:if test="contains('a', @code)">
708
        <z:index name="ff8-31:w">
707
        <z:index name="ff8-31:w Any:w Any:p">
709
          <xslo:value-of select="substring(., 10, 1)"/>
708
          <xslo:value-of select="substring(., 10, 1)"/>
710
        </z:index>
709
        </z:index>
711
      </xslo:if>
710
      </xslo:if>
712
    </xslo:for-each>
711
    </xslo:for-each>
713
    <xslo:for-each select="marc:subfield">
712
    <xslo:for-each select="marc:subfield">
714
      <xslo:if test="contains('a', @code)">
713
      <xslo:if test="contains('a', @code)">
715
        <z:index name="Cumulative-index-availability:w">
714
        <z:index name="Cumulative-index-availability:w Any:w Any:p">
716
          <xslo:value-of select="substring(., 11, 1)"/>
715
          <xslo:value-of select="substring(., 11, 1)"/>
717
        </z:index>
716
        </z:index>
718
      </xslo:if>
717
      </xslo:if>
Lines 721-727 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
721
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='115']">
720
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='115']">
722
    <xslo:for-each select="marc:subfield">
721
    <xslo:for-each select="marc:subfield">
723
      <xslo:if test="contains('a', @code)">
722
      <xslo:if test="contains('a', @code)">
724
        <z:index name="Video-mt:w">
723
        <z:index name="Video-mt:w Any:w Any:p">
725
          <xslo:value-of select="substring(., 1, 1)"/>
724
          <xslo:value-of select="substring(., 1, 1)"/>
726
        </z:index>
725
        </z:index>
727
      </xslo:if>
726
      </xslo:if>
Lines 730-750 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
730
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='116']">
729
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='116']">
731
    <xslo:for-each select="marc:subfield">
730
    <xslo:for-each select="marc:subfield">
732
      <xslo:if test="contains('a', @code)">
731
      <xslo:if test="contains('a', @code)">
733
        <z:index name="Graphics-type:w">
732
        <z:index name="Graphics-type:w Any:w Any:p">
734
          <xslo:value-of select="substring(., 1, 1)"/>
733
          <xslo:value-of select="substring(., 1, 1)"/>
735
        </z:index>
734
        </z:index>
736
      </xslo:if>
735
      </xslo:if>
737
    </xslo:for-each>
736
    </xslo:for-each>
738
    <xslo:for-each select="marc:subfield">
737
    <xslo:for-each select="marc:subfield">
739
      <xslo:if test="contains('a', @code)">
738
      <xslo:if test="contains('a', @code)">
740
        <z:index name="Graphics-support:w">
739
        <z:index name="Graphics-support:w Any:w Any:p">
741
          <xslo:value-of select="substring(., 2, 1)"/>
740
          <xslo:value-of select="substring(., 2, 1)"/>
742
        </z:index>
741
        </z:index>
743
      </xslo:if>
742
      </xslo:if>
744
    </xslo:for-each>
743
    </xslo:for-each>
745
    <xslo:for-each select="marc:subfield">
744
    <xslo:for-each select="marc:subfield">
746
      <xslo:if test="contains('a', @code)">
745
      <xslo:if test="contains('a', @code)">
747
        <z:index name="Graphics-support:w">
746
        <z:index name="Graphics-support:w Any:w Any:p">
748
          <xslo:value-of select="substring(., 3, 1)"/>
747
          <xslo:value-of select="substring(., 3, 1)"/>
749
        </z:index>
748
        </z:index>
750
      </xslo:if>
749
      </xslo:if>
Lines 753-766 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
753
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
752
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
754
    <xslo:for-each select="marc:subfield">
753
    <xslo:for-each select="marc:subfield">
755
      <xslo:if test="contains('9', @code)">
754
      <xslo:if test="contains('9', @code)">
756
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
755
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
757
          <xslo:value-of select="."/>
756
          <xslo:value-of select="."/>
758
        </z:index>
757
        </z:index>
759
      </xslo:if>
758
      </xslo:if>
760
    </xslo:for-each>
759
    </xslo:for-each>
761
    <xslo:for-each select="marc:subfield">
760
    <xslo:for-each select="marc:subfield">
762
      <xslo:if test="contains('a', @code)">
761
      <xslo:if test="contains('a', @code)">
763
        <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:w Author:s">
762
        <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:w Author:s Any:w Any:p">
764
          <xslo:value-of select="."/>
763
          <xslo:value-of select="."/>
765
        </z:index>
764
        </z:index>
766
      </xslo:if>
765
      </xslo:if>
Lines 769-775 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
769
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='701']">
768
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='701']">
770
    <xslo:for-each select="marc:subfield">
769
    <xslo:for-each select="marc:subfield">
771
      <xslo:if test="contains('9', @code)">
770
      <xslo:if test="contains('9', @code)">
772
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
771
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
773
          <xslo:value-of select="."/>
772
          <xslo:value-of select="."/>
774
        </z:index>
773
        </z:index>
775
      </xslo:if>
774
      </xslo:if>
Lines 778-784 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
778
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='702']">
777
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='702']">
779
    <xslo:for-each select="marc:subfield">
778
    <xslo:for-each select="marc:subfield">
780
      <xslo:if test="contains('9', @code)">
779
      <xslo:if test="contains('9', @code)">
781
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
780
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
782
          <xslo:value-of select="."/>
781
          <xslo:value-of select="."/>
783
        </z:index>
782
        </z:index>
784
      </xslo:if>
783
      </xslo:if>
Lines 787-793 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
787
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
786
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='710']">
788
    <xslo:for-each select="marc:subfield">
787
    <xslo:for-each select="marc:subfield">
789
      <xslo:if test="contains('9', @code)">
788
      <xslo:if test="contains('9', @code)">
790
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
789
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
791
          <xslo:value-of select="."/>
790
          <xslo:value-of select="."/>
792
        </z:index>
791
        </z:index>
793
      </xslo:if>
792
      </xslo:if>
Lines 796-802 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
796
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
795
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='711']">
797
    <xslo:for-each select="marc:subfield">
796
    <xslo:for-each select="marc:subfield">
798
      <xslo:if test="contains('9', @code)">
797
      <xslo:if test="contains('9', @code)">
799
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
798
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
800
          <xslo:value-of select="."/>
799
          <xslo:value-of select="."/>
801
        </z:index>
800
        </z:index>
802
      </xslo:if>
801
      </xslo:if>
Lines 805-811 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
805
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='712']">
804
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='712']">
806
    <xslo:for-each select="marc:subfield">
805
    <xslo:for-each select="marc:subfield">
807
      <xslo:if test="contains('9', @code)">
806
      <xslo:if test="contains('9', @code)">
808
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
807
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
809
          <xslo:value-of select="."/>
808
          <xslo:value-of select="."/>
810
        </z:index>
809
        </z:index>
811
      </xslo:if>
810
      </xslo:if>
Lines 814-820 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
814
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
813
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='716']">
815
    <xslo:for-each select="marc:subfield">
814
    <xslo:for-each select="marc:subfield">
816
      <xslo:if test="contains('9', @code)">
815
      <xslo:if test="contains('9', @code)">
817
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
816
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
818
          <xslo:value-of select="."/>
817
          <xslo:value-of select="."/>
819
        </z:index>
818
        </z:index>
820
      </xslo:if>
819
      </xslo:if>
Lines 823-829 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
823
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
822
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='720']">
824
    <xslo:for-each select="marc:subfield">
823
    <xslo:for-each select="marc:subfield">
825
      <xslo:if test="contains('9', @code)">
824
      <xslo:if test="contains('9', @code)">
826
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
825
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
827
          <xslo:value-of select="."/>
826
          <xslo:value-of select="."/>
828
        </z:index>
827
        </z:index>
829
      </xslo:if>
828
      </xslo:if>
Lines 832-838 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
832
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='721']">
831
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='721']">
833
    <xslo:for-each select="marc:subfield">
832
    <xslo:for-each select="marc:subfield">
834
      <xslo:if test="contains('9', @code)">
833
      <xslo:if test="contains('9', @code)">
835
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
834
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
836
          <xslo:value-of select="."/>
835
          <xslo:value-of select="."/>
837
        </z:index>
836
        </z:index>
838
      </xslo:if>
837
      </xslo:if>
Lines 841-847 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
841
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='722']">
840
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='722']">
842
    <xslo:for-each select="marc:subfield">
841
    <xslo:for-each select="marc:subfield">
843
      <xslo:if test="contains('9', @code)">
842
      <xslo:if test="contains('9', @code)">
844
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
843
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
845
          <xslo:value-of select="."/>
844
          <xslo:value-of select="."/>
846
        </z:index>
845
        </z:index>
847
      </xslo:if>
846
      </xslo:if>
Lines 850-856 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
850
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
849
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='730']">
851
    <xslo:for-each select="marc:subfield">
850
    <xslo:for-each select="marc:subfield">
852
      <xslo:if test="contains('9', @code)">
851
      <xslo:if test="contains('9', @code)">
853
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
852
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
854
          <xslo:value-of select="."/>
853
          <xslo:value-of select="."/>
855
        </z:index>
854
        </z:index>
856
      </xslo:if>
855
      </xslo:if>
Lines 859-865 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
859
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
858
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='230']">
860
    <xslo:for-each select="marc:subfield">
859
    <xslo:for-each select="marc:subfield">
861
      <xslo:if test="contains('a', @code)">
860
      <xslo:if test="contains('a', @code)">
862
        <z:index name="Electronic-ressource:w">
861
        <z:index name="Electronic-ressource:w Any:w Any:p">
863
          <xslo:value-of select="."/>
862
          <xslo:value-of select="."/>
864
        </z:index>
863
        </z:index>
865
      </xslo:if>
864
      </xslo:if>
Lines 868-888 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
868
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
867
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='210']">
869
    <xslo:for-each select="marc:subfield">
868
    <xslo:for-each select="marc:subfield">
870
      <xslo:if test="contains('a', @code)">
869
      <xslo:if test="contains('a', @code)">
871
        <z:index name="pl:w pl:p">
870
        <z:index name="pl:w pl:p Any:w Any:p">
872
          <xslo:value-of select="."/>
871
          <xslo:value-of select="."/>
873
        </z:index>
872
        </z:index>
874
      </xslo:if>
873
      </xslo:if>
875
    </xslo:for-each>
874
    </xslo:for-each>
876
    <xslo:for-each select="marc:subfield">
875
    <xslo:for-each select="marc:subfield">
877
      <xslo:if test="contains('c', @code)">
876
      <xslo:if test="contains('c', @code)">
878
        <z:index name="Publisher:w Publisher:p">
877
        <z:index name="Publisher:w Publisher:p Any:w Any:p">
879
          <xslo:value-of select="."/>
878
          <xslo:value-of select="."/>
880
        </z:index>
879
        </z:index>
881
      </xslo:if>
880
      </xslo:if>
882
    </xslo:for-each>
881
    </xslo:for-each>
883
    <xslo:for-each select="marc:subfield">
882
    <xslo:for-each select="marc:subfield">
884
      <xslo:if test="contains('d', @code)">
883
      <xslo:if test="contains('d', @code)">
885
        <z:index name="pubdate:n pubdate:y pubdate:s">
884
        <z:index name="pubdate:n pubdate:y pubdate:s Any:w Any:p">
886
          <xslo:value-of select="."/>
885
          <xslo:value-of select="."/>
887
        </z:index>
886
        </z:index>
888
      </xslo:if>
887
      </xslo:if>
Lines 891-946 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
891
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='225']">
890
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='225']">
892
    <xslo:for-each select="marc:subfield">
891
    <xslo:for-each select="marc:subfield">
893
      <xslo:if test="contains('a', @code)">
892
      <xslo:if test="contains('a', @code)">
894
        <z:index name="Title-series:w Title-series:p">
893
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
895
          <xslo:value-of select="."/>
894
          <xslo:value-of select="."/>
896
        </z:index>
895
        </z:index>
897
      </xslo:if>
896
      </xslo:if>
898
    </xslo:for-each>
897
    </xslo:for-each>
899
    <xslo:for-each select="marc:subfield">
898
    <xslo:for-each select="marc:subfield">
900
      <xslo:if test="contains('d', @code)">
899
      <xslo:if test="contains('d', @code)">
901
        <z:index name="Title-series:w Title-series:p">
900
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
902
          <xslo:value-of select="."/>
901
          <xslo:value-of select="."/>
903
        </z:index>
902
        </z:index>
904
      </xslo:if>
903
      </xslo:if>
905
    </xslo:for-each>
904
    </xslo:for-each>
906
    <xslo:for-each select="marc:subfield">
905
    <xslo:for-each select="marc:subfield">
907
      <xslo:if test="contains('e', @code)">
906
      <xslo:if test="contains('e', @code)">
908
        <z:index name="Title-series:w Title-series:p">
907
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
909
          <xslo:value-of select="."/>
908
          <xslo:value-of select="."/>
910
        </z:index>
909
        </z:index>
911
      </xslo:if>
910
      </xslo:if>
912
    </xslo:for-each>
911
    </xslo:for-each>
913
    <xslo:for-each select="marc:subfield">
912
    <xslo:for-each select="marc:subfield">
914
      <xslo:if test="contains('f', @code)">
913
      <xslo:if test="contains('f', @code)">
915
        <z:index name="Author:w Author:p Name-and-title:w Name-and-title:p">
914
        <z:index name="Author:w Author:p Name-and-title:w Name-and-title:p Any:w Any:p">
916
          <xslo:value-of select="."/>
915
          <xslo:value-of select="."/>
917
        </z:index>
916
        </z:index>
918
      </xslo:if>
917
      </xslo:if>
919
    </xslo:for-each>
918
    </xslo:for-each>
920
    <xslo:for-each select="marc:subfield">
919
    <xslo:for-each select="marc:subfield">
921
      <xslo:if test="contains('h', @code)">
920
      <xslo:if test="contains('h', @code)">
922
        <z:index name="Title-series:w Title-series:p">
921
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
923
          <xslo:value-of select="."/>
922
          <xslo:value-of select="."/>
924
        </z:index>
923
        </z:index>
925
      </xslo:if>
924
      </xslo:if>
926
    </xslo:for-each>
925
    </xslo:for-each>
927
    <xslo:for-each select="marc:subfield">
926
    <xslo:for-each select="marc:subfield">
928
      <xslo:if test="contains('i', @code)">
927
      <xslo:if test="contains('i', @code)">
929
        <z:index name="Title-series:w Title-series:p">
928
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
930
          <xslo:value-of select="."/>
929
          <xslo:value-of select="."/>
931
        </z:index>
930
        </z:index>
932
      </xslo:if>
931
      </xslo:if>
933
    </xslo:for-each>
932
    </xslo:for-each>
934
    <xslo:for-each select="marc:subfield">
933
    <xslo:for-each select="marc:subfield">
935
      <xslo:if test="contains('v', @code)">
934
      <xslo:if test="contains('v', @code)">
936
        <z:index name="Title-series:w Title-series:p">
935
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
937
          <xslo:value-of select="."/>
936
          <xslo:value-of select="."/>
938
        </z:index>
937
        </z:index>
939
      </xslo:if>
938
      </xslo:if>
940
    </xslo:for-each>
939
    </xslo:for-each>
941
    <xslo:for-each select="marc:subfield">
940
    <xslo:for-each select="marc:subfield">
942
      <xslo:if test="contains('x', @code)">
941
      <xslo:if test="contains('x', @code)">
943
        <z:index name="ISSN:w">
942
        <z:index name="ISSN:w Any:w Any:p">
944
          <xslo:value-of select="."/>
943
          <xslo:value-of select="."/>
945
        </z:index>
944
        </z:index>
946
      </xslo:if>
945
      </xslo:if>
Lines 949-955 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
949
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']">
948
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']">
950
    <xslo:for-each select="marc:subfield">
949
    <xslo:for-each select="marc:subfield">
951
      <xslo:if test="contains('a', @code)">
950
      <xslo:if test="contains('a', @code)">
952
        <z:index name="Note:w Note:p">
951
        <z:index name="Note:w Note:p Any:w Any:p">
953
          <xslo:value-of select="."/>
952
          <xslo:value-of select="."/>
954
        </z:index>
953
        </z:index>
955
      </xslo:if>
954
      </xslo:if>
Lines 958-964 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
958
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='301']">
957
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='301']">
959
    <xslo:for-each select="marc:subfield">
958
    <xslo:for-each select="marc:subfield">
960
      <xslo:if test="contains('a', @code)">
959
      <xslo:if test="contains('a', @code)">
961
        <z:index name="Note:w Note:p">
960
        <z:index name="Note:w Note:p Any:w Any:p">
962
          <xslo:value-of select="."/>
961
          <xslo:value-of select="."/>
963
        </z:index>
962
        </z:index>
964
      </xslo:if>
963
      </xslo:if>
Lines 967-973 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
967
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='302']">
966
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='302']">
968
    <xslo:for-each select="marc:subfield">
967
    <xslo:for-each select="marc:subfield">
969
      <xslo:if test="contains('a', @code)">
968
      <xslo:if test="contains('a', @code)">
970
        <z:index name="Note:w Note:p">
969
        <z:index name="Note:w Note:p Any:w Any:p">
971
          <xslo:value-of select="."/>
970
          <xslo:value-of select="."/>
972
        </z:index>
971
        </z:index>
973
      </xslo:if>
972
      </xslo:if>
Lines 976-982 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
976
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='303']">
975
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='303']">
977
    <xslo:for-each select="marc:subfield">
976
    <xslo:for-each select="marc:subfield">
978
      <xslo:if test="contains('a', @code)">
977
      <xslo:if test="contains('a', @code)">
979
        <z:index name="Note:w Note:p">
978
        <z:index name="Note:w Note:p Any:w Any:p">
980
          <xslo:value-of select="."/>
979
          <xslo:value-of select="."/>
981
        </z:index>
980
        </z:index>
982
      </xslo:if>
981
      </xslo:if>
Lines 985-991 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
985
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='304']">
984
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='304']">
986
    <xslo:for-each select="marc:subfield">
985
    <xslo:for-each select="marc:subfield">
987
      <xslo:if test="contains('a', @code)">
986
      <xslo:if test="contains('a', @code)">
988
        <z:index name="Note:w Note:p">
987
        <z:index name="Note:w Note:p Any:w Any:p">
989
          <xslo:value-of select="."/>
988
          <xslo:value-of select="."/>
990
        </z:index>
989
        </z:index>
991
      </xslo:if>
990
      </xslo:if>
Lines 994-1000 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
994
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='305']">
993
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='305']">
995
    <xslo:for-each select="marc:subfield">
994
    <xslo:for-each select="marc:subfield">
996
      <xslo:if test="contains('a', @code)">
995
      <xslo:if test="contains('a', @code)">
997
        <z:index name="Note:w Note:p">
996
        <z:index name="Note:w Note:p Any:w Any:p">
998
          <xslo:value-of select="."/>
997
          <xslo:value-of select="."/>
999
        </z:index>
998
        </z:index>
1000
      </xslo:if>
999
      </xslo:if>
Lines 1003-1009 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1003
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='306']">
1002
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='306']">
1004
    <xslo:for-each select="marc:subfield">
1003
    <xslo:for-each select="marc:subfield">
1005
      <xslo:if test="contains('a', @code)">
1004
      <xslo:if test="contains('a', @code)">
1006
        <z:index name="Note:w Note:p">
1005
        <z:index name="Note:w Note:p Any:w Any:p">
1007
          <xslo:value-of select="."/>
1006
          <xslo:value-of select="."/>
1008
        </z:index>
1007
        </z:index>
1009
      </xslo:if>
1008
      </xslo:if>
Lines 1012-1018 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1012
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='307']">
1011
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='307']">
1013
    <xslo:for-each select="marc:subfield">
1012
    <xslo:for-each select="marc:subfield">
1014
      <xslo:if test="contains('a', @code)">
1013
      <xslo:if test="contains('a', @code)">
1015
        <z:index name="Note:w Note:p">
1014
        <z:index name="Note:w Note:p Any:w Any:p">
1016
          <xslo:value-of select="."/>
1015
          <xslo:value-of select="."/>
1017
        </z:index>
1016
        </z:index>
1018
      </xslo:if>
1017
      </xslo:if>
Lines 1021-1027 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1021
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='310']">
1020
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='310']">
1022
    <xslo:for-each select="marc:subfield">
1021
    <xslo:for-each select="marc:subfield">
1023
      <xslo:if test="contains('a', @code)">
1022
      <xslo:if test="contains('a', @code)">
1024
        <z:index name="Note:w Note:p">
1023
        <z:index name="Note:w Note:p Any:w Any:p">
1025
          <xslo:value-of select="."/>
1024
          <xslo:value-of select="."/>
1026
        </z:index>
1025
        </z:index>
1027
      </xslo:if>
1026
      </xslo:if>
Lines 1030-1036 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1030
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='311']">
1029
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='311']">
1031
    <xslo:for-each select="marc:subfield">
1030
    <xslo:for-each select="marc:subfield">
1032
      <xslo:if test="contains('a', @code)">
1031
      <xslo:if test="contains('a', @code)">
1033
        <z:index name="Note:w Note:p">
1032
        <z:index name="Note:w Note:p Any:w Any:p">
1034
          <xslo:value-of select="."/>
1033
          <xslo:value-of select="."/>
1035
        </z:index>
1034
        </z:index>
1036
      </xslo:if>
1035
      </xslo:if>
Lines 1039-1045 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1039
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='312']">
1038
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='312']">
1040
    <xslo:for-each select="marc:subfield">
1039
    <xslo:for-each select="marc:subfield">
1041
      <xslo:if test="contains('a', @code)">
1040
      <xslo:if test="contains('a', @code)">
1042
        <z:index name="Note:w Note:p">
1041
        <z:index name="Note:w Note:p Any:w Any:p">
1043
          <xslo:value-of select="."/>
1042
          <xslo:value-of select="."/>
1044
        </z:index>
1043
        </z:index>
1045
      </xslo:if>
1044
      </xslo:if>
Lines 1048-1054 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1048
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='313']">
1047
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='313']">
1049
    <xslo:for-each select="marc:subfield">
1048
    <xslo:for-each select="marc:subfield">
1050
      <xslo:if test="contains('a', @code)">
1049
      <xslo:if test="contains('a', @code)">
1051
        <z:index name="Note:w Note:p">
1050
        <z:index name="Note:w Note:p Any:w Any:p">
1052
          <xslo:value-of select="."/>
1051
          <xslo:value-of select="."/>
1053
        </z:index>
1052
        </z:index>
1054
      </xslo:if>
1053
      </xslo:if>
Lines 1057-1063 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1057
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='314']">
1056
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='314']">
1058
    <xslo:for-each select="marc:subfield">
1057
    <xslo:for-each select="marc:subfield">
1059
      <xslo:if test="contains('a', @code)">
1058
      <xslo:if test="contains('a', @code)">
1060
        <z:index name="Note:w Note:p">
1059
        <z:index name="Note:w Note:p Any:w Any:p">
1061
          <xslo:value-of select="."/>
1060
          <xslo:value-of select="."/>
1062
        </z:index>
1061
        </z:index>
1063
      </xslo:if>
1062
      </xslo:if>
Lines 1066-1072 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1066
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='315']">
1065
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='315']">
1067
    <xslo:for-each select="marc:subfield">
1066
    <xslo:for-each select="marc:subfield">
1068
      <xslo:if test="contains('a', @code)">
1067
      <xslo:if test="contains('a', @code)">
1069
        <z:index name="Note:w Note:p">
1068
        <z:index name="Note:w Note:p Any:w Any:p">
1070
          <xslo:value-of select="."/>
1069
          <xslo:value-of select="."/>
1071
        </z:index>
1070
        </z:index>
1072
      </xslo:if>
1071
      </xslo:if>
Lines 1075-1081 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1075
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='316']">
1074
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='316']">
1076
    <xslo:for-each select="marc:subfield">
1075
    <xslo:for-each select="marc:subfield">
1077
      <xslo:if test="contains('a', @code)">
1076
      <xslo:if test="contains('a', @code)">
1078
        <z:index name="Note:w Note:p">
1077
        <z:index name="Note:w Note:p Any:w Any:p">
1079
          <xslo:value-of select="."/>
1078
          <xslo:value-of select="."/>
1080
        </z:index>
1079
        </z:index>
1081
      </xslo:if>
1080
      </xslo:if>
Lines 1084-1090 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1084
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='317']">
1083
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='317']">
1085
    <xslo:for-each select="marc:subfield">
1084
    <xslo:for-each select="marc:subfield">
1086
      <xslo:if test="contains('a', @code)">
1085
      <xslo:if test="contains('a', @code)">
1087
        <z:index name="Note:w Note:p">
1086
        <z:index name="Note:w Note:p Any:w Any:p">
1088
          <xslo:value-of select="."/>
1087
          <xslo:value-of select="."/>
1089
        </z:index>
1088
        </z:index>
1090
      </xslo:if>
1089
      </xslo:if>
Lines 1093-1099 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1093
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='318']">
1092
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='318']">
1094
    <xslo:for-each select="marc:subfield">
1093
    <xslo:for-each select="marc:subfield">
1095
      <xslo:if test="contains('a', @code)">
1094
      <xslo:if test="contains('a', @code)">
1096
        <z:index name="Note:w Note:p">
1095
        <z:index name="Note:w Note:p Any:w Any:p">
1097
          <xslo:value-of select="."/>
1096
          <xslo:value-of select="."/>
1098
        </z:index>
1097
        </z:index>
1099
      </xslo:if>
1098
      </xslo:if>
Lines 1102-1108 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1102
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='320']">
1101
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='320']">
1103
    <xslo:for-each select="marc:subfield">
1102
    <xslo:for-each select="marc:subfield">
1104
      <xslo:if test="contains('a', @code)">
1103
      <xslo:if test="contains('a', @code)">
1105
        <z:index name="Note:w Note:p">
1104
        <z:index name="Note:w Note:p Any:w Any:p">
1106
          <xslo:value-of select="."/>
1105
          <xslo:value-of select="."/>
1107
        </z:index>
1106
        </z:index>
1108
      </xslo:if>
1107
      </xslo:if>
Lines 1111-1117 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1111
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='321']">
1110
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='321']">
1112
    <xslo:for-each select="marc:subfield">
1111
    <xslo:for-each select="marc:subfield">
1113
      <xslo:if test="contains('a', @code)">
1112
      <xslo:if test="contains('a', @code)">
1114
        <z:index name="Note:w Note:p">
1113
        <z:index name="Note:w Note:p Any:w Any:p">
1115
          <xslo:value-of select="."/>
1114
          <xslo:value-of select="."/>
1116
        </z:index>
1115
        </z:index>
1117
      </xslo:if>
1116
      </xslo:if>
Lines 1120-1126 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1120
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='322']">
1119
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='322']">
1121
    <xslo:for-each select="marc:subfield">
1120
    <xslo:for-each select="marc:subfield">
1122
      <xslo:if test="contains('a', @code)">
1121
      <xslo:if test="contains('a', @code)">
1123
        <z:index name="Note:w Note:p">
1122
        <z:index name="Note:w Note:p Any:w Any:p">
1124
          <xslo:value-of select="."/>
1123
          <xslo:value-of select="."/>
1125
        </z:index>
1124
        </z:index>
1126
      </xslo:if>
1125
      </xslo:if>
Lines 1129-1135 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1129
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='323']">
1128
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='323']">
1130
    <xslo:for-each select="marc:subfield">
1129
    <xslo:for-each select="marc:subfield">
1131
      <xslo:if test="contains('a', @code)">
1130
      <xslo:if test="contains('a', @code)">
1132
        <z:index name="Note:w Note:p">
1131
        <z:index name="Note:w Note:p Any:w Any:p">
1133
          <xslo:value-of select="."/>
1132
          <xslo:value-of select="."/>
1134
        </z:index>
1133
        </z:index>
1135
      </xslo:if>
1134
      </xslo:if>
Lines 1138-1144 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1138
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='324']">
1137
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='324']">
1139
    <xslo:for-each select="marc:subfield">
1138
    <xslo:for-each select="marc:subfield">
1140
      <xslo:if test="contains('a', @code)">
1139
      <xslo:if test="contains('a', @code)">
1141
        <z:index name="Note:w Note:p">
1140
        <z:index name="Note:w Note:p Any:w Any:p">
1142
          <xslo:value-of select="."/>
1141
          <xslo:value-of select="."/>
1143
        </z:index>
1142
        </z:index>
1144
      </xslo:if>
1143
      </xslo:if>
Lines 1147-1153 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1147
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='325']">
1146
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='325']">
1148
    <xslo:for-each select="marc:subfield">
1147
    <xslo:for-each select="marc:subfield">
1149
      <xslo:if test="contains('a', @code)">
1148
      <xslo:if test="contains('a', @code)">
1150
        <z:index name="Note:w Note:p">
1149
        <z:index name="Note:w Note:p Any:w Any:p">
1151
          <xslo:value-of select="."/>
1150
          <xslo:value-of select="."/>
1152
        </z:index>
1151
        </z:index>
1153
      </xslo:if>
1152
      </xslo:if>
Lines 1156-1162 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1156
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='326']">
1155
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='326']">
1157
    <xslo:for-each select="marc:subfield">
1156
    <xslo:for-each select="marc:subfield">
1158
      <xslo:if test="contains('a', @code)">
1157
      <xslo:if test="contains('a', @code)">
1159
        <z:index name="Note:w Note:p">
1158
        <z:index name="Note:w Note:p Any:w Any:p">
1160
          <xslo:value-of select="."/>
1159
          <xslo:value-of select="."/>
1161
        </z:index>
1160
        </z:index>
1162
      </xslo:if>
1161
      </xslo:if>
Lines 1165-1171 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1165
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='327']">
1164
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='327']">
1166
    <xslo:for-each select="marc:subfield">
1165
    <xslo:for-each select="marc:subfield">
1167
      <xslo:if test="contains('a', @code)">
1166
      <xslo:if test="contains('a', @code)">
1168
        <z:index name="Note:w Note:p">
1167
        <z:index name="Note:w Note:p Any:w Any:p">
1169
          <xslo:value-of select="."/>
1168
          <xslo:value-of select="."/>
1170
        </z:index>
1169
        </z:index>
1171
      </xslo:if>
1170
      </xslo:if>
Lines 1174-1180 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1174
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='330']">
1173
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='330']">
1175
    <xslo:for-each select="marc:subfield">
1174
    <xslo:for-each select="marc:subfield">
1176
      <xslo:if test="contains('a', @code)">
1175
      <xslo:if test="contains('a', @code)">
1177
        <z:index name="Abstract:w Note:w Abstract:p Note:p">
1176
        <z:index name="Abstract:w Note:w Abstract:p Note:p Any:w Any:p">
1178
          <xslo:value-of select="."/>
1177
          <xslo:value-of select="."/>
1179
        </z:index>
1178
        </z:index>
1180
      </xslo:if>
1179
      </xslo:if>
Lines 1183-1189 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1183
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='332']">
1182
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='332']">
1184
    <xslo:for-each select="marc:subfield">
1183
    <xslo:for-each select="marc:subfield">
1185
      <xslo:if test="contains('a', @code)">
1184
      <xslo:if test="contains('a', @code)">
1186
        <z:index name="Note:w Note:p">
1185
        <z:index name="Note:w Note:p Any:w Any:p">
1187
          <xslo:value-of select="."/>
1186
          <xslo:value-of select="."/>
1188
        </z:index>
1187
        </z:index>
1189
      </xslo:if>
1188
      </xslo:if>
Lines 1192-1198 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1192
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='333']">
1191
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='333']">
1193
    <xslo:for-each select="marc:subfield">
1192
    <xslo:for-each select="marc:subfield">
1194
      <xslo:if test="contains('a', @code)">
1193
      <xslo:if test="contains('a', @code)">
1195
        <z:index name="Note:w Note:p">
1194
        <z:index name="Note:w Note:p Any:w Any:p">
1196
          <xslo:value-of select="."/>
1195
          <xslo:value-of select="."/>
1197
        </z:index>
1196
        </z:index>
1198
      </xslo:if>
1197
      </xslo:if>
Lines 1201-1207 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1201
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='334']">
1200
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='334']">
1202
    <xslo:for-each select="marc:subfield">
1201
    <xslo:for-each select="marc:subfield">
1203
      <xslo:if test="contains('a', @code)">
1202
      <xslo:if test="contains('a', @code)">
1204
        <z:index name="Note:w Note:p">
1203
        <z:index name="Note:w Note:p Any:w Any:p">
1205
          <xslo:value-of select="."/>
1204
          <xslo:value-of select="."/>
1206
        </z:index>
1205
        </z:index>
1207
      </xslo:if>
1206
      </xslo:if>
Lines 1210-1216 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1210
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='336']">
1209
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='336']">
1211
    <xslo:for-each select="marc:subfield">
1210
    <xslo:for-each select="marc:subfield">
1212
      <xslo:if test="contains('a', @code)">
1211
      <xslo:if test="contains('a', @code)">
1213
        <z:index name="Note:w Note:p">
1212
        <z:index name="Note:w Note:p Any:w Any:p">
1214
          <xslo:value-of select="."/>
1213
          <xslo:value-of select="."/>
1215
        </z:index>
1214
        </z:index>
1216
      </xslo:if>
1215
      </xslo:if>
Lines 1219-1225 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1219
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='337']">
1218
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='337']">
1220
    <xslo:for-each select="marc:subfield">
1219
    <xslo:for-each select="marc:subfield">
1221
      <xslo:if test="contains('a', @code)">
1220
      <xslo:if test="contains('a', @code)">
1222
        <z:index name="Note:w Note:p">
1221
        <z:index name="Note:w Note:p Any:w Any:p">
1223
          <xslo:value-of select="."/>
1222
          <xslo:value-of select="."/>
1224
        </z:index>
1223
        </z:index>
1225
      </xslo:if>
1224
      </xslo:if>
Lines 1228-1234 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1228
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='345']">
1227
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='345']">
1229
    <xslo:for-each select="marc:subfield">
1228
    <xslo:for-each select="marc:subfield">
1230
      <xslo:if test="contains('a', @code)">
1229
      <xslo:if test="contains('a', @code)">
1231
        <z:index name="Note:w Note:p">
1230
        <z:index name="Note:w Note:p Any:w Any:p">
1232
          <xslo:value-of select="."/>
1231
          <xslo:value-of select="."/>
1233
        </z:index>
1232
        </z:index>
1234
      </xslo:if>
1233
      </xslo:if>
Lines 1237-1250 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1237
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
1236
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='410']">
1238
    <xslo:for-each select="marc:subfield">
1237
    <xslo:for-each select="marc:subfield">
1239
      <xslo:if test="contains('t', @code)">
1238
      <xslo:if test="contains('t', @code)">
1240
        <z:index name="Title-series:w Title-series:p">
1239
        <z:index name="Title-series:w Title-series:p Any:w Any:p">
1241
          <xslo:value-of select="."/>
1240
          <xslo:value-of select="."/>
1242
        </z:index>
1241
        </z:index>
1243
      </xslo:if>
1242
      </xslo:if>
1244
    </xslo:for-each>
1243
    </xslo:for-each>
1245
    <xslo:for-each select="marc:subfield">
1244
    <xslo:for-each select="marc:subfield">
1246
      <xslo:if test="contains('d', @code)">
1245
      <xslo:if test="contains('d', @code)">
1247
        <z:index name="pubdate:n">
1246
        <z:index name="pubdate:n Any:w Any:p">
1248
          <xslo:value-of select="."/>
1247
          <xslo:value-of select="."/>
1249
        </z:index>
1248
        </z:index>
1250
      </xslo:if>
1249
      </xslo:if>
Lines 1253-1259 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1253
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
1252
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='411']">
1254
    <xslo:for-each select="marc:subfield">
1253
    <xslo:for-each select="marc:subfield">
1255
      <xslo:if test="contains('t', @code)">
1254
      <xslo:if test="contains('t', @code)">
1256
        <z:index name="Title:w Title:p">
1255
        <z:index name="Title:w Title:p Any:w Any:p">
1257
          <xslo:value-of select="."/>
1256
          <xslo:value-of select="."/>
1258
        </z:index>
1257
        </z:index>
1259
      </xslo:if>
1258
      </xslo:if>
Lines 1262-1275 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1262
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='412']">
1261
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='412']">
1263
    <xslo:for-each select="marc:subfield">
1262
    <xslo:for-each select="marc:subfield">
1264
      <xslo:if test="contains('t', @code)">
1263
      <xslo:if test="contains('t', @code)">
1265
        <z:index name="Title:w Title:p">
1264
        <z:index name="Title:w Title:p Any:w Any:p">
1266
          <xslo:value-of select="."/>
1265
          <xslo:value-of select="."/>
1267
        </z:index>
1266
        </z:index>
1268
      </xslo:if>
1267
      </xslo:if>
1269
    </xslo:for-each>
1268
    </xslo:for-each>
1270
    <xslo:for-each select="marc:subfield">
1269
    <xslo:for-each select="marc:subfield">
1271
      <xslo:if test="contains('d', @code)">
1270
      <xslo:if test="contains('d', @code)">
1272
        <z:index name="pubdate:n">
1271
        <z:index name="pubdate:n Any:w Any:p">
1273
          <xslo:value-of select="."/>
1272
          <xslo:value-of select="."/>
1274
        </z:index>
1273
        </z:index>
1275
      </xslo:if>
1274
      </xslo:if>
Lines 1278-1291 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1278
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='413']">
1277
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='413']">
1279
    <xslo:for-each select="marc:subfield">
1278
    <xslo:for-each select="marc:subfield">
1280
      <xslo:if test="contains('t', @code)">
1279
      <xslo:if test="contains('t', @code)">
1281
        <z:index name="Title:w Title:p">
1280
        <z:index name="Title:w Title:p Any:w Any:p">
1282
          <xslo:value-of select="."/>
1281
          <xslo:value-of select="."/>
1283
        </z:index>
1282
        </z:index>
1284
      </xslo:if>
1283
      </xslo:if>
1285
    </xslo:for-each>
1284
    </xslo:for-each>
1286
    <xslo:for-each select="marc:subfield">
1285
    <xslo:for-each select="marc:subfield">
1287
      <xslo:if test="contains('d', @code)">
1286
      <xslo:if test="contains('d', @code)">
1288
        <z:index name="pubdate:n">
1287
        <z:index name="pubdate:n Any:w Any:p">
1289
          <xslo:value-of select="."/>
1288
          <xslo:value-of select="."/>
1290
        </z:index>
1289
        </z:index>
1291
      </xslo:if>
1290
      </xslo:if>
Lines 1294-1300 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1294
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='421']">
1293
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='421']">
1295
    <xslo:for-each select="marc:subfield">
1294
    <xslo:for-each select="marc:subfield">
1296
      <xslo:if test="contains('t', @code)">
1295
      <xslo:if test="contains('t', @code)">
1297
        <z:index name="Title:w Title:p">
1296
        <z:index name="Title:w Title:p Any:w Any:p">
1298
          <xslo:value-of select="."/>
1297
          <xslo:value-of select="."/>
1299
        </z:index>
1298
        </z:index>
1300
      </xslo:if>
1299
      </xslo:if>
Lines 1303-1309 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1303
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='422']">
1302
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='422']">
1304
    <xslo:for-each select="marc:subfield">
1303
    <xslo:for-each select="marc:subfield">
1305
      <xslo:if test="contains('t', @code)">
1304
      <xslo:if test="contains('t', @code)">
1306
        <z:index name="Title:w Title:p">
1305
        <z:index name="Title:w Title:p Any:w Any:p">
1307
          <xslo:value-of select="."/>
1306
          <xslo:value-of select="."/>
1308
        </z:index>
1307
        </z:index>
1309
      </xslo:if>
1308
      </xslo:if>
Lines 1312-1318 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1312
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='423']">
1311
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='423']">
1313
    <xslo:for-each select="marc:subfield">
1312
    <xslo:for-each select="marc:subfield">
1314
      <xslo:if test="contains('t', @code)">
1313
      <xslo:if test="contains('t', @code)">
1315
        <z:index name="Title:w Title:p">
1314
        <z:index name="Title:w Title:p Any:w Any:p">
1316
          <xslo:value-of select="."/>
1315
          <xslo:value-of select="."/>
1317
        </z:index>
1316
        </z:index>
1318
      </xslo:if>
1317
      </xslo:if>
Lines 1321-1327 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1321
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='424']">
1320
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='424']">
1322
    <xslo:for-each select="marc:subfield">
1321
    <xslo:for-each select="marc:subfield">
1323
      <xslo:if test="contains('t', @code)">
1322
      <xslo:if test="contains('t', @code)">
1324
        <z:index name="Title:w Title:p">
1323
        <z:index name="Title:w Title:p Any:w Any:p">
1325
          <xslo:value-of select="."/>
1324
          <xslo:value-of select="."/>
1326
        </z:index>
1325
        </z:index>
1327
      </xslo:if>
1326
      </xslo:if>
Lines 1330-1336 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1330
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='425']">
1329
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='425']">
1331
    <xslo:for-each select="marc:subfield">
1330
    <xslo:for-each select="marc:subfield">
1332
      <xslo:if test="contains('t', @code)">
1331
      <xslo:if test="contains('t', @code)">
1333
        <z:index name="Title:w Title:p">
1332
        <z:index name="Title:w Title:p Any:w Any:p">
1334
          <xslo:value-of select="."/>
1333
          <xslo:value-of select="."/>
1335
        </z:index>
1334
        </z:index>
1336
      </xslo:if>
1335
      </xslo:if>
Lines 1339-1352 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1339
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
1338
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='430']">
1340
    <xslo:for-each select="marc:subfield">
1339
    <xslo:for-each select="marc:subfield">
1341
      <xslo:if test="contains('t', @code)">
1340
      <xslo:if test="contains('t', @code)">
1342
        <z:index name="Title:w Title:p">
1341
        <z:index name="Title:w Title:p Any:w Any:p">
1343
          <xslo:value-of select="."/>
1342
          <xslo:value-of select="."/>
1344
        </z:index>
1343
        </z:index>
1345
      </xslo:if>
1344
      </xslo:if>
1346
    </xslo:for-each>
1345
    </xslo:for-each>
1347
    <xslo:for-each select="marc:subfield">
1346
    <xslo:for-each select="marc:subfield">
1348
      <xslo:if test="contains('d', @code)">
1347
      <xslo:if test="contains('d', @code)">
1349
        <z:index name="pubdate:n">
1348
        <z:index name="pubdate:n Any:w Any:p">
1350
          <xslo:value-of select="."/>
1349
          <xslo:value-of select="."/>
1351
        </z:index>
1350
        </z:index>
1352
      </xslo:if>
1351
      </xslo:if>
Lines 1355-1368 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1355
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='431']">
1354
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='431']">
1356
    <xslo:for-each select="marc:subfield">
1355
    <xslo:for-each select="marc:subfield">
1357
      <xslo:if test="contains('t', @code)">
1356
      <xslo:if test="contains('t', @code)">
1358
        <z:index name="Title:w Title:p">
1357
        <z:index name="Title:w Title:p Any:w Any:p">
1359
          <xslo:value-of select="."/>
1358
          <xslo:value-of select="."/>
1360
        </z:index>
1359
        </z:index>
1361
      </xslo:if>
1360
      </xslo:if>
1362
    </xslo:for-each>
1361
    </xslo:for-each>
1363
    <xslo:for-each select="marc:subfield">
1362
    <xslo:for-each select="marc:subfield">
1364
      <xslo:if test="contains('d', @code)">
1363
      <xslo:if test="contains('d', @code)">
1365
        <z:index name="pubdate:n">
1364
        <z:index name="pubdate:n Any:w Any:p">
1366
          <xslo:value-of select="."/>
1365
          <xslo:value-of select="."/>
1367
        </z:index>
1366
        </z:index>
1368
      </xslo:if>
1367
      </xslo:if>
Lines 1371-1384 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1371
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='432']">
1370
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='432']">
1372
    <xslo:for-each select="marc:subfield">
1371
    <xslo:for-each select="marc:subfield">
1373
      <xslo:if test="contains('t', @code)">
1372
      <xslo:if test="contains('t', @code)">
1374
        <z:index name="Title:w Title:p">
1373
        <z:index name="Title:w Title:p Any:w Any:p">
1375
          <xslo:value-of select="."/>
1374
          <xslo:value-of select="."/>
1376
        </z:index>
1375
        </z:index>
1377
      </xslo:if>
1376
      </xslo:if>
1378
    </xslo:for-each>
1377
    </xslo:for-each>
1379
    <xslo:for-each select="marc:subfield">
1378
    <xslo:for-each select="marc:subfield">
1380
      <xslo:if test="contains('d', @code)">
1379
      <xslo:if test="contains('d', @code)">
1381
        <z:index name="pubdate:n">
1380
        <z:index name="pubdate:n Any:w Any:p">
1382
          <xslo:value-of select="."/>
1381
          <xslo:value-of select="."/>
1383
        </z:index>
1382
        </z:index>
1384
      </xslo:if>
1383
      </xslo:if>
Lines 1387-1393 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1387
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='433']">
1386
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='433']">
1388
    <xslo:for-each select="marc:subfield">
1387
    <xslo:for-each select="marc:subfield">
1389
      <xslo:if test="contains('t', @code)">
1388
      <xslo:if test="contains('t', @code)">
1390
        <z:index name="Title:w Title:p">
1389
        <z:index name="Title:w Title:p Any:w Any:p">
1391
          <xslo:value-of select="."/>
1390
          <xslo:value-of select="."/>
1392
        </z:index>
1391
        </z:index>
1393
      </xslo:if>
1392
      </xslo:if>
Lines 1396-1402 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1396
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='434']">
1395
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='434']">
1397
    <xslo:for-each select="marc:subfield">
1396
    <xslo:for-each select="marc:subfield">
1398
      <xslo:if test="contains('t', @code)">
1397
      <xslo:if test="contains('t', @code)">
1399
        <z:index name="Title:w Title:p">
1398
        <z:index name="Title:w Title:p Any:w Any:p">
1400
          <xslo:value-of select="."/>
1399
          <xslo:value-of select="."/>
1401
        </z:index>
1400
        </z:index>
1402
      </xslo:if>
1401
      </xslo:if>
Lines 1405-1411 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1405
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
1404
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='435']">
1406
    <xslo:for-each select="marc:subfield">
1405
    <xslo:for-each select="marc:subfield">
1407
      <xslo:if test="contains('t', @code)">
1406
      <xslo:if test="contains('t', @code)">
1408
        <z:index name="Title:w Title:p">
1407
        <z:index name="Title:w Title:p Any:w Any:p">
1409
          <xslo:value-of select="."/>
1408
          <xslo:value-of select="."/>
1410
        </z:index>
1409
        </z:index>
1411
      </xslo:if>
1410
      </xslo:if>
Lines 1414-1420 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1414
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='436']">
1413
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='436']">
1415
    <xslo:for-each select="marc:subfield">
1414
    <xslo:for-each select="marc:subfield">
1416
      <xslo:if test="contains('t', @code)">
1415
      <xslo:if test="contains('t', @code)">
1417
        <z:index name="Title:w Title:p">
1416
        <z:index name="Title:w Title:p Any:w Any:p">
1418
          <xslo:value-of select="."/>
1417
          <xslo:value-of select="."/>
1419
        </z:index>
1418
        </z:index>
1420
      </xslo:if>
1419
      </xslo:if>
Lines 1423-1429 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1423
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='437']">
1422
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='437']">
1424
    <xslo:for-each select="marc:subfield">
1423
    <xslo:for-each select="marc:subfield">
1425
      <xslo:if test="contains('t', @code)">
1424
      <xslo:if test="contains('t', @code)">
1426
        <z:index name="Title:w Title:p">
1425
        <z:index name="Title:w Title:p Any:w Any:p">
1427
          <xslo:value-of select="."/>
1426
          <xslo:value-of select="."/>
1428
        </z:index>
1427
        </z:index>
1429
      </xslo:if>
1428
      </xslo:if>
Lines 1432-1445 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1432
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
1431
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='440']">
1433
    <xslo:for-each select="marc:subfield">
1432
    <xslo:for-each select="marc:subfield">
1434
      <xslo:if test="contains('t', @code)">
1433
      <xslo:if test="contains('t', @code)">
1435
        <z:index name="Title:w Title:p">
1434
        <z:index name="Title:w Title:p Any:w Any:p">
1436
          <xslo:value-of select="."/>
1435
          <xslo:value-of select="."/>
1437
        </z:index>
1436
        </z:index>
1438
      </xslo:if>
1437
      </xslo:if>
1439
    </xslo:for-each>
1438
    </xslo:for-each>
1440
    <xslo:for-each select="marc:subfield">
1439
    <xslo:for-each select="marc:subfield">
1441
      <xslo:if test="contains('d', @code)">
1440
      <xslo:if test="contains('d', @code)">
1442
        <z:index name="pubdate:n">
1441
        <z:index name="pubdate:n Any:w Any:p">
1443
          <xslo:value-of select="."/>
1442
          <xslo:value-of select="."/>
1444
        </z:index>
1443
        </z:index>
1445
      </xslo:if>
1444
      </xslo:if>
Lines 1448-1461 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1448
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='441']">
1447
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='441']">
1449
    <xslo:for-each select="marc:subfield">
1448
    <xslo:for-each select="marc:subfield">
1450
      <xslo:if test="contains('t', @code)">
1449
      <xslo:if test="contains('t', @code)">
1451
        <z:index name="Title:w Title:p">
1450
        <z:index name="Title:w Title:p Any:w Any:p">
1452
          <xslo:value-of select="."/>
1451
          <xslo:value-of select="."/>
1453
        </z:index>
1452
        </z:index>
1454
      </xslo:if>
1453
      </xslo:if>
1455
    </xslo:for-each>
1454
    </xslo:for-each>
1456
    <xslo:for-each select="marc:subfield">
1455
    <xslo:for-each select="marc:subfield">
1457
      <xslo:if test="contains('d', @code)">
1456
      <xslo:if test="contains('d', @code)">
1458
        <z:index name="pubdate:n">
1457
        <z:index name="pubdate:n Any:w Any:p">
1459
          <xslo:value-of select="."/>
1458
          <xslo:value-of select="."/>
1460
        </z:index>
1459
        </z:index>
1461
      </xslo:if>
1460
      </xslo:if>
Lines 1464-1470 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1464
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='442']">
1463
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='442']">
1465
    <xslo:for-each select="marc:subfield">
1464
    <xslo:for-each select="marc:subfield">
1466
      <xslo:if test="contains('t', @code)">
1465
      <xslo:if test="contains('t', @code)">
1467
        <z:index name="Title:w Title:p">
1466
        <z:index name="Title:w Title:p Any:w Any:p">
1468
          <xslo:value-of select="."/>
1467
          <xslo:value-of select="."/>
1469
        </z:index>
1468
        </z:index>
1470
      </xslo:if>
1469
      </xslo:if>
Lines 1473-1479 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1473
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='443']">
1472
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='443']">
1474
    <xslo:for-each select="marc:subfield">
1473
    <xslo:for-each select="marc:subfield">
1475
      <xslo:if test="contains('t', @code)">
1474
      <xslo:if test="contains('t', @code)">
1476
        <z:index name="Title:w Title:p">
1475
        <z:index name="Title:w Title:p Any:w Any:p">
1477
          <xslo:value-of select="."/>
1476
          <xslo:value-of select="."/>
1478
        </z:index>
1477
        </z:index>
1479
      </xslo:if>
1478
      </xslo:if>
Lines 1482-1488 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1482
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='444']">
1481
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='444']">
1483
    <xslo:for-each select="marc:subfield">
1482
    <xslo:for-each select="marc:subfield">
1484
      <xslo:if test="contains('t', @code)">
1483
      <xslo:if test="contains('t', @code)">
1485
        <z:index name="Title:w Title:p">
1484
        <z:index name="Title:w Title:p Any:w Any:p">
1486
          <xslo:value-of select="."/>
1485
          <xslo:value-of select="."/>
1487
        </z:index>
1486
        </z:index>
1488
      </xslo:if>
1487
      </xslo:if>
Lines 1491-1504 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1491
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
1490
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='445']">
1492
    <xslo:for-each select="marc:subfield">
1491
    <xslo:for-each select="marc:subfield">
1493
      <xslo:if test="contains('t', @code)">
1492
      <xslo:if test="contains('t', @code)">
1494
        <z:index name="Title:w Title:p">
1493
        <z:index name="Title:w Title:p Any:w Any:p">
1495
          <xslo:value-of select="."/>
1494
          <xslo:value-of select="."/>
1496
        </z:index>
1495
        </z:index>
1497
      </xslo:if>
1496
      </xslo:if>
1498
    </xslo:for-each>
1497
    </xslo:for-each>
1499
    <xslo:for-each select="marc:subfield">
1498
    <xslo:for-each select="marc:subfield">
1500
      <xslo:if test="contains('d', @code)">
1499
      <xslo:if test="contains('d', @code)">
1501
        <z:index name="pubdate:n">
1500
        <z:index name="pubdate:n Any:w Any:p">
1502
          <xslo:value-of select="."/>
1501
          <xslo:value-of select="."/>
1503
        </z:index>
1502
        </z:index>
1504
      </xslo:if>
1503
      </xslo:if>
Lines 1507-1513 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1507
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='446']">
1506
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='446']">
1508
    <xslo:for-each select="marc:subfield">
1507
    <xslo:for-each select="marc:subfield">
1509
      <xslo:if test="contains('t', @code)">
1508
      <xslo:if test="contains('t', @code)">
1510
        <z:index name="Title:w Title:p">
1509
        <z:index name="Title:w Title:p Any:w Any:p">
1511
          <xslo:value-of select="."/>
1510
          <xslo:value-of select="."/>
1512
        </z:index>
1511
        </z:index>
1513
      </xslo:if>
1512
      </xslo:if>
Lines 1516-1522 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1516
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='447']">
1515
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='447']">
1517
    <xslo:for-each select="marc:subfield">
1516
    <xslo:for-each select="marc:subfield">
1518
      <xslo:if test="contains('t', @code)">
1517
      <xslo:if test="contains('t', @code)">
1519
        <z:index name="Title:w Title:p">
1518
        <z:index name="Title:w Title:p Any:w Any:p">
1520
          <xslo:value-of select="."/>
1519
          <xslo:value-of select="."/>
1521
        </z:index>
1520
        </z:index>
1522
      </xslo:if>
1521
      </xslo:if>
Lines 1525-1531 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1525
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='448']">
1524
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='448']">
1526
    <xslo:for-each select="marc:subfield">
1525
    <xslo:for-each select="marc:subfield">
1527
      <xslo:if test="contains('t', @code)">
1526
      <xslo:if test="contains('t', @code)">
1528
        <z:index name="Title:w Title:p">
1527
        <z:index name="Title:w Title:p Any:w Any:p">
1529
          <xslo:value-of select="."/>
1528
          <xslo:value-of select="."/>
1530
        </z:index>
1529
        </z:index>
1531
      </xslo:if>
1530
      </xslo:if>
Lines 1534-1540 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1534
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='451']">
1533
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='451']">
1535
    <xslo:for-each select="marc:subfield">
1534
    <xslo:for-each select="marc:subfield">
1536
      <xslo:if test="contains('t', @code)">
1535
      <xslo:if test="contains('t', @code)">
1537
        <z:index name="Title:w Title:p">
1536
        <z:index name="Title:w Title:p Any:w Any:p">
1538
          <xslo:value-of select="."/>
1537
          <xslo:value-of select="."/>
1539
        </z:index>
1538
        </z:index>
1540
      </xslo:if>
1539
      </xslo:if>
Lines 1543-1549 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1543
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='452']">
1542
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='452']">
1544
    <xslo:for-each select="marc:subfield">
1543
    <xslo:for-each select="marc:subfield">
1545
      <xslo:if test="contains('t', @code)">
1544
      <xslo:if test="contains('t', @code)">
1546
        <z:index name="Title:w Title:p">
1545
        <z:index name="Title:w Title:p Any:w Any:p">
1547
          <xslo:value-of select="."/>
1546
          <xslo:value-of select="."/>
1548
        </z:index>
1547
        </z:index>
1549
      </xslo:if>
1548
      </xslo:if>
Lines 1552-1558 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1552
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='453']">
1551
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='453']">
1553
    <xslo:for-each select="marc:subfield">
1552
    <xslo:for-each select="marc:subfield">
1554
      <xslo:if test="contains('t', @code)">
1553
      <xslo:if test="contains('t', @code)">
1555
        <z:index name="Title:w Title:p">
1554
        <z:index name="Title:w Title:p Any:w Any:p">
1556
          <xslo:value-of select="."/>
1555
          <xslo:value-of select="."/>
1557
        </z:index>
1556
        </z:index>
1558
      </xslo:if>
1557
      </xslo:if>
Lines 1561-1567 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1561
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='454']">
1560
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='454']">
1562
    <xslo:for-each select="marc:subfield">
1561
    <xslo:for-each select="marc:subfield">
1563
      <xslo:if test="contains('t', @code)">
1562
      <xslo:if test="contains('t', @code)">
1564
        <z:index name="Title:w Title:p">
1563
        <z:index name="Title:w Title:p Any:w Any:p">
1565
          <xslo:value-of select="."/>
1564
          <xslo:value-of select="."/>
1566
        </z:index>
1565
        </z:index>
1567
      </xslo:if>
1566
      </xslo:if>
Lines 1570-1576 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1570
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='455']">
1569
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='455']">
1571
    <xslo:for-each select="marc:subfield">
1570
    <xslo:for-each select="marc:subfield">
1572
      <xslo:if test="contains('t', @code)">
1571
      <xslo:if test="contains('t', @code)">
1573
        <z:index name="Title:w Title:p">
1572
        <z:index name="Title:w Title:p Any:w Any:p">
1574
          <xslo:value-of select="."/>
1573
          <xslo:value-of select="."/>
1575
        </z:index>
1574
        </z:index>
1576
      </xslo:if>
1575
      </xslo:if>
Lines 1579-1585 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1579
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='456']">
1578
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='456']">
1580
    <xslo:for-each select="marc:subfield">
1579
    <xslo:for-each select="marc:subfield">
1581
      <xslo:if test="contains('t', @code)">
1580
      <xslo:if test="contains('t', @code)">
1582
        <z:index name="Title:w Title:p">
1581
        <z:index name="Title:w Title:p Any:w Any:p">
1583
          <xslo:value-of select="."/>
1582
          <xslo:value-of select="."/>
1584
        </z:index>
1583
        </z:index>
1585
      </xslo:if>
1584
      </xslo:if>
Lines 1588-1615 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1588
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='461']">
1587
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='461']">
1589
    <xslo:for-each select="marc:subfield">
1588
    <xslo:for-each select="marc:subfield">
1590
      <xslo:if test="contains('t', @code)">
1589
      <xslo:if test="contains('t', @code)">
1591
        <z:index name="Title:w Title-host:w title-host:p">
1590
        <z:index name="Title:w Title-host:w title-host:p Any:w Any:p">
1592
          <xslo:value-of select="."/>
1591
          <xslo:value-of select="."/>
1593
        </z:index>
1592
        </z:index>
1594
      </xslo:if>
1593
      </xslo:if>
1595
    </xslo:for-each>
1594
    </xslo:for-each>
1596
    <xslo:for-each select="marc:subfield">
1595
    <xslo:for-each select="marc:subfield">
1597
      <xslo:if test="contains('9', @code)">
1596
      <xslo:if test="contains('9', @code)">
1598
        <z:index name="Host-Item-Number:w">
1597
        <z:index name="Host-Item-Number:w Any:w Any:p">
1599
          <xslo:value-of select="."/>
1598
          <xslo:value-of select="."/>
1600
        </z:index>
1599
        </z:index>
1601
      </xslo:if>
1600
      </xslo:if>
1602
    </xslo:for-each>
1601
    </xslo:for-each>
1603
    <xslo:for-each select="marc:subfield">
1602
    <xslo:for-each select="marc:subfield">
1604
      <xslo:if test="contains('d', @code)">
1603
      <xslo:if test="contains('d', @code)">
1605
        <z:index name="pubdate:n">
1604
        <z:index name="pubdate:n Any:w Any:p">
1606
          <xslo:value-of select="."/>
1605
          <xslo:value-of select="."/>
1607
        </z:index>
1606
        </z:index>
1608
      </xslo:if>
1607
      </xslo:if>
1609
    </xslo:for-each>
1608
    </xslo:for-each>
1610
    <xslo:for-each select="marc:subfield">
1609
    <xslo:for-each select="marc:subfield">
1611
      <xslo:if test="contains('9', @code)">
1610
      <xslo:if test="contains('9', @code)">
1612
        <z:index name="Host-Item-Number:w">
1611
        <z:index name="Host-Item-Number:w Any:w Any:p">
1613
          <xslo:value-of select="."/>
1612
          <xslo:value-of select="."/>
1614
        </z:index>
1613
        </z:index>
1615
      </xslo:if>
1614
      </xslo:if>
Lines 1618-1624 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1618
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='462']">
1617
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='462']">
1619
    <xslo:for-each select="marc:subfield">
1618
    <xslo:for-each select="marc:subfield">
1620
      <xslo:if test="contains('t', @code)">
1619
      <xslo:if test="contains('t', @code)">
1621
        <z:index name="Title:w Title:p">
1620
        <z:index name="Title:w Title:p Any:w Any:p">
1622
          <xslo:value-of select="."/>
1621
          <xslo:value-of select="."/>
1623
        </z:index>
1622
        </z:index>
1624
      </xslo:if>
1623
      </xslo:if>
Lines 1627-1633 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1627
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='463']">
1626
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='463']">
1628
    <xslo:for-each select="marc:subfield">
1627
    <xslo:for-each select="marc:subfield">
1629
      <xslo:if test="contains('t', @code)">
1628
      <xslo:if test="contains('t', @code)">
1630
        <z:index name="Title:w Title:p">
1629
        <z:index name="Title:w Title:p Any:w Any:p">
1631
          <xslo:value-of select="."/>
1630
          <xslo:value-of select="."/>
1632
        </z:index>
1631
        </z:index>
1633
      </xslo:if>
1632
      </xslo:if>
Lines 1636-1642 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1636
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='464']">
1635
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='464']">
1637
    <xslo:for-each select="marc:subfield">
1636
    <xslo:for-each select="marc:subfield">
1638
      <xslo:if test="contains('t', @code)">
1637
      <xslo:if test="contains('t', @code)">
1639
        <z:index name="Title:w Title-host:w title-host:p Title:p">
1638
        <z:index name="Title:w Title-host:w title-host:p Title:p Any:w Any:p">
1640
          <xslo:value-of select="."/>
1639
          <xslo:value-of select="."/>
1641
        </z:index>
1640
        </z:index>
1642
      </xslo:if>
1641
      </xslo:if>
Lines 1645-1651 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1645
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='470']">
1644
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='470']">
1646
    <xslo:for-each select="marc:subfield">
1645
    <xslo:for-each select="marc:subfield">
1647
      <xslo:if test="contains('t', @code)">
1646
      <xslo:if test="contains('t', @code)">
1648
        <z:index name="Title:w Title:p">
1647
        <z:index name="Title:w Title:p Any:w Any:p">
1649
          <xslo:value-of select="."/>
1648
          <xslo:value-of select="."/>
1650
        </z:index>
1649
        </z:index>
1651
      </xslo:if>
1650
      </xslo:if>
Lines 1654-1660 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1654
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='481']">
1653
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='481']">
1655
    <xslo:for-each select="marc:subfield">
1654
    <xslo:for-each select="marc:subfield">
1656
      <xslo:if test="contains('t', @code)">
1655
      <xslo:if test="contains('t', @code)">
1657
        <z:index name="Title:w Title:p">
1656
        <z:index name="Title:w Title:p Any:w Any:p">
1658
          <xslo:value-of select="."/>
1657
          <xslo:value-of select="."/>
1659
        </z:index>
1658
        </z:index>
1660
      </xslo:if>
1659
      </xslo:if>
Lines 1663-1669 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1663
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='482']">
1662
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='482']">
1664
    <xslo:for-each select="marc:subfield">
1663
    <xslo:for-each select="marc:subfield">
1665
      <xslo:if test="contains('t', @code)">
1664
      <xslo:if test="contains('t', @code)">
1666
        <z:index name="Title:w Title:p">
1665
        <z:index name="Title:w Title:p Any:w Any:p">
1667
          <xslo:value-of select="."/>
1666
          <xslo:value-of select="."/>
1668
        </z:index>
1667
        </z:index>
1669
      </xslo:if>
1668
      </xslo:if>
Lines 1672-1678 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1672
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='488']">
1671
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='488']">
1673
    <xslo:for-each select="marc:subfield">
1672
    <xslo:for-each select="marc:subfield">
1674
      <xslo:if test="contains('t', @code)">
1673
      <xslo:if test="contains('t', @code)">
1675
        <z:index name="Title:w Title:p">
1674
        <z:index name="Title:w Title:p Any:w Any:p">
1676
          <xslo:value-of select="."/>
1675
          <xslo:value-of select="."/>
1677
        </z:index>
1676
        </z:index>
1678
      </xslo:if>
1677
      </xslo:if>
Lines 1681-1694 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1681
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
1680
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
1682
    <xslo:for-each select="marc:subfield">
1681
    <xslo:for-each select="marc:subfield">
1683
      <xslo:if test="contains('t', @code)">
1682
      <xslo:if test="contains('t', @code)">
1684
        <z:index name="Title:w Title:p">
1683
        <z:index name="Title:w Title:p Any:w Any:p">
1685
          <xslo:value-of select="."/>
1684
          <xslo:value-of select="."/>
1686
        </z:index>
1685
        </z:index>
1687
      </xslo:if>
1686
      </xslo:if>
1688
    </xslo:for-each>
1687
    </xslo:for-each>
1689
    <xslo:for-each select="marc:subfield">
1688
    <xslo:for-each select="marc:subfield">
1690
      <xslo:if test="contains('d', @code)">
1689
      <xslo:if test="contains('d', @code)">
1691
        <z:index name="pubdate:n">
1690
        <z:index name="pubdate:n Any:w Any:p">
1692
          <xslo:value-of select="."/>
1691
          <xslo:value-of select="."/>
1693
        </z:index>
1692
        </z:index>
1694
      </xslo:if>
1693
      </xslo:if>
Lines 1697-1710 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1697
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='401']">
1696
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='401']">
1698
    <xslo:for-each select="marc:subfield">
1697
    <xslo:for-each select="marc:subfield">
1699
      <xslo:if test="contains('t', @code)">
1698
      <xslo:if test="contains('t', @code)">
1700
        <z:index name="Title:w Title:p">
1699
        <z:index name="Title:w Title:p Any:w Any:p">
1701
          <xslo:value-of select="."/>
1700
          <xslo:value-of select="."/>
1702
        </z:index>
1701
        </z:index>
1703
      </xslo:if>
1702
      </xslo:if>
1704
    </xslo:for-each>
1703
    </xslo:for-each>
1705
    <xslo:for-each select="marc:subfield">
1704
    <xslo:for-each select="marc:subfield">
1706
      <xslo:if test="contains('d', @code)">
1705
      <xslo:if test="contains('d', @code)">
1707
        <z:index name="pubdate:n">
1706
        <z:index name="pubdate:n Any:w Any:p">
1708
          <xslo:value-of select="."/>
1707
          <xslo:value-of select="."/>
1709
        </z:index>
1708
        </z:index>
1710
      </xslo:if>
1709
      </xslo:if>
Lines 1713-1726 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1713
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='403']">
1712
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='403']">
1714
    <xslo:for-each select="marc:subfield">
1713
    <xslo:for-each select="marc:subfield">
1715
      <xslo:if test="contains('t', @code)">
1714
      <xslo:if test="contains('t', @code)">
1716
        <z:index name="Title:w Title:p Title-Uniform:w Title-Uniform:p">
1715
        <z:index name="Title:w Title:p Title-Uniform:w Title-Uniform:p Any:w Any:p">
1717
          <xslo:value-of select="."/>
1716
          <xslo:value-of select="."/>
1718
        </z:index>
1717
        </z:index>
1719
      </xslo:if>
1718
      </xslo:if>
1720
    </xslo:for-each>
1719
    </xslo:for-each>
1721
    <xslo:for-each select="marc:subfield">
1720
    <xslo:for-each select="marc:subfield">
1722
      <xslo:if test="contains('d', @code)">
1721
      <xslo:if test="contains('d', @code)">
1723
        <z:index name="pubdate:n">
1722
        <z:index name="pubdate:n Any:w Any:p">
1724
          <xslo:value-of select="."/>
1723
          <xslo:value-of select="."/>
1725
        </z:index>
1724
        </z:index>
1726
      </xslo:if>
1725
      </xslo:if>
Lines 1729-1742 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1729
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='414']">
1728
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='414']">
1730
    <xslo:for-each select="marc:subfield">
1729
    <xslo:for-each select="marc:subfield">
1731
      <xslo:if test="contains('t', @code)">
1730
      <xslo:if test="contains('t', @code)">
1732
        <z:index name="Title:w Title:p">
1731
        <z:index name="Title:w Title:p Any:w Any:p">
1733
          <xslo:value-of select="."/>
1732
          <xslo:value-of select="."/>
1734
        </z:index>
1733
        </z:index>
1735
      </xslo:if>
1734
      </xslo:if>
1736
    </xslo:for-each>
1735
    </xslo:for-each>
1737
    <xslo:for-each select="marc:subfield">
1736
    <xslo:for-each select="marc:subfield">
1738
      <xslo:if test="contains('d', @code)">
1737
      <xslo:if test="contains('d', @code)">
1739
        <z:index name="pubdate:n">
1738
        <z:index name="pubdate:n Any:w Any:p">
1740
          <xslo:value-of select="."/>
1739
          <xslo:value-of select="."/>
1741
        </z:index>
1740
        </z:index>
1742
      </xslo:if>
1741
      </xslo:if>
Lines 1745-1758 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1745
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
1744
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='415']">
1746
    <xslo:for-each select="marc:subfield">
1745
    <xslo:for-each select="marc:subfield">
1747
      <xslo:if test="contains('t', @code)">
1746
      <xslo:if test="contains('t', @code)">
1748
        <z:index name="Title:w Title:p">
1747
        <z:index name="Title:w Title:p Any:w Any:p">
1749
          <xslo:value-of select="."/>
1748
          <xslo:value-of select="."/>
1750
        </z:index>
1749
        </z:index>
1751
      </xslo:if>
1750
      </xslo:if>
1752
    </xslo:for-each>
1751
    </xslo:for-each>
1753
    <xslo:for-each select="marc:subfield">
1752
    <xslo:for-each select="marc:subfield">
1754
      <xslo:if test="contains('d', @code)">
1753
      <xslo:if test="contains('d', @code)">
1755
        <z:index name="pubdate:n">
1754
        <z:index name="pubdate:n Any:w Any:p">
1756
          <xslo:value-of select="."/>
1755
          <xslo:value-of select="."/>
1757
        </z:index>
1756
        </z:index>
1758
      </xslo:if>
1757
      </xslo:if>
Lines 1761-1774 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1761
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
1760
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='416']">
1762
    <xslo:for-each select="marc:subfield">
1761
    <xslo:for-each select="marc:subfield">
1763
      <xslo:if test="contains('t', @code)">
1762
      <xslo:if test="contains('t', @code)">
1764
        <z:index name="Title:w Title:p">
1763
        <z:index name="Title:w Title:p Any:w Any:p">
1765
          <xslo:value-of select="."/>
1764
          <xslo:value-of select="."/>
1766
        </z:index>
1765
        </z:index>
1767
      </xslo:if>
1766
      </xslo:if>
1768
    </xslo:for-each>
1767
    </xslo:for-each>
1769
    <xslo:for-each select="marc:subfield">
1768
    <xslo:for-each select="marc:subfield">
1770
      <xslo:if test="contains('d', @code)">
1769
      <xslo:if test="contains('d', @code)">
1771
        <z:index name="pubdate:n">
1770
        <z:index name="pubdate:n Any:w Any:p">
1772
          <xslo:value-of select="."/>
1771
          <xslo:value-of select="."/>
1773
        </z:index>
1772
        </z:index>
1774
      </xslo:if>
1773
      </xslo:if>
Lines 1777-1790 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1777
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='417']">
1776
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='417']">
1778
    <xslo:for-each select="marc:subfield">
1777
    <xslo:for-each select="marc:subfield">
1779
      <xslo:if test="contains('t', @code)">
1778
      <xslo:if test="contains('t', @code)">
1780
        <z:index name="Title:w Title:p">
1779
        <z:index name="Title:w Title:p Any:w Any:p">
1781
          <xslo:value-of select="."/>
1780
          <xslo:value-of select="."/>
1782
        </z:index>
1781
        </z:index>
1783
      </xslo:if>
1782
      </xslo:if>
1784
    </xslo:for-each>
1783
    </xslo:for-each>
1785
    <xslo:for-each select="marc:subfield">
1784
    <xslo:for-each select="marc:subfield">
1786
      <xslo:if test="contains('d', @code)">
1785
      <xslo:if test="contains('d', @code)">
1787
        <z:index name="pubdate:n">
1786
        <z:index name="pubdate:n Any:w Any:p">
1788
          <xslo:value-of select="."/>
1787
          <xslo:value-of select="."/>
1789
        </z:index>
1788
        </z:index>
1790
      </xslo:if>
1789
      </xslo:if>
Lines 1793-1806 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1793
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='418']">
1792
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='418']">
1794
    <xslo:for-each select="marc:subfield">
1793
    <xslo:for-each select="marc:subfield">
1795
      <xslo:if test="contains('t', @code)">
1794
      <xslo:if test="contains('t', @code)">
1796
        <z:index name="Title:w Title:p">
1795
        <z:index name="Title:w Title:p Any:w Any:p">
1797
          <xslo:value-of select="."/>
1796
          <xslo:value-of select="."/>
1798
        </z:index>
1797
        </z:index>
1799
      </xslo:if>
1798
      </xslo:if>
1800
    </xslo:for-each>
1799
    </xslo:for-each>
1801
    <xslo:for-each select="marc:subfield">
1800
    <xslo:for-each select="marc:subfield">
1802
      <xslo:if test="contains('d', @code)">
1801
      <xslo:if test="contains('d', @code)">
1803
        <z:index name="pubdate:n">
1802
        <z:index name="pubdate:n Any:w Any:p">
1804
          <xslo:value-of select="."/>
1803
          <xslo:value-of select="."/>
1805
        </z:index>
1804
        </z:index>
1806
      </xslo:if>
1805
      </xslo:if>
Lines 1809-1822 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1809
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='419']">
1808
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='419']">
1810
    <xslo:for-each select="marc:subfield">
1809
    <xslo:for-each select="marc:subfield">
1811
      <xslo:if test="contains('t', @code)">
1810
      <xslo:if test="contains('t', @code)">
1812
        <z:index name="Title:w Title:p">
1811
        <z:index name="Title:w Title:p Any:w Any:p">
1813
          <xslo:value-of select="."/>
1812
          <xslo:value-of select="."/>
1814
        </z:index>
1813
        </z:index>
1815
      </xslo:if>
1814
      </xslo:if>
1816
    </xslo:for-each>
1815
    </xslo:for-each>
1817
    <xslo:for-each select="marc:subfield">
1816
    <xslo:for-each select="marc:subfield">
1818
      <xslo:if test="contains('d', @code)">
1817
      <xslo:if test="contains('d', @code)">
1819
        <z:index name="pubdate:n">
1818
        <z:index name="pubdate:n Any:w Any:p">
1820
          <xslo:value-of select="."/>
1819
          <xslo:value-of select="."/>
1821
        </z:index>
1820
        </z:index>
1822
      </xslo:if>
1821
      </xslo:if>
Lines 1825-1838 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1825
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
1824
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='420']">
1826
    <xslo:for-each select="marc:subfield">
1825
    <xslo:for-each select="marc:subfield">
1827
      <xslo:if test="contains('t', @code)">
1826
      <xslo:if test="contains('t', @code)">
1828
        <z:index name="Title:w Title:p">
1827
        <z:index name="Title:w Title:p Any:w Any:p">
1829
          <xslo:value-of select="."/>
1828
          <xslo:value-of select="."/>
1830
        </z:index>
1829
        </z:index>
1831
      </xslo:if>
1830
      </xslo:if>
1832
    </xslo:for-each>
1831
    </xslo:for-each>
1833
    <xslo:for-each select="marc:subfield">
1832
    <xslo:for-each select="marc:subfield">
1834
      <xslo:if test="contains('d', @code)">
1833
      <xslo:if test="contains('d', @code)">
1835
        <z:index name="pubdate:n">
1834
        <z:index name="pubdate:n Any:w Any:p">
1836
          <xslo:value-of select="."/>
1835
          <xslo:value-of select="."/>
1837
        </z:index>
1836
        </z:index>
1838
      </xslo:if>
1837
      </xslo:if>
Lines 1841-1847 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1841
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
1840
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='500']">
1842
    <xslo:for-each select="marc:subfield">
1841
    <xslo:for-each select="marc:subfield">
1843
      <xslo:if test="contains('9', @code)">
1842
      <xslo:if test="contains('9', @code)">
1844
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1843
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1845
          <xslo:value-of select="."/>
1844
          <xslo:value-of select="."/>
1846
        </z:index>
1845
        </z:index>
1847
      </xslo:if>
1846
      </xslo:if>
Lines 1850-1856 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1850
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='501']">
1849
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='501']">
1851
    <xslo:for-each select="marc:subfield">
1850
    <xslo:for-each select="marc:subfield">
1852
      <xslo:if test="contains('9', @code)">
1851
      <xslo:if test="contains('9', @code)">
1853
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1852
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1854
          <xslo:value-of select="."/>
1853
          <xslo:value-of select="."/>
1855
        </z:index>
1854
        </z:index>
1856
      </xslo:if>
1855
      </xslo:if>
Lines 1859-1865 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1859
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='503']">
1858
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='503']">
1860
    <xslo:for-each select="marc:subfield">
1859
    <xslo:for-each select="marc:subfield">
1861
      <xslo:if test="contains('9', @code)">
1860
      <xslo:if test="contains('9', @code)">
1862
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1861
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1863
          <xslo:value-of select="."/>
1862
          <xslo:value-of select="."/>
1864
        </z:index>
1863
        </z:index>
1865
      </xslo:if>
1864
      </xslo:if>
Lines 1868-1874 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1868
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
1867
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='510']">
1869
    <xslo:for-each select="marc:subfield">
1868
    <xslo:for-each select="marc:subfield">
1870
      <xslo:if test="contains('9', @code)">
1869
      <xslo:if test="contains('9', @code)">
1871
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1870
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1872
          <xslo:value-of select="."/>
1871
          <xslo:value-of select="."/>
1873
        </z:index>
1872
        </z:index>
1874
      </xslo:if>
1873
      </xslo:if>
Lines 1877-1883 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1877
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='512']">
1876
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='512']">
1878
    <xslo:for-each select="marc:subfield">
1877
    <xslo:for-each select="marc:subfield">
1879
      <xslo:if test="contains('9', @code)">
1878
      <xslo:if test="contains('9', @code)">
1880
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1879
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1881
          <xslo:value-of select="."/>
1880
          <xslo:value-of select="."/>
1882
        </z:index>
1881
        </z:index>
1883
      </xslo:if>
1882
      </xslo:if>
Lines 1886-1892 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1886
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='513']">
1885
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='513']">
1887
    <xslo:for-each select="marc:subfield">
1886
    <xslo:for-each select="marc:subfield">
1888
      <xslo:if test="contains('9', @code)">
1887
      <xslo:if test="contains('9', @code)">
1889
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1888
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1890
          <xslo:value-of select="."/>
1889
          <xslo:value-of select="."/>
1891
        </z:index>
1890
        </z:index>
1892
      </xslo:if>
1891
      </xslo:if>
Lines 1895-1901 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1895
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='514']">
1894
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='514']">
1896
    <xslo:for-each select="marc:subfield">
1895
    <xslo:for-each select="marc:subfield">
1897
      <xslo:if test="contains('9', @code)">
1896
      <xslo:if test="contains('9', @code)">
1898
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1897
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1899
          <xslo:value-of select="."/>
1898
          <xslo:value-of select="."/>
1900
        </z:index>
1899
        </z:index>
1901
      </xslo:if>
1900
      </xslo:if>
Lines 1904-1910 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1904
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
1903
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='515']">
1905
    <xslo:for-each select="marc:subfield">
1904
    <xslo:for-each select="marc:subfield">
1906
      <xslo:if test="contains('9', @code)">
1905
      <xslo:if test="contains('9', @code)">
1907
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1906
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1908
          <xslo:value-of select="."/>
1907
          <xslo:value-of select="."/>
1909
        </z:index>
1908
        </z:index>
1910
      </xslo:if>
1909
      </xslo:if>
Lines 1913-1919 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1913
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
1912
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='516']">
1914
    <xslo:for-each select="marc:subfield">
1913
    <xslo:for-each select="marc:subfield">
1915
      <xslo:if test="contains('9', @code)">
1914
      <xslo:if test="contains('9', @code)">
1916
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1915
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1917
          <xslo:value-of select="."/>
1916
          <xslo:value-of select="."/>
1918
        </z:index>
1917
        </z:index>
1919
      </xslo:if>
1918
      </xslo:if>
Lines 1922-1928 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1922
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='517']">
1921
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='517']">
1923
    <xslo:for-each select="marc:subfield">
1922
    <xslo:for-each select="marc:subfield">
1924
      <xslo:if test="contains('9', @code)">
1923
      <xslo:if test="contains('9', @code)">
1925
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1924
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1926
          <xslo:value-of select="."/>
1925
          <xslo:value-of select="."/>
1927
        </z:index>
1926
        </z:index>
1928
      </xslo:if>
1927
      </xslo:if>
Lines 1931-1937 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1931
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='518']">
1930
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='518']">
1932
    <xslo:for-each select="marc:subfield">
1931
    <xslo:for-each select="marc:subfield">
1933
      <xslo:if test="contains('9', @code)">
1932
      <xslo:if test="contains('9', @code)">
1934
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1933
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1935
          <xslo:value-of select="."/>
1934
          <xslo:value-of select="."/>
1936
        </z:index>
1935
        </z:index>
1937
      </xslo:if>
1936
      </xslo:if>
Lines 1940-1946 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1940
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='519']">
1939
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='519']">
1941
    <xslo:for-each select="marc:subfield">
1940
    <xslo:for-each select="marc:subfield">
1942
      <xslo:if test="contains('9', @code)">
1941
      <xslo:if test="contains('9', @code)">
1943
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1942
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1944
          <xslo:value-of select="."/>
1943
          <xslo:value-of select="."/>
1945
        </z:index>
1944
        </z:index>
1946
      </xslo:if>
1945
      </xslo:if>
Lines 1949-1955 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1949
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
1948
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='520']">
1950
    <xslo:for-each select="marc:subfield">
1949
    <xslo:for-each select="marc:subfield">
1951
      <xslo:if test="contains('9', @code)">
1950
      <xslo:if test="contains('9', @code)">
1952
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1951
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1953
          <xslo:value-of select="."/>
1952
          <xslo:value-of select="."/>
1954
        </z:index>
1953
        </z:index>
1955
      </xslo:if>
1954
      </xslo:if>
Lines 1958-1964 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1958
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
1957
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='530']">
1959
    <xslo:for-each select="marc:subfield">
1958
    <xslo:for-each select="marc:subfield">
1960
      <xslo:if test="contains('9', @code)">
1959
      <xslo:if test="contains('9', @code)">
1961
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1960
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1962
          <xslo:value-of select="."/>
1961
          <xslo:value-of select="."/>
1963
        </z:index>
1962
        </z:index>
1964
      </xslo:if>
1963
      </xslo:if>
Lines 1967-1973 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1967
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='531']">
1966
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='531']">
1968
    <xslo:for-each select="marc:subfield">
1967
    <xslo:for-each select="marc:subfield">
1969
      <xslo:if test="contains('9', @code)">
1968
      <xslo:if test="contains('9', @code)">
1970
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1969
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1971
          <xslo:value-of select="."/>
1970
          <xslo:value-of select="."/>
1972
        </z:index>
1971
        </z:index>
1973
      </xslo:if>
1972
      </xslo:if>
Lines 1976-1982 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1976
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='532']">
1975
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='532']">
1977
    <xslo:for-each select="marc:subfield">
1976
    <xslo:for-each select="marc:subfield">
1978
      <xslo:if test="contains('9', @code)">
1977
      <xslo:if test="contains('9', @code)">
1979
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1978
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1980
          <xslo:value-of select="."/>
1979
          <xslo:value-of select="."/>
1981
        </z:index>
1980
        </z:index>
1982
      </xslo:if>
1981
      </xslo:if>
Lines 1985-1991 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1985
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
1984
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='540']">
1986
    <xslo:for-each select="marc:subfield">
1985
    <xslo:for-each select="marc:subfield">
1987
      <xslo:if test="contains('9', @code)">
1986
      <xslo:if test="contains('9', @code)">
1988
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1987
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1989
          <xslo:value-of select="."/>
1988
          <xslo:value-of select="."/>
1990
        </z:index>
1989
        </z:index>
1991
      </xslo:if>
1990
      </xslo:if>
Lines 1994-2000 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1994
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='541']">
1993
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='541']">
1995
    <xslo:for-each select="marc:subfield">
1994
    <xslo:for-each select="marc:subfield">
1996
      <xslo:if test="contains('9', @code)">
1995
      <xslo:if test="contains('9', @code)">
1997
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
1996
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
1998
          <xslo:value-of select="."/>
1997
          <xslo:value-of select="."/>
1999
        </z:index>
1998
        </z:index>
2000
      </xslo:if>
1999
      </xslo:if>
Lines 2003-2009 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2003
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
2002
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='545']">
2004
    <xslo:for-each select="marc:subfield">
2003
    <xslo:for-each select="marc:subfield">
2005
      <xslo:if test="contains('9', @code)">
2004
      <xslo:if test="contains('9', @code)">
2006
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2005
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2007
          <xslo:value-of select="."/>
2006
          <xslo:value-of select="."/>
2008
        </z:index>
2007
        </z:index>
2009
      </xslo:if>
2008
      </xslo:if>
Lines 2012-2018 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2012
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
2011
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='560']">
2013
    <xslo:for-each select="marc:subfield">
2012
    <xslo:for-each select="marc:subfield">
2014
      <xslo:if test="contains('9', @code)">
2013
      <xslo:if test="contains('9', @code)">
2015
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2014
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2016
          <xslo:value-of select="."/>
2015
          <xslo:value-of select="."/>
2017
        </z:index>
2016
        </z:index>
2018
      </xslo:if>
2017
      </xslo:if>
Lines 2021-2034 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2021
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
2020
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='600']">
2022
    <xslo:for-each select="marc:subfield">
2021
    <xslo:for-each select="marc:subfield">
2023
      <xslo:if test="contains('9', @code)">
2022
      <xslo:if test="contains('9', @code)">
2024
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2023
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2025
          <xslo:value-of select="."/>
2024
          <xslo:value-of select="."/>
2026
        </z:index>
2025
        </z:index>
2027
      </xslo:if>
2026
      </xslo:if>
2028
    </xslo:for-each>
2027
    </xslo:for-each>
2029
    <xslo:for-each select="marc:subfield">
2028
    <xslo:for-each select="marc:subfield">
2030
      <xslo:if test="contains('a', @code)">
2029
      <xslo:if test="contains('a', @code)">
2031
        <z:index name="Personal-name:w Personal-name:p Subject:w Subject:p">
2030
        <z:index name="Personal-name:w Personal-name:p Subject:w Subject:p Any:w Any:p">
2032
          <xslo:value-of select="."/>
2031
          <xslo:value-of select="."/>
2033
        </z:index>
2032
        </z:index>
2034
      </xslo:if>
2033
      </xslo:if>
Lines 2037-2050 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2037
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='601']">
2036
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='601']">
2038
    <xslo:for-each select="marc:subfield">
2037
    <xslo:for-each select="marc:subfield">
2039
      <xslo:if test="contains('9', @code)">
2038
      <xslo:if test="contains('9', @code)">
2040
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2039
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2041
          <xslo:value-of select="."/>
2040
          <xslo:value-of select="."/>
2042
        </z:index>
2041
        </z:index>
2043
      </xslo:if>
2042
      </xslo:if>
2044
    </xslo:for-each>
2043
    </xslo:for-each>
2045
    <xslo:for-each select="marc:subfield">
2044
    <xslo:for-each select="marc:subfield">
2046
      <xslo:if test="contains('a', @code)">
2045
      <xslo:if test="contains('a', @code)">
2047
        <z:index name="Corporate-name:w Conference-name:w Corporate-name:p Conference-name:p">
2046
        <z:index name="Corporate-name:w Conference-name:w Corporate-name:p Conference-name:p Any:w Any:p">
2048
          <xslo:value-of select="."/>
2047
          <xslo:value-of select="."/>
2049
        </z:index>
2048
        </z:index>
2050
      </xslo:if>
2049
      </xslo:if>
Lines 2053-2066 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2053
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='602']">
2052
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='602']">
2054
    <xslo:for-each select="marc:subfield">
2053
    <xslo:for-each select="marc:subfield">
2055
      <xslo:if test="contains('9', @code)">
2054
      <xslo:if test="contains('9', @code)">
2056
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2055
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2057
          <xslo:value-of select="."/>
2056
          <xslo:value-of select="."/>
2058
        </z:index>
2057
        </z:index>
2059
      </xslo:if>
2058
      </xslo:if>
2060
    </xslo:for-each>
2059
    </xslo:for-each>
2061
    <xslo:for-each select="marc:subfield">
2060
    <xslo:for-each select="marc:subfield">
2062
      <xslo:if test="contains('a', @code)">
2061
      <xslo:if test="contains('a', @code)">
2063
        <z:index name="Personal-name:w Personal-name:p">
2062
        <z:index name="Personal-name:w Personal-name:p Any:w Any:p">
2064
          <xslo:value-of select="."/>
2063
          <xslo:value-of select="."/>
2065
        </z:index>
2064
        </z:index>
2066
      </xslo:if>
2065
      </xslo:if>
Lines 2069-2075 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2069
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='603']">
2068
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='603']">
2070
    <xslo:for-each select="marc:subfield">
2069
    <xslo:for-each select="marc:subfield">
2071
      <xslo:if test="contains('9', @code)">
2070
      <xslo:if test="contains('9', @code)">
2072
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2071
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2073
          <xslo:value-of select="."/>
2072
          <xslo:value-of select="."/>
2074
        </z:index>
2073
        </z:index>
2075
      </xslo:if>
2074
      </xslo:if>
Lines 2078-2084 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2078
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='604']">
2077
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='604']">
2079
    <xslo:for-each select="marc:subfield">
2078
    <xslo:for-each select="marc:subfield">
2080
      <xslo:if test="contains('9', @code)">
2079
      <xslo:if test="contains('9', @code)">
2081
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2080
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2082
          <xslo:value-of select="."/>
2081
          <xslo:value-of select="."/>
2083
        </z:index>
2082
        </z:index>
2084
      </xslo:if>
2083
      </xslo:if>
Lines 2087-2093 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2087
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='605']">
2086
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='605']">
2088
    <xslo:for-each select="marc:subfield">
2087
    <xslo:for-each select="marc:subfield">
2089
      <xslo:if test="contains('9', @code)">
2088
      <xslo:if test="contains('9', @code)">
2090
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2089
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2091
          <xslo:value-of select="."/>
2090
          <xslo:value-of select="."/>
2092
        </z:index>
2091
        </z:index>
2093
      </xslo:if>
2092
      </xslo:if>
Lines 2096-2102 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2096
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='606']">
2095
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='606']">
2097
    <xslo:for-each select="marc:subfield">
2096
    <xslo:for-each select="marc:subfield">
2098
      <xslo:if test="contains('9', @code)">
2097
      <xslo:if test="contains('9', @code)">
2099
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2098
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2100
          <xslo:value-of select="."/>
2099
          <xslo:value-of select="."/>
2101
        </z:index>
2100
        </z:index>
2102
      </xslo:if>
2101
      </xslo:if>
Lines 2105-2111 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2105
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='607']">
2104
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='607']">
2106
    <xslo:for-each select="marc:subfield">
2105
    <xslo:for-each select="marc:subfield">
2107
      <xslo:if test="contains('9', @code)">
2106
      <xslo:if test="contains('9', @code)">
2108
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2107
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2109
          <xslo:value-of select="."/>
2108
          <xslo:value-of select="."/>
2110
        </z:index>
2109
        </z:index>
2111
      </xslo:if>
2110
      </xslo:if>
Lines 2114-2120 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2114
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='608']">
2113
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='608']">
2115
    <xslo:for-each select="marc:subfield">
2114
    <xslo:for-each select="marc:subfield">
2116
      <xslo:if test="contains('9', @code)">
2115
      <xslo:if test="contains('9', @code)">
2117
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2116
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2118
          <xslo:value-of select="."/>
2117
          <xslo:value-of select="."/>
2119
        </z:index>
2118
        </z:index>
2120
      </xslo:if>
2119
      </xslo:if>
Lines 2123-2129 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2123
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
2122
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='610']">
2124
    <xslo:for-each select="marc:subfield">
2123
    <xslo:for-each select="marc:subfield">
2125
      <xslo:if test="contains('9', @code)">
2124
      <xslo:if test="contains('9', @code)">
2126
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2125
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2127
          <xslo:value-of select="."/>
2126
          <xslo:value-of select="."/>
2128
        </z:index>
2127
        </z:index>
2129
      </xslo:if>
2128
      </xslo:if>
Lines 2132-2138 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2132
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='615']">
2131
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='615']">
2133
    <xslo:for-each select="marc:subfield">
2132
    <xslo:for-each select="marc:subfield">
2134
      <xslo:if test="contains('9', @code)">
2133
      <xslo:if test="contains('9', @code)">
2135
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2134
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2136
          <xslo:value-of select="."/>
2135
          <xslo:value-of select="."/>
2137
        </z:index>
2136
        </z:index>
2138
      </xslo:if>
2137
      </xslo:if>
Lines 2141-2147 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2141
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='616']">
2140
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='616']">
2142
    <xslo:for-each select="marc:subfield">
2141
    <xslo:for-each select="marc:subfield">
2143
      <xslo:if test="contains('9', @code)">
2142
      <xslo:if test="contains('9', @code)">
2144
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2143
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2145
          <xslo:value-of select="."/>
2144
          <xslo:value-of select="."/>
2146
        </z:index>
2145
        </z:index>
2147
      </xslo:if>
2146
      </xslo:if>
Lines 2150-2156 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2150
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='617']">
2149
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='617']">
2151
    <xslo:for-each select="marc:subfield">
2150
    <xslo:for-each select="marc:subfield">
2152
      <xslo:if test="contains('9', @code)">
2151
      <xslo:if test="contains('9', @code)">
2153
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2152
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2154
          <xslo:value-of select="."/>
2153
          <xslo:value-of select="."/>
2155
        </z:index>
2154
        </z:index>
2156
      </xslo:if>
2155
      </xslo:if>
Lines 2159-2165 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2159
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='620']">
2158
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='620']">
2160
    <xslo:for-each select="marc:subfield">
2159
    <xslo:for-each select="marc:subfield">
2161
      <xslo:if test="contains('9', @code)">
2160
      <xslo:if test="contains('9', @code)">
2162
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2161
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2163
          <xslo:value-of select="."/>
2162
          <xslo:value-of select="."/>
2164
        </z:index>
2163
        </z:index>
2165
      </xslo:if>
2164
      </xslo:if>
Lines 2168-2174 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2168
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='621']">
2167
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='621']">
2169
    <xslo:for-each select="marc:subfield">
2168
    <xslo:for-each select="marc:subfield">
2170
      <xslo:if test="contains('9', @code)">
2169
      <xslo:if test="contains('9', @code)">
2171
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2170
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2172
          <xslo:value-of select="."/>
2171
          <xslo:value-of select="."/>
2173
        </z:index>
2172
        </z:index>
2174
      </xslo:if>
2173
      </xslo:if>
Lines 2177-2183 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2177
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
2176
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
2178
    <xslo:for-each select="marc:subfield">
2177
    <xslo:for-each select="marc:subfield">
2179
      <xslo:if test="contains('9', @code)">
2178
      <xslo:if test="contains('9', @code)">
2180
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2179
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2181
          <xslo:value-of select="."/>
2180
          <xslo:value-of select="."/>
2182
        </z:index>
2181
        </z:index>
2183
      </xslo:if>
2182
      </xslo:if>
Lines 2186-2192 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2186
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='631']">
2185
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='631']">
2187
    <xslo:for-each select="marc:subfield">
2186
    <xslo:for-each select="marc:subfield">
2188
      <xslo:if test="contains('9', @code)">
2187
      <xslo:if test="contains('9', @code)">
2189
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2188
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2190
          <xslo:value-of select="."/>
2189
          <xslo:value-of select="."/>
2191
        </z:index>
2190
        </z:index>
2192
      </xslo:if>
2191
      </xslo:if>
Lines 2195-2201 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2195
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='632']">
2194
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='632']">
2196
    <xslo:for-each select="marc:subfield">
2195
    <xslo:for-each select="marc:subfield">
2197
      <xslo:if test="contains('9', @code)">
2196
      <xslo:if test="contains('9', @code)">
2198
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2197
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2199
          <xslo:value-of select="."/>
2198
          <xslo:value-of select="."/>
2200
        </z:index>
2199
        </z:index>
2201
      </xslo:if>
2200
      </xslo:if>
Lines 2204-2210 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2204
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='633']">
2203
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='633']">
2205
    <xslo:for-each select="marc:subfield">
2204
    <xslo:for-each select="marc:subfield">
2206
      <xslo:if test="contains('9', @code)">
2205
      <xslo:if test="contains('9', @code)">
2207
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2206
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2208
          <xslo:value-of select="."/>
2207
          <xslo:value-of select="."/>
2209
        </z:index>
2208
        </z:index>
2210
      </xslo:if>
2209
      </xslo:if>
Lines 2213-2219 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2213
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='634']">
2212
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='634']">
2214
    <xslo:for-each select="marc:subfield">
2213
    <xslo:for-each select="marc:subfield">
2215
      <xslo:if test="contains('9', @code)">
2214
      <xslo:if test="contains('9', @code)">
2216
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2215
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2217
          <xslo:value-of select="."/>
2216
          <xslo:value-of select="."/>
2218
        </z:index>
2217
        </z:index>
2219
      </xslo:if>
2218
      </xslo:if>
Lines 2222-2228 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2222
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='635']">
2221
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='635']">
2223
    <xslo:for-each select="marc:subfield">
2222
    <xslo:for-each select="marc:subfield">
2224
      <xslo:if test="contains('9', @code)">
2223
      <xslo:if test="contains('9', @code)">
2225
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2224
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2226
          <xslo:value-of select="."/>
2225
          <xslo:value-of select="."/>
2227
        </z:index>
2226
        </z:index>
2228
      </xslo:if>
2227
      </xslo:if>
Lines 2231-2237 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2231
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='636']">
2230
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='636']">
2232
    <xslo:for-each select="marc:subfield">
2231
    <xslo:for-each select="marc:subfield">
2233
      <xslo:if test="contains('9', @code)">
2232
      <xslo:if test="contains('9', @code)">
2234
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2233
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n Any:w Any:p">
2235
          <xslo:value-of select="."/>
2234
          <xslo:value-of select="."/>
2236
        </z:index>
2235
        </z:index>
2237
      </xslo:if>
2236
      </xslo:if>
Lines 2240-2246 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2240
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='675']">
2239
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='675']">
2241
    <xslo:for-each select="marc:subfield">
2240
    <xslo:for-each select="marc:subfield">
2242
      <xslo:if test="contains('a', @code)">
2241
      <xslo:if test="contains('a', @code)">
2243
        <z:index name="UDC-classification:w UDC-classification:p UDC-classification:s">
2242
        <z:index name="UDC-classification:w UDC-classification:p UDC-classification:s Any:w Any:p">
2244
          <xslo:value-of select="."/>
2243
          <xslo:value-of select="."/>
2245
        </z:index>
2244
        </z:index>
2246
      </xslo:if>
2245
      </xslo:if>
Lines 2249-2255 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2249
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='676']">
2248
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='676']">
2250
    <xslo:for-each select="marc:subfield">
2249
    <xslo:for-each select="marc:subfield">
2251
      <xslo:if test="contains('a', @code)">
2250
      <xslo:if test="contains('a', @code)">
2252
        <z:index name="Dewey-classification:w Dewey-classification:p Dewey-classification:s">
2251
        <z:index name="Dewey-classification:w Dewey-classification:p Dewey-classification:s Any:w Any:p">
2253
          <xslo:value-of select="."/>
2252
          <xslo:value-of select="."/>
2254
        </z:index>
2253
        </z:index>
2255
      </xslo:if>
2254
      </xslo:if>
Lines 2258-2264 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2258
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='680']">
2257
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='680']">
2259
    <xslo:for-each select="marc:subfield">
2258
    <xslo:for-each select="marc:subfield">
2260
      <xslo:if test="contains('b', @code)">
2259
      <xslo:if test="contains('b', @code)">
2261
        <z:index name="LC-call-number:s">
2260
        <z:index name="LC-call-number:s Any:w Any:p">
2262
          <xslo:value-of select="."/>
2261
          <xslo:value-of select="."/>
2263
        </z:index>
2262
        </z:index>
2264
      </xslo:if>
2263
      </xslo:if>
Lines 2267-2280 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2267
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
2266
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
2268
    <xslo:for-each select="marc:subfield">
2267
    <xslo:for-each select="marc:subfield">
2269
      <xslo:if test="contains('0', @code)">
2268
      <xslo:if test="contains('0', @code)">
2270
        <z:index name="totalissues:n totalissues:s">
2269
        <z:index name="totalissues:n totalissues:s Any:w Any:p">
2271
          <xslo:value-of select="."/>
2270
          <xslo:value-of select="."/>
2272
        </z:index>
2271
        </z:index>
2273
      </xslo:if>
2272
      </xslo:if>
2274
    </xslo:for-each>
2273
    </xslo:for-each>
2275
  </xslo:template>
2274
  </xslo:template>
2276
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2275
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='700']">
2277
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2276
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p Any:w Any:p">
2278
      <xslo:variable name="raw_heading">
2277
      <xslo:variable name="raw_heading">
2279
        <xslo:for-each select="marc:subfield">
2278
        <xslo:for-each select="marc:subfield">
2280
          <xslo:if test="position() &gt; 1">
2279
          <xslo:if test="position() &gt; 1">
Lines 2287-2293 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2287
    </z:index>
2286
    </z:index>
2288
  </xslo:template>
2287
  </xslo:template>
2289
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='701']">
2288
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='701']">
2290
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2289
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p Any:w Any:p">
2291
      <xslo:variable name="raw_heading">
2290
      <xslo:variable name="raw_heading">
2292
        <xslo:for-each select="marc:subfield">
2291
        <xslo:for-each select="marc:subfield">
2293
          <xslo:if test="position() &gt; 1">
2292
          <xslo:if test="position() &gt; 1">
Lines 2300-2306 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2300
    </z:index>
2299
    </z:index>
2301
  </xslo:template>
2300
  </xslo:template>
2302
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='702']">
2301
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='702']">
2303
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p">
2302
    <z:index name="Author:w Personal-name:w Author:p Personal-name:p Personal-name:p Any:w Any:p">
2304
      <xslo:variable name="raw_heading">
2303
      <xslo:variable name="raw_heading">
2305
        <xslo:for-each select="marc:subfield">
2304
        <xslo:for-each select="marc:subfield">
2306
          <xslo:if test="position() &gt; 1">
2305
          <xslo:if test="position() &gt; 1">
Lines 2313-2319 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2313
    </z:index>
2312
    </z:index>
2314
  </xslo:template>
2313
  </xslo:template>
2315
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2314
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']">
2316
    <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">
2315
    <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 Any:w Any:p">
2317
      <xslo:variable name="raw_heading">
2316
      <xslo:variable name="raw_heading">
2318
        <xslo:for-each select="marc:subfield">
2317
        <xslo:for-each select="marc:subfield">
2319
          <xslo:if test="position() &gt; 1">
2318
          <xslo:if test="position() &gt; 1">
Lines 2326-2332 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2326
    </z:index>
2325
    </z:index>
2327
  </xslo:template>
2326
  </xslo:template>
2328
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2327
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='711']">
2329
    <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">
2328
    <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 Any:w Any:p">
2330
      <xslo:variable name="raw_heading">
2329
      <xslo:variable name="raw_heading">
2331
        <xslo:for-each select="marc:subfield">
2330
        <xslo:for-each select="marc:subfield">
2332
          <xslo:if test="position() &gt; 1">
2331
          <xslo:if test="position() &gt; 1">
Lines 2339-2345 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2339
    </z:index>
2338
    </z:index>
2340
  </xslo:template>
2339
  </xslo:template>
2341
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='712']">
2340
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='712']">
2342
    <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">
2341
    <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 Any:w Any:p">
2343
      <xslo:variable name="raw_heading">
2342
      <xslo:variable name="raw_heading">
2344
        <xslo:for-each select="marc:subfield">
2343
        <xslo:for-each select="marc:subfield">
2345
          <xslo:if test="position() &gt; 1">
2344
          <xslo:if test="position() &gt; 1">
Lines 2352-2358 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2352
    </z:index>
2351
    </z:index>
2353
  </xslo:template>
2352
  </xslo:template>
2354
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='716']">
2353
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='716']">
2355
    <z:index name="Author:w Author:p">
2354
    <z:index name="Author:w Author:p Any:w Any:p">
2356
      <xslo:variable name="raw_heading">
2355
      <xslo:variable name="raw_heading">
2357
        <xslo:for-each select="marc:subfield">
2356
        <xslo:for-each select="marc:subfield">
2358
          <xslo:if test="position() &gt; 1">
2357
          <xslo:if test="position() &gt; 1">
Lines 2365-2371 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2365
    </z:index>
2364
    </z:index>
2366
  </xslo:template>
2365
  </xslo:template>
2367
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='720']">
2366
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='720']">
2368
    <z:index name="Author:w Author:p">
2367
    <z:index name="Author:w Author:p Any:w Any:p">
2369
      <xslo:variable name="raw_heading">
2368
      <xslo:variable name="raw_heading">
2370
        <xslo:for-each select="marc:subfield">
2369
        <xslo:for-each select="marc:subfield">
2371
          <xslo:if test="position() &gt; 1">
2370
          <xslo:if test="position() &gt; 1">
Lines 2378-2384 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2378
    </z:index>
2377
    </z:index>
2379
  </xslo:template>
2378
  </xslo:template>
2380
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='721']">
2379
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='721']">
2381
    <z:index name="Author:w Author:p">
2380
    <z:index name="Author:w Author:p Any:w Any:p">
2382
      <xslo:variable name="raw_heading">
2381
      <xslo:variable name="raw_heading">
2383
        <xslo:for-each select="marc:subfield">
2382
        <xslo:for-each select="marc:subfield">
2384
          <xslo:if test="position() &gt; 1">
2383
          <xslo:if test="position() &gt; 1">
Lines 2391-2397 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2391
    </z:index>
2390
    </z:index>
2392
  </xslo:template>
2391
  </xslo:template>
2393
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='722']">
2392
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='722']">
2394
    <z:index name="Author:w Author:p">
2393
    <z:index name="Author:w Author:p Any:w Any:p">
2395
      <xslo:variable name="raw_heading">
2394
      <xslo:variable name="raw_heading">
2396
        <xslo:for-each select="marc:subfield">
2395
        <xslo:for-each select="marc:subfield">
2397
          <xslo:if test="position() &gt; 1">
2396
          <xslo:if test="position() &gt; 1">
Lines 2404-2410 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2404
    </z:index>
2403
    </z:index>
2405
  </xslo:template>
2404
  </xslo:template>
2406
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2405
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']">
2407
    <z:index name="Author:w Author:p">
2406
    <z:index name="Author:w Author:p Any:w Any:p">
2408
      <xslo:variable name="raw_heading">
2407
      <xslo:variable name="raw_heading">
2409
        <xslo:for-each select="marc:subfield">
2408
        <xslo:for-each select="marc:subfield">
2410
          <xslo:if test="position() &gt; 1">
2409
          <xslo:if test="position() &gt; 1">
Lines 2417-2423 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2417
    </z:index>
2416
    </z:index>
2418
  </xslo:template>
2417
  </xslo:template>
2419
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='205']">
2418
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='205']">
2420
    <z:index name="Title:w Title:p">
2419
    <z:index name="Title:w Title:p Any:w Any:p">
2421
      <xslo:variable name="raw_heading">
2420
      <xslo:variable name="raw_heading">
2422
        <xslo:for-each select="marc:subfield">
2421
        <xslo:for-each select="marc:subfield">
2423
          <xslo:if test="position() &gt; 1">
2422
          <xslo:if test="position() &gt; 1">
Lines 2430-2436 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2430
    </z:index>
2429
    </z:index>
2431
  </xslo:template>
2430
  </xslo:template>
2432
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='207']">
2431
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='207']">
2433
    <z:index name="Serials:w Serials:p">
2432
    <z:index name="Serials:w Serials:p Any:w Any:p">
2434
      <xslo:variable name="raw_heading">
2433
      <xslo:variable name="raw_heading">
2435
        <xslo:for-each select="marc:subfield">
2434
        <xslo:for-each select="marc:subfield">
2436
          <xslo:if test="position() &gt; 1">
2435
          <xslo:if test="position() &gt; 1">
Lines 2443-2449 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2443
    </z:index>
2442
    </z:index>
2444
  </xslo:template>
2443
  </xslo:template>
2445
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='208']">
2444
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='208']">
2446
    <z:index name="Printed-music:w Printed-music:p">
2445
    <z:index name="Printed-music:w Printed-music:p Any:w Any:p">
2447
      <xslo:variable name="raw_heading">
2446
      <xslo:variable name="raw_heading">
2448
        <xslo:for-each select="marc:subfield">
2447
        <xslo:for-each select="marc:subfield">
2449
          <xslo:if test="position() &gt; 1">
2448
          <xslo:if test="position() &gt; 1">
Lines 2456-2462 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2456
    </z:index>
2455
    </z:index>
2457
  </xslo:template>
2456
  </xslo:template>
2458
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='215']">
2457
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='215']">
2459
    <z:index name="Extent:w">
2458
    <z:index name="Extent:w Any:w Any:p">
2460
      <xslo:variable name="raw_heading">
2459
      <xslo:variable name="raw_heading">
2461
        <xslo:for-each select="marc:subfield">
2460
        <xslo:for-each select="marc:subfield">
2462
          <xslo:if test="position() &gt; 1">
2461
          <xslo:if test="position() &gt; 1">
Lines 2469-2475 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2469
    </z:index>
2468
    </z:index>
2470
  </xslo:template>
2469
  </xslo:template>
2471
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='308']">
2470
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='308']">
2472
    <z:index name="Note:w Note:p">
2471
    <z:index name="Note:w Note:p Any:w Any:p">
2473
      <xslo:variable name="raw_heading">
2472
      <xslo:variable name="raw_heading">
2474
        <xslo:for-each select="marc:subfield">
2473
        <xslo:for-each select="marc:subfield">
2475
          <xslo:if test="position() &gt; 1">
2474
          <xslo:if test="position() &gt; 1">
Lines 2482-2488 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2482
    </z:index>
2481
    </z:index>
2483
  </xslo:template>
2482
  </xslo:template>
2484
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='328']">
2483
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='328']">
2485
    <z:index name="Note:w Note:p">
2484
    <z:index name="Note:w Note:p Any:w Any:p">
2486
      <xslo:variable name="raw_heading">
2485
      <xslo:variable name="raw_heading">
2487
        <xslo:for-each select="marc:subfield">
2486
        <xslo:for-each select="marc:subfield">
2488
          <xslo:if test="position() &gt; 1">
2487
          <xslo:if test="position() &gt; 1">
Lines 2495-2501 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2495
    </z:index>
2494
    </z:index>
2496
  </xslo:template>
2495
  </xslo:template>
2497
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
2496
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='500']">
2498
    <z:index name="Title:w Title:p">
2497
    <z:index name="Title:w Title:p Any:w Any:p">
2499
      <xslo:variable name="raw_heading">
2498
      <xslo:variable name="raw_heading">
2500
        <xslo:for-each select="marc:subfield">
2499
        <xslo:for-each select="marc:subfield">
2501
          <xslo:if test="position() &gt; 1">
2500
          <xslo:if test="position() &gt; 1">
Lines 2508-2514 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2508
    </z:index>
2507
    </z:index>
2509
  </xslo:template>
2508
  </xslo:template>
2510
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='501']">
2509
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='501']">
2511
    <z:index name="Title:w Title:p">
2510
    <z:index name="Title:w Title:p Any:w Any:p">
2512
      <xslo:variable name="raw_heading">
2511
      <xslo:variable name="raw_heading">
2513
        <xslo:for-each select="marc:subfield">
2512
        <xslo:for-each select="marc:subfield">
2514
          <xslo:if test="position() &gt; 1">
2513
          <xslo:if test="position() &gt; 1">
Lines 2521-2527 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2521
    </z:index>
2520
    </z:index>
2522
  </xslo:template>
2521
  </xslo:template>
2523
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='503']">
2522
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='503']">
2524
    <z:index name="Title:w Title:p">
2523
    <z:index name="Title:w Title:p Any:w Any:p">
2525
      <xslo:variable name="raw_heading">
2524
      <xslo:variable name="raw_heading">
2526
        <xslo:for-each select="marc:subfield">
2525
        <xslo:for-each select="marc:subfield">
2527
          <xslo:if test="position() &gt; 1">
2526
          <xslo:if test="position() &gt; 1">
Lines 2534-2540 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2534
    </z:index>
2533
    </z:index>
2535
  </xslo:template>
2534
  </xslo:template>
2536
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
2535
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']">
2537
    <z:index name="Title:w Title:p">
2536
    <z:index name="Title:w Title:p Any:w Any:p">
2538
      <xslo:variable name="raw_heading">
2537
      <xslo:variable name="raw_heading">
2539
        <xslo:for-each select="marc:subfield">
2538
        <xslo:for-each select="marc:subfield">
2540
          <xslo:if test="position() &gt; 1">
2539
          <xslo:if test="position() &gt; 1">
Lines 2547-2553 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2547
    </z:index>
2546
    </z:index>
2548
  </xslo:template>
2547
  </xslo:template>
2549
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='512']">
2548
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='512']">
2550
    <z:index name="Title:w Title:p">
2549
    <z:index name="Title:w Title:p Any:w Any:p">
2551
      <xslo:variable name="raw_heading">
2550
      <xslo:variable name="raw_heading">
2552
        <xslo:for-each select="marc:subfield">
2551
        <xslo:for-each select="marc:subfield">
2553
          <xslo:if test="position() &gt; 1">
2552
          <xslo:if test="position() &gt; 1">
Lines 2560-2566 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2560
    </z:index>
2559
    </z:index>
2561
  </xslo:template>
2560
  </xslo:template>
2562
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='513']">
2561
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='513']">
2563
    <z:index name="Title:w Title:p">
2562
    <z:index name="Title:w Title:p Any:w Any:p">
2564
      <xslo:variable name="raw_heading">
2563
      <xslo:variable name="raw_heading">
2565
        <xslo:for-each select="marc:subfield">
2564
        <xslo:for-each select="marc:subfield">
2566
          <xslo:if test="position() &gt; 1">
2565
          <xslo:if test="position() &gt; 1">
Lines 2573-2579 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2573
    </z:index>
2572
    </z:index>
2574
  </xslo:template>
2573
  </xslo:template>
2575
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='514']">
2574
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='514']">
2576
    <z:index name="Title:w Title:p">
2575
    <z:index name="Title:w Title:p Any:w Any:p">
2577
      <xslo:variable name="raw_heading">
2576
      <xslo:variable name="raw_heading">
2578
        <xslo:for-each select="marc:subfield">
2577
        <xslo:for-each select="marc:subfield">
2579
          <xslo:if test="position() &gt; 1">
2578
          <xslo:if test="position() &gt; 1">
Lines 2586-2592 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2586
    </z:index>
2585
    </z:index>
2587
  </xslo:template>
2586
  </xslo:template>
2588
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='515']">
2587
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='515']">
2589
    <z:index name="Title:w Title:p">
2588
    <z:index name="Title:w Title:p Any:w Any:p">
2590
      <xslo:variable name="raw_heading">
2589
      <xslo:variable name="raw_heading">
2591
        <xslo:for-each select="marc:subfield">
2590
        <xslo:for-each select="marc:subfield">
2592
          <xslo:if test="position() &gt; 1">
2591
          <xslo:if test="position() &gt; 1">
Lines 2599-2605 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2599
    </z:index>
2598
    </z:index>
2600
  </xslo:template>
2599
  </xslo:template>
2601
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='516']">
2600
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='516']">
2602
    <z:index name="Title:w Title:p">
2601
    <z:index name="Title:w Title:p Any:w Any:p">
2603
      <xslo:variable name="raw_heading">
2602
      <xslo:variable name="raw_heading">
2604
        <xslo:for-each select="marc:subfield">
2603
        <xslo:for-each select="marc:subfield">
2605
          <xslo:if test="position() &gt; 1">
2604
          <xslo:if test="position() &gt; 1">
Lines 2612-2618 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2612
    </z:index>
2611
    </z:index>
2613
  </xslo:template>
2612
  </xslo:template>
2614
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='517']">
2613
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='517']">
2615
    <z:index name="Title:w Title:p">
2614
    <z:index name="Title:w Title:p Any:w Any:p">
2616
      <xslo:variable name="raw_heading">
2615
      <xslo:variable name="raw_heading">
2617
        <xslo:for-each select="marc:subfield">
2616
        <xslo:for-each select="marc:subfield">
2618
          <xslo:if test="position() &gt; 1">
2617
          <xslo:if test="position() &gt; 1">
Lines 2625-2631 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2625
    </z:index>
2624
    </z:index>
2626
  </xslo:template>
2625
  </xslo:template>
2627
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='518']">
2626
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='518']">
2628
    <z:index name="Title:w Title:p">
2627
    <z:index name="Title:w Title:p Any:w Any:p">
2629
      <xslo:variable name="raw_heading">
2628
      <xslo:variable name="raw_heading">
2630
        <xslo:for-each select="marc:subfield">
2629
        <xslo:for-each select="marc:subfield">
2631
          <xslo:if test="position() &gt; 1">
2630
          <xslo:if test="position() &gt; 1">
Lines 2638-2644 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2638
    </z:index>
2637
    </z:index>
2639
  </xslo:template>
2638
  </xslo:template>
2640
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='519']">
2639
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='519']">
2641
    <z:index name="Title:w Title:p">
2640
    <z:index name="Title:w Title:p Any:w Any:p">
2642
      <xslo:variable name="raw_heading">
2641
      <xslo:variable name="raw_heading">
2643
        <xslo:for-each select="marc:subfield">
2642
        <xslo:for-each select="marc:subfield">
2644
          <xslo:if test="position() &gt; 1">
2643
          <xslo:if test="position() &gt; 1">
Lines 2651-2657 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2651
    </z:index>
2650
    </z:index>
2652
  </xslo:template>
2651
  </xslo:template>
2653
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
2652
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='520']">
2654
    <z:index name="Title:w Title:p">
2653
    <z:index name="Title:w Title:p Any:w Any:p">
2655
      <xslo:variable name="raw_heading">
2654
      <xslo:variable name="raw_heading">
2656
        <xslo:for-each select="marc:subfield">
2655
        <xslo:for-each select="marc:subfield">
2657
          <xslo:if test="position() &gt; 1">
2656
          <xslo:if test="position() &gt; 1">
Lines 2664-2670 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2664
    </z:index>
2663
    </z:index>
2665
  </xslo:template>
2664
  </xslo:template>
2666
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='530']">
2665
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='530']">
2667
    <z:index name="Title:w Title:p">
2666
    <z:index name="Title:w Title:p Any:w Any:p">
2668
      <xslo:variable name="raw_heading">
2667
      <xslo:variable name="raw_heading">
2669
        <xslo:for-each select="marc:subfield">
2668
        <xslo:for-each select="marc:subfield">
2670
          <xslo:if test="position() &gt; 1">
2669
          <xslo:if test="position() &gt; 1">
Lines 2677-2683 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2677
    </z:index>
2676
    </z:index>
2678
  </xslo:template>
2677
  </xslo:template>
2679
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='531']">
2678
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='531']">
2680
    <z:index name="Title:w Title:p">
2679
    <z:index name="Title:w Title:p Any:w Any:p">
2681
      <xslo:variable name="raw_heading">
2680
      <xslo:variable name="raw_heading">
2682
        <xslo:for-each select="marc:subfield">
2681
        <xslo:for-each select="marc:subfield">
2683
          <xslo:if test="position() &gt; 1">
2682
          <xslo:if test="position() &gt; 1">
Lines 2690-2696 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2690
    </z:index>
2689
    </z:index>
2691
  </xslo:template>
2690
  </xslo:template>
2692
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='532']">
2691
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='532']">
2693
    <z:index name="Title:w Title:p">
2692
    <z:index name="Title:w Title:p Any:w Any:p">
2694
      <xslo:variable name="raw_heading">
2693
      <xslo:variable name="raw_heading">
2695
        <xslo:for-each select="marc:subfield">
2694
        <xslo:for-each select="marc:subfield">
2696
          <xslo:if test="position() &gt; 1">
2695
          <xslo:if test="position() &gt; 1">
Lines 2703-2709 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2703
    </z:index>
2702
    </z:index>
2704
  </xslo:template>
2703
  </xslo:template>
2705
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='540']">
2704
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='540']">
2706
    <z:index name="Title:w Title:p">
2705
    <z:index name="Title:w Title:p Any:w Any:p">
2707
      <xslo:variable name="raw_heading">
2706
      <xslo:variable name="raw_heading">
2708
        <xslo:for-each select="marc:subfield">
2707
        <xslo:for-each select="marc:subfield">
2709
          <xslo:if test="position() &gt; 1">
2708
          <xslo:if test="position() &gt; 1">
Lines 2716-2722 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2716
    </z:index>
2715
    </z:index>
2717
  </xslo:template>
2716
  </xslo:template>
2718
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='541']">
2717
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='541']">
2719
    <z:index name="Title:w Title:p">
2718
    <z:index name="Title:w Title:p Any:w Any:p">
2720
      <xslo:variable name="raw_heading">
2719
      <xslo:variable name="raw_heading">
2721
        <xslo:for-each select="marc:subfield">
2720
        <xslo:for-each select="marc:subfield">
2722
          <xslo:if test="position() &gt; 1">
2721
          <xslo:if test="position() &gt; 1">
Lines 2729-2735 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2729
    </z:index>
2728
    </z:index>
2730
  </xslo:template>
2729
  </xslo:template>
2731
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='545']">
2730
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='545']">
2732
    <z:index name="Title:w Title:p">
2731
    <z:index name="Title:w Title:p Any:w Any:p">
2733
      <xslo:variable name="raw_heading">
2732
      <xslo:variable name="raw_heading">
2734
        <xslo:for-each select="marc:subfield">
2733
        <xslo:for-each select="marc:subfield">
2735
          <xslo:if test="position() &gt; 1">
2734
          <xslo:if test="position() &gt; 1">
Lines 2742-2748 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2742
    </z:index>
2741
    </z:index>
2743
  </xslo:template>
2742
  </xslo:template>
2744
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='560']">
2743
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='560']">
2745
    <z:index name="Title:w Title:p">
2744
    <z:index name="Title:w Title:p Any:w Any:p">
2746
      <xslo:variable name="raw_heading">
2745
      <xslo:variable name="raw_heading">
2747
        <xslo:for-each select="marc:subfield">
2746
        <xslo:for-each select="marc:subfield">
2748
          <xslo:if test="position() &gt; 1">
2747
          <xslo:if test="position() &gt; 1">
Lines 2755-2761 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2755
    </z:index>
2754
    </z:index>
2756
  </xslo:template>
2755
  </xslo:template>
2757
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
2756
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']">
2758
    <z:index name="Subject:w Subject:p">
2757
    <z:index name="Subject:w Subject:p Any:w Any:p">
2759
      <xslo:variable name="raw_heading">
2758
      <xslo:variable name="raw_heading">
2760
        <xslo:for-each select="marc:subfield">
2759
        <xslo:for-each select="marc:subfield">
2761
          <xslo:if test="position() &gt; 1">
2760
          <xslo:if test="position() &gt; 1">
Lines 2768-2774 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2768
    </z:index>
2767
    </z:index>
2769
  </xslo:template>
2768
  </xslo:template>
2770
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='601']">
2769
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='601']">
2771
    <z:index name="Subject:w Subject:p">
2770
    <z:index name="Subject:w Subject:p Any:w Any:p">
2772
      <xslo:variable name="raw_heading">
2771
      <xslo:variable name="raw_heading">
2773
        <xslo:for-each select="marc:subfield">
2772
        <xslo:for-each select="marc:subfield">
2774
          <xslo:if test="position() &gt; 1">
2773
          <xslo:if test="position() &gt; 1">
Lines 2781-2787 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2781
    </z:index>
2780
    </z:index>
2782
  </xslo:template>
2781
  </xslo:template>
2783
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='602']">
2782
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='602']">
2784
    <z:index name="Subject:w Subject:p">
2783
    <z:index name="Subject:w Subject:p Any:w Any:p">
2785
      <xslo:variable name="raw_heading">
2784
      <xslo:variable name="raw_heading">
2786
        <xslo:for-each select="marc:subfield">
2785
        <xslo:for-each select="marc:subfield">
2787
          <xslo:if test="position() &gt; 1">
2786
          <xslo:if test="position() &gt; 1">
Lines 2794-2800 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2794
    </z:index>
2793
    </z:index>
2795
  </xslo:template>
2794
  </xslo:template>
2796
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='604']">
2795
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='604']">
2797
    <z:index name="Subject:w Subject:p">
2796
    <z:index name="Subject:w Subject:p Any:w Any:p">
2798
      <xslo:variable name="raw_heading">
2797
      <xslo:variable name="raw_heading">
2799
        <xslo:for-each select="marc:subfield">
2798
        <xslo:for-each select="marc:subfield">
2800
          <xslo:if test="position() &gt; 1">
2799
          <xslo:if test="position() &gt; 1">
Lines 2807-2813 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2807
    </z:index>
2806
    </z:index>
2808
  </xslo:template>
2807
  </xslo:template>
2809
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='605']">
2808
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='605']">
2810
    <z:index name="Subject:w Subject:p">
2809
    <z:index name="Subject:w Subject:p Any:w Any:p">
2811
      <xslo:variable name="raw_heading">
2810
      <xslo:variable name="raw_heading">
2812
        <xslo:for-each select="marc:subfield">
2811
        <xslo:for-each select="marc:subfield">
2813
          <xslo:if test="position() &gt; 1">
2812
          <xslo:if test="position() &gt; 1">
Lines 2820-2826 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2820
    </z:index>
2819
    </z:index>
2821
  </xslo:template>
2820
  </xslo:template>
2822
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='606']">
2821
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='606']">
2823
    <z:index name="Subject:w Subject:p">
2822
    <z:index name="Subject:w Subject:p Any:w Any:p">
2824
      <xslo:variable name="raw_heading">
2823
      <xslo:variable name="raw_heading">
2825
        <xslo:for-each select="marc:subfield">
2824
        <xslo:for-each select="marc:subfield">
2826
          <xslo:if test="position() &gt; 1">
2825
          <xslo:if test="position() &gt; 1">
Lines 2833-2839 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2833
    </z:index>
2832
    </z:index>
2834
  </xslo:template>
2833
  </xslo:template>
2835
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='607']">
2834
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='607']">
2836
    <z:index name="Subject:w Subject:p">
2835
    <z:index name="Subject:w Subject:p Any:w Any:p">
2837
      <xslo:variable name="raw_heading">
2836
      <xslo:variable name="raw_heading">
2838
        <xslo:for-each select="marc:subfield">
2837
        <xslo:for-each select="marc:subfield">
2839
          <xslo:if test="position() &gt; 1">
2838
          <xslo:if test="position() &gt; 1">
Lines 2846-2852 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2846
    </z:index>
2845
    </z:index>
2847
  </xslo:template>
2846
  </xslo:template>
2848
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='608']">
2847
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='608']">
2849
    <z:index name="Subject:w Subject:p">
2848
    <z:index name="Subject:w Subject:p Any:w Any:p">
2850
      <xslo:variable name="raw_heading">
2849
      <xslo:variable name="raw_heading">
2851
        <xslo:for-each select="marc:subfield">
2850
        <xslo:for-each select="marc:subfield">
2852
          <xslo:if test="position() &gt; 1">
2851
          <xslo:if test="position() &gt; 1">
Lines 2859-2865 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2859
    </z:index>
2858
    </z:index>
2860
  </xslo:template>
2859
  </xslo:template>
2861
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2860
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='610']">
2862
    <z:index name="Subject:w Subject:p">
2861
    <z:index name="Subject:w Subject:p Any:w Any:p">
2863
      <xslo:variable name="raw_heading">
2862
      <xslo:variable name="raw_heading">
2864
        <xslo:for-each select="marc:subfield">
2863
        <xslo:for-each select="marc:subfield">
2865
          <xslo:if test="position() &gt; 1">
2864
          <xslo:if test="position() &gt; 1">
Lines 2872-2878 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2872
    </z:index>
2871
    </z:index>
2873
  </xslo:template>
2872
  </xslo:template>
2874
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='615']">
2873
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='615']">
2875
    <z:index name="Subject:w Subject:p">
2874
    <z:index name="Subject:w Subject:p Any:w Any:p">
2876
      <xslo:variable name="raw_heading">
2875
      <xslo:variable name="raw_heading">
2877
        <xslo:for-each select="marc:subfield">
2876
        <xslo:for-each select="marc:subfield">
2878
          <xslo:if test="position() &gt; 1">
2877
          <xslo:if test="position() &gt; 1">
Lines 2885-2891 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2885
    </z:index>
2884
    </z:index>
2886
  </xslo:template>
2885
  </xslo:template>
2887
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='616']">
2886
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='616']">
2888
    <z:index name="Subject:w Subject:p">
2887
    <z:index name="Subject:w Subject:p Any:w Any:p">
2889
      <xslo:variable name="raw_heading">
2888
      <xslo:variable name="raw_heading">
2890
        <xslo:for-each select="marc:subfield">
2889
        <xslo:for-each select="marc:subfield">
2891
          <xslo:if test="position() &gt; 1">
2890
          <xslo:if test="position() &gt; 1">
Lines 2898-2904 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2898
    </z:index>
2897
    </z:index>
2899
  </xslo:template>
2898
  </xslo:template>
2900
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='617']">
2899
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='617']">
2901
    <z:index name="Subject:w Subject:p">
2900
    <z:index name="Subject:w Subject:p Any:w Any:p">
2902
      <xslo:variable name="raw_heading">
2901
      <xslo:variable name="raw_heading">
2903
        <xslo:for-each select="marc:subfield">
2902
        <xslo:for-each select="marc:subfield">
2904
          <xslo:if test="position() &gt; 1">
2903
          <xslo:if test="position() &gt; 1">
Lines 2911-2917 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2911
    </z:index>
2910
    </z:index>
2912
  </xslo:template>
2911
  </xslo:template>
2913
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='620']">
2912
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='620']">
2914
    <z:index name="Subject:w Subject:p">
2913
    <z:index name="Subject:w Subject:p Any:w Any:p">
2915
      <xslo:variable name="raw_heading">
2914
      <xslo:variable name="raw_heading">
2916
        <xslo:for-each select="marc:subfield">
2915
        <xslo:for-each select="marc:subfield">
2917
          <xslo:if test="position() &gt; 1">
2916
          <xslo:if test="position() &gt; 1">
Lines 2924-2930 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2924
    </z:index>
2923
    </z:index>
2925
  </xslo:template>
2924
  </xslo:template>
2926
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='621']">
2925
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='621']">
2927
    <z:index name="Subject:w Subject:p">
2926
    <z:index name="Subject:w Subject:p Any:w Any:p">
2928
      <xslo:variable name="raw_heading">
2927
      <xslo:variable name="raw_heading">
2929
        <xslo:for-each select="marc:subfield">
2928
        <xslo:for-each select="marc:subfield">
2930
          <xslo:if test="position() &gt; 1">
2929
          <xslo:if test="position() &gt; 1">
Lines 2937-2943 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2937
    </z:index>
2936
    </z:index>
2938
  </xslo:template>
2937
  </xslo:template>
2939
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='603']">
2938
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='603']">
2940
    <z:index name="Subject:w Subject:p">
2939
    <z:index name="Subject:w Subject:p Any:w Any:p">
2941
      <xslo:variable name="raw_heading">
2940
      <xslo:variable name="raw_heading">
2942
        <xslo:for-each select="marc:subfield">
2941
        <xslo:for-each select="marc:subfield">
2943
          <xslo:if test="position() &gt; 1">
2942
          <xslo:if test="position() &gt; 1">
Lines 2950-2956 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2950
    </z:index>
2949
    </z:index>
2951
  </xslo:template>
2950
  </xslo:template>
2952
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2951
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='630']">
2953
    <z:index name="Subject:w Subject:p">
2952
    <z:index name="Subject:w Subject:p Any:w Any:p">
2954
      <xslo:variable name="raw_heading">
2953
      <xslo:variable name="raw_heading">
2955
        <xslo:for-each select="marc:subfield">
2954
        <xslo:for-each select="marc:subfield">
2956
          <xslo:if test="position() &gt; 1">
2955
          <xslo:if test="position() &gt; 1">
Lines 2963-2969 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2963
    </z:index>
2962
    </z:index>
2964
  </xslo:template>
2963
  </xslo:template>
2965
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='631']">
2964
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='631']">
2966
    <z:index name="Subject:w Subject:p">
2965
    <z:index name="Subject:w Subject:p Any:w Any:p">
2967
      <xslo:variable name="raw_heading">
2966
      <xslo:variable name="raw_heading">
2968
        <xslo:for-each select="marc:subfield">
2967
        <xslo:for-each select="marc:subfield">
2969
          <xslo:if test="position() &gt; 1">
2968
          <xslo:if test="position() &gt; 1">
Lines 2976-2982 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2976
    </z:index>
2975
    </z:index>
2977
  </xslo:template>
2976
  </xslo:template>
2978
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='632']">
2977
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='632']">
2979
    <z:index name="Subject:w Subject:p">
2978
    <z:index name="Subject:w Subject:p Any:w Any:p">
2980
      <xslo:variable name="raw_heading">
2979
      <xslo:variable name="raw_heading">
2981
        <xslo:for-each select="marc:subfield">
2980
        <xslo:for-each select="marc:subfield">
2982
          <xslo:if test="position() &gt; 1">
2981
          <xslo:if test="position() &gt; 1">
Lines 2989-2995 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2989
    </z:index>
2988
    </z:index>
2990
  </xslo:template>
2989
  </xslo:template>
2991
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='633']">
2990
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='633']">
2992
    <z:index name="Subject:w Subject:p">
2991
    <z:index name="Subject:w Subject:p Any:w Any:p">
2993
      <xslo:variable name="raw_heading">
2992
      <xslo:variable name="raw_heading">
2994
        <xslo:for-each select="marc:subfield">
2993
        <xslo:for-each select="marc:subfield">
2995
          <xslo:if test="position() &gt; 1">
2994
          <xslo:if test="position() &gt; 1">
Lines 3002-3008 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3002
    </z:index>
3001
    </z:index>
3003
  </xslo:template>
3002
  </xslo:template>
3004
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='634']">
3003
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='634']">
3005
    <z:index name="Subject:w Subject:p">
3004
    <z:index name="Subject:w Subject:p Any:w Any:p">
3006
      <xslo:variable name="raw_heading">
3005
      <xslo:variable name="raw_heading">
3007
        <xslo:for-each select="marc:subfield">
3006
        <xslo:for-each select="marc:subfield">
3008
          <xslo:if test="position() &gt; 1">
3007
          <xslo:if test="position() &gt; 1">
Lines 3015-3021 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3015
    </z:index>
3014
    </z:index>
3016
  </xslo:template>
3015
  </xslo:template>
3017
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='635']">
3016
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='635']">
3018
    <z:index name="Subject:w Subject:p">
3017
    <z:index name="Subject:w Subject:p Any:w Any:p">
3019
      <xslo:variable name="raw_heading">
3018
      <xslo:variable name="raw_heading">
3020
        <xslo:for-each select="marc:subfield">
3019
        <xslo:for-each select="marc:subfield">
3021
          <xslo:if test="position() &gt; 1">
3020
          <xslo:if test="position() &gt; 1">
Lines 3028-3034 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3028
    </z:index>
3027
    </z:index>
3029
  </xslo:template>
3028
  </xslo:template>
3030
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='636']">
3029
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='636']">
3031
    <z:index name="Subject:w Subject:p">
3030
    <z:index name="Subject:w Subject:p Any:w Any:p">
3032
      <xslo:variable name="raw_heading">
3031
      <xslo:variable name="raw_heading">
3033
        <xslo:for-each select="marc:subfield">
3032
        <xslo:for-each select="marc:subfield">
3034
          <xslo:if test="position() &gt; 1">
3033
          <xslo:if test="position() &gt; 1">
Lines 3041-3047 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3041
    </z:index>
3040
    </z:index>
3042
  </xslo:template>
3041
  </xslo:template>
3043
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='646']">
3042
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='646']">
3044
    <z:index name="Subject:w Subject:p">
3043
    <z:index name="Subject:w Subject:p Any:w Any:p">
3045
      <xslo:variable name="raw_heading">
3044
      <xslo:variable name="raw_heading">
3046
        <xslo:for-each select="marc:subfield">
3045
        <xslo:for-each select="marc:subfield">
3047
          <xslo:if test="position() &gt; 1">
3046
          <xslo:if test="position() &gt; 1">
Lines 3054-3060 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3054
    </z:index>
3053
    </z:index>
3055
  </xslo:template>
3054
  </xslo:template>
3056
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='670']">
3055
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='670']">
3057
    <z:index name="Subject-precis:w Subject-precis:p">
3056
    <z:index name="Subject-precis:w Subject-precis:p Any:w Any:p">
3058
      <xslo:variable name="raw_heading">
3057
      <xslo:variable name="raw_heading">
3059
        <xslo:for-each select="marc:subfield">
3058
        <xslo:for-each select="marc:subfield">
3060
          <xslo:if test="position() &gt; 1">
3059
          <xslo:if test="position() &gt; 1">
Lines 3067-3073 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3067
    </z:index>
3066
    </z:index>
3068
  </xslo:template>
3067
  </xslo:template>
3069
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='680']">
3068
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='680']">
3070
    <z:index name="LC-call-number:w LC-call-number:p">
3069
    <z:index name="LC-call-number:w LC-call-number:p Any:w Any:p">
3071
      <xslo:variable name="raw_heading">
3070
      <xslo:variable name="raw_heading">
3072
        <xslo:for-each select="marc:subfield">
3071
        <xslo:for-each select="marc:subfield">
3073
          <xslo:if test="position() &gt; 1">
3072
          <xslo:if test="position() &gt; 1">
Lines 3080-3086 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3080
    </z:index>
3079
    </z:index>
3081
  </xslo:template>
3080
  </xslo:template>
3082
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='686']">
3081
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='686']">
3083
    <z:index name="Local-classification:w Local-classification:p">
3082
    <z:index name="Local-classification:w Local-classification:p Any:w Any:p">
3084
      <xslo:variable name="raw_heading">
3083
      <xslo:variable name="raw_heading">
3085
        <xslo:for-each select="marc:subfield">
3084
        <xslo:for-each select="marc:subfield">
3086
          <xslo:if test="position() &gt; 1">
3085
          <xslo:if test="position() &gt; 1">
Lines 3093-3099 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3093
    </z:index>
3092
    </z:index>
3094
  </xslo:template>
3093
  </xslo:template>
3095
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='995']">
3094
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='995']">
3096
    <z:index name="item:w">
3095
    <z:index name="item:w Any:w Any:p">
3097
      <xslo:variable name="raw_heading">
3096
      <xslo:variable name="raw_heading">
3098
        <xslo:for-each select="marc:subfield">
3097
        <xslo:for-each select="marc:subfield">
3099
          <xslo:if test="position() &gt; 1">
3098
          <xslo:if test="position() &gt; 1">
Lines 3105-3115 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
3105
      <xslo:value-of select="normalize-space($raw_heading)"/>
3104
      <xslo:value-of select="normalize-space($raw_heading)"/>
3106
    </z:index>
3105
    </z:index>
3107
  </xslo:template>
3106
  </xslo:template>
3108
  <xslo:template mode="index_all" match="text()">
3109
    <z:index name="Any:w Any:p">
3110
      <xslo:value-of select="."/>
3111
    </z:index>
3112
  </xslo:template>
3113
  <xslo:template name="chopPunctuation">
3107
  <xslo:template name="chopPunctuation">
3114
    <xslo:param name="chopString"/>
3108
    <xslo:param name="chopString"/>
3115
    <xslo:variable name="length" select="string-length($chopString)"/>
3109
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl (-7 / +4 lines)
Lines 61-67 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
61
                    <xslo:apply-templates mode="index_heading_conditional"/>
61
                    <xslo:apply-templates mode="index_heading_conditional"/>
62
                    <xslo:apply-templates mode="index_match_heading"/>
62
                    <xslo:apply-templates mode="index_match_heading"/>
63
                    <xslo:apply-templates mode="index_subject_thesaurus"/>
63
                    <xslo:apply-templates mode="index_subject_thesaurus"/>
64
                    <xslo:apply-templates mode="index_all"/>
65
                </z:record>
64
                </z:record>
66
            </xslo:template>
65
            </xslo:template>
67
66
Lines 73-83 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
73
            <xsl:call-template name="handle-index-heading-conditional"/>
72
            <xsl:call-template name="handle-index-heading-conditional"/>
74
            <xsl:call-template name="handle-index-match-heading"/>
73
            <xsl:call-template name="handle-index-match-heading"/>
75
            <xsl:apply-templates/>
74
            <xsl:apply-templates/>
76
            <xslo:template mode="index_all" match="text()">
77
                <z:index name="Any:w Any:p">
78
                    <xslo:value-of select="."/>
79
                </z:index>
80
            </xslo:template>
81
            <xslo:template name="chopPunctuation">
75
            <xslo:template name="chopPunctuation">
82
            <xslo:param name="chopString"/>
76
            <xslo:param name="chopString"/>
83
                <xslo:variable name="length" select="string-length($chopString)"/>
77
                <xslo:variable name="length" select="string-length($chopString)"/>
Lines 257-262 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
257
        <xsl:variable name="length"><xsl:value-of select="@length"/></xsl:variable>
251
        <xsl:variable name="length"><xsl:value-of select="@length"/></xsl:variable>
258
        <xsl:variable name="indexes">
252
        <xsl:variable name="indexes">
259
            <xsl:call-template name="get-target-indexes"/>
253
            <xsl:call-template name="get-target-indexes"/>
254
            <xsl:text> Any:w Any:p</xsl:text>
260
        </xsl:variable>
255
        </xsl:variable>
261
            <xslo:for-each select="marc:subfield">
256
            <xslo:for-each select="marc:subfield">
262
                <xslo:if>
257
                <xslo:if>
Lines 320-325 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
320
    <xsl:template name="handle-one-data-field">
315
    <xsl:template name="handle-one-data-field">
321
        <xsl:variable name="indexes">
316
        <xsl:variable name="indexes">
322
            <xsl:call-template name="get-target-indexes"/>
317
            <xsl:call-template name="get-target-indexes"/>
318
            <xsl:text> Any:w Any:p</xsl:text>
323
        </xsl:variable>
319
        </xsl:variable>
324
        <z:index>
320
        <z:index>
325
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
321
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
Lines 353-358 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
353
    <xsl:template name="handle-one-index-heading">
349
    <xsl:template name="handle-one-index-heading">
354
        <xsl:variable name="indexes">
350
        <xsl:variable name="indexes">
355
            <xsl:call-template name="get-target-indexes"/>
351
            <xsl:call-template name="get-target-indexes"/>
352
            <xsl:text> Any:w Any:p</xsl:text>
356
        </xsl:variable>
353
        </xsl:variable>
357
        <z:index>
354
        <z:index>
358
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
355
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
Lines 406-411 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
406
    <xsl:template name="handle-one-index-match-heading">
403
    <xsl:template name="handle-one-index-match-heading">
407
        <xsl:variable name="indexes">
404
        <xsl:variable name="indexes">
408
            <xsl:call-template name="get-target-indexes"/>
405
            <xsl:call-template name="get-target-indexes"/>
406
            <xsl:text> Any:w Any:p</xsl:text>
409
        </xsl:variable>
407
        </xsl:variable>
410
        <z:index>
408
        <z:index>
411
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
409
            <xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute>
412
- 

Return to bug 11291