blib/lib/OpusVL/AppKit/Controller/Search.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
auto
2.0
index
2.0
CRAP 2.0
1 package OpusVL::AppKit::Controller::Search;
2  
3 use Moose;
4 use namespace::autoclean;
5  
6 BEGIN { extends 'Catalyst::Controller'; };
7 with 'OpusVL::AppKit::RolesFor::Controller::GUI';
8  
9 __PACKAGE__->config(
10 appkit_name => 'Search',
11 );
12  
13 sub auto
14 : Action
15 : AppKitFeature('Search box')
16 {
17 my ($self, $c) = @_;
18
19 push @{$c->stash->{breadcrumbs}},{
20 name => 'Search',
21 url => $c->uri_for($c->controller->action_for('index')),
22 };
23 }
24  
25  
26 sub index :Path
27 : AppKitFeature('Search box')
28 {
29 my ($self, $c) = @_;
30
31 $c->_appkit_stash_searches($c->req->param('q'));
32 $c->stash->{query} = $c->req->param('q');
33 }
34  
35 __END__
36  
37 =pod
38  
39 =encoding UTF-8
40  
41 =head1 NAME
42  
43 OpusVL::AppKit::Controller::Search
44  
45 =head1 VERSION
46  
47 version 2.24
48  
49 =head1 AUTHOR
50  
51 OpusVL - www.opusvl.com
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
56  
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59  
60 =cut