From 5fefed88edf5ef740250f266e3fa80fbfe3701c6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 26 Feb 2024 08:15:50 +0000 Subject: [PATCH] Bug 35944: Add message to SIP renewal attempt This patch adds a replacement for 'booked' to the SIP renewal handling so we can display 'Item is booked for another borrower'. Signed-off-by: Katrin Fischer (cherry picked from commit c5522bc81e5b3c16702450ce61c25d1ccbef173a) Signed-off-by: Fridolin Somers --- C4/SIP/ILS/Transaction/Renew.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/SIP/ILS/Transaction/Renew.pm b/C4/SIP/ILS/Transaction/Renew.pm index 75ce5b569a..2f6dc61b31 100644 --- a/C4/SIP/ILS/Transaction/Renew.pm +++ b/C4/SIP/ILS/Transaction/Renew.pm @@ -52,6 +52,7 @@ sub do_renew_for { $self->renewal_ok(1); } else { $renewerror=~s/on_reserve/Item unavailable due to outstanding holds/; + $renewerror=~s/booked/Item is booked for another borrower/; $renewerror=~s/too_many/Item has reached maximum renewals/; $renewerror=~s/too_unseen/Item has reached maximum consecutive renewals without being seen/; $renewerror=~s/item_denied_renewal/Item renewal is not allowed/; -- 2.39.5