[Bio] / SeedViewer / seedviewer.cgi Repository:
ViewVC logotype

Diff of /SeedViewer/seedviewer.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22, Mon Jul 28 14:41:22 2008 UTC revision 1.23, Wed Sep 3 20:42:27 2008 UTC
# Line 33  Line 33 
33    
34      # initialize cgi      # initialize cgi
35      my $cgi = new CGI();      my $cgi = new CGI();
36        if ($FIG_Config::linkinSV) {
37            my $parms = $cgi->query_string();
38            if ($parms) {
39                $parms = "?$parms";
40            } else {
41                $parms = "?page=Home";
42            }
43            print CGI::redirect(-uri => "$FIG_Config::cgi_url/wiki/rest.cgi/NmpdrPlugin/SeedViewer$parms",
44                                -status => 301);
45            return;
46        }
47    
48      # initialize layout      # initialize layout
49      # Use the template file for the current mode-- NMPDR or SEED      # Use the template file for the current mode-- NMPDR or SEED
50      my $templateFile = (FIGRules::nmpdr_mode($cgi) ? './Html/NmpdrViewer.tmpl' : './Html/SeedViewer.tmpl');      my $templateFile = (FIGRules::nmpdr_mode($cgi) ? "$FIG_Config::cgi_url/Html/NmpdrViewer.tmpl" : "$FIG_Config::cgi_url/Html/SeedViewer.tmpl");
51      Trace("Template file is $templateFile") if T(3);      Trace("Template file is $templateFile") if T(3);
52      my $layout = WebLayout->new($templateFile);      my $layout = WebLayout->new($templateFile);
53      # Choose the body/header style sheet according to the mode.      # Choose the body/header style sheet according to the mode.
54      if (FIGRules::nmpdr_mode($cgi)) {      if (FIGRules::nmpdr_mode($cgi)) {
55          # NMPDR mode.          # NMPDR mode.
56          $layout->add_css('./Html/nmpdrviewer.css');          $layout->add_css("$FIG_Config::cgi_url/Html/nmpdrviewer.css");
57          $layout->add_css('./Html/commonviewer.css');          $layout->add_css("$FIG_Config::cgi_url/Html/commonviewer.css");
58          # Display the official NMPDR icon for this machine.          # Display the official NMPDR icon for this machine.
59          $layout->add_metatag("<link rel=\"icon\" href=\"${FIG_Config::cgi_base}wiki/pub/logos/nmpdr.ico\" type=\"image/x-icon\" />");          $layout->add_metatag("<link rel=\"icon\" href=\"${FIG_Config::cgi_base}wiki/pub/logos/nmpdr.ico\" type=\"image/x-icon\" />");
60          $layout->add_metatag("<link rel=\"shortcut icon\" href=\"${FIG_Config::cgi_base}wiki/pub/logos/nmpdr.ico\" type=\"image/x-icon\" />");          $layout->add_metatag("<link rel=\"shortcut icon\" href=\"${FIG_Config::cgi_base}wiki/pub/logos/nmpdr.ico\" type=\"image/x-icon\" />");
61      } else {      } else {
62          # SEED mode.          # SEED mode.
63          $layout->add_css('./Html/seedviewer.css');          $layout->add_css("$FIG_Config::cgi_url/Html/seedviewer.css");
64          $layout->add_css('./Html/commonviewer.css');          $layout->add_css("$FIG_Config::cgi_url/Html/commonviewer.css");
65          $layout->add_css('./Html/default.css');          $layout->add_css("$FIG_Config::cgi_url/Html/default.css");
66     }     }
67      # build menu      # build menu
68      my $menu;      my $menu;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3