|
Lines 23-28
use C4::Output qw( output_html_with_http_headers );
Link Here
|
| 23 |
use C4::Context; |
23 |
use C4::Context; |
| 24 |
use Koha::BiblioFrameworks; |
24 |
use Koha::BiblioFrameworks; |
| 25 |
use Koha::Checkouts; |
25 |
use Koha::Checkouts; |
|
|
26 |
use Koha::CurbsidePickups; |
| 26 |
|
27 |
|
| 27 |
my $query = CGI->new; |
28 |
my $query = CGI->new; |
| 28 |
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( |
29 |
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( |
|
Lines 37-40
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
Link Here
|
| 37 |
# Checking if there is a Fast Cataloging Framework |
38 |
# Checking if there is a Fast Cataloging Framework |
| 38 |
$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find('FA'); |
39 |
$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find('FA'); |
| 39 |
|
40 |
|
|
|
41 |
if ( C4::Context->preference('CurbsidePickup') ) { |
| 42 |
$template->param( |
| 43 |
new_curbside_pickups => Koha::CurbsidePickups->search( |
| 44 |
{ branchcode => C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef } |
| 45 |
)->filter_by_to_be_staged->filter_by_scheduled_today, |
| 46 |
); |
| 47 |
} |
| 48 |
|
| 40 |
output_html_with_http_headers $query, $cookie, $template->output; |
49 |
output_html_with_http_headers $query, $cookie, $template->output; |