| 1 | package OpusVL::AppKit::Controller::Search; | ||
| 2 | |||
| 3 | 8 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 8 | ▶ | BEGIN { extends 'Catalyst::Controller'; }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 8 | with 'OpusVL::AppKit::RolesFor::Controller::GUI'; | |
| 8 | |||
| 9 | 8 | __PACKAGE__->config( | |
| 10 | appkit_name => 'Search', | ||
| 11 | ); | ||
| 12 | |||
| 13 | sub auto | ||
| 14 | 0 | ▶ | : Action |
|
Subroutine
auto: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 15 | : AppKitFeature('Search box') | ||
| 16 | { | ||
| 17 | 0 | my ($self, $c) = @_; | |
| 18 | |||
| 19 | 0 | push @{$c->stash->{breadcrumbs}},{ | |
| 20 | name => 'Search', | ||
| 21 | url => $c->uri_for($c->controller->action_for('index')), | ||
| 22 | }; | ||
| 23 | 8 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | |||
| 26 | 0 | ▶ | sub index :Path |
|
Subroutine
index: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | : AppKitFeature('Search box') | ||
| 28 | { | ||
| 29 | 0 | my ($self, $c) = @_; | |
| 30 | |||
| 31 | 0 | $c->_appkit_stash_searches($c->req->param('q')); | |
| 32 | 0 | $c->stash->{query} = $c->req->param('q'); | |
| 33 | 8 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | __END__ | ||