@@ -, +, @@ --- catalogue/moredetail.pl | 6 +++++- .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) --- a/catalogue/moredetail.pl +++ a/catalogue/moredetail.pl @@ -248,7 +248,11 @@ foreach my $item (@items){ ); $item_info->{nomod} = !$patron->can_edit_items_from( $item->homebranch ); - $item_info->{waiting_holds} = $item->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count; + + if ( C4::Context->preference('RevertLostBibLevelHolds') ) { + $item_info->{waiting_holds} = + $item->holds( { found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } } )->count; + } push @item_data, $item_info; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -87,7 +87,7 @@ [% IF item_not_found %]
Cannot delete: Item not found.
[% END %] [% IF waitinglostitems %] -
+
The following item(s) have a waiting item-level hold and have been marked as lost.