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

(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-35 / +99 lines)
Lines 158-169 Link Here
158
    <target_index>EAN:w</target_index>
158
    <target_index>EAN:w</target_index>
159
    <target_index>Identifier-standard:w</target_index>
159
    <target_index>Identifier-standard:w</target_index>
160
  </index_subfields>
160
  </index_subfields>
161
  <!--record.abs line 86: melm 200$b      itemtype:w,itemtype:p,itype:w,itype:p-->
161
  <!--record.abs melm 200$b      itemtype:w,itemtype:p,itype:w,itype:p,Material-type:w,Material-type:p-->
162
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="200" subfields="b">
162
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="200" subfields="b">
163
    <target_index>itemtype:w</target_index>
163
    <target_index>itemtype:w</target_index>
164
    <target_index>itemtype:p</target_index>
164
    <target_index>itemtype:p</target_index>
165
    <target_index>itype:w</target_index>
165
    <target_index>itype:w</target_index>
166
    <target_index>itype:p</target_index>
166
    <target_index>itype:p</target_index>
167
    <target_index>Material-type:w</target_index>
168
    <target_index>Material-type:p</target_index>
167
  </index_subfields>
169
  </index_subfields>
168
  <!--record.abs line 87: melm 995$r      itemtype:w,itemtype:p,itype:w,itype:p-->
170
  <!--record.abs line 87: melm 995$r      itemtype:w,itemtype:p,itype:w,itype:p-->
169
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="r">
171
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="r">
Lines 172-188 Link Here
172
    <target_index>itype:w</target_index>
174
    <target_index>itype:w</target_index>
173
    <target_index>itype:p</target_index>
175
    <target_index>itype:p</target_index>
174
  </index_subfields>
176
  </index_subfields>
175
  <!--record.abs line 48: melm 100$a      tpubdate:s:range(data,8,1),ta:w:range(data,17,1),ta:w:range(data,18,1),ta:w:range(data,19,1),Modified-code:n:range(data,21,1),ln:s:range(data,22,3),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2)-->
177
  <!--record.abs melm 100$a      tpubdate:s:range(data,8,1),ta:w:range(data,17,1),ta:w:range(data,18,1),ta:w:range(data,19,1),Modified-code:n:range(data,21,1),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2)-->
176
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a">
178
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="8" length="1">
177
    <target_index>tpubdate:s</target_index>
179
    <target_index>tpubdate:s</target_index>
180
  </index_subfields>
181
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="17" length="1">
178
    <target_index>ta:w</target_index>
182
    <target_index>ta:w</target_index>
183
  </index_subfields>
184
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="18" length="1">
179
    <target_index>ta:w</target_index>
185
    <target_index>ta:w</target_index>
186
  </index_subfields>
187
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="19" length="1">
180
    <target_index>ta:w</target_index>
188
    <target_index>ta:w</target_index>
189
  </index_subfields>
190
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="21" length="1">
181
    <target_index>Modified-code:n</target_index>
191
    <target_index>Modified-code:n</target_index>
182
    <target_index>ln:s</target_index>
192
  </index_subfields>
193
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="26" length="2">
183
    <target_index>char-encoding:n</target_index>
194
    <target_index>char-encoding:n</target_index>
195
  </index_subfields>
196
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="28" length="2">
184
    <target_index>char-encoding:n</target_index>
197
    <target_index>char-encoding:n</target_index>
198
  </index_subfields>
199
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="30" length="2">
185
    <target_index>char-encoding:n</target_index>
200
    <target_index>char-encoding:n</target_index>
201
  </index_subfields>
202
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="100" subfields="a" offset="34" length="2">
186
    <target_index>script-Title:n</target_index>
203
    <target_index>script-Title:n</target_index>
187
  </index_subfields>
204
  </index_subfields>
188
  <!--record.abs line 49: melm 101$a     ln-->
205
  <!--record.abs line 49: melm 101$a     ln-->
Lines 191-236 Link Here
191
  </index_subfields>
208
  </index_subfields>
192
  <!--record.abs line 50: melm 102$a     Country-heading-->
209
  <!--record.abs line 50: melm 102$a     Country-heading-->
193
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="102" subfields="a">
210
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="102" subfields="a">
194
    <target_index>Country-heading:w</target_index>
211
    <target_index>Country-publication:w</target_index>
195
  </index_subfields>
212
  </index_subfields>
