some fixes, and links to themelang/images
[koha_ffzg] / circ / returns.pl
index 5b559f7..c460852 100755 (executable)
@@ -34,7 +34,7 @@ use C4::Reserves2;
 use C4::Auth;
 use C4::Interface::CGI::Output;
 use HTML::Template;
-
+use C4::Koha;
 
 my $query=new CGI;
 #getting the template
@@ -43,18 +43,15 @@ my ($template, $borrowernumber, $cookie)
                                                        query => $query,
                             type => "intranet",
                             authnotrequired => 0,
-                            flagsrequired => {parameters => 1},
+                            flagsrequired => {circulate => 1},
                          });
 
 #####################
 #Global vars
 my %env;
 my $headerbackgroundcolor='#99cc33';
-my $circbackgroundcolor='#ffffcc';
-my $circbackgroundcolor='white';
 my $linecolor1='#ffffcc';
 my $linecolor2='white';
-my $backgroundimage="/images/background-mem.gif";
 
 my $branches = getbranches();
 my $printers = getprinters(\%env);
@@ -370,8 +367,6 @@ $template->param(   genbrname => $branches->{$branch}->{'branchname'},
                        genprname => $printers->{$printer}->{'printername'},
                        branch => $branch,
                        printer => $printer,
-                       hdrbckgdcolor => $headerbackgroundcolor,
-                       bckgdimg => $backgroundimage,
                        errmsgloop => \@errmsgloop
                );