Lines 602-618
for (my $i=0;$i<@servers;$i++) {
Link Here
|
602 |
|
602 |
|
603 |
# Adding the new search if needed |
603 |
# Adding the new search if needed |
604 |
my $path_info = $cgi->url(-path_info=>1); |
604 |
my $path_info = $cgi->url(-path_info=>1); |
605 |
$query_cgi = $cgi->url(-query=>1); |
605 |
my $query_cgi_history = $cgi->url(-query=>1); |
606 |
$query_cgi =~ s/^$path_info\?//; |
606 |
$query_cgi_history =~ s/^$path_info\?//; |
607 |
$query_cgi =~ s/;/&/g; |
607 |
$query_cgi_history =~ s/;/&/g; |
608 |
$query_desc .= ", $limit_desc"; |
608 |
my $query_desc_history = "$query_desc, $limit_desc"; |
609 |
|
609 |
|
610 |
if (!$borrowernumber || $borrowernumber eq '') { |
610 |
if (!$borrowernumber || $borrowernumber eq '') { |
611 |
# To a cookie (the user is not logged in) |
611 |
# To a cookie (the user is not logged in) |
612 |
if (($params->{'offset'}||'') eq '') { |
612 |
if (($params->{'offset'}||'') eq '') { |
613 |
push @recentSearches, { |
613 |
push @recentSearches, { |
614 |
"query_desc" => $query_desc || "unknown", |
614 |
"query_desc" => $query_desc_history || "unknown", |
615 |
"query_cgi" => $query_cgi || "unknown", |
615 |
"query_cgi" => $query_cgi_history || "unknown", |
616 |
"time" => time(), |
616 |
"time" => time(), |
617 |
"total" => $total |
617 |
"total" => $total |
618 |
}; |
618 |
}; |
619 |
- |
|
|