X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=catalogue%2Fissuehistory.pl;h=0d774eac18a991c68aa5549cf852e3c60e4a9664;hb=7a6a7f0df5c52b16fc5b47339cfe482dd98904e9;hp=6e7e1072e788d87cb1aaec0c1036e28a734b8383;hpb=7b2e4ebce2e42d5d8150429768fc50737021bd64;p=koha.git diff --git a/catalogue/issuehistory.pl b/catalogue/issuehistory.pl index 6e7e1072e7..0d774eac18 100755 --- a/catalogue/issuehistory.pl +++ b/catalogue/issuehistory.pl @@ -17,7 +17,8 @@ use strict; -require Exporter; +#use warnings; FIXME - Bug 2505 + use CGI; use C4::Auth; use C4::Output; @@ -25,6 +26,7 @@ use C4::Output; use C4::Circulation; # GetBiblioIssues use C4::Biblio; # GetBiblio GetBiblioFromItemNumber use C4::Dates qw/format_date/; +use C4::Search; # enabled_staff_search_views my $query = new CGI; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( @@ -33,7 +35,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( query => $query, type => "intranet", authnotrequired => 0, - flagsrequired => { circulate => 1 }, + flagsrequired => { circulate => "circulate_remaining_permissions" }, } ); @@ -65,11 +67,13 @@ foreach (@$issues){ $_->{date_due} = format_date($_->{date_due}); $_->{issuedate} = format_date($_->{issuedate}); $_->{returndate} = format_date($_->{returndate}); + $_->{lastreneweddate} = format_date($_->{lastreneweddate}); } $template->param( total => scalar @$issues, issues => $issues, issuehistoryview => 1, + C4::Search::enabled_staff_search_views, ); output_html_with_http_headers $query, $cookie, $template->output;