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

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (+1 lines)
Lines 118-123 sub build_query { Link Here
118
        location => { terms => { field => "location__facet" } },
118
        location => { terms => { field => "location__facet" } },
119
        'su-geo' => { terms => { field => "su-geo__facet" } },
119
        'su-geo' => { terms => { field => "su-geo__facet" } },
120
        se       => { terms => { field => "se__facet" } },
120
        se       => { terms => { field => "se__facet" } },
121
        ccode    => { terms => { field => "ccode__facet" } },
121
    };
122
    };
122
123
123
    my $display_library_facets = C4::Context->preference('DisplayLibraryFacets');
124
    my $display_library_facets = C4::Context->preference('DisplayLibraryFacets');
(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-1 / +1 lines)
Lines 146-152 sub search_compat { Link Here
146
        $servers,  $results_per_page, $offset,       $expanded_facet,
146
        $servers,  $results_per_page, $offset,       $expanded_facet,
147
        $branches, $query_type,       $scan
147
        $branches, $query_type,       $scan
148
    ) = @_;
148
    ) = @_;
149
150
    my %options;
149
    my %options;
151
    $options{offset} = $offset;
150
    $options{offset} = $offset;
152
    $options{expanded_facet} = $expanded_facet;
151
    $options{expanded_facet} = $expanded_facet;
Lines 408-413 sub _convert_facets { Link Here
408
        'su-geo' => { order => 4, label => 'Places', },
407
        'su-geo' => { order => 4, label => 'Places', },
409
        se       => { order => 5, label => 'Series', },
408
        se       => { order => 5, label => 'Series', },
410
        subject  => { order => 6, label => 'Topics', },
409
        subject  => { order => 6, label => 'Topics', },
410
        ccode    => { order => 7, label => 'CollectionCodes',},
411
        holdingbranch => { order => 8, label => 'HoldingLibrary' },
411
        holdingbranch => { order => 8, label => 'HoldingLibrary' },
412
        homebranch => { order => 9, label => 'HomeLibrary' }
412
        homebranch => { order => 9, label => 'HomeLibrary' }
413
    );
413
    );
(-)a/admin/searchengine/elasticsearch/mappings.yaml (+9 lines)
Lines 1255-1260 biblios: Link Here
1255
        sort: ~
1255
        sort: ~
1256
        suggestible: ''
1256
        suggestible: ''
1257
    type: ''
1257
    type: ''
1258
  ccode:
1259
    label: collection-code
1260
    mappings:
1261
     - facet: '1'
1262
       marc_field: '9528'
1263
       marc_type: marc21
1264
       sort: ~
1265
       suggestible: ''
1266
    type: ''
1258
  control-number:
1267
  control-number:
1259
    label: control-number
1268
    label: control-number
1260
    mappings:
1269
    mappings:
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc (+1 lines)
Lines 20-25 Link Here
20
[% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
20
[% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
21
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
21
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
22
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %]
22
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %]
23
[% IF facets_loo.type_label_CollectionCodes %]<span id="facet-locations">Collections</span>[% END %]
23
<ul>
24
<ul>
24
  [% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
25
  [% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
25
  [% IF ( sort_by ) %]
26
  [% IF ( sort_by ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc (-1 / +1 lines)
Lines 24-29 Link Here
24
                        [% IF facets_loo.type_label_Places %]<h5 id="facet-places">Places</h5>[% END %]
24
                        [% IF facets_loo.type_label_Places %]<h5 id="facet-places">Places</h5>[% END %]
25
                        [% IF facets_loo.type_label_Series %]<h5 id="facet-series">Series</h5>[% END %]
25
                        [% IF facets_loo.type_label_Series %]<h5 id="facet-series">Series</h5>[% END %]
26
                        [% IF facets_loo.type_label_ItemTypes %]<h5 id="facet-itemtypes">Item types</h5>[% END %]
26
                        [% IF facets_loo.type_label_ItemTypes %]<h5 id="facet-itemtypes">Item types</h5>[% END %]
27
                        [% IF facets_loo.type_label_CollectionCodes %]<h5 id="facet-itemtypes">Collections</h5>[% END %]
27
                        [% UNLESS singleBranchMode %]
28
                        [% UNLESS singleBranchMode %]
28
                            [% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
29
                            [% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
29
                            [% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
30
                            [% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
30
- 

Return to bug 17169