Lines 128-134
if (scalar keys %params > 0) {
Link Here
|
128 |
my $op = shift @op; |
128 |
my $op = shift @op; |
129 |
if (defined $q and $q ne '') { |
129 |
if (defined $q and $q ne '') { |
130 |
if ($i == 0) { |
130 |
if ($i == 0) { |
131 |
if (C4::Context->preference("marcflavor") ne "UNIMARC" && $field eq 'publicationyear') { |
131 |
if (C4::Context->preference("marcflavour") ne "UNIMARC" && $field eq 'publicationyear') { |
132 |
$field = 'copyrightdate'; |
132 |
$field = 'copyrightdate'; |
133 |
} |
133 |
} |
134 |
$f = { |
134 |
$f = { |
Lines 185-191
if (scalar keys %params > 0) {
Link Here
|
185 |
} |
185 |
} |
186 |
|
186 |
|
187 |
my $sortby = $cgi->param('sortby') || 'itemnumber'; |
187 |
my $sortby = $cgi->param('sortby') || 'itemnumber'; |
188 |
if (C4::Context->preference("marcflavor") ne "UNIMARC" && $sortby eq 'publicationyear') { |
188 |
if (C4::Context->preference("marcflavour") ne "UNIMARC" && $sortby eq 'publicationyear') { |
189 |
$sortby = 'copyrightdate'; |
189 |
$sortby = 'copyrightdate'; |
190 |
} |
190 |
} |
191 |
warn $sortby; |
191 |
warn $sortby; |
192 |
- |
|
|