8 use C4::Circulation::Circ2;
12 my ($template, $borrowernumber, $cookie)
13 = get_template_and_user({template_name => "opac-readingrecord.tmpl",
17 flagsrequired => {borrow => 1},
21 # get borrower information ....
22 my ($borr, $flags) = getpatroninformation(undef, $borrowernumber);
25 $template->param($borr);
28 my $order=$query->param('order');
31 $order2="date_due desc";
33 my $limit=$query->param('limit');
34 if ($limit eq 'full'){
39 my ($count,$issues)=allissues($borrowernumber,$order2,$limit);
43 foreach my $row (@$issues) {
44 $row->{'even'} = 1 if $num % 2 == 0;
45 $row->{'odd'} = 1 if $num % 2 == 1;
49 $template->param(count => $count);
50 $template->param(READING_RECORD => $issues);
53 print $query->header(-cookie => $cookie), $template->output;