6 Code to show the web_page for platform using MASON.
15 This is the script to show the web_page using MASON
21 Aureliano Bombarely Gomez
30 use CXGN
::MasonFactory
;
34 my $m = CXGN
::MasonFactory
->new;
36 ## Use of CXGN::Page to take the arguments from the URL
38 my $page = CXGN
::Page
->new();
39 my %args = $page->get_all_encoded_arguments();
41 ## There are two ways to access to the page, using id=int or name=something. If use other combinations give an error message
43 if (exists $args{'id'} && defined $args{'id'} && $args{'id'} =~ m/^\d+$/) {
44 $m->exec('/sedm/experiment_detail.mas', id
=> $args{'id'});
45 } elsif (exists $args{'name'} && defined $args{'name'}) {
46 $m->exec('/sedm/experiment_detail.mas', name
=> $args{'name'});
48 $m->exec('/sedm/sedm_page_error.mas', object
=> 'experiment');