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: leinfelder $'
10
	*     '$Date: 2008-02-25 13:10:11 -0800 (Mon, 25 Feb 2008) $'
11
	* '$Revision: 3734 $'
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="../../common/resultset-table.xsl"/>
35
    <xsl:import href="../../common/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
	<xsl:param name="contextURL"/>
42
	<xsl:param name="cgi-prefix"/>
43
	
44
	<xsl:template match="/">
45
		<html>
46
		
47
			<xsl:call-template name="documenthead"/>
48
			
49
			<body id="Overview" onload="loginStatus('{$contextURL}/metacat', '{$cgi-prefix}');">
50
				<div id="main_wrapper">
51
					
52
				    <xsl:call-template name="bodyheader"/>
53
				    
54
					<div id="content_wrapper">
55
					                        
56
                   		<xsl:if test="*[local-name()='eml']">     	
57
                            <xsl:call-template name="emldocument"/>
58
                        </xsl:if>
59
                        
60
                        <xsl:if test="*[local-name()='resultset']">     	
61
                            <xsl:call-template name="resultstable"/>
62
                        </xsl:if>
63
                        
64
						<xsl:call-template name="bodyfooter"/>
65
						
66
					</div><!-- id="content_wrapper"-->
67
					
68
				</div><!-- id="main_wraper"-->
69
				
70
			</body>
71
			
72
		</html>
73
	</xsl:template>
74
	
75
	<xsl:template name="documenthead">
76
		<head>
77
			<title>NCEAS Data Repository
78
			<xsl:if test="*[local-name()='eml']">     	
79
            	<xsl:text>: </xsl:text><xsl:value-of select="/eml:eml/dataset/title"/>
80
            </xsl:if>
81
            </title>
82
                        
83
			<link rel="stylesheet" type="text/css"
84
				href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
85
			<script language="Javascript" type="text/JavaScript"
86
				src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
87
			<script language="Javascript" type="text/JavaScript"
88
				src="{$contextURL}/style/common/branding.js" />
89
			<script type="text/javascript"
90
				src="{$contextURL}/style/skins/nceas/navigation.js">
91
			</script>
92
			<link rel="stylesheet" type="text/css"
93
				href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
94

    
95
			<script language="JavaScript">
96
				<![CDATA[
97
         		function submitform(action,form_ref) {
98
             		form_ref.action.value=action;
99
             		form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
100
             		form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
101
		            form_ref.submit();
102
         		}
103
				]]>
104
			</script>
105
		</head>
106
	</xsl:template>
107
	
108
	<xsl:template name="bodyheader">
109
		<div id="header">
110
			<p>Skip to <a href="#navigation">navigation</a>,
111
				<a href="#main_content">main content</a>,
112
				<a href="#secondary_content">secondary content</a>
113
				or to <a href="#search">search</a>.
114
			</p>
115
			<h1>
116
				<span></span>
117
				<a href="/">NCEAS</a>
118
			</h1>
119
		</div>
120
		<div id="navigation">
121
			<ul id="main_nav">
122

    
123
				<ul class="menu">
124
					<li class="collapsed">
125
						<a href="http://www.nceas.ucsb.edu">Home
126
						</a>
127
					</li>
128
					<li class="collapsed">
129
						<a href="http://data.nceas.ucsb.edu">
130
						   Repository</a>
131
					</li>
132
					<li class="collapsed">
133
						<a href="{$cgi-prefix}/register-dataset.cgi?cfg=nceas">
134
						   Register</a>
135
					</li>
136
          <li class="collapsed">
137
            <span id="login_block"></span>
138
          </li>
139
				</ul>
140
			</ul>
141
		</div><!-- navigation -->
142
	</xsl:template>
143
    
144
    <xsl:template name="emldocument">
145
    	<table xsl:use-attribute-sets="cellspacing" width="100%"
146
               class="{$mainContainerTableStyle}">
147
            <xsl:apply-templates select="*[local-name()='eml']"/>
148
        </table>
149
    </xsl:template>
150

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

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

    
207
				
208
			</div><!-- footer_contact -->
209
		</div>
210
	</xsl:template>
211

    
212
</xsl:stylesheet>
(10-10/12)