bug4891 - sort facets in search sidebar (OPAC and staff client)
[koha_fer] / catalogue / issuehistory.pl
index 0a5db95..0d774ea 100755 (executable)
@@ -17,6 +17,7 @@
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use CGI;
 use C4::Auth;
@@ -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(
@@ -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;