From b30ee9546cf5ba6085ba04645e3f62a971c50544 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 Jan 2014 17:53:04 +0100 Subject: [PATCH] Bug 11489: (OPAC prog theme) show facets only if there is a result to display If all results are hidden, the facets are displayed. With this patch, the facets are hidden too. Signed-off-by: Mark Tompsett Signed-off-by: Michot Signed-off-by: Katrin Fischer Passes all tests and QA script. Tested: - Record with 1 lost item, result list = 1 - Verified without both patches 404 error page is shown - Verified with 1st patch, no results page is shown - Verified with 2nd patch, the still showing facets are gone - Record with 1 lost item, result list > 1 - Record is hidden from result list, but - result count is wrong - result numbering is wrong > This is an old problem, just noting - Record with 1 lost and 1 available item, result list = 1 - Detail page is shown, only lost item is hidden - Record with 1 lost and 1 available item, result list > 1 - Only available item is shown in result list Also checked that the lost item shows up with hidelostitems off. Signed-off-by: Galen Charlton (cherry picked from commit 65fb03c0f439fdc8bef7ce0359afa75598c39147) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc index 65b4d208fa..476081ed4d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc @@ -1,4 +1,4 @@ -[% IF ( opacfacets ) %] +[% IF ( opacfacets ) && total %] [% IF ( facets_loop ) %]

Refine your search

-- 2.39.5