@@ -, +, @@ items.new_status is used --- catalogue/itemsearch.pl | 4 ++++ .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) --- a/catalogue/itemsearch.pl +++ a/catalogue/itemsearch.pl @@ -102,6 +102,10 @@ my $itemlost_values = $mss->count ? GetAuthorisedValues($mss->next->authorised_v $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => '', kohafield => 'items.withdrawn', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] }); my $withdrawn_values = $mss->count ? GetAuthorisedValues($mss->next->authorised_value) : []; +if ( Koha::MarcSubfieldStructures->search( { frameworkcode => '', kohafield => 'items.new_status' } )->count ) { + $template->param( has_new_status => 1 ); +} + if (scalar keys %params > 0) { # Parameters given, it's a search --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -90,7 +90,7 @@ [% END %] [% BLOCK form_field_radio_yes_no %] -
+
@@ -195,7 +195,9 @@ (inclusive)
[% INCLUDE form_field_radio_yes_no name="damaged" %] - [% INCLUDE form_field_radio_yes_no name="new_status" %] + [% IF ( has_new_status ) %] + [% INCLUDE form_field_radio_yes_no name="new_status" divclass='item-new-status' %] + [% END %]