View | Details | Raw Unified | Return to bug 40916
Collapse All | Expand All

(-)a/virtualshelves/shelves.pl (-2 / +1 lines)
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
- 

Return to bug 40916