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

(-)a/C4/Koha.pm (-1 / +7 lines)
Lines 367-372 sub getFacets { Link Here
367
                tags  => [qw/ 225a /],
367
                tags  => [qw/ 225a /],
368
                sep   => ', ',
368
                sep   => ', ',
369
            },
369
            },
370
            {
371
                idx   => 'itype',
372
                label => 'Item types',
373
                tags  => [qw/ 995r 099t /],
374
                sep   => ', ',
375
            },
370
            {
376
            {
371
                idx   => 'location',
377
                idx   => 'location',
372
                label => 'Location',
378
                label => 'Location',
Lines 375-381 sub getFacets { Link Here
375
            {
381
            {
376
                idx   => 'ccode',
382
                idx   => 'ccode',
377
                label => 'Collections',
383
                label => 'Collections',
378
                tags  => [qw / 099t 955h /],
384
                tags  => [qw / 995h /],
379
            }
385
            }
380
        ];
386
        ];
381
387
(-)a/admin/searchengine/elasticsearch/mappings.yaml (-2 / +12 lines)
Lines 1351-1357 biblios: Link Here
1351
      sort: 1
1351
      sort: 1
1352
      suggestible: ''
1352
      suggestible: ''
1353
    - facet: 1
1353
    - facet: 1
1354
      marc_field: '9958'
1354
      marc_field: '995h'
1355
      marc_type: unimarc
1355
      marc_type: unimarc
1356
      sort: 1
1356
      sort: 1
1357
      suggestible: ''
1357
      suggestible: ''
Lines 2255-2260 biblios: Link Here
2255
      marc_type: marc21
2255
      marc_type: marc21
2256
      sort: 1
2256
      sort: 1
2257
      suggestible: ''
2257
      suggestible: ''
2258
    - facet: ''
2259
      marc_field: 099t
2260
      marc_type: unimarc
2261
      sort: 1
2262
      suggestible: ''
2258
    opac: 1
2263
    opac: 1
2259
    staff_client: 1
2264
    staff_client: 1
2260
    type: ''
2265
    type: ''
Lines 2274-2280 biblios: Link Here
2274
      sort: 1
2279
      sort: 1
2275
      suggestible: ''
2280
      suggestible: ''
2276
    - facet: 1
2281
    - facet: 1
2277
      marc_field: 200b
2282
      marc_field: 099t
2278
      marc_type: unimarc
2283
      marc_type: unimarc
2279
      sort: 1
2284
      sort: 1
2280
      suggestible: ''
2285
      suggestible: ''
Lines 4403-4408 biblios: Link Here
4403
      marc_type: marc21
4408
      marc_type: marc21
4404
      sort: 1
4409
      sort: 1
4405
      suggestible: ''
4410
      suggestible: ''
4411
    - facet: ''
4412
      marc_field: '099x'
4413
      marc_type: unimarc
4414
      sort: 1
4415
      suggestible: ''
4406
    opac: 1
4416
    opac: 1
4407
    staff_client: 1
4417
    staff_client: 1
4408
    type: ''
4418
    type: ''
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-21 / +17 lines)
Lines 39-47 Link Here
39
    <target_index>Date/time-last-modified:n</target_index>
39
    <target_index>Date/time-last-modified:n</target_index>
40
    <target_index>Date/time-last-modified:y</target_index>
40
    <target_index>Date/time-last-modified:y</target_index>
41
  </index_subfields>
41
  </index_subfields>
42
  <!--record.abs line 30: melm 099$t      ccode:w-->
42
  <!--099$x : totalissues-->
43
  <index_subfields tag="099" subfields="x">
44
    <target_index>totalissues:n</target_index>
45
    <target_index>totalissues:s</target_index>
46
  </index_subfields>
47
  <!--099$t : itemtype-->
43
  <index_subfields tag="099" subfields="t">
48
  <index_subfields tag="099" subfields="t">
44
    <target_index>ccode:w</target_index>
49
    <target_index>itemtype:w</target_index>
50
    <target_index>itemtype:p</target_index>
51
    <target_index>itype:w</target_index>
52
    <target_index>itype:p</target_index>
45
  </index_subfields>
53
  </index_subfields>
46
  <!--010 : ISBN-->
54
  <!--010 : ISBN-->
47
  <index_subfields tag="010" subfields="az">
55
  <index_subfields tag="010" subfields="az">
Lines 103-117 Link Here
103
    <target_index>EAN:w</target_index>
111
    <target_index>EAN:w</target_index>
104
    <target_index>Identifier-standard:w</target_index>
