From 14db79ecf1f2d3cbad5131c5199f01c17ec865de Mon Sep 17 00:00:00 2001 From: Jacob O'Mara Date: Wed, 21 Jan 2026 15:36:16 +0000 Subject: [PATCH] Bug 39658: Circulation: Add linked account hold pickup redirect Enable linked patrons to pick up each other's holds when allowed. Signed-off-by: Trevor Diamond --- circ/circulation.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index dddd2a1f5f9..1bdd47321ae 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -548,8 +548,19 @@ if ( @$barcodes && $op eq 'cud-checkout' ) { $datedue = $booked->end_date; } $needsconfirmation->{'DEBT'} = $needsconfirmationDEBT if ($debt_confirmed); + + # Handle linked account hold pickup - redirect checkout to hold patron's account + my $checkout_patron = $patron; + if ( $alerts->{LINKED_ACCOUNT_HOLD_PICKUP} ) { + $checkout_patron = $alerts->{LINKED_ACCOUNT_HOLD_PICKUP}->{hold_patron}; + $template_params->{linked_account_checkout} = { + original_patron => $patron, + hold_patron => $checkout_patron, + }; + } + my $issue = AddIssue( - $patron, $barcode, $datedue, + $checkout_patron, $barcode, $datedue, $cancelreserve, undef, undef, { -- 2.39.5