use strict;
use C4::Auth;
use C4::Output;
+use C4::Interface::CGI::Output;
use CGI;
use C4::Search;
use HTML::Template;
bornum => $bornum,
limit => $limit,
loop_reading => \@loop_reading);
-print $input->header(-cookie => $cookie),$template->output;
+output_html_with_http_headers $input, $cookie, $template->output;