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

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-1 / +1 lines)
Lines 694-700 sub _convert_sort_fields { Link Here
694
    my %sort_field_convert = (
694
    my %sort_field_convert = (
695
        acqdate     => 'date-of-acquisition',
695
        acqdate     => 'date-of-acquisition',
696
        author      => 'author',
696
        author      => 'author',
697
        call_number => 'local-classification',
697
        call_number => 'cn-sort',
698
        popularity  => 'issues',
698
        popularity  => 'issues',
699
        relevance   => undef,       # default
699
        relevance   => undef,       # default
700
        title       => 'title',
700
        title       => 'title',
(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t (-3 / +2 lines)
Lines 703-709 subtest "_convert_sort_fields() tests" => sub { Link Here
703
    is_deeply(
703
    is_deeply(
704
        \@sort_by,
704
        \@sort_by,
705
        [
705
        [
706
            { field => 'local-classification', direction => 'asc' },
706
            { field => 'cn-sort', direction => 'asc' },
707
            { field => 'author',  direction => 'desc' }
707
            { field => 'author',  direction => 'desc' }
708
        ],
708
        ],
709
        'sort fields should have been split correctly'
709
        'sort fields should have been split correctly'
Lines 714-720 subtest "_convert_sort_fields() tests" => sub { Link Here
714
    is_deeply(
714
    is_deeply(
715
        \@sort_by,
715
        \@sort_by,
716
        [
716
        [
717
            { field => 'local-classification', direction => 'asc' },
717
            { field => 'cn-sort', direction => 'asc' },
718
            { field => 'author',  direction => 'desc' }
718
            { field => 'author',  direction => 'desc' }
719
        ],
719
        ],
720
        'sort fields should have been split correctly'
720
        'sort fields should have been split correctly'
721
- 

Return to bug 26051