Project

General

Profile

1 3422 walbridge
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Jivka Bojilova
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file with information about login action
29
  * into an HTML format suitable for rendering with modern web browsers.
30
-->
31
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33
34
  <xsl:output method="html"/>
35
  <xsl:param name="qformat">default</xsl:param>
36
  <xsl:template match="/">
37
   <html>
38
      <head>
39
        <link rel="stylesheet" type="text/css"
40
              href="@style-skins-path@/nceas/nceas.css" />
41
        <script language="Javascript" type="text/JavaScript"
42
                src="@style-skins-path@/nceas/nceas.js" />
43
        <script language="Javascript" type="text/JavaScript"
44
                src="@style-common-path@/branding.js" />
45 3596 walbridge
         <script language="JavaScript">
46
         <![CDATA[
47
            function search(){
48
                location.href = "@cgi-prefix@/register-dataset.cgi?cfg=nceas";
49
            }]]>
50
         </script>
51 3422 walbridge
      </head>
52 3596 walbridge
      <body onload="timerId=setTimeout('search()',2000)">
53
      <div id="main_wrapper">
54 3422 walbridge
55 3596 walbridge
      <div id="header">
56
          <p>Skip to <a href="#navigation">navigation</a>, <a href="#main_content">main
57
          content</a>, <a href="#secondary_content">secondary content</a> or to <a
58
          href="#search">search</a>.</p> <h1><span></span><a href="/">NCEAS</a></h1>
59
      </div>
60
      <div id="navigation">
61
          <p></p>
62
          <ul id="main_nav">
63
              <ul class="menu">
64
                  <li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li>
65
                  <li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li>
66
                  <li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li>
67
            </ul>
68
        </ul>
69
    </div> <!-- navigation -->
70
71
    <div id="content_wrapper">
72
        <h1>NCEAS Data Repository</h1>
73
74 3422 walbridge
      <xsl:if test="count(login) &gt; 0">
75 3596 walbridge
          <p class="text_plain">
76 3690 leinfelder
            Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the data repository form.
77 3596 walbridge
          </p>
78 3422 walbridge
      </xsl:if>
79
      <xsl:if test="count(unauth_login) &gt; 0">
80 3596 walbridge
          <p class="text_plain">
81
            <xsl:value-of select="unauth_login/message" />
82
          </p>
83 3422 walbridge
      </xsl:if>
84 3596 walbridge
          <p class="text_plain">
85
            Return to the <a href="@systemidserver@@style-skins-path@/nceas/">Registry home</a>.
86
          </p>
87
        </div>
88
        </div>
89
      </body>
90 3422 walbridge
    </html>
91
    </xsl:template>
92
93
</xsl:stylesheet>