|
Lines 91-100
if ( $patron->is_anonymous ) {
Link Here
|
| 91 |
} else { |
91 |
} else { |
| 92 |
$template->param( |
92 |
$template->param( |
| 93 |
checkouts => [ |
93 |
checkouts => [ |
| 94 |
$patron->checkouts( |
94 |
$patron->checkouts->search( |
| 95 |
{}, |
95 |
{}, |
| 96 |
{ |
96 |
{ |
| 97 |
order_by => 'date_due desc', |
97 |
order_by => { -desc => 'date_due' }, |
| 98 |
prefetch => { item => { biblio => 'biblioitems' } }, |
98 |
prefetch => { item => { biblio => 'biblioitems' } }, |
| 99 |
rows => 1, |
99 |
rows => 1, |
| 100 |
} |
100 |
} |
|
Lines 103-112
if ( $patron->is_anonymous ) {
Link Here
|
| 103 |
); |
103 |
); |
| 104 |
$template->param( |
104 |
$template->param( |
| 105 |
old_checkouts => [ |
105 |
old_checkouts => [ |
| 106 |
$patron->old_checkouts( |
106 |
$patron->old_checkouts->search( |
| 107 |
{}, |
107 |
{}, |
| 108 |
{ |
108 |
{ |
| 109 |
order_by => 'date_due desc', |
109 |
order_by => { -desc => 'date_due' }, |
| 110 |
prefetch => { item => { biblio => 'biblioitems' } }, |
110 |
prefetch => { item => { biblio => 'biblioitems' } }, |
| 111 |
rows => 1, |
111 |
rows => 1, |
| 112 |
} |
112 |
} |
| 113 |
- |
|
|