Lines 591-597
for (my $i=0;$i<@servers;$i++) {
Link Here
|
591 |
# Adding the new search if needed |
591 |
# Adding the new search if needed |
592 |
if (!$borrowernumber || $borrowernumber eq '') { |
592 |
if (!$borrowernumber || $borrowernumber eq '') { |
593 |
# To a cookie (the user is not logged in) |
593 |
# To a cookie (the user is not logged in) |
594 |
if (($params->{'offset'}||'') eq '') { |
594 |
if (!$offset) { |
595 |
push @recentSearches, { |
595 |
push @recentSearches, { |
596 |
"query_desc" => $query_desc || "unknown", |
596 |
"query_desc" => $query_desc || "unknown", |
597 |
"query_cgi" => $query_cgi || "unknown", |
597 |
"query_cgi" => $query_cgi || "unknown", |
Lines 613-619
for (my $i=0;$i<@servers;$i++) {
Link Here
|
613 |
} |
613 |
} |
614 |
else { |
614 |
else { |
615 |
# To the session (the user is logged in) |
615 |
# To the session (the user is logged in) |
616 |
if (($params->{'offset'}||'') eq '') { |
616 |
if (!$offset) { |
617 |
AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total); |
617 |
AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total); |
618 |
$template->param(ShowOpacRecentSearchLink => 1); |
618 |
$template->param(ShowOpacRecentSearchLink => 1); |
619 |
} |
619 |
} |
620 |
- |
|
|