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

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-1 / +1 lines)
Lines 589-595 sub _convert_sort_fields { Link Here
589
    my %sort_field_convert = (
589
    my %sort_field_convert = (
590
        acqdate     => 'date-of-acquisition',
590
        acqdate     => 'date-of-acquisition',
591
        author      => 'author',
591
        author      => 'author',
592
        call_number => 'local-classification',
592
        call_number => 'cn-sort',
593
        popularity  => 'issues',
593
        popularity  => 'issues',
594
        relevance   => undef,       # default
594
        relevance   => undef,       # default
595
        title       => 'title',
595
        title       => 'title',
(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t (-3 / +2 lines)
Lines 696-702 subtest "_convert_sort_fields() tests" => sub { Link Here
696
    is_deeply(
696
    is_deeply(
697
        \@sort_by,
697
        \@sort_by,
698
        [
698
        [
699
            { field => 'local-classification', direction => 'asc' },
699
            { field => 'cn-sort', direction => 'asc' },
700
            { field => 'author',  direction => 'desc' }
700
            { field => 'author',  direction => 'desc' }
701
        ],
701
        ],
702
        'sort fields should have been split correctly'
702
        'sort fields should have been split correctly'
Lines 707-713 subtest "_convert_sort_fields() tests" => sub { Link Here
707
    is_deeply(
707
    is_deeply(
708
        \@sort_by,
708
        \@sort_by,
709
        [
709
        [
710
            { field => 'local-classification', direction => 'asc' },
710
            { field => 'cn-sort', direction => 'asc' },
711
            { field => 'author',  direction => 'desc' }
711
            { field => 'author',  direction => 'desc' }
712
        ],
712
        ],
713
        'sort fields should have been split correctly'
713
        'sort fields should have been split correctly'
714
- 

Return to bug 26051