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: daigle $'
10
	*     '$Date: 2009-04-14 10:13:23 -0700 (Tue, 14 Apr 2009) $'
11
	* '$Revision: 4918 $'
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
    <xsl:import href="../../common/eml-2/emlroot.xsl"/>
37
    <xsl:import href="../../common/fgdc/fgdc_1.xsl"/>
38

    
39
	<xsl:output method="html" />
40
	<xsl:param name="sessid" />
41
	<xsl:param name="qformat">default</xsl:param>
42
	<xsl:param name="enableediting">false</xsl:param>
43
	
44
	<xsl:template match="/">
45
		<html>
46
		
47
			<xsl:call-template name="documenthead"/>
48
			
49
			<body id="Overview">
50
			
51
				<div id="main_wrapper">
52
				
53
					<table class="templatecontentareaclass" cellpadding="0" cellspacing="0" border="0">
54
						<tr>
55
							<td colspan="3">
56
								<!--  header -->
57
							    <xsl:call-template name="bodyheader"/>
58
							</td>
59
						</tr>
60
						
61
						<tr>
62
							<td class="templateleftcolclass">
63
								<!-- left nav -->
64
								<xsl:call-template  name="leftnav" />						
65
							</td>
66
							
67
							<td valign="top">
68
								<!-- main content -->
69
								<div id="content_wrapper">
70
			                   		 
71
			                   		<xsl:if test="*[local-name()='eml']">     	
72
			                            <xsl:call-template name="emldocument"/>
73
			                        </xsl:if>
74
			                         
75
			                        <xsl:if test="*[local-name()='metadata']">     	
76
			                            <xsl:call-template name="fgdcdocument"/>
77
			                        </xsl:if>
78
			                        
79
			                        <xsl:if test="*[local-name()='resultset']">     	
80
			                            <xsl:call-template name="resultstable"/>
81
			                        </xsl:if>
82

    
83
								</div><!-- id="content_wrapper"-->
84
								
85
							</td>
86
							<td>
87
								<!-- right content if needed -->
88
							</td>
89
						</tr>
90
						<tr class="footerContent">
91
							<td colspan="3">
92
								<!-- footer -->
93
								<xsl:call-template name="bodyfooter"/>
94
							</td>
95
						</tr>
96
					</table>			
97
								
98
				</div><!-- id="main_wraper"-->
99
				
100
			</body>
101
			
102
		</html>
103
	</xsl:template>
104
	
105
	<xsl:template name="documenthead">
106
		<head>
107
			<title>SANParks
108
			<xsl:if test="*[local-name()='eml']">     	
109
            	<xsl:text>: </xsl:text><xsl:value-of select="/eml:eml/dataset/title"/>
110
            </xsl:if>
111
            </title>
112
                        
113
			<script language="Javascript" type="text/JavaScript"
114
				src="{$contextURL}style/skins/{$qformat}/{$qformat}.js" />
115
			<script language="Javascript" type="text/JavaScript"
116
				src="{$contextURL}/style/common/branding.js" />
117
			<link rel="stylesheet" type="text/css"
118
				href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
119

    
120
			<script language="JavaScript">
121
				<![CDATA[
122
         		function submitform(action,form_ref) {
123
             		form_ref.action.value=action;
124
             		form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
125
             		form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
126
		            form_ref.submit();
127
         		}
128
				]]>
129
			</script>
130
		</head>
131
	</xsl:template>
132
	
133
	<xsl:template name="leftnav">
134
		<!--  left nav -->
135
		<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
136
			<!-- Left Nav -->
137
			<tr class="leftnav" valign="top">
138
				<td class="headermenu">Parks A-Z</td>
139
			</tr>
140
			<tr class="leftnav" valign="top">
141
				<td>
142
					<form action="{$contextURL}/style/skins/{$qformat}/index.jspx" method="post" target="_top" name="orgForm">
143
						<input name="organizationScope" type="hidden" value="" />
144
						<table>
145
							<tr>
146
								<td>
147
									<div id="nav">
148
									<ul class="level-1">
149
										<li>
150
											<a href="#" onclick="orgForm.organizationScope.value='';orgForm.submit();">All</a>
151
										</li>
152
										<li>
153
											<a href="#" onclick="orgForm.organizationScope.value='SANParks, South Africa';orgForm.submit();">SANParks</a>
154
											<ul class="level-2">
155
												<li><a href="#" onclick="orgForm.organizationScope.value='SANParks, South Africa';orgForm.submit();">All</a></li>
156
												<li><a href="#" onclick="orgForm.organizationScope.value='Addo National Park, South Africa';orgForm.submit();">Addo National Park</a></li>
157
												<li><a href="#" onclick="orgForm.organizationScope.value='Agulhas National Park, South Africa';orgForm.submit();">Agulhas National Park</a></li>