112
    <target_index>Identifier-standard:w</target_index>
105
  </index_subfields>
113
  </index_subfields>
106
  <!--record.abs melm 200$b      itemtype:w,itemtype:p,itype:w,itype:p,Material-type:w,Material-type:p-->
107
  <index_subfields tag="200" subfields="b">
108
    <target_index>itemtype:w</target_index>
109
    <target_index>itemtype:p</target_index>
110
    <target_index>itype:w</target_index>
111
    <target_index>itype:p</target_index>
112
    <target_index>Material-type:w</target_index>
113
    <target_index>Material-type:p</target_index>
114
  </index_subfields>
115
  <!--record.abs line 87: melm 995$r      itemtype:w,itemtype:p,itype:w,itype:p-->
114
  <!--record.abs line 87: melm 995$r      itemtype:w,itemtype:p,itype:w,itype:p-->
116
  <index_subfields tag="995" subfields="r">
115
  <index_subfields tag="995" subfields="r">
117
    <target_index>itemtype:w</target_index>
116
    <target_index>itemtype:w</target_index>
Lines 1441-1457 Link Here
1441
  <index_data_field tag="995">
1440
  <index_data_field tag="995">
1442
    <target_index>item:w</target_index>
1441
    <target_index>item:w</target_index>
1443
  </index_data_field>
1442
  </index_data_field>
1444
  <!--942$0      totalissues:n,totalissues:s-->
1445
  <index_subfields tag="942" subfields="0">
1446
    <target_index>totalissues:n</target_index>
1447
    <target_index>totalissues:s</target_index>
1448
  </index_subfields>
1449
  <index_subfields tag="999" subfields="x">
1443
  <index_subfields tag="999" subfields="x">
1450
    <target_index>not-onloan-count:n</target_index>
1444
    <target_index>not-onloan-count:n</target_index>
1451
  </index_subfields>
1445
  </index_subfields>
1452
  <facet tag="099" subfields="t">
1453
    <target_index>ccode:0</target_index>
1454
  </facet>
1455
  <facet tag="225" subfields="a">
1446
  <facet tag="225" subfields="a">
1456
    <target_index>se:0</target_index>
1447
    <target_index>se:0</target_index>
1457
  </facet>
1448
  </facet>
Lines 1488-1493 Link Here
1488
  <facet tag="702" subfields="ab">
1479
  <facet tag="702" subfields="ab">
1489
    <target_index>au:0</target_index>
1480
    <target_index>au:0</target_index>
1490
  </facet>
1481
  </facet>
1482
  <facet tag="099" subfields="t">
1483
    <target_index>itype:0</target_index>
1484
  </facet>
1491
  <facet tag="995" subfields="b">
1485
  <facet tag="995" subfields="b">
1492
    <target_index>homebranch:0</target_index>
1486
    <target_index>homebranch:0</target_index>
1493
  </facet>
1487
  </facet>
Lines 1500-1504 Link Here
1500
  <facet tag="995" subfields="h">
1494
  <facet tag="995" subfields="h">
1501
    <target_index>ccode:0</target_index>
1495
    <target_index>ccode:0</target_index>
1502
  </facet>
1496
  </facet>
1503
1497
  <facet tag="995" subfields="r">
1504
</kohaidx:index_defs>
1498
    <target_index>itype:0</target_index>
1499
  </facet>
1500
  </kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-47 / +41 lines)
Lines 87-95 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
87
        </z:index>
87
        </z:index>
88
      </xslo:if>
88
      </xslo:if>
89
    </xslo:for-each>
89
    </xslo:for-each>
90
    <xslo:for-each select="marc:subfield">
91
      <xslo:if test="contains('x', @code)">
92
        <z:index name="totalissues:n totalissues:s">
93
          <xslo:value-of select="."/>
94
        </z:index>
95
      </xslo:if>
96
    </xslo:for-each>
90
    <xslo:for-each select="marc:subfield">
97
    <xslo:for-each select="marc:subfield">
91
      <xslo:if test="contains('t', @code)">
98
      <xslo:if test="contains('t', @code)">
92
        <z:index name="ccode:w">
99
        <z:index name="itemtype:w itemtype:p itype:w itype:p">
93
          <xslo:value-of select="."/>
100
          <xslo:value-of select="."/>
94
        </z:index>
101
        </z:index>
95
      </xslo:if>
102
      </xslo:if>
Lines 217-252 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
217
      </xslo:if>
224
      </xslo:if>
218
    </xslo:for-each>
225
    </xslo:for-each>
219
  </xslo:template>
226
  </xslo:template>
