use Koha::BiblioFrameworks;
use Koha::Checkouts;
-my $query = new CGI;
+my $query = CGI->new;
my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user(
{
template_name => "circ/circulation-home.tt",
query => $query,
type => "intranet",
- authnotrequired => 0,
flagsrequired => { circulate => "circulate_remaining_permissions" },
}
);
$template->{'VARS'}->{'AllowOfflineCirculation'} = C4::Context->preference('AllowOfflineCirculation');
-my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count;
-$template->param( pending_checkout_notes => $pending_checkout_notes );
-
output_html_with_http_headers $query, $cookie, $template->output;