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: 2008-04-02 16:28:31 -0700 (Wed, 02 Apr 2008) $'
11
	* '$Revision: 3780 $'
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/fgdc/fgdc_1.xsl"/>
37

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

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

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

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

    
328
</xsl:stylesheet>
(18-18/21)