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 <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
</fieldset>
<fieldset>
[% 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 %]