X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;ds=sidebyside;f=circ%2Fcirculation-home.pl;h=5eee81be284c66e77ed4d9761f081928d90c7bef;hb=7e7b3731dc17b437b78b12fc7e321affa1d80b94;hp=2ebd0d06dc6c37bf8cbdfc884a34106688727b61;hpb=6a7d1f448d880c00253f3f8d6442a0dc601cffc6;p=koha_fer diff --git a/circ/circulation-home.pl b/circ/circulation-home.pl index 2ebd0d06dc..5eee81be28 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("IndependantBranches") == 0) ); output_html_with_http_headers $query, $cookie, $template->output;