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 5e4ea3064e..29343bc7b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -292,7 +292,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 %] }, @@ -391,11 +395,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 %]