X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=circ%2Fcirculation-home.pl;h=d4f5a2c0694840aae817f940b254165fbb116591;hb=27edb618dd604e0a718f43e98ed97255f72eb515;hp=2ebd0d06dc6c37bf8cbdfc884a34106688727b61;hpb=9f41fe64beb579dd6edd0a7ad81aee96e474a842;p=koha_fer diff --git a/circ/circulation-home.pl b/circ/circulation-home.pl index 2ebd0d06dc..d4f5a2c069 100755 --- a/circ/circulation-home.pl +++ b/circ/circulation-home.pl @@ -17,6 +17,7 @@ # use strict; +#use warnings; FIXME - Bug 2505 use CGI; use C4::Auth; use C4::Output; @@ -24,7 +25,7 @@ use C4::Context; use C4::Koha; my $query = new CGI; -my ($template, $loggedinuser, $cookie) +my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user({template_name => "circ/circulation-home.tmpl", query => $query, type => "intranet", @@ -34,7 +35,10 @@ my ($template, $loggedinuser, $cookie) # Checking if there is a Fast Cataloging Framework my $fa = getframeworkinfo('FA'); -$template->param({ fast_cataloging => 1 }) if (defined $fa); +$template->param( fast_cataloging => 1 ) if (defined $fa); + +# Checking if the transfer page needs to be displayed +$template->param( display_transfer => 1 ) if ( ($flags->{'superlibrarian'} == 1) || (C4::Context->preference("IndependentBranches") == 0) ); output_html_with_http_headers $query, $cookie, $template->output;