220
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
221
    <xslo:for-each select="marc:subfield">
222
      <xslo:if test="contains('b', @code)">
223
        <z:index name="itemtype:w itemtype:p itype:w itype:p Material-type:w Material-type:p">
224
          <xslo:value-of select="."/>
225
        </z:index>
226
      </xslo:if>
227
    </xslo:for-each>
228
    <xslo:for-each select="marc:subfield">
229
      <xslo:if test="contains('fg', @code)">
230
        <z:index name="Author:w Author:p">
231
          <xslo:value-of select="."/>
232
        </z:index>
233
      </xslo:if>
234
    </xslo:for-each>
235
    <xslo:for-each select="marc:subfield">
236
      <xslo:if test="contains('aei', @code)">
237
        <z:index name="Title:w Title:p Title:s Title-cover:w Title-cover:p Title-cover:s">
238
          <xslo:value-of select="."/>
239
        </z:index>
240
      </xslo:if>
241
    </xslo:for-each>
242
    <xslo:for-each select="marc:subfield">
243
      <xslo:if test="contains('cd', @code)">
244
        <z:index name="Title:w Title:p">
245
          <xslo:value-of select="."/>
246
        </z:index>
247
      </xslo:if>
248
    </xslo:for-each>
249
  </xslo:template>
250
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
227
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='995']">
251
    <xslo:for-each select="marc:subfield">
228
    <xslo:for-each select="marc:subfield">
252
      <xslo:if test="contains('r', @code)">
229
      <xslo:if test="contains('r', @code)">
Lines 643-648 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
643
      </xslo:if>
620
      </xslo:if>
644
    </xslo:for-each>
621
    </xslo:for-each>
645
  </xslo:template>
622
  </xslo:template>
623
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='200']">
624
    <xslo:for-each select="marc:subfield">
625
      <xslo:if test="contains('fg', @code)">
626
        <z:index name="Author:w Author:p">
627
          <xslo:value-of select="."/>
628
        </z:index>
629
      </xslo:if>
630
    </xslo:for-each>
631
    <xslo:for-each select="marc:subfield">
632
      <xslo:if test="contains('aei', @code)">
633
        <z:index name="Title:w Title:p Title:s Title-cover:w Title-cover:p Title-cover:s">
634
          <xslo:value-of select="."/>
635
        </z:index>
636
      </xslo:if>
637
    </xslo:for-each>
638
    <xslo:for-each select="marc:subfield">
639
      <xslo:if test="contains('cd', @code)">
640
        <z:index name="Title:w Title:p">
641
          <xslo:value-of select="."/>
642
        </z:index>
643
      </xslo:if>
644
    </xslo:for-each>
645
  </xslo:template>
646
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
646
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']">
647
    <xslo:for-each select="marc:subfield">
647
    <xslo:for-each select="marc:subfield">
648
      <xslo:if test="contains('3', @code)">
648
      <xslo:if test="contains('3', @code)">
Lines 1874-1888 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1874
      </xslo:if>
1874
      </xslo:if>
1875
    </xslo:for-each>
1875
    </xslo:for-each>
1876
  </xslo:template>
1876
  </xslo:template>
1877
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']">
1878
    <xslo:for-each select="marc:subfield">
1879
      <xslo:if test="contains('0', @code)">
1880
        <z:index name="totalissues:n totalissues:s">
1881
          <xslo:value-of select="."/>
1882
        </z:index>
1883
      </xslo:if>
1884
    </xslo:for-each>
1885
  </xslo:template>
1886
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1877
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='999']">
1887
    <xslo:for-each select="marc:subfield">
1878
    <xslo:for-each select="marc:subfield">
1888
      <xslo:if test="contains('x', @code)">
1879
      <xslo:if test="contains('x', @code)">
Lines 2542-2554 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2542
      <xslo:value-of select="normalize-space($raw_heading)"/>
2533
      <xslo:value-of select="normalize-space($raw_heading)"/>
2543
    </z:index>
2534
    </z:index>
2544
  </xslo:template>
2535
  </xslo:template>
2545
  <xslo:template mode="index_facets" match="marc:datafield[@tag='099']">
2546
    <xslo:if test="not(@ind1='z')">
2547
      <z:index name="ccode:0">
2548
        <xslo:value-of select="marc:subfield[@code='t']"/>
2549
      </z:index>
2550
    </xslo:if>
2551
  </xslo:template>
2552
  <xslo:template mode="index_facets" match="marc:datafield[@tag='225']">
2536
  <xslo:template mode="index_facets" match="marc:datafield[@tag='225']">
