Lines 32-37
use C4::Members;
Link Here
|
32 |
use C4::Output qw( pagination_bar output_html_with_http_headers output_and_exit_if_error ); |
32 |
use C4::Output qw( pagination_bar output_html_with_http_headers output_and_exit_if_error ); |
33 |
use C4::XSLT qw( XSLTParse4Display ); |
33 |
use C4::XSLT qw( XSLTParse4Display ); |
34 |
|
34 |
|
|
|
35 |
use Koha; |
35 |
use Koha::Biblios; |
36 |
use Koha::Biblios; |
36 |
use Koha::Biblioitems; |
37 |
use Koha::Biblioitems; |
37 |
use Koha::Items; |
38 |
use Koha::Items; |
Lines 115-120
if ( $op eq 'add_form' ) {
Link Here
|
115 |
$op = $referer; |
116 |
$op = $referer; |
116 |
my $sortfield = $query->param('sortfield'); |
117 |
my $sortfield = $query->param('sortfield'); |
117 |
$sortfield = 'title' unless grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded ); |
118 |
$sortfield = 'title' unless grep { $_ eq $sortfield } qw( title author copyrightdate itemcallnumber dateadded ); |
|
|
119 |
if ($sortfield == 'copyrightdate' and Koha.Preference('marcflavour')=='UNIMARC'){ |
120 |
$sortfield = 'publicationyear'; |
121 |
} |
118 |
if ( $shelf->can_be_managed( $loggedinuser ) ) { |
122 |
if ( $shelf->can_be_managed( $loggedinuser ) ) { |
119 |
$shelf->shelfname( scalar $query->param('shelfname') ); |
123 |
$shelf->shelfname( scalar $query->param('shelfname') ); |
120 |
$shelf->sortfield( $sortfield ); |
124 |
$shelf->sortfield( $sortfield ); |
121 |
- |
|
|