196
  <!--record.abs line 60: melm 105$a     Illustration-code:w:range(data,0,4),Content-type:w:range(data,4,1),Content-type:w:range(data,5,1),Content-type:w:range(data,6,1),Content-type:w:range(data,7,1),Conference-code:w:range(data,8,1),Festschrift-indicator:w:range(data,9,1),Index-indicator:w:range(data,10,1),Literature-Code:w:range(data,11,1),Biography-Code:w:range(data,12,1)-->
213
  <!--record.abs melm 105$a ff8-18-21:w:range(data,0,1),ff8-18-21:w:range(data,1,1),ff8-18-21:w:range(data,2,1),ff8-18-21:w:range(data,3,1),ctype:w:range(data,4,1),ctype:w:range(data,5,1),ctype:w:range(data,6,1),ctype:w:range(data,7,1),ff8-29:w:range(data,8,1),ff8-30:w:range(data,9,1),ff8-31:w:range(data,10,1),lf:w:range(data,11,1),bio:w:range(data,12,1)-->
197
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a">
214
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="0" length="1">
198
    <target_index>Illustration-code:w</target_index>
215
    <target_index>ff8-18-21:w</target_index>
199
    <target_index>Content-type:w</target_index>
216
  </index_subfields>
200
    <target_index>Content-type:w</target_index>
217
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="1" length="1">
201
    <target_index>Content-type:w</target_index>
218
    <target_index>ff8-18-21:w</target_index>
202
    <target_index>Content-type:w</target_index>
219
  </index_subfields>
203
    <target_index>Conference-code:w</target_index>
220
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="2" length="1">
204
    <target_index>Festschrift-indicator:w</target_index>
221
    <target_index>ff8-18-21:w</target_index>
205
    <target_index>Index-indicator:w</target_index>
222
  </index_subfields>
206
    <target_index>Literature-Code:w</target_index>
223
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="3" length="1">
207
    <target_index>Biography-Code:w</target_index>
224
    <target_index>ff8-18-21:w</target_index>
208
  </index_subfields>
225
  </index_subfields>
209
  <!--record.abs line 62: melm 106$a     itype:w,itype:p-->
226
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="4" length="1">
227
    <target_index>ctype:w</target_index>
228
  </index_subfields>
229
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="5" length="1">
230
    <target_index>ctype:w</target_index>
231
  </index_subfields>
232
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="6" length="1">
233
    <target_index>ctype:w</target_index>
234
  </index_subfields>
235
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="7" length="1">
236
    <target_index>ctype:w</target_index>
237
  </index_subfields>
238
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="8" length="1">
239
    <target_index>ff8-29:w</target_index>
240
  </index_subfields>
241
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="9" length="1">
242
    <target_index>ff8-30:w</target_index>
243
  </index_subfields>
244
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="10" length="1">
245
    <target_index>ff8-31:w</target_index>
246
  </index_subfields>
247
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="11" length="1">
248
    <target_index>lf:w</target_index>
249
  </index_subfields>
250
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="105" subfields="a" offset="12" length="1">
251
    <target_index>bio:w</target_index>
252
  </index_subfields>
253
  <!--record.abs melm 106$a     ff8-23:w,ff8-23:p-->
210
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="106" subfields="a">
254
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="106" subfields="a">
211
    <target_index>itype:w</target_index>
255
    <target_index>ff8-23:w</target_index>
212
    <target_index>itype:p</target_index>
256
    <target_index>ff8-23:p</target_index>
257
  </index_subfields>
258
  <!--record.abs melm 110$a     ff8-21:w:range(data,0,1),ff8-18:w:range(data,1,1),ff8-19:w:range(data,2,1),ctype:w:range(data,3,1),ctype:w:range(data,4,3),ff8-29:w:range(data,7,1),Title-Page-availability-Code:w:range(data,8,1),ff8-31:w:range(data,9,1),Cumulative-Index-availability-Code:w:range(data,10,1)-->
259
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="0" length="1">
260
    <target_index>ff8-21:w</target_index>
261
  </index_subfields>
262
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="1" length="1">
263
    <target_index>ff8-18:w</target_index>
213
  </index_subfields>
264
  </index_subfields>
214
  <!--record.abs line 75: melm 110$a     Type-Of-Serial:w:range(data,0,1),Frequency-code:w:range(data,1,1),Regularity-code:w:range(data,2,1),Content-type:w:range(data,3,1),Content-type:w:range(data,4,3),Conference-publication-Code:w:range(data,7,1),Title-Page-availability-Code:w:range(data,8,1),Index-availability-Code:w:range(data,9,1),Cumulative-Index-availability-Code:w:range(data,10,1)-->
