Koha-Anpassungen/patches/koha-25.11-services-comment.patch
root 7645c99c01 Koha 25.11: ILSDI comment-Parameter fuer HoldTitle/HoldItem
- comment als optionaler Parameter in ilsdi.pl
- notes => comment in Services.pm (HoldTitle + HoldItem)
- Fallback fuer alte VuFind 5.x Parameternamen
- Diff-Patches und komplette Dateien enthalten
2026-03-04 09:26:21 +01:00

45 lines
1.5 KiB
Diff

--- /usr/share/koha/lib/C4/ILSDI/Services.pm.bak.20260303 2026-03-03 12:43:18.320523619 +0100
+++ /usr/share/koha/lib/C4/ILSDI/Services.pm 2026-03-04 07:39:10.327445880 +0100
@@ -813,8 +813,11 @@
return { code => 'libraryNotPickupLocation' } unless $destination->pickup_location;
return { code => 'cannotBeTransferred' } unless $biblio->can_be_transferred( { to => $destination } );
- my $resdate = $cgi->param('start_date');
- my $expdate = $cgi->param('expiry_date');
+ my $resdate = $cgi->param('start_date') || $cgi->param('needed_before_date');
+ my $expdate = $cgi->param('expiry_date') || $cgi->param('pickup_expiry_date');
+ #RKE comment for reserves
+ my $comment = $cgi->param('comment');
+ #RKE End
# Add the reserve
# $branch, $borrowernumber, $biblionumber,
@@ -830,6 +833,7 @@
reservation_date => $resdate,
expiration_date => $expdate,
title => $title,
+ notes => $comment,
}
);
@@ -911,7 +915,10 @@
my $resdate = $cgi->param('start_date');
my $expdate = $cgi->param('expiry_date');
-
+ # RKE comment fpr reserves
+ my $comment = $cgi->param('comment');
+ # RKE End
+
# Add the reserve
my $priority = C4::Reserves::CalculatePriority($biblionumber);
AddReserve(
@@ -924,6 +931,7 @@
expiration_date => $expdate,
title => $title,
itemnumber => $itemnumber,
+ notes => $comment,
}
);