Lines 609-615
for (my $i=0;$i<@servers;$i++) {
Link Here
|
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 (!$offset) { |
613 |
push @recentSearches, { |
613 |
push @recentSearches, { |
614 |
"query_desc" => $query_desc_history || "unknown", |
614 |
"query_desc" => $query_desc_history || "unknown", |
615 |
"query_cgi" => $query_cgi_history || "unknown", |
615 |
"query_cgi" => $query_cgi_history || "unknown", |
Lines 631-637
for (my $i=0;$i<@servers;$i++) {
Link Here
|
631 |
} |
631 |
} |
632 |
else { |
632 |
else { |
633 |
# To the session (the user is logged in) |
633 |
# To the session (the user is logged in) |
634 |
if (($params->{'offset'}||'') eq '') { |
634 |
if (!$offset) { |
635 |
AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc_history, $query_cgi_history, $total); |
635 |
AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc_history, $query_cgi_history, $total); |
636 |
$template->param(ShowOpacRecentSearchLink => 1); |
636 |
$template->param(ShowOpacRecentSearchLink => 1); |
637 |
} |
637 |
} |
638 |
- |
|
|