@@ -, +, @@ do not exist --- .../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 @@ -295,7 +295,11 @@ { 'type': 'select', 'values': [% branches.json %] }, { 'type': 'select', 'values': [% locations.json %] }, { 'type': 'text' }, - { 'type': 'select', 'values': [% notforloans.json %] }, + [% IF notforloans.size %] + { 'type': 'select', 'values': [% notforloans.json %] }, + [% ELSE %] + null, + [% END %] { 'type': 'text' }, null ] @@ -414,11 +418,13 @@ options = ccodes empty_option = "All collection codes" %] - [% INCLUDE form_field_select - name="notforloan" - options = notforloans - empty_option = "All statuses" - %] + [% IF notforloans.size %] + [% INCLUDE form_field_select + name="notforloan" + options = notforloans + empty_option = "All statuses" + %] + [% END %]
[% INCLUDE form_field_select_text_block %] --