]> git.koha-community.org Git - koha.git/commit
Bug 32214: Prevent empty search option block in catalog search header
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 16 Nov 2022 06:53:42 +0000 (07:53 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 16 Nov 2022 19:29:05 +0000 (16:29 -0300)
commitbac06174161c83bdbdb78b3731f93d628561179d
tree2401a6be02e302bb5c8bb92d8fa520e86b4f1b4f
parent05838349972b98fb12d19d9b5fe3036dbb7eae6c
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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc
koha-tmpl/intranet-tmpl/prog/js/staff-global.js