@@ -, +, @@ defined --- .../prog/en/modules/catalogue/itemsearch.tt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -293,7 +293,11 @@ { 'type': 'text' }, { 'type': 'select', 'values': [% branches.json %] }, { 'type': 'select', 'values': [% branches.json %] }, - { 'type': 'select', 'values': [% locations.json %] }, + [% IF locations.size %] + { 'type': 'select', 'values': [% locations.json %] }, + [% ELSE %] + null, + [% END %] { 'type': 'text' }, [% IF notforloans.size %] { 'type': 'select', 'values': [% notforloans.json %] }, @@ -401,11 +405,13 @@ options = branches empty_option = "All libraries" %] - [% INCLUDE form_field_select - name="location" - options = locations - empty_option = "All locations" - %] + [% IF locations.size %] + [% INCLUDE form_field_select + name="location" + options = locations + empty_option = "All locations" + %] + [% END %]
[% INCLUDE form_field_select --