From b8c5f786fb72edaeafc4f9c0a70e7b5b0bf5b6b8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 May 2014 16:05:18 +0200 Subject: [PATCH] Bug 11944: Facets and resort --- C4/Search.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 36c0fda..02f58e9 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -517,6 +517,8 @@ sub getRecords { next; } + SetUTF8Flag($marc_record); + my @used_datas = (); foreach my $tag ( @{ $facet->{tags} } ) { @@ -1556,7 +1558,7 @@ sub buildQuery { $group_OR_limits{$k} .= " or " if $group_OR_limits{$k}; $limit_desc .= " or " if $group_OR_limits{$k}; $group_OR_limits{$k} .= "$this_limit"; - $limit_cgi .= "&limit=" . uri_escape($this_limit); + $limit_cgi .= "&limit=" . uri_escape_utf8($this_limit); $limit_desc .= " $this_limit"; } @@ -1564,7 +1566,7 @@ sub buildQuery { else { $limit .= " and " if $limit || $query; $limit .= "$this_limit"; - $limit_cgi .= "&limit=" . uri_escape($this_limit); + $limit_cgi .= "&limit=" . uri_escape_utf8($this_limit); if ($this_limit =~ /^branch:(.+)/) { my $branchcode = $1; my $branchname = GetBranchName($branchcode); -- 1.7.10.4