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

(-)a/C4/Search.pm (+12 lines)
Lines 964-969 sub getIndexes { Link Here
964
        'bio',
964
        'bio',
965
        'biography',
965
        'biography',
966
        'callnum',
966
        'callnum',
967
        'Carrier-type-code',
968
        'catc',
969
        'Carrier-type-term',
970
        'catt',
971
        'Content-type-code',
972
        'cotc',
973
        'Content-type-term',
974
        'cott',
967
        'cfn',
975
        'cfn',
968
        'Chronological-subdivision',
976
        'Chronological-subdivision',
969
        'cn-bib-source',
977
        'cn-bib-source',
Lines 1046-1051 sub getIndexes { Link Here
1046
        'Material-type',
1054
        'Material-type',
1047
        'mc-itemtype',
1055
        'mc-itemtype',
1048
        'mc-rtype',
1056
        'mc-rtype',
1057
        'Media-type-code',
1058
        'metc',
1059
        'Media-type-term',
1060
        'mett',
1049
        'mus',
1061
        'mus',
1050
        'Multipart-resource-level',
1062
        'Multipart-resource-level',
1051
        'mrl',
1063
        'mrl',
(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (+6 lines)
Lines 82-87 our %index_field_convert = ( Link Here
82
    'nt'                      => 'note',
82
    'nt'                      => 'note',
83
    'notes'                   => 'note',
83
    'notes'                   => 'note',
84
    'rcn'                     => 'record-control-number',
84
    'rcn'                     => 'record-control-number',
85
    'catc'                    => 'carrier-type-code',
86
    'catt'                    => 'carrier-type-term',
87
    'cotc'                    => 'content-type-code',
88
    'cott'                    => 'content-type-term',
89
    'metc'                    => 'media-type-code',
90
    'mett'                    => 'media-type-term',
85
    'cni'                     => 'control-number-identifier',
91
    'cni'                     => 'control-number-identifier',
86
    'cnum'                    => 'control-number',
92
    'cnum'                    => 'control-number',
87
    'su'                      => 'subject',
93
    'su'                      => 'subject',
(-)a/etc/zebradb/biblios/etc/bib1.att (+6 lines)
Lines 232-237 att 9011 Suppress Link Here
232
att 9012    Identifier-other
232
att 9012    Identifier-other
233
att 9013    not-onloan-count
233
att 9013    not-onloan-count
234
att 9014    Control-number-identifier
234
att 9014    Control-number-identifier
235
att 9016    Carrier-type-code
236
att 9017    Carrier-type-term
237
att 9018    Content-type-code
238
att 9019    Content-type-term
239
att 9020    Media-type-code
240
att 9021    Media-type-term
235
241
236
# Items Index
242
# Items Index
237
att 8001    withdrawn
243
att 8001    withdrawn
(-)a/etc/zebradb/ccl.properties (+13 lines)
Lines 1008-1013 not-onloan-count 1=9013 4=109 Link Here
1008
Control-number-identifier 1=9014
1008
Control-number-identifier 1=9014
1009
cni Control-number-identifier
1009
cni Control-number-identifier
1010
1010
1011
Carrier-type-term 1=9016
1012
catt Carrier-type-term
1013
Carrier-type-code 1=9017
1014
catc Carrier-type-code
1015
Content-type-term 1=9018
1016
cott Content-type-term
1017
Content-type-code 1=9019
1018
cotc Content-type-code
1019
Media-type-term 1=9020
1020
mett Media-type-term
1021
Media-type-code 1=9021
1022
metc Media-type-code
1023
1011
###
1024
###
1012
# Items Index
1025
# Items Index
1013
withdrawn 1=8001
1026
withdrawn 1=8001
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+21 lines)
Lines 485-490 Link Here
485
    <target_index>Extent:w</target_index>
485
    <target_index>Extent:w</target_index>
486
    <target_index>Extent:p</target_index>
486
    <target_index>Extent:p</target_index>
487
  </index_data_field>
487
  </index_data_field>
488
  <index_subfields tag="336" subfields="a">
489
    <target_index>Content-type-term:w</target_index>
490
    <target_index>Content-type-term:s</target_index>
491
  </index_subfields>
492
  <index_subfields tag="336" subfields="b">
493
    <target_index>Content-type-code:w</target_index>
494
    <target_index>Content-type-code:s</target_index>
495
  </index_subfields>
496
  <index_subfields tag="337" subfields="a">
497
    <target_index>Media-type-term:w</target_index>
498
    <target_index>Media-type-term:s</target_index>
499
  </index_subfields>
500
  <index_subfields tag="337" subfields="b">
501
    <target_index>Media-type-code:w</target_index>
502
  </index_subfields>
503
  <index_subfields tag="338" subfields="a">
504
    <target_index>Carrier-type-term:w</target_index>
505
  </index_subfields>
506
  <index_subfields tag="338" subfields="b">
507
    <target_index>Carrier-type-code:w</target_index>
508
  </index_subfields>
488
  <!--record.abs line 124: melm 400$a      Name-and-title-->
509
  <!--record.abs line 124: melm 400$a      Name-and-title-->
489
  <index_subfields tag="400" subfields="a">
510
  <index_subfields tag="400" subfields="a">
490
    <target_index>Name-and-title:w</target_index>
511
    <target_index>Name-and-title:w</target_index>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-1 / +48 lines)
Lines 403-408 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
403
      </xslo:if>
403
      </xslo:if>
404
    </xslo:for-each>
404
    </xslo:for-each>
405
  </xslo:template>
405
  </xslo:template>
406
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='336']">
407
    <xslo:for-each select="marc:subfield">
408
      <xslo:if test="contains('a', @code)">
409
        <z:index name="Content-type-term:w Content-type-term:s">
410
          <xslo:value-of select="."/>
411
        </z:index>
412
      </xslo:if>
413
    </xslo:for-each>
414
    <xslo:for-each select="marc:subfield">
415
      <xslo:if test="contains('b', @code)">
416
        <z:index name="Content-type-code:w Content-type-code:s">
417
          <xslo:value-of select="."/>
418
        </z:index>
419
      </xslo:if>
420
    </xslo:for-each>
421
  </xslo:template>
422
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='337']">
423
    <xslo:for-each select="marc:subfield">
424
      <xslo:if test="contains('a', @code)">
425
        <z:index name="Media-type-term:w Media-type-term:s">
426
          <xslo:value-of select="."/>
427
        </z:index>
428
      </xslo:if>
429
    </xslo:for-each>
430
    <xslo:for-each select="marc:subfield">
431
      <xslo:if test="contains('b', @code)">
432
        <z:index name="Media-type-code:w">
433
          <xslo:value-of select="."/>
434
        </z:index>
435
      </xslo:if>
436
    </xslo:for-each>
437
  </xslo:template>
438
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='338']">
439
    <xslo:for-each select="marc:subfield">
440
      <xslo:if test="contains('a', @code)">
441
        <z:index name="Carrier-type-term:w">
442
          <xslo:value-of select="."/>
443
        </z:index>
444
      </xslo:if>
445
    </xslo:for-each>
446
    <xslo:for-each select="marc:subfield">
447
      <xslo:if test="contains('b', @code)">
448
        <z:index name="Carrier-type-code:w">
449
          <xslo:value-of select="."/>
450
        </z:index>
451
      </xslo:if>
452
    </xslo:for-each>
453
  </xslo:template>
406
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
454
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']">
407
    <xslo:for-each select="marc:subfield">
455
    <xslo:for-each select="marc:subfield">
408
      <xslo:if test="contains('a', @code)">
456
      <xslo:if test="contains('a', @code)">
409
- 

Return to bug 32488