1 package SGN
::Controller
::Trait
;
5 SGN::Controller::Trait - Catalyst controller for pages dealing with traits (these are cvterms, specifically Solanaceae Phenotype terms)
10 use namespace
::autoclean
;
13 use URI
::FromHash
'uri';
18 isa
=> 'DBIx::Class::Schema',
22 has
'default_page_size' => (
28 BEGIN { extends
'Catalyst::Controller' }
29 with
'Catalyst::Component::ApplicationAttribute';
34 my ($self,$c,$key,$value) = @_;
35 $c->throw( message
=> "$value is not a valid value for $key" )
36 if ($key =~ m/_id$/ and $value !~ m/\d+/);
39 sub search
:Path
('/trait/search') Args
(0) {
40 my ( $self, $c ) = @_;
41 $self->schema( $c->dbic_schema('Bio::Chado::Schema','sgn_chado') );
44 template
=> '/ontology/traits.mas',