From 48338c56f0b03d4316005591b3345cb191fa35e2 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 13 Jul 2012 11:13:47 +0200 Subject: [PATCH] Bug 8381 - Paging broken in OPAC search results Fix also freezing for some browser when performing a search query. Signed-off-by: Katrin Fischer Checked paging (previous, next and navigating to page numbers) works. Browser performance is fixed too. --- opac/opac-search.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index e39e5479b4..5c6e85b357 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -602,17 +602,17 @@ for (my $i=0;$i<@servers;$i++) { # Adding the new search if needed my $path_info = $cgi->url(-path_info=>1); - $query_cgi = $cgi->url(-query=>1); - $query_cgi =~ s/^$path_info\?//; - $query_cgi =~ s/;/&/g; - $query_desc .= ", $limit_desc"; + my $query_cgi_history = $cgi->url(-query=>1); + $query_cgi_history =~ s/^$path_info\?//; + $query_cgi_history =~ s/;/&/g; + my $query_desc_history = "$query_desc, $limit_desc"; if (!$borrowernumber || $borrowernumber eq '') { # To a cookie (the user is not logged in) if (($params->{'offset'}||'') eq '') { push @recentSearches, { - "query_desc" => $query_desc || "unknown", - "query_cgi" => $query_cgi || "unknown", + "query_desc" => $query_desc_history || "unknown", + "query_cgi" => $query_cgi_history || "unknown", "time" => time(), "total" => $total }; -- 2.39.5