/[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 270 by dpavlin, Sat Dec 17 00:37:12 2005 UTC revision 275 by dpavlin, Sat Dec 17 03:20:19 2005 UTC
# Line 110  sub results : Local { Line 110  sub results : Local {
110          $c->stash->{template} = 'search.tt';          $c->stash->{template} = 'search.tt';
111          } else {          } else {
112                  $c->forward('/search/results/ajax');                  $c->forward('/search/results/ajax');
113            $c->stash->{template} = 'results.tt';
114          }          }
115  }  }
116    
# Line 174  sub results_ajax : Path( 'results/ajax' Line 175  sub results_ajax : Path( 'results/ajax'
175                  }                  }
176          }          }
177    
178            if ($params->{_database}) {
179                    my $type = $c->config->{hyperstraier}->{type} || 'search';
180                    my $attr;
181                    if (ref($params->{_database}) eq 'ARRAY') {
182                            # FIXME do we need to add $ at end?
183                            $attr .= '(' . join("|",@{$params->{_database}}) . ')';
184                    } else {
185                            $attr .= $params->{_database};
186                    }
187                    push @attr, '@uri STRRX /' . $type . '/' . $attr . '/';
188            }
189    
190          my $q = join(" $operator ", @words);          my $q = join(" $operator ", @words);
191    
192          my $template = $params->{'_template'} || $c->config->{webpac}->{template};          my $template = $params->{'_template'} || $c->config->{webpac}->{template};

Legend:
Removed from v.270  
changed lines
  Added in v.275

  ViewVC Help
Powered by ViewVC 1.1.26