View | Details | Raw Unified | Return to bug 11944
Collapse All | Expand All

(-)a/opac/opac-detail.pl (-2 / +2 lines)
Lines 168-180 if ($session->param('busc')) { Link Here
168
            if ($_ =~ /^(?:query|listBiblios|newlistBiblios|query_type|simple_query|total|offset|offsetSearch|next|previous|count|expand|scan)/) {
168
            if ($_ =~ /^(?:query|listBiblios|newlistBiblios|query_type|simple_query|total|offset|offsetSearch|next|previous|count|expand|scan)/) {
169
                if (defined($arrParamsBusc->{$_})) {
169
                if (defined($arrParamsBusc->{$_})) {
170
                    $pasarParams .= '&' if ($j);
170
                    $pasarParams .= '&' if ($j);
171
                    $pasarParams .= $_ . '=' . uri_escape( $arrParamsBusc->{$_} );
171
                    $pasarParams .= $_ . '=' . Encode::decode('UTF-8', uri_escape_utf8( $arrParamsBusc->{$_} ));
172
                    $j++;
172
                    $j++;
173
                }
173
                }
174
            } else {
174
            } else {
175
                for my $value (@{$arrParamsBusc->{$_}}) {
175
                for my $value (@{$arrParamsBusc->{$_}}) {
176
                    $pasarParams .= '&' if ($j);
176
                    $pasarParams .= '&' if ($j);
177
                    $pasarParams .= $_ . '=' . uri_escape($value);
177
                    $pasarParams .= $_ . '=' . Encode::decode('UTF-8', uri_escape_utf8($value));
178
                    $j++;
178
                    $j++;
179
                }
179
                }
180
            }
180
            }
(-)a/opac/opac-search.pl (-8 / +7 lines)
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 .= '&amp;total=' . uri_escape( int($total) ) if ($pasarParams !~ /total=(?:[0-9]+)?/);
707
                $pasarParams .= '&amp;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
- 

Return to bug 11944