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

(-)a/C4/Koha.pm (+10 lines)
Lines 520-525 sub getFacets { Link Here
520
                idx  => 'location',
520
                idx  => 'location',
521
                label => 'Location',
521
                label => 'Location',
522
                tags        => [ qw/ 995e / ],
522
                tags        => [ qw/ 995e / ],
523
            },
524
            {
525
                idx => 'ccode',
526
                label => 'CollectionCodes',
527
                tags => [ qw / 099t 955h / ],
523
            }
528
            }
524
            ];
529
            ];
525
530
Lines 602-607 sub getFacets { Link Here
602
                label => 'Location',
607
                label => 'Location',
603
                tags => [ qw / 952c / ],
608
                tags => [ qw / 952c / ],
604
            },
609
            },
610
            {
611
                idx => 'ccode',
612
                label => 'CollectionCodes',
613
                tags => [ qw / 9528 / ],
614
            }
605
            ];
615
            ];
606
616
607
            unless ( Koha::Libraries->search->count == 1 )
617
            unless ( Koha::Libraries->search->count == 1 )
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 1409-1413 Link Here
1409
  <facet tag="952" subfields="y">
1409
  <facet tag="952" subfields="y">
1410
    <target_index>itype:0</target_index>
1410
    <target_index>itype:0</target_index>
1411
  </facet>
1411
  </facet>
1412
  <facet tag="952" subfields="8">
1413
    <target_index>ccode:0</target_index>
1414
  </facet>
1412
1415
1413
</kohaidx:index_defs>
1416
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 1008-1012 Link Here
1008
  <facet tag="952" subfields="y">
1008
  <facet tag="952" subfields="y">
1009
    <target_index>itype:0</target_index>
1009
    <target_index>itype:0</target_index>
1010
  </facet>
1010
  </facet>
1011
  <facet tag="952" subfields="8">
1012
    <target_index>ccode:0</target_index>
1013
  </facet>
1011
1014
1012
</kohaidx:index_defs>
1015
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (+6 lines)
Lines 1444-1449 Link Here
1444
    <target_index>totalissues:s</target_index>
1444
    <target_index>totalissues:s</target_index>
1445
  </index_subfields>
1445
  </index_subfields>
1446
1446
1447
  <facet tag="099" subfields="t">
1448
    <target_index>ccode:0</target_index>
1449
  </facet>
1447
  <facet tag="225" subfields="a">
1450
  <facet tag="225" subfields="a">
1448
    <target_index>se:0</target_index>
1451
    <target_index>se:0</target_index>
1449
  </facet>
1452
  </facet>
Lines 1498-1502 Link Here
1498
  <facet tag="995" subfields="e">
1501
  <facet tag="995" subfields="e">
1499
    <target_index>location:0</target_index>
1502
    <target_index>location:0</target_index>
1500
  </facet>
1503
  </facet>
1504
  <facet tag="995" subfields="h">
1505
    <target_index>ccode:0</target_index>
1506
  </facet>
1501
1507
1502
</kohaidx:index_defs>
1508
</kohaidx:index_defs>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc (-1 / +1 lines)
Lines 21-27 Link Here
21
[% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
21
[% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
22
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
22
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
23
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %]
23
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %]
24
[% IF facets_loo.type_label_CollectionCodes %]<span id="facet-locations">Collections</span>[% END %]
24
[% IF facets_loo.type_label_CollectionCodes %]<span id="facet-collections">Collections</span>[% END %]
25
<ul>
25
<ul>
26
  [% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
26
  [% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
27
  [% IF ( sort_by ) %]
27
  [% IF ( sort_by ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc (-4 / +3 lines)
Lines 25-34 Link Here
25
                        [% IF facets_loo.type_label_Places %]<h5 id="facet-places">Places</h5>[% END %]
25
                        [% IF facets_loo.type_label_Places %]<h5 id="facet-places">Places</h5>[% END %]
26
                        [% IF facets_loo.type_label_Series %]<h5 id="facet-series">Series</h5>[% END %]
26
                        [% IF facets_loo.type_label_Series %]<h5 id="facet-series">Series</h5>[% END %]
27
                        [% IF facets_loo.type_label_ItemTypes %]<h5 id="facet-itemtypes">Item types</h5>[% END %]
27
                        [% IF facets_loo.type_label_ItemTypes %]<h5 id="facet-itemtypes">Item types</h5>[% END %]
28
                        [% IF facets_loo.type_label_CollectionCodes %]<h5 id="facet-itemtypes">Collections</h5>[% END %]
28
                        [% IF facets_loo.type_label_CollectionCodes %]<h5 id="facet-collections">Collections</h5>[% END %]
29
                        [% UNLESS singleBranchMode %]
29
                        [% UNLESS singleBranchMode %]
30
                            [% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
30
                            [% IF ( facets_loo.type_label_HomeLibrary ) %]<h5 id="facet-home-libraries">Home libraries</h5>[% END %]
31
                            [% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
31
                            [% IF ( facets_loo.type_label_HoldingLibrary ) %]<h5 id="facet-holding-libraries">Holding libraries</h5>[% END %]
32
                        [% END %]
32
                        [% END %]
33
                        [% IF facets_loo.type_label_Location %]<h5 id="facet-locations">Locations</h5>[% END %]
33
                        [% IF facets_loo.type_label_Location %]<h5 id="facet-locations">Locations</h5>[% END %]
34
                        <ul>
34
                        <ul>
35
- 

Return to bug 18322