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

(-)a/C4/Search.pm (+3 lines)
Lines 1198-1203 sub getIndexes{ Link Here
1198
                    'popularity',
1198
                    'popularity',
1199
                    'pubdate',
1199
                    'pubdate',
1200
                    'Publisher',
1200
                    'Publisher',
1201
                    'Provider',
1202
                    'Provider-place',
1203
                    'Provider-date',
1201
                    'Record-control-number',
1204
                    'Record-control-number',
1202
                    'rcn',
1205
                    'rcn',
1203
                    'Record-type',
1206
                    'Record-type',
(-)a/etc/zebradb/biblios/etc/bib1.att (+3 lines)
Lines 205-210 att 1221 Subject-occupation Link Here
205
att 1222    Subject-function
205
att 1222    Subject-function
206
att 1223    Edition
206
att 1223    Edition
207
att 1224    GPO-Item-Number
207
att 1224    GPO-Item-Number
208
att 1225    Provider
208
209
209
# Koha Local-Use Biblio Indexes
210
# Koha Local-Use Biblio Indexes
210
att 9001    Control-number
211
att 9001    Control-number
Lines 219-224 att 9009 cn-prefix Link Here
219
att 9010    cn-suffix
220
att 9010    cn-suffix
220
att 9011    Suppress
221
att 9011    Suppress
221
att 9012    Identifier-other
222
att 9012    Identifier-other
223
att 9014    Provider-place
224
att 9015    Provider-date
222
225
223
# Items Index
226
# Items Index
224
att 8001    withdrawn
227
att 8001    withdrawn
(-)a/etc/zebradb/ccl.properties (+9 lines)
Lines 578-583 Personal-name-seealso 1=Personal-name-seealso Link Here
578
Publisher 1=1018
578
Publisher 1=1018
579
pb Publisher
579
pb Publisher
580
580
581
#Provider             1225  A generic, single index         257$a2
582
#                           combining place, publisher,     260$abcdefg3
583
#                           and date. To avoid searching    264$abc3
584
#                           multiple indexes for            270$abcd
585
#                           publication/production info.
586
Provider 1=1225
587
Provider-place 1=9014
588
Provider-date 1=9015
589
581
#Note                   63  A concise statement in which    5XX
590
#Note                   63  A concise statement in which    5XX
582
#                           such information as extended
591
#                           such information as extended
583
#                           physical description,
592
#                           physical description,
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (-1 / +31 lines)
Lines 416-436 Link Here
416
  <index_subfields tag="260" subfields="a">
416
  <index_subfields tag="260" subfields="a">
417
    <target_index>pl:w</target_index>
417
    <target_index>pl:w</target_index>
418
    <target_index>pl:p</target_index>
418
    <target_index>pl:p</target_index>
419
    <target_index>Provider-place:w</target_index>
420
    <target_index>Provider-place:p</target_index>
419
  </index_subfields>
421
  </index_subfields>
420
  <!--record.abs line 120: melm 260$b      Publisher:w,Publisher:p-->
422
  <!--record.abs line 120: melm 260$b      Publisher:w,Publisher:p-->
421
  <index_subfields tag="260" subfields="b">
423
  <index_subfields tag="260" subfields="b">
422
    <target_index>Publisher:w</target_index>
424
    <target_index>Publisher:w</target_index>
423
    <target_index>Publisher:p</target_index>
425
    <target_index>Publisher:p</target_index>
426
    <target_index>Provider:w</target_index>
427
    <target_index>Provider:p</target_index>
424
  </index_subfields>
428
  </index_subfields>
425
  <!--record.abs line 121: melm 260$c      copydate,copydate:s-->
429
  <!--record.abs line 121: melm 260$c      copydate,copydate:s-->
426
  <index_subfields tag="260" subfields="c">
430
  <index_subfields tag="260" subfields="c">
427
    <target_index>copydate:w</target_index>
431
    <target_index>copydate:w</target_index>
428
    <target_index>copydate:s</target_index>
432
    <target_index>copydate:s</target_index>
433
    <target_index>Provider-date:w</target_index>
434
    <target_index>Provider-date:s</target_index>
429
  </index_subfields>
435
  </index_subfields>
430
  <!--record.abs line 122: melm 260        pl-->
436
  <!--record.abs line 122: melm 260        pl-->
431
  <index_data_field tag="260">
437
  <index_data_field tag="260">
432
    <target_index>pl:w</target_index>
438
    <target_index>pl:w</target_index>
433
  </index_data_field>
439
    <target_index>Provider:w</target_index>
440
  </index_data_field>
441
   <!--Index for RDA 264 field-->
442
   <index_subfields tag="264" subfields="a">
443
     <target_index>pl:w</target_index>
444
     <target_index>pl:p</target_index>
445
     <target_index>Provider-place:w</target_index>
446
     <target_index>Provider-place:p</target_index>
447
   </index_subfields>
448
   <index_subfields tag="264" subfields="b">
449
     <target_index>Publisher:w</target_index>
450
     <target_index>Publisher:p</target_index>
451
     <target_index>Provider:w</target_index>
452
     <target_index>Provider:p</target_index>
453
   </index_subfields>
454
   <index_subfields tag="264" subfields="c">
455
     <target_index>copydate:w</target_index>
456
     <target_index>copydate:s</target_index>
457
     <target_index>Provider-date:w</target_index>
458
     <target_index>Provider-date:s</target_index>
459
   </index_subfields>
460
   <index_data_field tag="264">
461
     <target_index>pl:w</target_index>
462
     <target_index>Provider:w</target_index>
463
   </index_data_field>
434
  <!--record.abs line 123: melm 300        Extent:w,Extent:p-->
464
  <!--record.abs line 123: melm 300        Extent:w,Extent:p-->
435
  <index_data_field tag="300">
465
  <index_data_field tag="300">
436
    <target_index>Extent:w</target_index>
466
    <target_index>Extent:w</target_index>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-5 / +40 lines)
