|
Lines 37-42
use Koha::Suggestions;
Link Here
|
| 37 |
use Koha::BackgroundJobs; |
37 |
use Koha::BackgroundJobs; |
| 38 |
use Koha::CurbsidePickups; |
38 |
use Koha::CurbsidePickups; |
| 39 |
use Koha::Tickets; |
39 |
use Koha::Tickets; |
|
|
40 |
use Koha::Token; |
| 41 |
use Koha::Holds; |
| 40 |
|
42 |
|
| 41 |
my $query = CGI->new; |
43 |
my $query = CGI->new; |
| 42 |
|
44 |
|
|
Lines 102-110
if ( C4::Context->only_my_library ) {
Link Here
|
| 102 |
); |
104 |
); |
| 103 |
} |
105 |
} |
| 104 |
|
106 |
|
| 105 |
my $pending_borrower_modifications = Koha::Patron::Modifications->pending_count($branch); |
107 |
my $pending_borrower_modifications = Koha::Patron::Modifications->pending_count($branch); |
| 106 |
my $pending_discharge_requests = Koha::Patron::Discharge::count( { pending => 1 } ); |
108 |
my $local_pendingmodifications_count = Koha::Patron::Modifications->pending_count( C4::Context->userenv()->{'branch'} ); |
| 107 |
my $pending_article_requests = Koha::ArticleRequests->search_limited( |
109 |
|
|
|
110 |
my $pending_discharge_requests = Koha::Patron::Discharge::count( { pending => 1 } ); |
| 111 |
my $pending_article_requests = Koha::ArticleRequests->search_limited( |
| 108 |
{ |
112 |
{ |
| 109 |
status => Koha::ArticleRequest::Status::Requested, |
113 |
status => Koha::ArticleRequest::Status::Requested, |
| 110 |
$branch ? ( 'me.branchcode' => $branch ) : (), |
114 |
$branch ? ( 'me.branchcode' => $branch ) : (), |
|
Lines 130-135
unless ( $logged_in_user->has_permission( { parameters => 'manage_background_job
Link Here
|
| 130 |
|
134 |
|
| 131 |
$template->param( |
135 |
$template->param( |
| 132 |
holds_with_cancellation_requests => Koha::Holds->waiting->filter_by_has_cancellation_requests->count ); |
136 |
holds_with_cancellation_requests => Koha::Holds->waiting->filter_by_has_cancellation_requests->count ); |
|
|
137 |
my $holds_to_pull = Koha::Holds->search( found => undef )->count; |
| 133 |
|
138 |
|
| 134 |
if ( C4::Context->preference('CurbsidePickup') ) { |
139 |
if ( C4::Context->preference('CurbsidePickup') ) { |
| 135 |
$template->param( |
140 |
$template->param( |
|
Lines 157-165
$template->param(
Link Here
|
| 157 |
pendingcomments => $pendingcomments, |
162 |
pendingcomments => $pendingcomments, |
| 158 |
pendingtags => $pendingtags, |
163 |
pendingtags => $pendingtags, |
| 159 |
pending_borrower_modifications => $pending_borrower_modifications, |
164 |
pending_borrower_modifications => $pending_borrower_modifications, |
|
|
165 |
pending_local_borrowermods => $local_pendingmodifications_count, |
| 160 |
pending_discharge_requests => $pending_discharge_requests, |
166 |
pending_discharge_requests => $pending_discharge_requests, |
| 161 |
pending_article_requests => $pending_article_requests, |
167 |
pending_article_requests => $pending_article_requests, |
| 162 |
pending_problem_reports => $pending_problem_reports, |
168 |
pending_problem_reports => $pending_problem_reports, |
|
|
169 |
holds_to_pull => $holds_to_pull, |
| 163 |
); |
170 |
); |
| 164 |
|
171 |
|
| 165 |
output_html_with_http_headers $query, $cookie, $template->output; |
172 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 166 |
- |
|
|