Lines 125-131
if ( $op eq 'add_form' ) {
Link Here
|
125 |
my $sortfield = $query->param('sortfield'); |
125 |
my $sortfield = $query->param('sortfield'); |
126 |
$sortfield = 'title' |
126 |
$sortfield = 'title' |
127 |
unless grep { $_ eq $sortfield } qw( title author copyrightdate publicationyear itemcallnumber dateadded ); |
127 |
unless grep { $_ eq $sortfield } qw( title author copyrightdate publicationyear itemcallnumber dateadded ); |
128 |
if ( $sortfield == 'copyrightdate' and C4::Context->preference('marcflavour') == 'UNIMARC' ) { |
128 |
if ( $sortfield eq 'copyrightdate' and C4::Context->preference('marcflavour') eq 'UNIMARC' ) { |
129 |
$sortfield = 'publicationyear'; |
129 |
$sortfield = 'publicationyear'; |
130 |
} |
130 |
} |
131 |
if ( $shelf->can_be_managed($loggedinuser) ) { |
131 |
if ( $shelf->can_be_managed($loggedinuser) ) { |
132 |
- |
|
|