use C4::Auth qw/:DEFAULT get_session/;
use C4::Output;
use C4::Circulation;
+use C4::Koha;
use Koha::DateUtils;
use Koha::Database;
+use Koha::BiblioFrameworks;
+use Koha::Checkouts;
my $cgi = new CGI;
-my ( $template, $librarian, $cookie ) = get_template_and_user(
+my ( $template, $librarian, $cookie, $flags ) = get_template_and_user(
{
template_name => "circ/renew.tt",
query => $cgi,
);
}
+# Checking if there is a Fast Cataloging Framework
+$template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' );
+
+my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count;
+$template->param( pending_checkout_notes => $pending_checkout_notes );
+
output_html_with_http_headers( $cgi, $cookie, $template->output );