From bac06174161c83bdbdb78b3731f93d628561179d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Nov 2022 07:53:42 +0100 Subject: [PATCH] Bug 32214: Prevent empty search option block in catalog search header In the header, if "Search catalog" is selected, there is an "option" icon to display some filters. Fitlers are displayed if IntranetCatalogSearchPulldown or IntranetAddMastheadLibraryPulldown is set. If none are set we should hide the icon to avoid and empty div to be displayed Test plan: Confirm that the icon is only displayed if one of the 2 prefs is turned on. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/includes/catalogue-search-box.inc | 5 ++++- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc index 00823a1b70..ac15548243 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc @@ -1,3 +1,4 @@ +[% USE Koha %] [% USE Branches %] [% IF ( CAN_user_catalogue ) %]