265
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="2" length="1">
215
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a">
266
    <target_index>ff8-19:w</target_index>
216
    <target_index>Type-Of-Serial:w</target_index>
267
  </index_subfields>
217
    <target_index>Frequency-code:w</target_index>
268
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="3" length="1">
218
    <target_index>Regularity-code:w</target_index>
269
    <target_index>ctype:w</target_index>
219
    <target_index>Content-type:w</target_index>
270
  </index_subfields>
220
    <target_index>Content-type:w</target_index>
271
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="4" length="1">
221
    <target_index>Conference-publication-Code:w</target_index>
272
    <target_index>ctype:w</target_index>
222
    <target_index>Title-Page-availability-Code:w</target_index>
273
  </index_subfields>
223
    <target_index>Index-availability-Code:w</target_index>
274
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="7" length="1">
224
    <target_index>Cumulative-Index-availability-Code:w</target_index>
275
    <target_index>ff8-29:w</target_index>
276
  </index_subfields>
277
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="8" length="1">
278
    <target_index>Title-page-availability:w</target_index>
279
  </index_subfields>
280
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="9" length="1">
281
    <target_index>ff8-31:w</target_index>
282
  </index_subfields>
283
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="110" subfields="a" offset="10" length="1">
284
    <target_index>Cumulative-index-availability:w</target_index>
225
  </index_subfields>
285
  </index_subfields>
226
  <!--record.abs line 77: melm 115$a     Video-mt:w:range(data,0,1)-->
286
  <!--record.abs line 77: melm 115$a     Video-mt:w:range(data,0,1)-->
227
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="115" subfields="a">
287
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="115" subfields="a" offset="0" length="1">
228
    <target_index>Video-mt:w</target_index>
288
    <target_index>Video-mt:w</target_index>
229
  </index_subfields>
289
  </index_subfields>
230
  <!--record.abs line 79: melm 116$a     Graphics-type:w:range(data,0,1),Graphics-support:w:range(data,1,1),Graphics-support:w:range(data,2,1),-->
290
  <!--record.abs line 79: melm 116$a     Graphics-type:w:range(data,0,1),Graphics-support:w:range(data,1,1),Graphics-support:w:range(data,2,1),-->
231
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="116" subfields="a">
291
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="116" subfields="a" offset="0" length="1">
232
    <target_index>Graphics-type:w</target_index>
292
    <target_index>Graphics-type:w</target_index>
293
  </index_subfields>
294
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="116" subfields="a" offset="1" length="1">
233
    <target_index>Graphics-support:w</target_index>
295
    <target_index>Graphics-support:w</target_index>
296
  </index_subfields>
297
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="116" subfields="a" offset="2" length="1">
234
    <target_index>Graphics-support:w</target_index>
298
    <target_index>Graphics-support:w</target_index>
235
  </index_subfields>
299
  </index_subfields>
236
  <!--record.abs line 92: melm 200$f		Author:w,Author:p-->
300
  <!--record.abs line 92: melm 200$f		Author:w,Author:p-->
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-13 / +222 lines)
Lines 305-311 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
305
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
305
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
306
    <xslo:for-each select="marc:subfield">
306
    <xslo:for-each select="marc:subfield">
307
      <xslo:if test="contains('b', @code)">
307
      <xslo:if test="contains('b', @code)">
308
        <z:index name="itemtype:w itemtype:p itype:w itype:p">
308
        <z:index name="itemtype:w itemtype:p itype:w itype:p Material-type:w Material-type:p">
309
          <xslo:value-of select="."/>
309
          <xslo:value-of select="."/>
310
        </z:index>
310
        </z:index>
311
      </xslo:if>
311
      </xslo:if>
Lines 456-463 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
456
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
456
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='100']">
457
    <xslo:for-each select="marc:subfield">
457
    <xslo:for-each select="marc:subfield">
458
      <xslo:if test="contains('a', @code)">
458
      <xslo:if test="contains('a', @code)">
459
        <z:index name="tpubdate:s ta:w ta:w ta:w Modified-code:n ln:s char-encoding:n char-encoding:n char-encoding:n script-Title:n">
459
        <z:index name="tpubdate:s">
460
          <xslo:value-of select="."/>
460
          <xslo:value-of select="substring(., 8, 1)"/>
