Merge pull request #5134 from solgenomics/topic/fix_seedlot_search
[sgn.git] / cgi-bin / search / unigene_mason.pl
blob84c6aa15154c05c4a315cf52de042ad57a26e26d
1 #!/usr/bin/perl
3 =head1 NAME
5 unigene_mason.pl
6 Code to show the web_page for unigene using MASON.
8 =cut
10 =head1 SYNOPSIS
13 =head1 DESCRIPTION
15 This is the script to show the web_page using MASON
17 =cut
19 =head1 AUTHORS
21 Aureliano Bombarely Gomez
22 (ab782@cornell.edu)
24 =cut
27 use strict;
28 use warnings;
30 use CXGN::Page;
32 ## Use of CXGN::Page to take the arguments from the URL
34 my $page = CXGN::Page->new();
35 my %args = $page->get_all_encoded_arguments();
37 ## There are two ways to access to the page, using id as integer or as
38 ## SGN-U+int. If use other combinations give an error message
40 my $m = CXGN::MasonFactory->new;
42 if (exists $args{'id'} && defined $args{'id'}) {
43 $m->exec( '/transcript/unigene_detail.mas',
44 id => $args{'id'},
45 highlight => $args{'highlight'},
46 force_image => $args{'force_image'}
48 } else {
49 $m->exec( '/transcript/transcript_page_error.mas',
50 object => 'unigene'