|
Lines 24-30
use CGI qw ( -utf8 );
Link Here
|
| 24 |
use C4::Output qw( output_html_with_http_headers ); |
24 |
use C4::Output qw( output_html_with_http_headers ); |
| 25 |
use C4::Auth qw( get_template_and_user ); |
25 |
use C4::Auth qw( get_template_and_user ); |
| 26 |
use C4::Koha; |
26 |
use C4::Koha; |
| 27 |
use C4::Tags qw( get_count_by_tag_status ); |
27 |
use C4::Tags qw( get_count_by_tag_status ); |
|
|
28 |
use Koha::DateUtils qw( dt_from_string ); |
| 28 |
use Koha::AdditionalContents; |
29 |
use Koha::AdditionalContents; |
| 29 |
use Koha::Patron::Modifications; |
30 |
use Koha::Patron::Modifications; |
| 30 |
use Koha::Patron::Discharge; |
31 |
use Koha::Patron::Discharge; |
|
Lines 134-140
unless ( $logged_in_user->has_permission( { parameters => 'manage_background_job
Link Here
|
| 134 |
|
135 |
|
| 135 |
$template->param( |
136 |
$template->param( |
| 136 |
holds_with_cancellation_requests => Koha::Holds->waiting->filter_by_has_cancellation_requests->count ); |
137 |
holds_with_cancellation_requests => Koha::Holds->waiting->filter_by_has_cancellation_requests->count ); |
| 137 |
my $holds_to_pull = Koha::Holds->search( found => undef )->count; |
138 |
|
|
|
139 |
my $holds_to_pull_start_date = C4::Context->preference('HoldsToPullStartDate') || 2; |
| 140 |
my $reserves_to_pull_from = dt_from_string()->subtract( days => $holds_to_pull_start_date ); |
| 141 |
|
| 142 |
my $holds_to_pull = Koha::Holds->search( |
| 143 |
{ |
| 144 |
found => undef, |
| 145 |
reservedate => { '>=' => $reserves_to_pull_from->ymd() } |
| 146 |
} |
| 147 |
)->count; |
| 148 |
|
| 149 |
my $local_holds_to_pull = Koha::Holds->search( |
| 150 |
{ |
| 151 |
found => undef, |
| 152 |
branchcode => C4::Context->userenv()->{'branch'}, |
| 153 |
reservedate => { '>=' => $reserves_to_pull_from->ymd() } |
| 154 |
} |
| 155 |
)->count; |
| 138 |
|
156 |
|
| 139 |
if ( C4::Context->preference('CurbsidePickup') ) { |
157 |
if ( C4::Context->preference('CurbsidePickup') ) { |
| 140 |
$template->param( |
158 |
$template->param( |
|
Lines 167-172
$template->param(
Link Here
|
| 167 |
pending_article_requests => $pending_article_requests, |
185 |
pending_article_requests => $pending_article_requests, |
| 168 |
pending_problem_reports => $pending_problem_reports, |
186 |
pending_problem_reports => $pending_problem_reports, |
| 169 |
holds_to_pull => $holds_to_pull, |
187 |
holds_to_pull => $holds_to_pull, |
|
|
188 |
local_holds_to_pull => $local_holds_to_pull, |
| 170 |
); |
189 |
); |
| 171 |
|
190 |
|
| 172 |
output_html_with_http_headers $query, $cookie, $template->output; |
191 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 173 |
- |
|
|