|
Lines 297-303
if ( $op eq 'view' ) {
Link Here
|
| 297 |
$sortfield = 'title' |
297 |
$sortfield = 'title' |
| 298 |
unless grep { $_ eq $sortfield } |
298 |
unless grep { $_ eq $sortfield } |
| 299 |
qw( title author copyrightdate publicationyear itemcallnumber dateadded ); |
299 |
qw( title author copyrightdate publicationyear itemcallnumber dateadded ); |
| 300 |
if ( $sortfield == 'copyrightdate' and C4::Context->preference('marcflavour') == 'UNIMARC' ) { |
300 |
if ( $sortfield eq 'copyrightdate' and C4::Context->preference('marcflavour') eq 'UNIMARC' ) { |
| 301 |
$sortfield = 'publicationyear'; |
301 |
$sortfield = 'publicationyear'; |
| 302 |
} |
302 |
} |
| 303 |
my $direction = $query->param('direction') || 'asc'; |
303 |
my $direction = $query->param('direction') || 'asc'; |
| 304 |
- |
|
|