Lines 320-340 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
320
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
320
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='260']">
321
    <xslo:for-each select="marc:subfield">
321
    <xslo:for-each select="marc:subfield">
322
      <xslo:if test="contains('a', @code)">
322
      <xslo:if test="contains('a', @code)">
323
        <z:index name="pl:w pl:p">
323
        <z:index name="pl:w pl:p Provider-place:w Provider-place:p">
324
          <xslo:value-of select="."/>
324
          <xslo:value-of select="."/>
325
        </z:index>
325
        </z:index>
326
      </xslo:if>
326
      </xslo:if>
327
    </xslo:for-each>
327
    </xslo:for-each>
328
    <xslo:for-each select="marc:subfield">
328
    <xslo:for-each select="marc:subfield">
329
      <xslo:if test="contains('b', @code)">
329
      <xslo:if test="contains('b', @code)">
330
        <z:index name="Publisher:w Publisher:p">
330
        <z:index name="Publisher:w Publisher:p Provider:w Provider:p">
331
          <xslo:value-of select="."/>
331
          <xslo:value-of select="."/>
332
        </z:index>
332
        </z:index>
333
      </xslo:if>
333
      </xslo:if>
334
    </xslo:for-each>
334
    </xslo:for-each>
335
    <xslo:for-each select="marc:subfield">
335
    <xslo:for-each select="marc:subfield">
336
      <xslo:if test="contains('c', @code)">
336
      <xslo:if test="contains('c', @code)">
337
        <z:index name="copydate:w copydate:s">
337
        <z:index name="copydate:w copydate:s Provider-date:w Provider-date:s">
338
          <xslo:value-of select="."/>
339
        </z:index>
340
      </xslo:if>
341
    </xslo:for-each>
342
  </xslo:template>
343
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='264']">
344
    <xslo:for-each select="marc:subfield">
345
      <xslo:if test="contains('a', @code)">
346
        <z:index name="pl:w pl:p Provider-place:w Provider-place:p">
347
          <xslo:value-of select="."/>
348
        </z:index>
349
      </xslo:if>
350
    </xslo:for-each>
351
    <xslo:for-each select="marc:subfield">
352
      <xslo:if test="contains('b', @code)">
353
        <z:index name="Publisher:w Publisher:p Provider:w Provider:p">
354
          <xslo:value-of select="."/>
355
        </z:index>
356
      </xslo:if>
357
    </xslo:for-each>
358
    <xslo:for-each select="marc:subfield">
359
      <xslo:if test="contains('c', @code)">
360
        <z:index name="copydate:w copydate:s Provider-date:w Provider-date:s">
338
          <xslo:value-of select="."/>
361
          <xslo:value-of select="."/>
339
        </z:index>
362
        </z:index>
340
      </xslo:if>
363
      </xslo:if>
Lines 1840-1846 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1840
    </z:index>
1863
    </z:index>
1841
  </xslo:template>
1864
  </xslo:template>
1842
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1865
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='260']">
1843
    <z:index name="pl:w">
1866
    <z:index name="pl:w Provider:w">
1867
      <xslo:variable name="raw_heading">
1868
        <xslo:for-each select="marc:subfield">
1869
          <xslo:if test="position() &gt; 1">
1870
            <xslo:value-of select="substring(' ', 1, 1)"/>
1871
          </xslo:if>
1872
          <xslo:value-of select="."/>
1873
        </xslo:for-each>
1874
      </xslo:variable>
1875
      <xslo:value-of select="normalize-space($raw_heading)"/>
1876
    </z:index>
1877
  </xslo:template>
1878
  <xslo:template mode="index_data_field" match="marc:datafield[@tag='264']">
1879
    <z:index name="pl:w Provider:w">
1844
      <xslo:variable name="raw_heading">
1880
      <xslo:variable name="raw_heading">
1845
        <xslo:for-each select="marc:subfield">
1881
        <xslo:for-each select="marc:subfield">
1846
          <xslo:if test="position() &gt; 1">
1882
          <xslo:if test="position() &gt; 1">
1847
- 

Return to bug 14198