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

(-)a/C4/Koha.pm (+10 lines)
Lines 395-400 sub getFacets { Link Here
395
                idx  => 'location',
395
                idx  => 'location',
396
                label => 'Location',
396
                label => 'Location',
397
                tags        => [ qw/ 995e / ],
397
                tags        => [ qw/ 995e / ],
398
            },
399
            {
400
                idx => 'ccode',
401
                label => 'CollectionCodes',
402
                tags => [ qw / 099t 955h / ],
398
            }
403
            }
399
            ];
404
            ];
400
405
Lines 477-482 sub getFacets { Link Here
477
                label => 'Location',
482
                label => 'Location',
478
                tags => [ qw / 952c / ],
483
                tags => [ qw / 952c / ],
479
            },
484
            },
485
            {
486
                idx => 'ccode',
487
                label => 'CollectionCodes',
488
                tags => [ qw / 9528 / ],
489
            }
480
            ];
490
            ];
481
491
482
            unless ( Koha::Libraries->search->count == 1 )
492
            unless ( Koha::Libraries->search->count == 1 )
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 1413-1417 Link Here
1413
  <facet tag="952" subfields="y">
1413
  <facet tag="952" subfields="y">
1414
    <target_index>itype:0</target_index>
1414
    <target_index>itype:0</target_index>
1415
  </facet>
1415
  </facet>
1416
  <facet tag="952" subfields="8">
1417
    <target_index>ccode:0</target_index>
1418
  </facet>
1416
1419
1417
</kohaidx:index_defs>
1420
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 1012-1016 Link Here
1012
  <facet tag="952" subfields="y">
1012
  <facet tag="952" subfields="y">
1013
    <target_index>itype:0</target_index>
1013
    <target_index>itype:0</target_index>
1014
  </facet>
1014
  </facet>
1015
  <facet tag="952" subfields="8">
1016
    <target_index>ccode:0</target_index>
1017
  </facet>
1015
1018
1016
</kohaidx:index_defs>
1019
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-2 / +6 lines)
Lines 1443-1453 Link Here
1443
    <target_index>totalissues:n</target_index>
1443
    <target_index>totalissues:n</target_index>
1444
    <target_index>totalissues:s</target_index>
1444
    <target_index>totalissues:s</target_index>
1445
  </index_subfields>
1445
  </index_subfields>
1446
1447
  <index_subfields tag="999" subfields="x">
1446
  <index_subfields tag="999" subfields="x">
1448
    <target_index>not-onloan-count:n</target_index>
1447
    <target_index>not-onloan-count:n</target_index>
1449
  </index_subfields>
1448
  </index_subfields>
1450
1449
  <facet tag="099" subfields="t">
1450
    <target_index>ccode:0</target_index>
1451
  </facet>
1451
  <facet tag="225" subfields="a">
1452
  <facet tag="225" subfields="a">
1452
    <target_index>se:0</target_index>
1453
    <target_index>se:0</target_index>
1453
  </facet>
1454
  </facet>
Lines 1502-1506 Link Here
1502
  <facet tag="995" subfields="e">
1503
  <facet tag="995" subfields="e">
1503
    <target_index>location:0</target_index>
1504
    <target_index>location:0</target_index>
1504
  </facet>
1505
  </facet>
1506
  <facet tag="995" subfields="h">
1507
    <target_index>ccode:0</target_index>
1508
  </facet>
1505
1509
1506
</kohaidx:index_defs>
1510
</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