--- /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, } );