Lines 226-239
sub build_query {
Link Here
|
226 |
# things that Koha can use. |
226 |
# things that Koha can use. |
227 |
my $size = C4::Context->preference('FacetMaxCount'); |
227 |
my $size = C4::Context->preference('FacetMaxCount'); |
228 |
$res->{aggregations} = { |
228 |
$res->{aggregations} = { |
229 |
author => { terms => { field => "author__facet" , size => $size } }, |
229 |
author => { terms => { field => "author__facet" , size => $size } }, |
230 |
subject => { terms => { field => "subject__facet", size => $size } }, |
230 |
subject => { terms => { field => "subject__facet", size => $size } }, |
231 |
itype => { terms => { field => "itype__facet", size => $size} }, |
231 |
itype => { terms => { field => "itype__facet", size => $size} }, |
232 |
location => { terms => { field => "location__facet", size => $size } }, |
232 |
location => { terms => { field => "location__facet", size => $size } }, |
233 |
'su-geo' => { terms => { field => "su-geo__facet", size => $size} }, |
233 |
'su-geo' => { terms => { field => "su-geo__facet", size => $size} }, |
234 |
'title-series' => { terms => { field => "title-series__facet", size => $size } }, |
234 |
'title-series' => { terms => { field => "title-series__facet", size => $size } }, |
235 |
ccode => { terms => { field => "ccode__facet", size => $size } }, |
235 |
ccode => { terms => { field => "ccode__facet", size => $size } }, |
236 |
ln => { terms => { field => "ln__facet", size => $size } }, |
236 |
ln => { terms => { field => "ln__facet", size => $size } }, |
|
|
237 |
'date-of-publication' => { terms => { field => "date-of-publication__facet", size => $size } }, |
237 |
}; |
238 |
}; |
238 |
|
239 |
|
239 |
my $display_library_facets = C4::Context->preference('DisplayLibraryFacets'); |
240 |
my $display_library_facets = C4::Context->preference('DisplayLibraryFacets'); |