Project

General

Profile

metacat / lib / style / skins / nceas / nceas-login.xsl @ 3666

1
<?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: walbridge $'
10
  *     '$Date: 2007-11-20 13:22:12 -0800 (Tue, 20 Nov 2007) $'
11
  * '$Revision: 3596 $'
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
         <script language="JavaScript">
46
         <![CDATA[
47
            function search(){
48
                location.href = "@cgi-prefix@/register-dataset.cgi?cfg=nceas";
49
            }]]>
50
         </script>
51
      </head>
52
      <body onload="timerId=setTimeout('search()',2000)">
53
      <div id="main_wrapper">
54

    
55
      <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
      <xsl:if test="count(login) &gt; 0">
75
          <p class="text_plain">
76
            Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the data repoistory form.
77
          </p>
78
      </xsl:if>
79
      <xsl:if test="count(unauth_login) &gt; 0">
80
          <p class="text_plain">
81
            <xsl:value-of select="unauth_login/message" />
82
          </p>
83
      </xsl:if>
84
          <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
    </html>
91
    </xsl:template>
92

    
93
</xsl:stylesheet>