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

(-)a/C4/Koha.pm (+5 lines)
Lines 602-607 sub getFacets { Link Here
602
                label => 'Location',
602
                label => 'Location',
603
                tags => [ qw / 952c / ],
603
                tags => [ qw / 952c / ],
604
            },
604
            },
605
            {
606
                idx => 'ccode',
607
                label => 'CollectionCodes',
608
                tags => [ qw / 9528 / ],
609
            }
605
            ];
610
            ];
606
611
607
            unless ( Koha::Libraries->search->count == 1 )
612
            unless ( Koha::Libraries->search->count == 1 )
(-)a/C4/Search.pm (-1 / +1 lines)
Lines 583-589 sub getRecords { Link Here
583
                                    my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $one_facet });
583
                                    my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $one_facet });
584
                                    $facet_label_value = $av->count ? $av->next->opac_description : '';
584
                                    $facet_label_value = $av->count ? $av->next->opac_description : '';
585
                                }
585
                                }
586
586
                
587
                # but we're down with the whole label being in the link's title.
587
                # but we're down with the whole label being in the link's title.
588
                                push @this_facets_array,
588
                                push @this_facets_array,
589
                                  {
589
                                  {
(-)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