Lines 53-58
use MARC::Record;
Link Here
|
53 |
use MARC::File::XML; |
53 |
use MARC::File::XML; |
54 |
use MIME::Base64 qw( decode_base64 ); |
54 |
use MIME::Base64 qw( decode_base64 ); |
55 |
use JSON; |
55 |
use JSON; |
|
|
56 |
use Unicode::Normalize; |
56 |
|
57 |
|
57 |
Koha::SearchEngine::Elasticsearch::Search->mk_accessors(qw( store )); |
58 |
Koha::SearchEngine::Elasticsearch::Search->mk_accessors(qw( store )); |
58 |
|
59 |
|
Lines 503-509
sub _convert_facets {
Link Here
|
503 |
} |
504 |
} |
504 |
if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){ |
505 |
if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){ |
505 |
@{ $facet->{facets} } = |
506 |
@{ $facet->{facets} } = |
506 |
sort { $a->{facet_label_value} cmp $b->{facet_label_value} } @{ $facet->{facets} }; |
507 |
sort { NFKD(uc($a->{facet_label_value})) cmp NFKD(uc($b->{facet_label_value})) } @{ $facet->{facets} }; |
507 |
} |
508 |
} |
508 |
push @facets, $facet if exists $facet->{facets}; |
509 |
push @facets, $facet if exists $facet->{facets}; |
509 |
} |
510 |
} |
510 |
- |
|
|