use Koha::Items;
use Koha::ItemTypes;
use Koha::Patrons;
+use Koha::Checkouts;
my $input = new CGI;
$getreserv{'dotransfer'} = 1;
}
- my $borEmail = $patron->first_valid_email_address;
-
- if ( $borEmail ) {
- $getreserv{'borrowermail'} = $borEmail;
- }
+ $getreserv{patron} = $patron;
if ($today > $calcDate) {
if ($cancelall) {
}
$template->param(cancel_result => \@cancel_result) if @cancel_result;
+
+my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count;
+
$template->param(
reserveloop => \@reservloop,
reservecount => $reservcount,
show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
ReservesMaxPickUpDelay => $max_pickup_delay,
tab => $tab,
+ pending_checkout_notes => $pending_checkout_notes,
);
# Checking if there is a Fast Cataloging Framework