use C4::Interface::CGI::Output;
use HTML::Template;
use DBI;
+use C4::Koha;
# this is a reorganisation of circulationold.pl
query => $query,
type => "intranet",
authnotrequired => 0,
- flagsrequired => {parameters => 1},
+ flagsrequired => {circulate => 1},
});
$template->param(headerbackgroundcolor => $headerbackgroundcolor,
backgroundimage => $backgroundimage,
branchloop => \@branchloop
);
-output_html_with_http_headers $query, $cookie, $template->output;
+my $branchcookie=$query->cookie(-name => 'branch', -value => "$branch", -expires => '+1y');
+my $printercookie=$query->cookie(-name => 'printer', -value => "$printer", -expires => '+1y');
+
+my $cookies=[$cookie,$branchcookie, $printercookie];
+output_html_with_http_headers $query, $cookies, $template->output;
# Local Variables: