@@ -, +, @@ items --- .../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 10 +++++++++- opac/opac-reserve.pl | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -204,8 +204,16 @@ [% ELSIF ( bibitemloo.recall ) %]
You have already placed a recall on this title.
[% ELSE %] - [% IF ( bibitemloo.already_patron_possession ) %] + [% IF bibitemloo.alreadypossession %]
This title cannot be requested because it's already in your possession.
+ [% ELSIF bibitemloo.tooManyReserves %] +
This title cannot be requested because you reached the maximum number of holds.
+ [% ELSIF bibitemloo.tooManyHoldsForThisRecord %] +
This title cannot be requested because you exceeded max holds per record.
+ [% ELSIF bibitemloo.tooManyReservesToday %] +
This title cannot be requested because you reached the daily hold limit.
+ [% ELSIF bibitemloo.itemAlreadyOnHold %] +
This title cannot be requested because you already have hold for this item.
[% ELSE %] [% UNLESS ( bibitemloo.bib_available ) %]
There are no items that can be placed on hold.
--- a/opac/opac-reserve.pl +++ a/opac/opac-reserve.pl @@ -631,7 +631,7 @@ foreach my $biblioNum (@biblionumbers) { my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status}; $biblioLoopIter{holdable} &&= $status eq 'OK'; - $biblioLoopIter{already_patron_possession} = $status eq 'alreadypossession'; + $biblioLoopIter{$status} = 1; if ( $status eq 'recall' ) { $biblioLoopIter{recall} = 1; --