@@ -, +, @@ unless waiting --- catalogue/detail.pl | 4 +++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -260,7 +260,9 @@ foreach my $item (@items) { # checking for holds my $item_object = Koha::Items->find( $item->{itemnumber} ); my $holds = $item_object->current_holds; - if ( my $first_hold = $holds->next ) { + my $first_hold = $holds->next; + $item->{holds_count} = $holds->count; + if ( $first_hold && $first_hold->priority == 0 ) { my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); $item->{backgroundcolor} = 'reserved'; $item->{reservedate} = $first_hold->reservedate; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -447,8 +447,10 @@ Hold for: [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %] [% END %] + [% ELSE %] + [% IF item.holds_count > 0 %]There is a hold on this item[% END %] [% END %] - [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %] + [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate || item.holds_count > 0 ) %] Available [% END %] --