|
Lines 207-219
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
| 207 |
} |
207 |
} |
| 208 |
} |
208 |
} |
| 209 |
|
209 |
|
|
|
210 |
|
| 211 |
@checkouts_today = sort { $a->{timstamp} cmp $b->{timestamp} } @checkouts_today; |
| 210 |
@checkouts_today = reverse(@checkouts_today) |
212 |
@checkouts_today = reverse(@checkouts_today) |
| 211 |
if ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); |
213 |
unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' ); |
|
|
214 |
|
| 215 |
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous; |
| 212 |
@checkouts_previous = reverse(@checkouts_previous) |
216 |
@checkouts_previous = reverse(@checkouts_previous) |
| 213 |
if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); |
217 |
if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' ); |
| 214 |
|
218 |
|
| 215 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
219 |
my @checkouts = ( @checkouts_today, @checkouts_previous ); |
| 216 |
|
220 |
|
|
|
221 |
my $i = 1; |
| 222 |
map { $_->{sort_order} = $i++ } @checkouts; |
| 223 |
|
| 224 |
|
| 217 |
my $data; |
225 |
my $data; |
| 218 |
$data->{'iTotalRecords'} = scalar @checkouts; |
226 |
$data->{'iTotalRecords'} = scalar @checkouts; |
| 219 |
$data->{'iTotalDisplayRecords'} = scalar @checkouts; |
227 |
$data->{'iTotalDisplayRecords'} = scalar @checkouts; |
| 220 |
- |
|
|