From df65f2bbf329a632cc23250bf29975029a3627f7 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Tue, 2 Jul 2024 15:13:39 +0000 Subject: [PATCH] Bug 32252: Show number of results after facet selection To test: 1. In system preferences, set displayFacetCount to show. 2. Search catalog and select a facet. 3. Notice next to the facet it only shows [x], and not (n) the indicated number of results. 4. Apply patch. 5. Search catalog and select a facet. 6. Notice next to the facet it now shows (n) the indicated number of results and [x] to deselect the facet. Signed-off-by: Roman Dolny Signed-off-by: Lucas Gass Mentored-by: ByWater Solutions Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index 403628d52f..2e54fcb523 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -101,6 +101,7 @@ [% IF facet.active %] [% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %] [% facet.facet_label_value | html %] + ([% facet.facet_count | html %]) [x] [% ELSE %] [% local_url = BLOCK %][% url | $raw %][% "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %] -- 2.39.5