Lines 356-362
for (keys %$params) {
Link Here
|
356 |
my @pasarParam = $cgi->param($_); |
356 |
my @pasarParam = $cgi->param($_); |
357 |
for my $paramValue(@pasarParam) { |
357 |
for my $paramValue(@pasarParam) { |
358 |
$pasarParams .= '&' if ($j > 0); |
358 |
$pasarParams .= '&' if ($j > 0); |
359 |
$pasarParams .= $_ . '=' . uri_escape($paramValue); |
359 |
$pasarParams .= $_ . '=' . uri_escape_utf8($paramValue); |
360 |
$j++; |
360 |
$j++; |
361 |
} |
361 |
} |
362 |
} |
362 |
} |
Lines 544-553
if ($tag) {
Link Here
|
544 |
($error, $results_hashref, $facets) = C4::Search::pazGetRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan); |
544 |
($error, $results_hashref, $facets) = C4::Search::pazGetRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan); |
545 |
}; |
545 |
}; |
546 |
} else { |
546 |
} else { |
547 |
$pasarParams .= '&query=' . uri_escape($query); |
547 |
$pasarParams .= '&query=' . uri_escape_utf8($query); |
548 |
$pasarParams .= '&count=' . uri_escape($results_per_page); |
548 |
$pasarParams .= '&count=' . uri_escape_utf8($results_per_page); |
549 |
$pasarParams .= '&simple_query=' . uri_escape($simple_query); |
549 |
$pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query); |
550 |
$pasarParams .= '&query_type=' . uri_escape($query_type) if ($query_type); |
550 |
$pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); |
551 |
eval { |
551 |
eval { |
552 |
($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$query_type,$scan,1); |
552 |
($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$query_type,$scan,1); |
553 |
}; |
553 |
}; |
Lines 699-710
for (my $i=0;$i<@servers;$i++) {
Link Here
|
699 |
my $j = 0; |
699 |
my $j = 0; |
700 |
foreach (@newresults) { |
700 |
foreach (@newresults) { |
701 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
701 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
702 |
$pasarParams .= uri_escape($bibnum) . ','; |
702 |
$pasarParams .= uri_escape_utf8($bibnum) . ','; |
703 |
$j++; |
703 |
$j++; |
704 |
last if ($j == $results_per_page); |
704 |
last if ($j == $results_per_page); |
705 |
} |
705 |
} |
706 |
chop $pasarParams if ($pasarParams =~ /,$/); |
706 |
chop $pasarParams if ($pasarParams =~ /,$/); |
707 |
$pasarParams .= '&total=' . uri_escape( int($total) ) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
707 |
$pasarParams .= '&total=' . uri_escape_utf8( int($total) ) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
708 |
if ($pasarParams) { |
708 |
if ($pasarParams) { |
709 |
my $session = get_session($cgi->cookie("CGISESSID")); |
709 |
my $session = get_session($cgi->cookie("CGISESSID")); |
710 |
$session->param('busc' => $pasarParams); |
710 |
$session->param('busc' => $pasarParams); |
711 |
- |
|
|