From 014d4234133eaf34fa044a718bbd950c7a57acc7 Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Wed, 23 Mar 2022 15:31:40 -0400 Subject: [PATCH] Bug 27035: Shows the number of results in a facets after facet selection System preferences: displayFacetCount - Show; 1. Let's search 2. Near to each of the facets, we see the number of results (n) 3. Click on any of the facets and filter the result 4. Opposite the selected facets, the number of results is not displayed Ex. Marriage Fiction [x] Apply the patch 1. Let's search 2. Near to each of the facets, we see the number of results (n) 3. Click on any of the facets and filter the result 4. Now, opposite the selected facets, the number of results is displayed Ex. Marriage Fiction (2) [x] Signed-off-by: Lucas Gass Signed-off-by: Kyle M Hall Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc index dad168a4ef..5e6e638c0b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -53,6 +53,9 @@ [% IF facet.active %] [% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %] [% facet.facet_label_value | html %] + [% IF ( displayFacetCount ) %] + ([% facet.facet_count | html %]) + [% END %] [x] [% ELSE %] [% local_url = BLOCK %][% url | $raw %][% "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %] -- 2.39.5