Lines 37-44
sub add {
Link Here
|
37 |
sub add_to_session { |
37 |
sub add_to_session { |
38 |
my ($params) = @_; |
38 |
my ($params) = @_; |
39 |
my $cgi = $params->{cgi}; |
39 |
my $cgi = $params->{cgi}; |
40 |
my $query_desc = Encode::decode_utf8( $params->{query_desc} ) || "unknown"; |
40 |
my $query_desc = $params->{query_desc} || "unknown"; |
41 |
my $query_cgi = Encode::decode_utf8( $params->{query_cgi} ) || "unknown"; |
41 |
my $query_cgi = $params->{query_cgi} || "unknown"; |
42 |
my $total = $params->{total}; |
42 |
my $total = $params->{total}; |
43 |
my $type = $params->{type} || 'biblio'; |
43 |
my $type = $params->{type} || 'biblio'; |
44 |
|
44 |
|
Lines 152-158
sub set_to_session {
Link Here
|
152 |
my $session = C4::Auth::get_session($sessionID); |
152 |
my $session = C4::Auth::get_session($sessionID); |
153 |
return () unless $session; |
153 |
return () unless $session; |
154 |
$session->param( 'search_history', |
154 |
$session->param( 'search_history', |
155 |
uri_escape_utf8( encode_json($search_history) ) ); |
155 |
uri_escape( encode_json($search_history) ) ); |
156 |
} |
156 |
} |
157 |
|
157 |
|
158 |
1; |
158 |
1; |
159 |
- |
|
|