|
Lines 72-79
unless ( $loggedinuser ) {
Link Here
|
| 72 |
C4::Search::History::set_to_session({ cgi => $cgi, search_history => \@searches }); |
72 |
C4::Search::History::set_to_session({ cgi => $cgi, search_history => \@searches }); |
| 73 |
|
73 |
|
| 74 |
# Redirecting to this same url so the user won't see the search history link in the header |
74 |
# Redirecting to this same url so the user won't see the search history link in the header |
| 75 |
my $uri = $cgi->url(); |
75 |
print $cgi->redirect(-uri => '/cgi-bin/koha/opac-search-history.pl'); |
| 76 |
print $cgi->redirect(-uri => $uri); |
|
|
| 77 |
# Showing search history |
76 |
# Showing search history |
| 78 |
} else { |
77 |
} else { |
| 79 |
# Getting the searches from session |
78 |
# Getting the searches from session |
|
Lines 115-122
unless ( $loggedinuser ) {
Link Here
|
| 115 |
); |
114 |
); |
| 116 |
} |
115 |
} |
| 117 |
# Redirecting to this same url so the user won't see the search history link in the header |
116 |
# Redirecting to this same url so the user won't see the search history link in the header |
| 118 |
my $uri = $cgi->url(); |
117 |
print $cgi->redirect(-uri => '/cgi-bin/koha/opac-search-history.pl'); |
| 119 |
print $cgi->redirect($uri); |
|
|
| 120 |
|
118 |
|
| 121 |
# Showing search history |
119 |
# Showing search history |
| 122 |
} else { |
120 |
} else { |
| 123 |
- |
|
|