Merge remote-tracking branch 'kc/new/bug_6753' into kcmaster
[koha.git] / circ / circulation-home.pl
index 4ccb780..842f8d9 100755 (executable)
 # 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use CGI;
 use C4::Auth;
 use C4::Output;
 use C4::Context;
-
+use C4::Koha;
 
 my $query = new CGI;
 my ($template, $loggedinuser, $cookie)
@@ -29,7 +30,12 @@ my ($template, $loggedinuser, $cookie)
                                query => $query,
                                type => "intranet",
                                authnotrequired => 0,
-                               flagsrequired => {circulate => 1},
+                               flagsrequired => {circulate => "circulate_remaining_permissions"},
                                });
 
+# Checking if there is a Fast Cataloging Framework
+my $fa = getframeworkinfo('FA');
+$template->param( fast_cataloging => 1 ) if (defined $fa);
+
+
 output_html_with_http_headers $query, $cookie, $template->output;