various installer changes
[koha_fer] / reports / reservereport.pl
index 0f9b3d7..d67320b 100755 (executable)
 
 use strict;
 use C4::Stats;
-use C4::Date;
+use C4::Dates qw/format_date/;
 use CGI;
 use C4::Output;
-use HTML::Template;
+use C4::Branch; # GetBranches
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Koha;
 
 
@@ -43,7 +42,7 @@ if (!$branch) {
     $branch = "ALL";
 }
 
-my $branches=getbranches();
+my $branches=GetBranches();
 
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     {
@@ -51,7 +50,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
         query           => $input,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { editcatalogue => 1 },
+        flagsrequired   => { reports => 1 },
         debug           => 1,
     }
 );
@@ -95,7 +94,7 @@ for ( my $i = 0 ; $i < $count ; $i++ ) {
         # FIXME still need to shift the text to the template so its translateable
         if ( $data->[$i]) {
             # find if its on issue
-            my @items = &ItemInfo( undef, $line{'biblionumber'}, 'intra' );
+            my @items = &GetItemsInfo($line{'biblionumber'}, 'intra' );
             my $onissue = 0;
             foreach my $item (@items) {
                 if ( $item->{'datedue'} eq 'Reserved' ) {