From 4eb83b0b63eb8438d7187cd0165bd7c0d90fe013 Mon Sep 17 00:00:00 2001 From: nina martinez Date: Tue, 17 Jun 2025 09:25:55 +0200 Subject: [PATCH] Bug 40283: Placing a hold page. Test plan: 1. Research a record and choose one, then place a hold on it. Try to place the hold twice. A message should appear: 'You already have at least one ... holds must be at the record level.' Inspect the HTML code and notice that there is a role='alert' in the message tag 2. Go to the Staff interface, then in Koha administration, click on 'Circulation and fine rules.' Determine the number of holds allowed. Log in to a patron account and place holds to reach the limit. Try to exceed the limit. A message should appear: 'This title cannot be requested because you have reached the maximum number of holds.' Inspect the HTML code and notice that there is a role='alert' in the message tag. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 6a7fb94e4f..207457ad19 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -164,14 +164,14 @@
Sorry, you are too young to place a hold for this item.
[% END %] [% IF ( bibitemloo.already_reserved ) %] -
You have already requested this title.
+ [% ELSIF ( bibitemloo.recall ) %]
You have already placed a recall on this title.
[% ELSE %] [% 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 %] -- 2.43.0