From bdccbfcbab7df56d396e667ac6049499a62acf20 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Sun, 17 Dec 2017 07:24:53 +0000 Subject: [PATCH] Bug 19706: (QA follow-up) Hide the collection code selector if no value is defined (for consistency) Test plan: 0) Go to item search 1) Do have some authorized values in CCODE category -> selector of collection is visible 2) Don't have any authorized value in CCODE category -> selector of collection is not visible Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 5b9edbec9c..e052169592 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -134,7 +134,9 @@
[% INCLUDE form_field_select name="itype" options = itemtypes empty_option = "All item types" %] - [% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %] + [% IF ccodes.size %] + [% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %] + [% END %] [% IF notforloans.size %] [% INCLUDE form_field_select name="notforloan" options = notforloans empty_option = "All statuses" %] [% END %] -- 2.39.5