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

(-)a/Koha/SearchEngine/Elasticsearch.pm (-2 / +1 lines)
Lines 1011-1017 sub _field_mappings { Link Here
1011
        push @{$default_options->{value_callbacks}}, sub {
1011
        push @{$default_options->{value_callbacks}}, sub {
1012
            my ($value) = @_;
1012
            my ($value) = @_;
1013
            # Replace "u" with "0" for sorting
1013
            # Replace "u" with "0" for sorting
1014
            return map { s/[u\s]/0/gr } ( $value =~ /[0-9u\s]{4}/g );
1014
            return map { /[0-9u]{4}/g } ( $value =~ s/u/0/gr );
1015
        };
1015
        };
1016
    }
1016
    }
1017
1017
1018
- 

Return to bug 36902