55 |
my $webpac = $c->comp('Model::WebPAC'); |
my $webpac = $c->comp('Model::WebPAC'); |
56 |
|
|
57 |
my $q = $c->req->params->{$what} || |
my $q = $c->req->params->{$what} || |
58 |
$c->req->params->{all} || $c->res->output("no results"); |
$c->req->params->{all} || $c->response->body("no results"); |
59 |
|
|
60 |
|
|
61 |
$log->info("search for '$q' in $what\n"); |
$log->info("search for '$q' in $what\n"); |
84 |
|
|
85 |
$log->debug( ($#suggestions + 1) . " unique hits returned"); |
$log->debug( ($#suggestions + 1) . " unique hits returned"); |
86 |
|
|
87 |
$c->res->body( $c->prototype->auto_complete_result( \@suggestions ) ); |
$c->response->body( $c->prototype->auto_complete_result( \@suggestions ) ); |
88 |
} |
} |
89 |
|
|
90 |
|
|