2553
    <xslo:if test="not(@ind1='z')">
2537
    <xslo:if test="not(@ind1='z')">
2554
      <z:index name="se:0">
2538
      <z:index name="se:0">
Lines 2661-2666 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2661
      </z:index>
2645
      </z:index>
2662
    </xslo:if>
2646
    </xslo:if>
2663
  </xslo:template>
2647
  </xslo:template>
2648
  <xslo:template mode="index_facets" match="marc:datafield[@tag='099']">
2649
    <xslo:if test="not(@ind1='z')">
2650
      <z:index name="itype:0">
2651
        <xslo:value-of select="marc:subfield[@code='t']"/>
2652
      </z:index>
2653
    </xslo:if>
2654
  </xslo:template>
2664
  <xslo:template mode="index_facets" match="marc:datafield[@tag='995']">
2655
  <xslo:template mode="index_facets" match="marc:datafield[@tag='995']">
2665
    <xslo:if test="not(@ind1='z')">
2656
    <xslo:if test="not(@ind1='z')">
2666
      <z:index name="homebranch:0">
2657
      <z:index name="homebranch:0">
Lines 2675-2680 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2675
      <z:index name="ccode:0">
2666
      <z:index name="ccode:0">
2676
        <xslo:value-of select="marc:subfield[@code='h']"/>
2667
        <xslo:value-of select="marc:subfield[@code='h']"/>
2677
      </z:index>
2668
      </z:index>
2669
      <z:index name="itype:0">
2670
        <xslo:value-of select="marc:subfield[@code='r']"/>
2671
      </z:index>
2678
    </xslo:if>
2672
    </xslo:if>
2679
  </xslo:template>
2673
  </xslo:template>
2680
  <xslo:template mode="index_all" match="text()">
2674
  <xslo:template mode="index_all" match="text()">
(-)a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml (-70 / +16 lines)
Lines 423-432 tables: Link Here
423
      multiline: []
423
      multiline: []
424
      rows:
424
      rows:
425
        - tagfield: "099"
425
        - tagfield: "099"
426
          liblibrarian: "local dates"
426
          liblibrarian: "ADDED ENTRY ELEMENTS (KOHA)"
427
          libopac: ""
427
          libopac: "ADDED ENTRY ELEMENTS (KOHA)"
428
          repeatable: 0
428
          repeatable: 0
429
          mandatory: 0
429
          mandatory: 1
430
          authorised_value:
430
          authorised_value:
431
          frameworkcode: ""
431
          frameworkcode: ""
432
432
Lines 472-479 tables: Link Here
472
472
473
        - tagfield: "099"
473
        - tagfield: "099"
474
          tagsubfield: "s"
474
          tagsubfield: "s"
475
          liblibrarian: "Serial"
475
          liblibrarian: "Serial record flag"
476
          libopac: "Serial"
476
          libopac: "Serial record flag"
477
          repeatable: 0
477
          repeatable: 0
478
          mandatory: 0
478
          mandatory: 0
479
          kohafield: biblio.serial
479
          kohafield: biblio.serial
Lines 481-488 tables: Link Here
481
          authorised_value:
481
          authorised_value:
482
          authtypecode: ""
482
          authtypecode: ""
483
          value_builder: ""
483
          value_builder: ""
484
          isurl: 0
484
          isurl:
485
          hidden: 7
485
          hidden: -5
486
          frameworkcode: ""
486
          frameworkcode: ""
487
          seealso: ""
487
          seealso: ""
488
          link: ""
488
          link: ""
Lines 496-505 tables: Link Here
496
          mandatory: 1
496
          mandatory: 1
497
          kohafield: biblioitems.itemtype
497
          kohafield: biblioitems.itemtype
498
          tab: 0
498
          tab: 0
499
          authorised_value: TYPEDOC
499
          authorised_value: itemtypes
500
          authtypecode: ""
500
          authtypecode: ""
501
          value_builder: ""
501
          value_builder: ""
502
          isurl: 0
502
          isurl:
503
          hidden: 0
503
          hidden: 0
504
          frameworkcode: ""
504
          frameworkcode: ""
505
          seealso: ""
505
          seealso: ""
Lines 508-515 tables: Link Here
508
508
509
        - tagfield: "099"
509
        - tagfield: "099"
510
          tagsubfield: "x"
510
          tagsubfield: "x"
511
          liblibrarian: "Number of issues"
511
          liblibrarian: "Koha issues (borrowed), all copies"
512
          libopac: "Number of issues"
512
          libopac: "Koha issues (borrowed), all copies"
