@@ -, +, @@ to show - Have a search with lots of facet results (with some category showing the "See more" link). - Jump to "See more", notice it shows more than 20 facet values. - Apply the patch, reload the page. - Change the FacetsMaxCount syspref to other value (e.g. 15 or 100). - Reload - Sign off :-D --- C4/Search.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -788,11 +788,12 @@ sub _get_facet_from_result_set { my $rs = shift; my $sep = shift; - my $internal_sep = '<*>'; + my $internal_sep = '<*>'; + my $facetMaxCount = C4::Context->preference('FacetMaxCount') // 20; return if ( ! defined $facet_idx || ! defined $rs ); # zebra's facet element, untokenized index - my $facet_element = 'zebra::facet::' . $facet_idx . ':0:100'; + my $facet_element = 'zebra::facet::' . $facet_idx . ':0:' . $facetMaxCount; # configure zebra results for retrieving the desired facet $rs->option( elementSetName => $facet_element ); # get the facet record from result set --