Lines 341-353
$tag = $params->{tag} if $params->{tag};
Link Here
|
341 |
|
341 |
|
342 |
|
342 |
|
343 |
# String with params with the search criteria for the paging in opac-detail |
343 |
# String with params with the search criteria for the paging in opac-detail |
|
|
344 |
# param value is URI encoded and params separator is HTML encode (&) |
344 |
my $pasarParams = ''; |
345 |
my $pasarParams = ''; |
345 |
my $j = 0; |
346 |
my $j = 0; |
346 |
for (keys %$params) { |
347 |
for (keys %$params) { |
347 |
my @pasarParam = $cgi->param($_); |
348 |
my @pasarParam = $cgi->param($_); |
348 |
for my $paramValue(@pasarParam) { |
349 |
for my $paramValue(@pasarParam) { |
349 |
$pasarParams .= '&' if ($j > 0); |
350 |
$pasarParams .= '&' if ($j > 0); |
350 |
$pasarParams .= $_ . '=' . $paramValue; |
351 |
$pasarParams .= $_ . '=' . uri_escape($paramValue); |
351 |
$j++; |
352 |
$j++; |
352 |
} |
353 |
} |
353 |
} |
354 |
} |
Lines 534-543
if ($tag) {
Link Here
|
534 |
($error, $results_hashref, $facets) = C4::Search::pazGetRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan); |
535 |
($error, $results_hashref, $facets) = C4::Search::pazGetRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan); |
535 |
}; |
536 |
}; |
536 |
} else { |
537 |
} else { |
537 |
$pasarParams .= '&query=' . $query; |
538 |
$pasarParams .= '&query=' . uri_escape($query); |
538 |
$pasarParams .= '&count=' . $results_per_page; |
539 |
$pasarParams .= '&count=' . uri_escape($results_per_page); |
539 |
$pasarParams .= '&simple_query=' . $simple_query; |
540 |
$pasarParams .= '&simple_query=' . uri_escape($simple_query); |
540 |
$pasarParams .= '&query_type=' . $query_type if ($query_type); |
541 |
$pasarParams .= '&query_type=' . uri_escape($query_type) if ($query_type); |
541 |
eval { |
542 |
eval { |
542 |
($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$query_type,$scan,1); |
543 |
($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$query_type,$scan,1); |
543 |
}; |
544 |
}; |
Lines 689-700
for (my $i=0;$i<@servers;$i++) {
Link Here
|
689 |
my $j = 0; |
690 |
my $j = 0; |
690 |
foreach (@newresults) { |
691 |
foreach (@newresults) { |
691 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
692 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
692 |
$pasarParams .= $bibnum . ','; |
693 |
$pasarParams .= uri_escape($bibnum) . ','; |
693 |
$j++; |
694 |
$j++; |
694 |
last if ($j == $results_per_page); |
695 |
last if ($j == $results_per_page); |
695 |
} |
696 |
} |
696 |
chop $pasarParams if ($pasarParams =~ /,$/); |
697 |
chop $pasarParams if ($pasarParams =~ /,$/); |
697 |
$pasarParams .= '&total=' . int($total) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
698 |
$pasarParams .= '&total=' . uri_escape( int($total) ) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
698 |
if ($pasarParams) { |
699 |
if ($pasarParams) { |
699 |
my $session = get_session($cgi->cookie("CGISESSID")); |
700 |
my $session = get_session($cgi->cookie("CGISESSID")); |
700 |
$session->param('busc' => $pasarParams); |
701 |
$session->param('busc' => $pasarParams); |
701 |
- |
|
|