Fixing bug 428
authorrangi <rangi>
Sat, 3 May 2003 00:28:13 +0000 (00:28 +0000)
committerrangi <rangi>
Sat, 3 May 2003 00:28:13 +0000 (00:28 +0000)
bookcount.pl

index 74fd1ad..03605bd 100755 (executable)
@@ -29,6 +29,8 @@ use C4::Context;
 use C4::Search;
 use C4::Circulation::Circ2;
 use C4::Output;
+use C4::Koha;
+use C4::Auth;
 use HTML::Template;
 
 # get all the data ....
@@ -61,7 +63,17 @@ if (not $lastmove) {
 }
 
 # make the page ...
-my $template = gettemplate("bookcount.tmpl");
+
+my ($template, $loggedinuser, $cookie)
+      = get_template_and_user({template_name => "bookcount.tmpl",
+                                        query => $input,
+                                        type => "intranet",
+                                        authnotrequired => 0,
+                                        flagsrequired => {borrowers => 1},
+                                        debug => 1,
+                                        });
+
+
 
 my @branchloop;