}
my $sortby = $cgi->param('sortby') || 'itemnumber';
if (C4::Context->preference("marcflavour") ne "UNIMARC" && $sortby eq 'publicationyear') {
if ($sortby eq 'publicationyear') {
$sortby = 'copyrightdate';
my $search_params = {
-