Lines 95-98
if (C4::Context->preference('GoogleIndicTransliteration')) {
Link Here
|
95 |
$template->param('GoogleIndicTransliteration' => 1); |
95 |
$template->param('GoogleIndicTransliteration' => 1); |
96 |
} |
96 |
} |
97 |
|
97 |
|
|
|
98 |
# Restore current search index and query |
99 |
# multivalued CGI paramaters are returned as a packaged string separated by "\0" (null) |
100 |
my $param_idx = $input->param('idx') || ''; |
101 |
my $param_q = $input->param('q') || ''; |
102 |
|
103 |
# indexes are query qualifiers, like 'title', 'author', etc. |
104 |
# They can be single or multiple parameters separated by comma: kw,right-Truncation |
105 |
my @indexes = split("\0", $param_idx); |
106 |
# if a simple index (only one) display the index used in the top search box |
107 |
if ($indexes[0] && !$indexes[1]) { |
108 |
$template->param( "ms_".$indexes[0] => 1 ); |
109 |
} |
110 |
|
111 |
# an operand can be a single term, a phrase, or a complete ccl query |
112 |
my @operands = split("\0",$param_q); |
113 |
# if a simple search, display the value in the search box |
114 |
if ($operands[0] && !$operands[1]) { |
115 |
$template->param( ms_value => $operands[0] ); |
116 |
} |
117 |
|
98 |
output_html_with_http_headers $input, $cookie, $template->output; |
118 |
output_html_with_http_headers $input, $cookie, $template->output; |