158
												<li><a href="#" onclick="orgForm.organizationScope.value='Augrabies Falls National Park, South Africa';orgForm.submit();">Augrabies Falls National Park</a></li>
159
												<li><a href="#" onclick="orgForm.organizationScope.value='Bontebok National Park, South Africa';orgForm.submit();">Bontebok National Park</a></li>
160
												<li><a href="#" onclick="orgForm.organizationScope.value='Camdeboo National Park, South Africa';orgForm.submit();">Camdeboo National Park</a></li>
161
												<li><a href="#" onclick="orgForm.organizationScope.value='Golden Gate National Park, South Africa';orgForm.submit();">Golden Gate National Park</a></li>
162
												<li><a href="#" onclick="orgForm.organizationScope.value='Karoo National Park, South Africa';orgForm.submit();">Karoo National Park</a></li>
163
												<li><a href="#" onclick="orgForm.organizationScope.value='Knysna National Lake Area, South Africa';orgForm.submit();">Knysna National Lake Area</a></li>
164
												<li><a href="#" onclick="orgForm.organizationScope.value='Kruger National Park, South Africa';orgForm.submit();">Kruger National Park</a></li>
165
												<li><a href="#" onclick="orgForm.organizationScope.value='Mapungubwe National Park, South Africa';orgForm.submit();">Mapungubwe National Park</a></li>
166
												<li><a href="#" onclick="orgForm.organizationScope.value='Marakele National Park, South Africa';orgForm.submit();">Marakele National Park</a></li>
167
												<li><a href="#" onclick="orgForm.organizationScope.value='Mokala National Park, South Africa';orgForm.submit();">Mokala National Park</a></li>
168
												<li><a href="#" onclick="orgForm.organizationScope.value='Mountain Zebra National Park, South Africa';orgForm.submit();">Mountain Zebra National Park</a></li>
169
												<li><a href="#" onclick="orgForm.organizationScope.value='Namaqua National Park, South Africa';orgForm.submit();">Namaqua National Park</a></li>
170
												<li><a href="#" onclick="orgForm.organizationScope.value='Richtersveld National Park, South Africa';orgForm.submit();">Richtersveld National Park</a></li>
171
												<li><a href="#" onclick="orgForm.organizationScope.value='Table Mountain National Park, South Africa';orgForm.submit();">Table Mountain National Park</a></li>
172
												<li><a href="#" onclick="orgForm.organizationScope.value='Tankwa Karoo National Park, South Africa';orgForm.submit();">Tankwa Karoo National Park</a></li>
173
												<li><a href="#" onclick="orgForm.organizationScope.value='Tsitsikamma National Park, South Africa';orgForm.submit();">Tsitsikamma National Park</a></li>
174
												<li><a href="#" onclick="orgForm.organizationScope.value='West Coast National Park, South Africa';orgForm.submit();">West Coast National Park</a></li>
175
												<li><a href="#" onclick="orgForm.organizationScope.value='Wilderness National Park, South Africa';orgForm.submit();">Wilderness National Park</a></li>
176
											</ul>
177
										</li>
178
										<li>
179
											<a href="#" onclick="orgForm.organizationScope.value='SAEON, South Africa';orgForm.submit();">SAEON</a>
180
											<ul class="level-2">
181
												<li><a href="#" onclick="orgForm.organizationScope.value='SAEON, South Africa';orgForm.submit();">All</a></li>
182
												<li><a href="#" onclick="orgForm.organizationScope.value='Elwandle SAEON Node, South Africa';orgForm.submit();">Elwandle SAEON Node</a></li>										
183
												<li><a href="#" onclick="orgForm.organizationScope.value='Ndlovu SAEON Node, South Africa';orgForm.submit();">Ndlovu SAEON Node</a></li>
184
											</ul>
185
										</li>
186
									</ul>		
187
									</div>
188
								</td>
189
							</tr>
190
						</table>			
191
					</form>	
192
				</td>
193
			</tr>
194
		</table>
195
		<!-- end left nav -->
196
	
197
	</xsl:template>
198
	
199
	<xsl:template name="bodyheader">
200
	
201
		<div id="header">
202
			<table class="iframeheaderclass" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
203
				<!-- Header -->
204
				<tr>
205
					<td style="background: #124325;">
206
						<a href="http://www.SANParks.org/" title="SANParks.org Home">
207
							<img border="0" src="{$contextURL}/style/skins/{$qformat}/images/logofade.jpg" alt="SANParks.org Home" />
208
						</a>
209
					</td>
210
					<td align="center" nowrap="nowrap" width="100%">
211
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
212
							<tr height="92">
213
								<td colspan="2" nowrap="nowrap">
