189 |
my $hits_on_page = $c->config->{'hyperestraier'}->{'hits_on_page'} || 10; |
my $hits_on_page = $c->config->{'hyperestraier'}->{'hits_on_page'} || 10; |
190 |
|
|
191 |
$log->debug("using template $template to produce $hits_on_page results"); |
$log->debug("using template $template to produce $hits_on_page results"); |
192 |
|
$c->stash->{current_template} = $template; |
193 |
|
|
194 |
$c->stash->{html_results} = $webpac->search( |
$c->stash->{html_results} = $webpac->search( |
195 |
phrase => $q, |
phrase => $q, |
222 |
|
|
223 |
$c->stash->{site_uri_params} = sub { |
$c->stash->{site_uri_params} = sub { |
224 |
|
|
225 |
my $s_params = $site_uri_params; |
my $s_params; |
226 |
|
|
227 |
$c->log->dumper( $s_params, 'original_params' ); |
# shallow copy |
228 |
|
map { $s_params->{$_} = $site_uri_params->{$_} } keys %{ $site_uri_params }; |
229 |
|
|
230 |
my $n_params = shift; |
my $n_params = shift; |
231 |
foreach my $p (keys %{ $n_params }) { |
foreach my $p (keys %{ $n_params }) { |
236 |
} |
} |
237 |
} |
} |
238 |
|
|
239 |
$c->log->dumper( $s_params, 'site_uri_params' ); |
#$c->log->dumper( $s_params, 'site_uri_params' ); |
240 |
return $c->uri_for('results', $s_params)->as_string; |
return $c->uri_for('results', $s_params)->as_string; |
241 |
}; |
}; |
242 |
|
|