Lines 350-362
$tag = $params->{tag} if $params->{tag};
Link Here
|
350 |
|
350 |
|
351 |
|
351 |
|
352 |
# String with params with the search criteria for the paging in opac-detail |
352 |
# String with params with the search criteria for the paging in opac-detail |
|
|
353 |
# param value is URI encoded and params separator is HTML encode (&) |
353 |
my $pasarParams = ''; |
354 |
my $pasarParams = ''; |
354 |
my $j = 0; |
355 |
my $j = 0; |
355 |
for (keys %$params) { |
356 |
for (keys %$params) { |
356 |
my @pasarParam = $cgi->param($_); |
357 |
my @pasarParam = $cgi->param($_); |
357 |
for my $paramValue(@pasarParam) { |
358 |
for my $paramValue(@pasarParam) { |
358 |
$pasarParams .= '&' if ($j > 0); |
359 |
$pasarParams .= '&' if ($j > 0); |
359 |
$pasarParams .= $_ . '=' . $paramValue; |
360 |
$pasarParams .= $_ . '=' . uri_escape($paramValue); |
360 |
$j++; |
361 |
$j++; |
361 |
} |
362 |
} |
362 |
} |
363 |
} |
Lines 543-552
if ($tag) {
Link Here
|
543 |
($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); |
544 |
}; |
545 |
}; |
545 |
} else { |
546 |
} else { |
546 |
$pasarParams .= '&query=' . $query; |
547 |
$pasarParams .= '&query=' . uri_escape($query); |
547 |
$pasarParams .= '&count=' . $results_per_page; |
548 |
$pasarParams .= '&count=' . uri_escape($results_per_page); |
548 |
$pasarParams .= '&simple_query=' . $simple_query; |
549 |
$pasarParams .= '&simple_query=' . uri_escape($simple_query); |
549 |
$pasarParams .= '&query_type=' . $query_type if ($query_type); |
550 |
$pasarParams .= '&query_type=' . uri_escape($query_type) if ($query_type); |
550 |
eval { |
551 |
eval { |
551 |
($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); |
552 |
}; |
553 |
}; |
Lines 698-709
for (my $i=0;$i<@servers;$i++) {
Link Here
|
698 |
my $j = 0; |
699 |
my $j = 0; |
699 |
foreach (@newresults) { |
700 |
foreach (@newresults) { |
700 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
701 |
my $bibnum = ($_->{biblionumber})?$_->{biblionumber}:0; |
701 |
$pasarParams .= $bibnum . ','; |
702 |
$pasarParams .= uri_escape($bibnum) . ','; |
702 |
$j++; |
703 |
$j++; |
703 |
last if ($j == $results_per_page); |
704 |
last if ($j == $results_per_page); |
704 |
} |
705 |
} |
705 |
chop $pasarParams if ($pasarParams =~ /,$/); |
706 |
chop $pasarParams if ($pasarParams =~ /,$/); |
706 |
$pasarParams .= '&total=' . int($total) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
707 |
$pasarParams .= '&total=' . uri_escape( int($total) ) if ($pasarParams !~ /total=(?:[0-9]+)?/); |
707 |
if ($pasarParams) { |
708 |
if ($pasarParams) { |
708 |
my $session = get_session($cgi->cookie("CGISESSID")); |
709 |
my $session = get_session($cgi->cookie("CGISESSID")); |
709 |
$session->param('busc' => $pasarParams); |
710 |
$session->param('busc' => $pasarParams); |
710 |
- |
|
|