|
Lines 504-510
sub _convert_facets {
Link Here
|
| 504 |
} |
504 |
} |
| 505 |
if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){ |
505 |
if( C4::Context->preference('FacetOrder') eq 'Alphabetical' ){ |
| 506 |
@{ $facet->{facets} } = |
506 |
@{ $facet->{facets} } = |
| 507 |
sort { NFKD(uc($a->{facet_label_value})) cmp NFKD(uc($b->{facet_label_value})) } @{ $facet->{facets} }; |
507 |
sort { _normalize_str($a->{facet_label_value}) cmp _normalize_str($b->{facet_label_value}) } @{ $facet->{facets} }; |
| 508 |
} |
508 |
} |
| 509 |
push @facets, $facet if exists $facet->{facets}; |
509 |
push @facets, $facet if exists $facet->{facets}; |
| 510 |
} |
510 |
} |
|
Lines 577-580
sub _aggregation_scan {
Link Here
|
| 577 |
return (undef, \%result, undef); |
577 |
return (undef, \%result, undef); |
| 578 |
} |
578 |
} |
| 579 |
|
579 |
|
|
|
580 |
sub _normalize_str { |
| 581 |
my ($str) = @_; |
| 582 |
my $text = NFKD(uc($str)); |
| 583 |
$text =~ s/\p{M}//g; |
| 584 |
return $text; |
| 585 |
} |
| 586 |
|
| 580 |
1; |
587 |
1; |
| 581 |
- |
|
|