2 package SGN
::Controller
::NOAANCDC
;
5 use URI
::FromHash
'uri';
8 BEGIN { extends
'Catalyst::Controller' };
10 sub noaa_ncdc_analysis
:Path
('/noaa_ncdc_analysis') Args
(0) {
14 my $sp_person_id = $c->user() ?
$c->user->get_object()->get_sp_person_id() : undef;
15 my $schema = $c->dbic_schema("Bio::Chado::Schema", undef, $sp_person_id);
18 $user_id = $c->user->get_object()->get_sp_person_id();
21 $c->res->redirect( uri
( path
=> '/user/login', query
=> { goto_url
=> $c->req->uri->path_query } ) );
24 $c->stash->{template
} = '/breeders_toolbox/noaa_ncdc_analysis.mas';