461
        </z:index>
462
      </xslo:if>
463
    </xslo:for-each>
464
    <xslo:for-each select="marc:subfield">
465
      <xslo:if test="contains('a', @code)">
466
        <z:index name="ta:w">
467
          <xslo:value-of select="substring(., 17, 1)"/>
468
        </z:index>
469
      </xslo:if>
470
    </xslo:for-each>
471
    <xslo:for-each select="marc:subfield">
472
      <xslo:if test="contains('a', @code)">
473
        <z:index name="ta:w">
474
          <xslo:value-of select="substring(., 18, 1)"/>
475
        </z:index>
476
      </xslo:if>
477
    </xslo:for-each>
478
    <xslo:for-each select="marc:subfield">
479
      <xslo:if test="contains('a', @code)">
480
        <z:index name="ta:w">
481
          <xslo:value-of select="substring(., 19, 1)"/>
482
        </z:index>
483
      </xslo:if>
484
    </xslo:for-each>
485
    <xslo:for-each select="marc:subfield">
486
      <xslo:if test="contains('a', @code)">
487
        <z:index name="Modified-code:n">
488
          <xslo:value-of select="substring(., 21, 1)"/>
489
        </z:index>
490
      </xslo:if>
491
    </xslo:for-each>
492
    <xslo:for-each select="marc:subfield">
493
      <xslo:if test="contains('a', @code)">
494
        <z:index name="char-encoding:n">
495
          <xslo:value-of select="substring(., 26, 2)"/>
496
        </z:index>
497
      </xslo:if>
498
    </xslo:for-each>
499
    <xslo:for-each select="marc:subfield">
500
      <xslo:if test="contains('a', @code)">
501
        <z:index name="char-encoding:n">
502
          <xslo:value-of select="substring(., 28, 2)"/>
503
        </z:index>
504
      </xslo:if>
505
    </xslo:for-each>
506
    <xslo:for-each select="marc:subfield">
507
      <xslo:if test="contains('a', @code)">
508
        <z:index name="char-encoding:n">
509
          <xslo:value-of select="substring(., 30, 2)"/>
510
        </z:index>
511
      </xslo:if>
512
    </xslo:for-each>
513
    <xslo:for-each select="marc:subfield">
514
      <xslo:if test="contains('a', @code)">
515
        <z:index name="script-Title:n">
516
          <xslo:value-of select="substring(., 34, 2)"/>
461
        </z:index>
517
        </z:index>
462
      </xslo:if>
518
      </xslo:if>
463
    </xslo:for-each>
519
    </xslo:for-each>
Lines 474-480 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
474
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='102']">
530
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='102']">
475
    <xslo:for-each select="marc:subfield">
531
    <xslo:for-each select="marc:subfield">
476
      <xslo:if test="contains('a', @code)">
532
      <xslo:if test="contains('a', @code)">
477
        <z:index name="Country-heading:w">
533
        <z:index name="Country-publication:w">
478
          <xslo:value-of select="."/>
534
          <xslo:value-of select="."/>
479
        </z:index>
535
        </z:index>
480
      </xslo:if>
536
      </xslo:if>
Lines 483-490 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
483
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='105']">
539
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='105']">
484
    <xslo:for-each select="marc:subfield">
540
    <xslo:for-each select="marc:subfield">
485
      <xslo:if test="contains('a', @code)">
541
      <xslo:if test="contains('a', @code)">
486
        <z:index name="Illustration-code:w Content-type:w Content-type:w Content-type:w Content-type:w Conference-code:w Festschrift-indicator:w Index-indicator:w Literature-Code:w Biography-Code:w">
542
        <z:index name="ff8-18-21:w">
487
          <xslo:value-of select="."/>
543
          <xslo:value-of select="substring(., 0, 1)"/>
544
        </z:index>
545
      </xslo:if>
546
    </xslo:for-each>
547
    <xslo:for-each select="marc:subfield">
548
      <xslo:if test="contains('a', @code)">
549
        <z:index name="ff8-18-21:w">
550
          <xslo:value-of select="substring(., 1, 1)"/>
551
        </z:index>
552
      </xslo:if>
553
    </xslo:for-each>
554
    <xslo:for-each select="marc:subfield">
555
      <xslo:if test="contains('a', @code)">
556
        <z:index name="ff8-18-21:w">
557
          <xslo:value-of select="substring(., 2, 1)"/>
558
        </z:index>
559
      </xslo:if>
