From 0e59a18f8e4613afbfb13471fcbed2aee77ef5ce Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 5 May 2014 21:42:13 +0000 Subject: [PATCH] Bug 10857: (follow-up) make it possible to remove facets that contain diacritics Signed-off-by: Galen Charlton --- catalogue/search.pl | 2 +- opac/opac-search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 3d4efee868..629a317c3c 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -721,7 +721,7 @@ my $gotopage = $cgi->param('gotoPage'); $template->{'VARS'}->{'gotoPage'} = $gotopage if $gotopage =~ m/^(ISBD|labeledMARC|MARC|more)?detail.pl$/; -my @input_values = map { $_->{input_value} } @limit_inputs; +my @input_values = map { Encode::decode_utf8($_->{input_value}) } @limit_inputs; for my $facet ( @$facets ) { for my $entry ( @{ $facet->{facets} } ) { my $index = $entry->{type_link_value}; diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 5a8ccf2ce2..990cbd0835 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -845,7 +845,7 @@ for (my $i=0;$i<@servers;$i++) { } #/end of the for loop #$template->param(FEDERATED_RESULTS => \@results_array); -my @input_values = map { $_->{input_value} } @limit_inputs; +my @input_values = map { Encode::decode_utf8($_->{input_value}) } @limit_inputs; for my $facet ( @$facets ) { for my $entry ( @{ $facet->{facets} } ) { my $index = $entry->{type_link_value}; -- 2.39.5