use C4::Circulation::Renewals2;
use C4::Reserves2;
use C4::Search;
+use C4::Interface::CGI::Output;
+use HTML::Template;
my $query = new CGI;
my ($template, $borrowernumber, $cookie)
# $template->param(WAITING => \@waiting);
$template->param(waiting_count => $wcount);
-print $query->header(-cookie => $cookie), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;