/[webpac2]/Webpacus/lib/Webpacus/Controller/Search.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/lib/Webpacus/Controller/Search.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 442 by dpavlin, Mon May 1 10:30:03 2006 UTC revision 444 by dpavlin, Mon May 1 13:48:52 2006 UTC
# Line 189  sub results_ajax : Path( 'results/ajax' Line 189  sub results_ajax : Path( 'results/ajax'
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,
# Line 221  sub results_ajax : Path( 'results/ajax' Line 222  sub results_ajax : Path( 'results/ajax'
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 }) {
# Line 234  sub results_ajax : Path( 'results/ajax' Line 236  sub results_ajax : Path( 'results/ajax'
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    

Legend:
Removed from v.442  
changed lines
  Added in v.444

  ViewVC Help
Powered by ViewVC 1.1.26