560
    </xslo:for-each>
561
    <xslo:for-each select="marc:subfield">
562
      <xslo:if test="contains('a', @code)">
563
        <z:index name="ff8-18-21:w">
564
          <xslo:value-of select="substring(., 3, 1)"/>
565
        </z:index>
566
      </xslo:if>
567
    </xslo:for-each>
568
    <xslo:for-each select="marc:subfield">
569
      <xslo:if test="contains('a', @code)">
570
        <z:index name="ctype:w">
571
          <xslo:value-of select="substring(., 4, 1)"/>
572
        </z:index>
573
      </xslo:if>
574
    </xslo:for-each>
575
    <xslo:for-each select="marc:subfield">
576
      <xslo:if test="contains('a', @code)">
577
        <z:index name="ctype:w">
578
          <xslo:value-of select="substring(., 5, 1)"/>
579
        </z:index>
580
      </xslo:if>
581
    </xslo:for-each>
582
    <xslo:for-each select="marc:subfield">
583
      <xslo:if test="contains('a', @code)">
584
        <z:index name="ctype:w">
585
          <xslo:value-of select="substring(., 6, 1)"/>
586
        </z:index>
587
      </xslo:if>
588
    </xslo:for-each>
589
    <xslo:for-each select="marc:subfield">
590
      <xslo:if test="contains('a', @code)">
591
        <z:index name="ctype:w">
592
          <xslo:value-of select="substring(., 7, 1)"/>
593
        </z:index>
594
      </xslo:if>
595
    </xslo:for-each>
596
    <xslo:for-each select="marc:subfield">
597
      <xslo:if test="contains('a', @code)">
598
        <z:index name="ff8-29:w">
599
          <xslo:value-of select="substring(., 8, 1)"/>
600
        </z:index>
601
      </xslo:if>
602
    </xslo:for-each>
603
    <xslo:for-each select="marc:subfield">
604
      <xslo:if test="contains('a', @code)">
605
        <z:index name="ff8-30:w">
606
          <xslo:value-of select="substring(., 9, 1)"/>
607
        </z:index>
608
      </xslo:if>
609
    </xslo:for-each>
610
    <xslo:for-each select="marc:subfield">
611
      <xslo:if test="contains('a', @code)">
612
        <z:index name="ff8-31:w">
613
          <xslo:value-of select="substring(., 10, 1)"/>
614
        </z:index>
615
      </xslo:if>
616
    </xslo:for-each>
617
    <xslo:for-each select="marc:subfield">
618
      <xslo:if test="contains('a', @code)">
619
        <z:index name="lf:w">
620
          <xslo:value-of select="substring(., 11, 1)"/>
621
        </z:index>
622
      </xslo:if>
623
    </xslo:for-each>
624
    <xslo:for-each select="marc:subfield">
625
      <xslo:if test="contains('a', @code)">
626
        <z:index name="bio:w">
627
          <xslo:value-of select="substring(., 12, 1)"/>
488
        </z:index>
628
        </z:index>
489
      </xslo:if>
629
      </xslo:if>
490
    </xslo:for-each>
630
    </xslo:for-each>
Lines 492-498 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
492
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']">
632
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='106']">
493
    <xslo:for-each select="marc:subfield">
633
    <xslo:for-each select="marc:subfield">
494
      <xslo:if test="contains('a', @code)">
634
      <xslo:if test="contains('a', @code)">
495
        <z:index name="itype:w itype:p">
635
        <z:index name="ff8-23:w iff8-23:p">
496
          <xslo:value-of select="."/>
636
          <xslo:value-of select="."/>
497
        </z:index>
637
        </z:index>
498
      </xslo:if>
638
      </xslo:if>
Lines 501-508 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
501
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
641
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='110']">
502
    <xslo:for-each select="marc:subfield">
642
    <xslo:for-each select="marc:subfield">
503
      <xslo:if test="contains('a', @code)">
643
      <xslo:if test="contains('a', @code)">
504
        <z:index name="Type-Of-Serial:w Frequency-code:w Regularity-code:w Content-type:w Content-type:w Conference-publication-Code:w Title-Page-availability-Code:w Index-availability-Code:w Cumulative-Index-availability-Code:w">
644
        <z:index name="ff8-21:w">
505
          <xslo:value-of select="."/>
645
          <xslo:value-of select="substring(., 0, 1)"/>
646
        </z:index>
647
      </xslo:if>
648
    </xslo:for-each>
