8 use C4::Circulation::Circ2;
13 my ($template, $borrowernumber, $cookie)
14 = get_template_and_user({template_name => "opac-readingrecord.tmpl",
18 flagsrequired => {borrow => 1},
22 # get borrower information ....
23 my ($borr, $flags) = getpatroninformation(undef, $borrowernumber);
26 $template->param($borr);
29 my $order=$query->param('order');
32 $order2="date_due desc";
34 my $limit=$query->param('limit');
35 if ($limit eq 'full'){
40 my ($count,$issues)=allissues($borrowernumber,$order2,$limit);
44 foreach my $row (@$issues) {
45 $row->{'even'} = 1 if $num % 2 == 0;
46 $row->{'odd'} = 1 if $num % 2 == 1;
50 $template->param(count => $count);
51 $template->param(READING_RECORD => $issues);
54 output_html_with_http_headers $query, $cookie, $template->output;