2 package SGN
::Controller
::ExpressionTool
;
6 use URI
::FromHash
'uri';
8 #use CXGN::DB::Connection;
10 #use CXGN::Page::FormattingHelpers qw| page_title_html info_table_html hierarchical_selectboxes_html |;
11 #use CXGN::Page::UserPrefs;
14 BEGIN { extends
'Catalyst::Controller'; }
17 sub input
:Path
('/tools/expression/') :Args
(0) {
19 $c->stash->{template
} = '/tools/expression/input.mas';
23 sub expression_atlas
:Path
('/tools/expression_atlas/') :Args
(0) {
26 $c->res->redirect( uri
( path
=> '/user/login', query
=> { goto_url
=> $c->req->uri->path_query } ) );
29 $c->stash->{user_name
} = $c->user->get_object->get_username;
30 $c->stash->{has_expression_atlas
} = $c->config->{has_expression_atlas
};
31 $c->stash->{expression_atlas_url
} = $c->config->{expression_atlas_url
};
32 $c->stash->{main_production_site_url
} = $c->config->{main_production_site_url
};
33 $c->stash->{site_project_name
} = $c->config->{project_name
};
34 $c->stash->{sgn_session_id
} = $c->req->cookie('sgn_session_id');
35 $c->stash->{template
} = '/tools/expression/expression_atlas.mas';