Project

General

Profile

1 3444 jones
<?xml version="1.0"?>
2
<!--
3
	*  '$RCSfile$'
4
	*      Authors: Matt Jones, Chad Berkley
5
	*    Copyright: 2000-2007 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 showing the resultset of a query
29
	* into an HTML format suitable for rendering with modern web browsers.
30
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
32
                xmlns:eml="eml://ecoinformatics.org/eml-2.0.1"
33
	            version="1.0">
34
    <xsl:import href="@systemidserver@@style-common-path@/resultset-table.xsl"/>
35
    <xsl:import href="@systemidserver@@style-common-path@/eml-2.0.1/emlroot.xsl"/>
36
37
	<xsl:output method="html" />
38
	<xsl:param name="sessid" />
39
	<xsl:param name="qformat">default</xsl:param>
40
	<xsl:param name="enableediting">false</xsl:param>
41
42
	<xsl:template match="/">
43
		<html>
44
45
			<xsl:call-template name="documenthead"/>
46
47 3596 walbridge
			<body id="Overview" onload="loginStatus();">
48 3444 jones
				<div id="main_wrapper">
49
50
				    <xsl:call-template name="bodyheader"/>
51
52
					<div id="content_wrapper">
53
54
                   		<xsl:if test="*[local-name()='eml']">
55
                            <xsl:call-template name="emldocument"/>
56
                        </xsl:if>
57
58
                        <xsl:if test="*[local-name()='resultset']">
59
                            <xsl:call-template name="resultstable"/>
60
                        </xsl:if>
61
62
						<xsl:call-template name="bodyfooter"/>
63
64
					</div><!-- id="content_wrapper"-->
65
66
				</div><!-- id="main_wraper"-->
67
68
			</body>
69
70
		</html>
71
	</xsl:template>
72
73
	<xsl:template name="documenthead">
74
		<head>
75
			<title>NCEAS Data Repository
76
			<xsl:if test="*[local-name()='eml']">
77
            	<xsl:text>: </xsl:text><xsl:value-of select="/eml:eml/dataset/title"/>
78
            </xsl:if>
79
            </title>
80
81
			<link rel="stylesheet" type="text/css"
82 3577 walbridge
				href="@systemidserver@@style-skins-path@/{$qformat}/nceas.css" />
83 3444 jones
			<script language="Javascript" type="text/JavaScript"
84
				src="@systemidserver@@style-skins-path@/{$qformat}/{$qformat}.js" />
85
			<script language="Javascript" type="text/JavaScript"
86
				src="@systemidserver@@style-common-path@/branding.js" />
87
			<script type="text/javascript"
88
				src="@systemidserver@@style-skins-path@/nceas/navigation.js">
89
			</script>
90
			<link rel="stylesheet" type="text/css"
91
				href="@systemidserver@@style-skins-path@/{$qformat}/{$qformat}.css" />
92
93
			<script language="JavaScript">
94
				<![CDATA[
95
         		function submitform(action,form_ref) {
96
             		form_ref.action.value=action;
97
             		form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
98
             		form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
99
		            form_ref.submit();
100
         		}
101
				]]>
102
			</script>
103
		</head>
104
	</xsl:template>
105
106
	<xsl:template name="bodyheader">
107
		<div id="header">
108
			<p>Skip to <a href="#navigation">navigation</a>,
109
				<a href="#main_content">main content</a>,
110
				<a href="#secondary_content">secondary content</a>
111
				or to <a href="#search">search</a>.
112
			</p>
113
			<h1>
114
				<span></span>
115
				<a href="/">NCEAS</a>
116
			</h1>
117
		</div>
118
		<div id="navigation">
119
			<ul id="main_nav">
120
121
				<ul class="menu">
122
					<li class="collapsed">
123
						<a href="http://www.nceas.ucsb.edu">Home
124
						</a>
125
					</li>
126
					<li class="collapsed">
127
						<a href="http://data.nceas.ucsb.edu">
128
						   Repository</a>
129
					</li>
130
					<li class="collapsed">
131
						<a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">
132
						   Register</a>
133
					</li>
134 3596 walbridge
          <li class="collapsed">
135
            <span id="login_block"></span>
136
          </li>
137 3444 jones
				</ul>
138
			</ul>
139
		</div><!-- navigation -->
140
	</xsl:template>
141
142
    <xsl:template name="emldocument">
143
    	<table xsl:use-attribute-sets="cellspacing" width="100%"
144
               class="{$mainContainerTableStyle}">
145
            <xsl:apply-templates select="*[local-name()='eml']"/>
146
        </table>
147
    </xsl:template>
148
149
	<xsl:template name="bodyfooter">
150
		<div id="footer">
151
			<div id="footer_logos">
152
				<a href="http://www.msi.ucsb.edu/">
153 3554 bowdish
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_msi.jpg"
154 3444 jones
						alt="MSI: Marine Science Institute" height="66" width="132"/></a>
155
				<a href="http://www.nsf.gov/">
156 3554 bowdish
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_nsf.jpg"
157 3444 jones
						alt="NSF: National Science Foundation" height="66"
158
						width="70"/></a>
159
				<a href="http://www.ucsb.edu/">
160 3554 bowdish
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_ucsb.jpg"
161 3444 jones
						alt="UCSB: University of California at Santa Barbara"
162
						height="66" width="132"/></a>
163
			</div><!-- footer_logos -->
164
			<div id="footer_contact">
165
				<span class="contact_name">
166
					National Center for Ecological
167
					Analysis and Synthesis
168
				</span>
169
170
				<span class="contact_address">
171
					735 State Street, Suite 300, Santa
172
					Barbara, CA 93101
173
				</span>
174
				<span class="copyright">
175
					Copyright &#169; 2007 The Regents of
176
									the University of California, All
177
									Rights Reserved
178
								</span>
179
								<span class="copyright">
180
									<a href="http://www.ucsb.edu/"
181
										title="Visit the
182
UCSB website">
183
										UC Santa Barbara
184
									</a>
185
									, Santa Barbara CA 93106 &#149;
186
					(805) 893-8000
187
				</span>
188
				<span class="copyright">
189
					<a
190
						href="mailto:webmaster@nceas.ucsb.edu"
191
						title="E-mail the NCEAS webmaster">
192
						Contact
193
					</a>
194
					&#149;
195
					<a
196
						href="http://www.ucsb.edu/policies/terms-of-use.shtml">
197
						Terms of Use
198
					</a>
199
					&#149;
200
					<a href="http://www.nceas.ucsb.edu/accessibility"
201
						title="NCEAS is committed to the accessibility of its products for all users">
202
						Accessibility</a>
203
				</span>
204
205
				<span class="copyright">
206
					Last Modified July 10, 2007
207
				</span>
208
			</div><!-- footer_contact -->
209
		</div>
210
	</xsl:template>
211
212
</xsl:stylesheet>