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