649
    <xslo:for-each select="marc:subfield">
650
      <xslo:if test="contains('a', @code)">
651
        <z:index name="ff8-18:w">
652
          <xslo:value-of select="substring(., 1, 1)"/>
653
        </z:index>
654
      </xslo:if>
655
    </xslo:for-each>
656
    <xslo:for-each select="marc:subfield">
657
      <xslo:if test="contains('a', @code)">
658
        <z:index name="ff8-19:w">
659
          <xslo:value-of select="substring(., 2, 1)"/>
660
        </z:index>
661
      </xslo:if>
662
    </xslo:for-each>
663
    <xslo:for-each select="marc:subfield">
664
      <xslo:if test="contains('a', @code)">
665
        <z:index name="ctype:w">
666
          <xslo:value-of select="substring(., 3, 1)"/>
667
        </z:index>
668
      </xslo:if>
669
    </xslo:for-each>
670
    <xslo:for-each select="marc:subfield">
671
      <xslo:if test="contains('a', @code)">
672
        <z:index name="ctype:w">
673
          <xslo:value-of select="substring(., 4, 1)"/>
674
        </z:index>
675
      </xslo:if>
676
    </xslo:for-each>
677
    <xslo:for-each select="marc:subfield">
678
      <xslo:if test="contains('a', @code)">
679
        <z:index name="ff8-29:w">
680
          <xslo:value-of select="substring(., 7, 1)"/>
681
        </z:index>
682
      </xslo:if>
683
    </xslo:for-each>
684
    <xslo:for-each select="marc:subfield">
685
      <xslo:if test="contains('a', @code)">
686
        <z:index name="Title-page-availability:w">
687
          <xslo:value-of select="substring(., 8, 1)"/>
688
        </z:index>
689
      </xslo:if>
690
    </xslo:for-each>
691
    <xslo:for-each select="marc:subfield">
692
      <xslo:if test="contains('a', @code)">
693
        <z:index name="ff8-31:w">
694
          <xslo:value-of select="substring(., 9, 1)"/>
695
        </z:index>
696
      </xslo:if>
697
    </xslo:for-each>
698
    <xslo:for-each select="marc:subfield">
699
      <xslo:if test="contains('a', @code)">
700
        <z:index name="Cumulative-index-availability:w">
701
          <xslo:value-of select="substring(., 10, 1)"/>
506
        </z:index>
702
        </z:index>
507
      </xslo:if>
703
      </xslo:if>
508
    </xslo:for-each>
704
    </xslo:for-each>
Lines 511-517 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
511
    <xslo:for-each select="marc:subfield">
707
    <xslo:for-each select="marc:subfield">
512
      <xslo:if test="contains('a', @code)">
708
      <xslo:if test="contains('a', @code)">
513
        <z:index name="Video-mt:w">
709
        <z:index name="Video-mt:w">
514
          <xslo:value-of select="."/>
710
          <xslo:value-of select="substring(., 0, 1)"/>
515
        </z:index>
711
        </z:index>
516
      </xslo:if>
712
      </xslo:if>
517
    </xslo:for-each>
713
    </xslo:for-each>
Lines 519-526 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
519
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='116']">
715
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='116']">
520
    <xslo:for-each select="marc:subfield">
716
    <xslo:for-each select="marc:subfield">
521
      <xslo:if test="contains('a', @code)">
717
      <xslo:if test="contains('a', @code)">
522
        <z:index name="Graphics-type:w Graphics-support:w Graphics-support:w">
718
        <z:index name="Graphics-type:w">
523
          <xslo:value-of select="."/>
719
          <xslo:value-of select="substring(., 0, 1)"/>
720
        </z:index>
721
      </xslo:if>
722
    </xslo:for-each>
723
    <xslo:for-each select="marc:subfield">
724
      <xslo:if test="contains('a', @code)">
725
        <z:index name="Graphics-support:w">
726
          <xslo:value-of select="substring(., 1, 1)"/>
727
        </z:index>
728
      </xslo:if>
729
    </xslo:for-each>
730
    <xslo:for-each select="marc:subfield">
731
      <xslo:if test="contains('a', @code)">
732
        <z:index name="Graphics-support:w">
733
          <xslo:value-of select="substring(., 2, 1)"/>
524
        </z:index>
734
        </z:index>
525
      </xslo:if>
735
      </xslo:if>
526
    </xslo:for-each>
736
    </xslo:for-each>
527
- 

Return to bug 8252