Project

General

Profile

1
<?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: walbridge $'
10
	*     '$Date: 2007-11-06 09:39:58 -0800 (Tue, 06 Nov 2007) $'
11
	* '$Revision: 3577 $'
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
			<body id="Overview">
48
				<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
				href="@systemidserver@@style-skins-path@/{$qformat}/nceas.css" />
83
			<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
				</ul>
135
			</ul>
136
		</div><!-- navigation -->
137
	</xsl:template>
138
    
139
    <xsl:template name="emldocument">
140
    	<table xsl:use-attribute-sets="cellspacing" width="100%"
141
               class="{$mainContainerTableStyle}">
142
            <xsl:apply-templates select="*[local-name()='eml']"/>
143
        </table>
144
    </xsl:template>
145

    
146
	<xsl:template name="bodyfooter">
147
		<div id="footer">
148
			<div id="footer_logos">
149
				<a href="http://www.msi.ucsb.edu/">
150
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_msi.jpg"
151
						alt="MSI: Marine Science Institute" height="66" width="132"/></a>
152
				<a href="http://www.nsf.gov/">
153
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_nsf.jpg"
154
						alt="NSF: National Science Foundation" height="66"
155
						width="70"/></a>
156
				<a href="http://www.ucsb.edu/">
157
					<img src="@systemidserver@@style-skins-path@/{$qformat}/images/logo_ucsb.jpg"
158
						alt="UCSB: University of California at Santa Barbara"
159
						height="66" width="132"/></a>
160
			</div><!-- footer_logos -->
161
			<div id="footer_contact">
162
				<span class="contact_name">
163
					National Center for Ecological
164
					Analysis and Synthesis
165
				</span>
166

    
167
				<span class="contact_address">
168
					735 State Street, Suite 300, Santa
169
					Barbara, CA 93101
170
				</span>
171
				<span class="copyright">
172
					Copyright &#169; 2007 The Regents of
173
									the University of California, All
174
									Rights Reserved
175
								</span>
176
								<span class="copyright">
177
									<a href="http://www.ucsb.edu/"
178
										title="Visit the
179
UCSB website">
180
										UC Santa Barbara
181
									</a>
182
									, Santa Barbara CA 93106 &#149;
183
					(805) 893-8000
184
				</span>
185
				<span class="copyright">
186
					<a
187
						href="mailto:webmaster@nceas.ucsb.edu"
188
						title="E-mail the NCEAS webmaster">
189
						Contact
190
					</a>
191
					&#149;
192
					<a
193
						href="http://www.ucsb.edu/policies/terms-of-use.shtml">
194
						Terms of Use
195
					</a>
196
					&#149;
197
					<a href="http://www.nceas.ucsb.edu/accessibility"
198
						title="NCEAS is committed to the accessibility of its products for all users">
199
						Accessibility</a>
200
				</span>
201

    
202
				<span class="copyright">
203
					Last Modified July 10, 2007
204
				</span>
205
			</div><!-- footer_contact -->
206
		</div>
207
	</xsl:template>
208

    
209
</xsl:stylesheet>
(11-11/13)