Lines 66-88
$limit //= '';
Link Here
|
66 |
$limit = ( $limit eq 'full' ) ? 0 : 50; |
66 |
$limit = ( $limit eq 'full' ) ? 0 : 50; |
67 |
|
67 |
|
68 |
my $checkouts = [ |
68 |
my $checkouts = [ |
69 |
$patron->checkouts( |
69 |
$patron->checkouts->search( |
70 |
{}, |
70 |
{}, |
71 |
{ |
71 |
{ |
72 |
order_by => $order, |
72 |
order_by => $order, |
73 |
prefetch => { item => { biblio => 'biblioitems' } }, |
73 |
prefetch => { item => { biblio => 'biblioitems' } }, |
74 |
( $limit ? ( limit => $limit ) : () ), |
74 |
( $limit ? ( rows => $limit ) : () ), |
75 |
} |
75 |
} |
76 |
)->as_list |
76 |
)->as_list |
77 |
]; |
77 |
]; |
78 |
$limit -= scalar(@$checkouts) if $limit; |
78 |
$limit -= scalar(@$checkouts) if $limit; |
79 |
my $old_checkouts = [ |
79 |
my $old_checkouts = [ |
80 |
$patron->old_checkouts( |
80 |
$patron->old_checkouts->search( |
81 |
{}, |
81 |
{}, |
82 |
{ |
82 |
{ |
83 |
order_by => $order, |
83 |
order_by => $order, |
84 |
prefetch => { item => { biblio => 'biblioitems' } }, |
84 |
prefetch => { item => { biblio => 'biblioitems' } }, |
85 |
( $limit ? ( limit => $limit ) : () ), |
85 |
( $limit ? ( rows => $limit ) : () ), |
86 |
} |
86 |
} |
87 |
)->as_list |
87 |
)->as_list |
88 |
]; |
88 |
]; |
89 |
- |
|
|