Bug 10857: (follow-up) make it possible to remove facets that contain diacritics
authorGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 21:42:13 +0000 (21:42 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 21:44:03 +0000 (21:44 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
catalogue/search.pl
opac/opac-search.pl

index 3d4efee..629a317 100755 (executable)
@@ -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};
index 5a8ccf2..990cbd0 100755 (executable)
@@ -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};