Lines 28-33
use Date::Calc qw( Date_to_Days Today );
Link Here
|
28 |
use C4::Reserves qw( ModReserve ModReserveCancelAll ); |
28 |
use C4::Reserves qw( ModReserve ModReserveCancelAll ); |
29 |
use Koha::DateUtils qw( dt_from_string output_pref ); |
29 |
use Koha::DateUtils qw( dt_from_string output_pref ); |
30 |
use Koha::BiblioFrameworks; |
30 |
use Koha::BiblioFrameworks; |
|
|
31 |
use Koha::Hold::CancellationRequests; |
31 |
use Koha::Items; |
32 |
use Koha::Items; |
32 |
use Koha::ItemTypes; |
33 |
use Koha::ItemTypes; |
33 |
use Koha::Patrons; |
34 |
use Koha::Patrons; |
Lines 116-121
while ( my $hold = $holds->next ) {
Link Here
|
116 |
|
117 |
|
117 |
} |
118 |
} |
118 |
|
119 |
|
|
|
120 |
my $holds_with_cancellation_requests = |
121 |
Koha::Hold::CancellationRequests->filter_by_current->search( {}, |
122 |
{ distinct => 'hold_id' } )->get_column('hold_id'); |
123 |
|
119 |
$template->param(cancel_result => \@cancel_result) if @cancel_result; |
124 |
$template->param(cancel_result => \@cancel_result) if @cancel_result; |
120 |
|
125 |
|
121 |
$template->param( |
126 |
$template->param( |
Lines 123-128
$template->param(
Link Here
|
123 |
reservecount => scalar @reserve_loop, |
128 |
reservecount => scalar @reserve_loop, |
124 |
overloop => \@over_loop, |
129 |
overloop => \@over_loop, |
125 |
overcount => scalar @over_loop, |
130 |
overcount => scalar @over_loop, |
|
|
131 |
cancel_reqs => $holds_with_cancellation_requests, |
126 |
show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), |
132 |
show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), |
127 |
tab => $tab, |
133 |
tab => $tab, |
128 |
); |
134 |
); |