513
          repeatable: 0
513
          repeatable: 0
514
          mandatory: 0
514
          mandatory: 0
515
          kohafield: biblioitems.totalissues
515
          kohafield: biblioitems.totalissues
Lines 517-536 tables: Link Here
517
          authorised_value:
517
          authorised_value:
518
          authtypecode: ""
518
          authtypecode: ""
519
          value_builder: ""
519
          value_builder: ""
520
          isurl: 0
520
          isurl:
521
          hidden: 6
521
          hidden: -5
522
          frameworkcode: ""
522
          frameworkcode: ""
523
          seealso: ""
523
          seealso: ""
524
          link: ""
524
          link: ""
525
          defaultvalue: ""
525
          defaultvalue:
526
526
527
  - marc_tag_structure:
527
  - marc_tag_structure:
528
      translatable: [ liblibrarian, libopac ]
528
      translatable: [ liblibrarian, libopac ]
529
      multiline: []
529
      multiline: []
530
      rows:
530
      rows:
531
        - tagfield: "942"
531
        - tagfield: "942"
532
          liblibrarian: "ADDED ENTRY ELEMENTS (KOHA)"
532
          liblibrarian: "OTHER ADDED ENTRY ELEMENTS (KOHA)"
533
          libopac: "ADDED ENTRY ELEMENTS (KOHA)"
533
          libopac: "OTHER ADDED ENTRY ELEMENTS (KOHA)"
534
          repeatable: 0
534
          repeatable: 0
535
          mandatory: 0
535
          mandatory: 0
536
          authorised_value:
536
          authorised_value:
Lines 540-563 tables: Link Here
540
      translatable: [ liblibrarian, libopac ]
540
      translatable: [ liblibrarian, libopac ]
541
      multiline: []
541
      multiline: []
542
      rows:
542
      rows:
543
        - tagfield: "942"
544
          tagsubfield: "0"
545
          liblibrarian: "Koha issues (borrowed), all copies"
546
          libopac: "Koha issues (borrowed), all copies"
547
          repeatable: 0
548
          mandatory: 0
549
          kohafield: biblioitems.totalissues
550
          tab: 9
551
          authorised_value:
552
          authtypecode: ""
553
          value_builder: ""
554
          isurl: 
555
          hidden: -5
556
          frameworkcode: ""
557
          seealso: ""
558
          link: ""
559
          defaultvalue: 
560
561
        - tagfield: "942"
543
        - tagfield: "942"
562
          tagsubfield: "2"
544
          tagsubfield: "2"
563
          liblibrarian: "Source of classification or shelving scheme"
545
          liblibrarian: "Source of classification or shelving scheme"
Lines 594-635 tables: Link Here
594
          link: ""
576
          link: ""
595
          defaultvalue: 
577
          defaultvalue: 
596
578
597
        - tagfield: "942"
598
          tagsubfield: "c"
599
          liblibrarian: "Koha item type"
600
          libopac: "Koha item type"
601
          repeatable: 0
602
          mandatory: 1
603
          kohafield: biblioitems.itemtype
604
          tab: 9
605
          authorised_value: itemtypes
606
          authtypecode: ""
607
          value_builder: ""
608
          isurl: 
609
          hidden: 0
610
          frameworkcode: ""
611
          seealso: ""
612
          link: ""
613
          defaultvalue: 
614
615
        - tagfield: "942"
616
          tagsubfield: "s"
617
          liblibrarian: "Serial record"
618
          libopac: "Serial record"
619
          repeatable: 0
620
          mandatory: 0
621
          kohafield: biblio.serial
622
          tab: 9
623
          authorised_value:
624
          authtypecode: ""
625
          value_builder: ""
626
          isurl: 
627
          hidden: -5
628
          frameworkcode: ""
629
          seealso: ""
630
          link: ""
631
          defaultvalue: 
632
633
  - marc_tag_structure:
579
  - marc_tag_structure:
634
      translatable: [ liblibrarian, libopac ]
580
      translatable: [ liblibrarian, libopac ]
635
      multiline: []
581
      multiline: []
(-)a/installer/data/mysql/mandatory/auth_val_cat.sql (-2 lines)
Lines 57-63 INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES Link Here
57
    ('ETAT'),
57
    ('ETAT'),
58
    ('CAND'),
58
    ('CAND'),
59
    ('COUNTRY'),
59
    ('COUNTRY'),
60
    ('TYPEDOC'),
61
    ('qualif');
60
    ('qualif');
62
61
63
-- For Housebound
62
-- For Housebound
64
- 

Return to bug 38336