From 7ba63a25e2fd4ec198bc9682e63c94c82a69598e 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'. --- 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 75ce5b569af..2f6dc61b31a 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.30.2