use C4::Search;
use C4::Auth;
use C4::Output;
+use C4::Charset;
my $query=new CGI;
my $type=$query->param('type');
}
# Print the page
-print $query->header(-cookie => $cookie), $template->output;
+print $query->header(
+ -type => guesstype($template->output),
+ -cookie => $cookie
+), $template->output;