1
|
<%@ page language="java" %>
|
2
|
<!--
|
3
|
/**
|
4
|
* '$RCSfile$'
|
5
|
* Authors: Matt Jones, CHad Berkley
|
6
|
* Copyright: 2000 Regents of the University of California and the
|
7
|
* National Center for Ecological Analysis and Synthesis
|
8
|
* For Details: http://www.nceas.ucsb.edu/
|
9
|
*
|
10
|
* '$Author: costa $'
|
11
|
* '$Date: 2005-05-26 14:25:04 -0700 (Thu, 26 May 2005) $'
|
12
|
* '$Revision: 2507 $'
|
13
|
*
|
14
|
* This program is free software; you can redistribute it and/or modify
|
15
|
* it under the terms of the GNU General Public License as published by
|
16
|
* the Free Software Foundation; either version 2 of the License, or
|
17
|
* (at your option) any later version.
|
18
|
*
|
19
|
* This program is distributed in the hope that it will be useful,
|
20
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22
|
* GNU General Public License for more details.
|
23
|
*
|
24
|
* You should have received a copy of the GNU General Public License
|
25
|
* along with this program; if not, write to the Free Software
|
26
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27
|
*
|
28
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
29
|
* convert an XML file showing the resultset of a query
|
30
|
* into an HTML format suitable for rendering with modern web browsers.
|
31
|
*/
|
32
|
-->
|
33
|
<%@ include file="settings.jsp"%>
|
34
|
<%@ include file="session_vars.jsp"%>
|
35
|
<!-- *********************** START SEARCHBOX TABLE ************************* -->
|
36
|
<html>
|
37
|
<head>
|
38
|
<title>LTER Data Catalog</title>
|
39
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
40
|
<link href="<%=relativeRoot%>/lter.css" rel="stylesheet" type="text/css">
|
41
|
<script language="javascript"
|
42
|
type="text/javascript" src="<%=relativeRoot%>/lter.js">
|
43
|
</script>
|
44
|
<script language="javascript" type="text/javascript">
|
45
|
function trim(stringToTrim) {
|
46
|
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
|
47
|
}
|
48
|
function allowSearch(formObj) {
|
49
|
var canSearch = true;
|
50
|
var searchString = trim(formObj.elements["anyfield"].value);
|
51
|
if (searchString=="") {
|
52
|
if (confirm("Show *all* data in the Catalog?\n(this may take some time!) ")) {
|
53
|
formObj.elements["anyfield"].value = "%";
|
54
|
canSearch = true;
|
55
|
} else {
|
56
|
formObj.elements["anyfield"].focus();
|
57
|
canSearch = false;
|
58
|
}
|
59
|
}
|
60
|
return canSearch;
|
61
|
}
|
62
|
function keywordSearch(formObj, searchKeyword) {
|
63
|
var searchString = trim(searchKeyword);
|
64
|
if (searchString=="") searchString="%";
|
65
|
formObj.anyfield.value=searchString;
|
66
|
formObj.submit();
|
67
|
return true;
|
68
|
}
|
69
|
</script>
|
70
|
</head>
|
71
|
|
72
|
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
73
|
<table width="750px" align="center" cellspacing="0" cellpadding="0">
|
74
|
<tr>
|
75
|
<td width="10" align="right" valign="top">
|
76
|
<img src="<%=relativeRoot%>/images/panelhead_bg_lcorner.gif"
|
77
|
width="10" height="21">
|
78
|
</td>
|
79
|
<td class="sectionheader">
|
80
|
search for data
|
81
|
</td>
|
82
|
<td width="10" align="left" valign="top">
|
83
|
<img src="<%=relativeRoot%>/images/panelhead_bg_rcorner.gif"
|
84
|
width="10" height="21">
|
85
|
</td>
|
86
|
</tr>
|
87
|
<tr>
|
88
|
<td colspan="3">
|
89
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"
|
90
|
class="subpanel">
|
91
|
<tr>
|
92
|
<td colspan="2"></td>
|
93
|
</tr>
|
94
|
<tr valign="baseline">
|
95
|
<td colspan="2">
|
96
|
<form action="<%=METACAT_URL%>" name="searchForm" method="post"
|
97
|
target="_top" onSubmit="return allowSearch(this);">
|
98
|
<%=sessionidField%>
|
99
|
<%=SIMPLE_SEARCH_METACAT_POST_FIELDS%>
|
100
|
<table width="100%" border="0" cellpadding="5" cellspacing="0">
|
101
|
<tr>
|
102
|
<td width="94" rowspan="2" align="left" valign="top">
|
103
|
<img src="<%=relativeRoot%>/images/LTERLogo86x111.gif"
|
104
|
width="86" height="111">
|
105
|
</td>
|
106
|
<td colspan="2" valign="middle" class="text_example">
|
107
|
<p>
|
108
|
<%= loginStatus %>
|
109
|
(<a href="<%=relativeRoot%>/index.jsp#loginanchor"
|
110
|
target="_top"><%=loginButtonLabel%></a>).
|
111
|
You may search the data catalog without being logged
|
112
|
into your account, but will have access only to
|
113
|
"public" data (see "login &
|
114
|
registration")
|
115
|
</p>
|
116
|
<p>
|
117
|
Enter a search phrase (e.g. biodiversity) to search
|
118
|
for data sets in the data catalog, or simply browse
|
119
|
by category using the links below.
|
120
|
</p>
|
121
|
</td>
|
122
|
</tr>
|
123
|
<tr valign="middle">
|
124
|
<td align="right" class="searchcat">
|
125
|
<input type="text" name="anyfield" size="30"
|
126
|
maxlength="200">
|
127
|
</td>
|
128
|
<td width="365" align="left" class="searchcat">
|
129
|
<input type="submit" value="Search Data Catalog">
|
130
|
|
131
|
<a href="/query/metacatpathquery.jsp" target="_top">
|
132
|
» advanced search «
|
133
|
</a>
|
134
|
</td>
|
135
|
</tr>
|
136
|
</table>
|
137
|
</form>
|
138
|
</td>
|
139
|
</tr>
|
140
|
<%
|
141
|
/*
|
142
|
US Geography
|
143
|
------------
|
144
|
Northeast, Southeast, South, Midwest, Northwest, Southwest, Pacific Ocean, Atlantic Ocean,
|
145
|
Great Lakes, (could also list states here)
|
146
|
*/
|
147
|
%>
|
148
|
<tr>
|
149
|
<td width="375"> </td>
|
150
|
<td width="365" class="searchsubcat"> </td>
|
151
|
</tr>
|
152
|
<tr>
|
153
|
<td width="375" class="searchcat">Ecology</td>
|
154
|
<td width="365" class="searchcat">Evolution</td>
|
155
|
</tr>
|
156
|
<tr valign="top">
|
157
|
<td width="375" class="searchsubcat">
|
158
|
<a href="#" onClick="keywordSearch(document.searchForm, 'biodiversity')" class="searchsubcat">Biodiversity,</a>
|
159
|
<a href="#" onClick="keywordSearch(document.searchForm, 'competition')" class="searchsubcat">Competition,</a>
|
160
|
<a href="#" onClick="keywordSearch(document.searchForm, 'decomposition')" class="searchsubcat">Decomposition,</a>
|
161
|
<a href="#" onClick="keywordSearch(document.searchForm, 'disturbance')" class="searchsubcat">Disturbance,</a>
|
162
|
<a href="#" onClick="keywordSearch(document.searchForm, 'endangered species')" class="searchsubcat">Endangered Species,</a>
|
163
|
<a href="#" onClick="keywordSearch(document.searchForm, 'herbivory')" class="searchsubcat">Herbivory,</a>
|
164
|
<a href="#" onClick="keywordSearch(document.searchForm, 'invasive species')" class="searchsubcat">Invasive Species,</a>
|
165
|
<a href="#" onClick="keywordSearch(document.searchForm, 'nutrient cycling')" class="searchsubcat">Nutrient Cycling,</a>
|
166
|
<a href="#" onClick="keywordSearch(document.searchForm, 'parasitism')" class="searchsubcat">Parasitism,</a>
|
167
|
<a href="#" onClick="keywordSearch(document.searchForm, 'population dynamics')" class="searchsubcat">Population Dynamics,</a>
|
168
|
<a href="#" onClick="keywordSearch(document.searchForm, 'predation')" class="searchsubcat">Predation,</a>
|
169
|
<a href="#" onClick="keywordSearch(document.searchForm, 'productivity')" class="searchsubcat">Productivity,</a>
|
170
|
<a href="#" onClick="keywordSearch(document.searchForm, 'succession')" class="searchsubcat">Succession,</a>
|
171
|
<a href="#" onClick="keywordSearch(document.searchForm, 'symbiosis')" class="searchsubcat">Symbiosis,</a>
|
172
|
<a href="#" onClick="keywordSearch(document.searchForm, 'trophic dynamics')" class="searchsubcat">Trophic Dynamics</a>
|
173
|
</td>
|
174
|
<td width="365" class="searchsubcat">
|
175
|
<a href="#" onClick="keywordSearch(document.searchForm, 'adaptation')" class="searchsubcat">Adaptation,</a>
|
176
|
<a href="#" onClick="keywordSearch(document.searchForm, 'evolution')" class="searchsubcat">Evolution,</a>
|
177
|
<a href="#" onClick="keywordSearch(document.searchForm, 'extinct')" class="searchsubcat">Extinction,</a>
|
178
|
<a href="#" onClick="keywordSearch(document.searchForm, 'genetics')" class="searchsubcat">Genetics,</a>
|
179
|
<a href="#" onClick="keywordSearch(document.searchForm, 'mutation')" class="searchsubcat">Mutation,</a>
|
180
|
<a href="#" onClick="keywordSearch(document.searchForm, 'selection')" class="searchsubcat">Selection,</a>
|
181
|
<a href="#" onClick="keywordSearch(document.searchForm, 'speciation')" class="searchsubcat">Speciation,</a>
|
182
|
<a href="#" onClick="keywordSearch(document.searchForm, 'survival')" class="searchsubcat">Survival</a>
|
183
|
</td>
|
184
|
</tr>
|
185
|
<tr>
|
186
|
<td width="375"> </td>
|
187
|
<td width="365"> </td>
|
188
|
</tr>
|
189
|
<tr>
|
190
|
<td width="365" class="searchcat">Habitat</td>
|
191
|
<td width="375" class="searchcat">Level of Organization</td>
|
192
|
</tr>
|
193
|
<tr valign="top">
|
194
|
<td width="365" class="searchsubcat">
|
195
|
<a href="#" onClick="keywordSearch(document.searchForm, 'alpine')" class="searchsubcat">Alpine,</a>
|
196
|
<a href="#" onClick="keywordSearch(document.searchForm, 'benthic')" class="searchsubcat">Benthic,</a>
|
197
|
<a href="#" onClick="keywordSearch(document.searchForm, 'desert')" class="searchsubcat">Desert,</a>
|
198
|
<a href="#" onClick="keywordSearch(document.searchForm, 'estuar')" class="searchsubcat">Estuary,</a>
|
199
|
<a href="#" onClick="keywordSearch(document.searchForm, 'forest')" class="searchsubcat">Forest,</a>
|
200
|
<a href="#" onClick="keywordSearch(document.searchForm, 'freshwater')" class="searchsubcat">Freshwater,</a>
|
201
|
<a href="#" onClick="keywordSearch(document.searchForm, 'grassland')" class="searchsubcat">Grassland,</a>
|
202
|
<a href="#" onClick="keywordSearch(document.searchForm, 'marine')" class="searchsubcat">Marine,</a>
|
203
|
<a href="#" onClick="keywordSearch(document.searchForm, 'montane')" class="searchsubcat">Montane,</a>
|
204
|
<a href="#" onClick="keywordSearch(document.searchForm, 'terrestrial')" class="searchsubcat">Terrestrial,</a>
|
205
|
<a href="#" onClick="keywordSearch(document.searchForm, 'tundra')" class="searchsubcat">Tundra,</a>
|
206
|
<a href="#" onClick="keywordSearch(document.searchForm, 'urban')" class="searchsubcat">Urban,</a>
|
207
|
<a href="#" onClick="keywordSearch(document.searchForm, 'wetland')" class="searchsubcat">Wetland</a>
|
208
|
</td>
|
209
|
<td width="375" class="searchsubcat">
|
210
|
<a href="#" onClick="keywordSearch(document.searchForm, 'cell')" class="searchsubcat">Cell,</a>
|
211
|
<a href="#" onClick="keywordSearch(document.searchForm, 'community')" class="searchsubcat">Community,</a>
|
212
|
<a href="#" onClick="keywordSearch(document.searchForm, 'ecosystem')" class="searchsubcat">Ecosystem,</a>
|
213
|
<a href="#" onClick="keywordSearch(document.searchForm, 'global')" class="searchsubcat">Global</a>
|
214
|
<a href="#" onClick="keywordSearch(document.searchForm, 'landscape')" class="searchsubcat">Landscape,</a>
|
215
|
<a href="#" onClick="keywordSearch(document.searchForm, 'molecul')" class="searchsubcat">Molecule,</a>
|
216
|
<a href="#" onClick="keywordSearch(document.searchForm, 'organism')" class="searchsubcat">Organism,</a>
|
217
|
<a href="#" onClick="keywordSearch(document.searchForm, 'population')" class="searchsubcat">Population,</a>
|
218
|
</td>
|
219
|
</tr>
|
220
|
<tr>
|
221
|
<td width="375"> </td>
|
222
|
<td width="365" class="searchsubcat"> </td>
|
223
|
</tr>
|
224
|
<tr>
|
225
|
<td width="365" class="searchcat">Measurements</td>
|
226
|
<td width="375" class="searchcat">Taxonomy</td>
|
227
|
</tr>
|
228
|
<tr valign="top">
|
229
|
<td width="365" class="searchsubcat">
|
230
|
<a href="#" onClick="keywordSearch(document.searchForm, 'biomass')" class="searchsubcat">Biomass,</a>
|
231
|
<a href="#" onClick="keywordSearch(document.searchForm, 'carbon')" class="searchsubcat">Carbon,</a>
|
232
|
<a href="#" onClick="keywordSearch(document.searchForm, 'chlorophyll')" class="searchsubcat">Chlorophyll,</a>
|
233
|
<a href="#" onClick="keywordSearch(document.searchForm, 'gis')" class="searchsubcat">GIS,</a>
|
234
|
<a href="#" onClick="keywordSearch(document.searchForm, 'nitrate')" class="searchsubcat">Nitrate,</a>
|
235
|
<a href="#" onClick="keywordSearch(document.searchForm, 'nutrient')" class="searchsubcat">Nutrients,</a>
|
236
|
<a href="#" onClick="keywordSearch(document.searchForm, 'precipitation')" class="searchsubcat">Precipitation,</a>
|
237
|
<a href="#" onClick="keywordSearch(document.searchForm, 'radiation')" class="searchsubcat">Radiation,</a>
|
238
|
<a href="#" onClick="keywordSearch(document.searchForm, 'temperature')" class="searchsubcat">Temperature,</a>
|
239
|
<a href="#" onClick="keywordSearch(document.searchForm, 'weather')" class="searchsubcat">Weather</a>
|
240
|
</td>
|
241
|
<td width="375" class="searchsubcat">
|
242
|
<a href="#" onClick="keywordSearch(document.searchForm, 'amphibian')" class="searchsubcat">Amphibian,</a>
|
243
|
<a href="#" onClick="keywordSearch(document.searchForm, 'bird')" class="searchsubcat">Bird,</a>
|
244
|
<a href="#" onClick="keywordSearch(document.searchForm, 'fish')" class="searchsubcat">Fish,</a>
|
245
|
<a href="#" onClick="keywordSearch(document.searchForm, 'fungus')" class="searchsubcat">Fungus,</a>
|
246
|
<a href="#" onClick="keywordSearch(document.searchForm, 'invertebrate')" class="searchsubcat">Invertebrate,</a>
|
247
|
<a href="#" onClick="keywordSearch(document.searchForm, 'mammal')" class="searchsubcat">Mammal,</a>
|
248
|
<a href="#" onClick="keywordSearch(document.searchForm, 'microbe')" class="searchsubcat">Microbe,</a>
|
249
|
<a href="#" onClick="keywordSearch(document.searchForm, 'plant')" class="searchsubcat">Plant,</a>
|
250
|
<a href="#" onClick="keywordSearch(document.searchForm, 'reptile')" class="searchsubcat">Reptile,</a>
|
251
|
<a href="#" onClick="keywordSearch(document.searchForm, 'virus')" class="searchsubcat">Virus</a>
|
252
|
</td>
|
253
|
</tr>
|
254
|
<tr>
|
255
|
<td width="375"> </td>
|
256
|
<td width="365"> </td>
|
257
|
</tr>
|
258
|
</table>
|
259
|
</td>
|
260
|
</tr>
|
261
|
</table>
|
262
|
</body>
|
263
|
<!-- ************************* END SEARCHBOX TABLE ************************* -->
|