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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-2 / +8 lines)
Lines 513-519 sub _convert_facets { Link Here
513
        }
513
        }
514
        if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){
514
        if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){
515
            @{ $facet->{facets} } =
515
            @{ $facet->{facets} } =
516
                sort { NFKD(uc($a->{facet_label_value})) cmp NFKD(uc($b->{facet_label_value})) } @{ $facet->{facets} };
516
                sort { _normalize_str($a->{facet_label_value}) cmp _normalize_str($b->{facet_label_value}) } @{ $facet->{facets} };
517
        }
517
        }
518
        push @facets, $facet if exists $facet->{facets};
518
        push @facets, $facet if exists $facet->{facets};
519
    }
519
    }
Lines 586-589 sub _aggregation_scan { Link Here
586
    return (undef, \%result, undef);
586
    return (undef, \%result, undef);
587
}
587
}
588
588
589
sub _normalize_str {
590
    my ($str) = @_;
591
    my $text = NFKD(uc($str));
592
    $text =~ s/\p{M}//g;
593
    return $text;
594
}
595
589
1;
596
1;
590
- 

Return to bug 36947