214
									<span class="headertitle">
215
										SANParks
216
										<br/>
217
										South African National Park
218
										<br />
219
										Data Repository
220
									</span>
221
								</td>
222
								<td align="right">
223
									<!-- 
224
									<form name="loginForm" method="post" action="./" 
225
										onsubmit="return allowSubmit(this)">
226
										<input name="qformat" type="hidden" value="sanparks" />
227
										<table border="0" cellspacing="1" cellpadding="0">
228
											<tr>
229
												<td class="login">
230
													<span class="required">User name</span>	
231
												</td>
232
												<td class="login">
233
													<input class="login" name="username" type="text" value="" />
234
												</td>
235
												<td></td>
236
											</tr>
237
											<tr>
238
												<td class="login"><span class="required">Password</span></td>
239
												<td class="login">
240
													<input class="login" name="password" value="" type="password" maxlength="50" />
241
												</td>
242
												<td></td>
243
											</tr>
244
											<tr>
245
												<td class="login"><span class="required">Organization</span></td>
246
												<td class="login"><select class="login" name="organization">
247
													<option value="SANParks" selected="">SANParks</option>
248
													<option value="SAEON">SAEON</option>
249
													<option value="NCEAS">NCEAS</option>
250
													<option value="unaffiliated">unaffiliated</option>
251
												</select></td>
252
												<td class="login">
253
													<input name="action" 
254
													value="Login" type="submit" class="login" style="width: 50px;"/>
255
												</td>
256
											</tr>
257
										</table>
258
									</form>
259
									-->
260
								</td>
261
							</tr>
262
							<tr valign="bottom" height="20" bgcolor="#124325">
263
								<td nowrap="nowrap">
264
									<a href="{$contextURL}/style/skins/{$qformat}/index.jspx" target="_top" class="headermenu">Repository Home</a>
265
								</td>
266
								<td nowrap="nowrap">
267
									<a href="LINK HERE" class="headermenu">Register Data</a>
268
								</td>
269
								<td>
270
									<a href="LINK HERE" class="headermenu">Request an account</a>
271
								</td>
272
							</tr>
273
						</table>
274
					</td>
275
					<td valign="bottom" align="right">
276
						<!-- <img src='images/lilies.jpg' alt='Lilies' /> -->
277
						<img src='{$contextURL}/style/skins/{$qformat}/images/giraffe.jpg' alt='Giraffe' />
278
					</td>
279
				</tr>
280
			</table>
281
		</div>
282
		
283
	</xsl:template>
284
    
285
    <xsl:template name="emldocument">
286
    	<table xsl:use-attribute-sets="cellspacing" width="100%"
287
               class="{$mainContainerTableStyle}">
288
            <xsl:apply-templates select="*[local-name()='eml']"/>
289
        </table>
290
    </xsl:template>
291
    
292
    <xsl:template name="fgdcdocument">
293
    	<table xsl:use-attribute-sets="cellspacing" width="100%"
294
               class="{$mainContainerTableStyle}">
295
            <xsl:apply-templates select="*[local-name()='metadata']"/>
296
        </table>
297
    </xsl:template>
298

    
299
	<xsl:template name="bodyfooter">
300
		<div id="footer">
301
			<p>
302
                This project is a cooperative effort of the
303
                <a href="http://www.sanparks.org/">South African National Parks (SANParks)</a> and the 
304
                <a href="http://www.nceas.ucsb.edu">National Center for Ecological Analysis and Synthesis (NCEAS)</a>.
305
                The Data Repository is based on software developed by the 
306
                <a href="http://knb.ecoinformatics.org">Knowledge Network for Biocomplexity (KNB)</a>,
307
                and houses metadata that are compliant with 
308
                <a href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata Language (EML)</a>
309
                and the <a href="http://www.fgdc.gov/metadata">Federal Geographic Data Committee (FGDC)</a> specification.
310
                Other sites contributing to the KNB repository include:
311
                <ul>
312
                    <li>
313
                        <a href="http://knb.ecoinformatics.org/knb/obfs">Organization of Biological Field Stations registry</a>  
314
                    </li>
315
                    <li>
316
                        <a href="http://knb.ecoinformatics.org/knb/style/skins/nrs">UC Natural Reserve System registry</a>  
317
                    </li>
318
                    <li>
319
                        <a href="http://knb.ecoinformatics.org/knb/style/skins/nceas">NCEAS registry</a>  
320
                    </li>
321
                    <li>
322
                        <a href="http://knb.ecoinformatics.org/knb/style/skins/specnet">SpecNet registry</a>  
323
                    </li>
324
                </ul>
325
            </p>
326
		</div>
327
	</xsl:template>
328

    
329
</xsl:stylesheet>
(27-27/39)