X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=reports%2Freservereport.pl;h=d67320b5964c3e2b3c59fe5fba1c4aab3bd10e92;hb=e6ee69b4a32cf707f6188013f68b1f5547812c34;hp=0f9b3d74f2d91341bc7d5304e468d0dca11d6bfa;hpb=70e2e7560b6aae8c40699f493e42dcc77703fe92;p=koha_fer diff --git a/reports/reservereport.pl b/reports/reservereport.pl index 0f9b3d74f2..d67320b596 100755 --- a/reports/reservereport.pl +++ b/reports/reservereport.pl @@ -25,12 +25,11 @@ 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' ) {