2 package SGN
::Controller
::BreedersToolbox
::Trial
::TrialComparison
;
5 use URI
::FromHash
'uri';
8 BEGIN { extends
'Catalyst::Controller'; }
11 sub trial_comparison_input
:Path
('/tools/trial/comparison/list') Args
(0) {
16 $c->res->redirect(uri
( path
=> '/solpeople/login.pl', query
=> { goto_url
=> $c->req->uri->path_query } ) );
19 $c->assets->include('/static/css/tools/trial_comparison.css');
20 $c->stash->{template
} = '/tools/trial_comparison/index.mas';
24 sub trial_comparison_params
:Path
('/tools/trial/comparison/params') Args
(0) {
28 my @trial_names = $c->req->param("trial_name");
29 my $cvterm_id = $c->req->param("cvterm_id");
30 $c->stash->{trial_names
} = \
@trial_names;
31 $c->stash->{cvterm_id
} = $cvterm_id;
32 $c->stash->{template
} = '/tools/trial_comparison/no_list.mas';