Project

General

Profile

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-04-07 15:41:51 -0700 (Thu, 07 Apr 2005) $'
12
  * '$Revision: 2471 $'
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 Search Page</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 %> &nbsp;
109
                        (<a href="<%=relativeRoot%>/index.jsp#loginanchor" 
110
                          target="_top"><%=loginButtonLabel%></a>).&nbsp; 
111
                        You may search the data catalog without being logged 
112
                        into your account, but will have access only to 
113
                        &quot;public&quot; data (see &quot;login &amp; 
114
                        registration&quot;)
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">&nbsp;&nbsp;
127
                    </td>
128
                    <td width="365" align="left" class="searchcat"> 
129
                      <input type="submit" value="Search Data Catalog">
130
                      &nbsp;&nbsp;&nbsp;
131
                      <!-- Implement this later
132
                      <a target="_top" 
133
                        href="<%=relativeRoot%>/advancedsearch.jsp"> 
134
                          &raquo;&nbsp;advanced&nbsp;search&nbsp;&laquo;</a>
135
                      -->
136
                    </td>
137
                  </tr>
138
                </table>
139
              </form>
140
            </td>
141
          </tr>
142
<%
143
/*
144
US Geography
145
------------
146
Northeast, Southeast, South, Midwest, Northwest, Southwest, Pacific Ocean, Atlantic Ocean, 
147
Great Lakes, (could also list states here)
148
*/
149
%>
150
          <tr> 
151
            <td width="375">&nbsp;</td>
152
            <td width="365" class="searchsubcat">&nbsp;</td>
153
          </tr>
154
          <tr> 
155
            <td width="375" class="searchcat">Ecology</td>
156
            <td width="365" class="searchcat">Evolution</td>
157
          </tr>
158
          <tr valign="top"> 
159
            <td width="375" class="searchsubcat">
160
              <a href="#" onClick="keywordSearch(document.searchForm, 'biodiversity')" class="searchsubcat">Biodiversity,</a> 
161
              <a href="#" onClick="keywordSearch(document.searchForm, 'competition')" class="searchsubcat">Competition,</a> 
162
              <a href="#" onClick="keywordSearch(document.searchForm, 'decomposition')" class="searchsubcat">Decomposition,</a> 
163
              <a href="#" onClick="keywordSearch(document.searchForm, 'disturbance')" class="searchsubcat">Disturbance,</a> 
164
              <a href="#" onClick="keywordSearch(document.searchForm, 'endangered species')" class="searchsubcat">Endangered Species,</a> 
165
              <a href="#" onClick="keywordSearch(document.searchForm, 'herbivory')" class="searchsubcat">Herbivory,</a> 
166
              <a href="#" onClick="keywordSearch(document.searchForm, 'invasive species')" class="searchsubcat">Invasive Species,</a>
167
              <a href="#" onClick="keywordSearch(document.searchForm, 'nutrient cycling')" class="searchsubcat">Nutrient Cycling,</a>
168
              <a href="#" onClick="keywordSearch(document.searchForm, 'parasitism')" class="searchsubcat">Parasitism,</a> 
169
              <a href="#" onClick="keywordSearch(document.searchForm, 'population dynamics')" class="searchsubcat">Population Dynamics,</a>
170
              <a href="#" onClick="keywordSearch(document.searchForm, 'predation')" class="searchsubcat">Predation,</a> 
171
              <a href="#" onClick="keywordSearch(document.searchForm, 'productivity')" class="searchsubcat">Productivity,</a> 
172
              <a href="#" onClick="keywordSearch(document.searchForm, 'succession')" class="searchsubcat">Succession,</a> 
173
              <a href="#" onClick="keywordSearch(document.searchForm, 'symbiosis')" class="searchsubcat">Symbiosis,</a> 
174
              <a href="#" onClick="keywordSearch(document.searchForm, 'trophic dynamics')" class="searchsubcat">Trophic Dynamics</a>
175
            </td>
176
            <td width="365" class="searchsubcat">
177
              <a href="#" onClick="keywordSearch(document.searchForm, 'adaptation')" class="searchsubcat">Adaptation,</a> 
178
              <a href="#" onClick="keywordSearch(document.searchForm, 'evolution')" class="searchsubcat">Evolution,</a> 
179
              <a href="#" onClick="keywordSearch(document.searchForm, 'extinct')" class="searchsubcat">Extinction,</a> 
180
              <a href="#" onClick="keywordSearch(document.searchForm, 'genetics')" class="searchsubcat">Genetics,</a> 
181
              <a href="#" onClick="keywordSearch(document.searchForm, 'mutation')" class="searchsubcat">Mutation,</a> 
182
              <a href="#" onClick="keywordSearch(document.searchForm, 'selection')" class="searchsubcat">Selection,</a> 
183
              <a href="#" onClick="keywordSearch(document.searchForm, 'speciation')" class="searchsubcat">Speciation,</a> 
184
              <a href="#" onClick="keywordSearch(document.searchForm, 'survival')" class="searchsubcat">Survival</a>
185
            </td>
186
          </tr>
187
          <tr> 
188
            <td width="375">&nbsp;</td>
189
            <td width="365">&nbsp;</td>
190
          </tr>
191
          <tr> 
192
            <td width="365" class="searchcat">Habitat</td>
193
            <td width="375" class="searchcat">Level of Organization</td>
194
          </tr>
195
          <tr valign="top"> 
196
            <td width="365" class="searchsubcat"> 
197
              <a href="#" onClick="keywordSearch(document.searchForm, 'alpine')" class="searchsubcat">Alpine,</a> 
198
              <a href="#" onClick="keywordSearch(document.searchForm, 'benthic')" class="searchsubcat">Benthic,</a> 
199
              <a href="#" onClick="keywordSearch(document.searchForm, 'desert')" class="searchsubcat">Desert,</a> 
200
              <a href="#" onClick="keywordSearch(document.searchForm, 'estuar')" class="searchsubcat">Estuary,</a> 
201
              <a href="#" onClick="keywordSearch(document.searchForm, 'forest')" class="searchsubcat">Forest,</a> 
202
              <a href="#" onClick="keywordSearch(document.searchForm, 'freshwater')" class="searchsubcat">Freshwater,</a> 
203
              <a href="#" onClick="keywordSearch(document.searchForm, 'grassland')" class="searchsubcat">Grassland,</a> 
204
              <a href="#" onClick="keywordSearch(document.searchForm, 'marine')" class="searchsubcat">Marine,</a> 
205
              <a href="#" onClick="keywordSearch(document.searchForm, 'montane')" class="searchsubcat">Montane,</a> 
206
              <a href="#" onClick="keywordSearch(document.searchForm, 'terrestrial')" class="searchsubcat">Terrestrial,</a> 
207
              <a href="#" onClick="keywordSearch(document.searchForm, 'tundra')" class="searchsubcat">Tundra,</a> 
208
              <a href="#" onClick="keywordSearch(document.searchForm, 'urban')" class="searchsubcat">Urban,</a> 
209
              <a href="#" onClick="keywordSearch(document.searchForm, 'wetland')" class="searchsubcat">Wetland</a>
210
            </td>
211
            <td width="375" class="searchsubcat">
212
              <a href="#" onClick="keywordSearch(document.searchForm, 'cell')" class="searchsubcat">Cell,</a> 
213
              <a href="#" onClick="keywordSearch(document.searchForm, 'community')" class="searchsubcat">Community,</a> 
214
              <a href="#" onClick="keywordSearch(document.searchForm, 'ecosystem')" class="searchsubcat">Ecosystem,</a> 
215
              <a href="#" onClick="keywordSearch(document.searchForm, 'global')" class="searchsubcat">Global</a>
216
              <a href="#" onClick="keywordSearch(document.searchForm, 'landscape')" class="searchsubcat">Landscape,</a> 
217
              <a href="#" onClick="keywordSearch(document.searchForm, 'molecul')" class="searchsubcat">Molecule,</a> 
218
              <a href="#" onClick="keywordSearch(document.searchForm, 'organism')" class="searchsubcat">Organism,</a> 
219
              <a href="#" onClick="keywordSearch(document.searchForm, 'population')" class="searchsubcat">Population,</a> 
220
            </td>
221
          </tr>
222
          <tr> 
223
            <td width="375">&nbsp;</td>
224
            <td width="365" class="searchsubcat">&nbsp;</td>
225
          </tr>
226
          <tr> 
227
            <td width="365" class="searchcat">Measurements</td>
228
            <td width="375" class="searchcat">Taxonomy</td>
229
          </tr>
230
          <tr valign="top"> 
231
            <td width="365" class="searchsubcat"> 
232
              <a href="#" onClick="keywordSearch(document.searchForm, 'biomass')" class="searchsubcat">Biomass,</a> 
233
              <a href="#" onClick="keywordSearch(document.searchForm, 'carbon')" class="searchsubcat">Carbon,</a> 
234
              <a href="#" onClick="keywordSearch(document.searchForm, 'chlorophyll')" class="searchsubcat">Chlorophyll,</a> 
235
              <a href="#" onClick="keywordSearch(document.searchForm, 'gis')" class="searchsubcat">GIS,</a> 
236
              <a href="#" onClick="keywordSearch(document.searchForm, 'nitrate')" class="searchsubcat">Nitrate,</a> 
237
              <a href="#" onClick="keywordSearch(document.searchForm, 'nutrient')" class="searchsubcat">Nutrients,</a> 
238
              <a href="#" onClick="keywordSearch(document.searchForm, 'precipitation')" class="searchsubcat">Precipitation,</a> 
239
              <a href="#" onClick="keywordSearch(document.searchForm, 'radiation')" class="searchsubcat">Radiation,</a> 
240
              <a href="#" onClick="keywordSearch(document.searchForm, 'temperature')" class="searchsubcat">Temperature,</a> 
241
              <a href="#" onClick="keywordSearch(document.searchForm, 'weather')" class="searchsubcat">Weather</a>
242
            </td> 
243
            <td width="375" class="searchsubcat">
244
              <a href="#" onClick="keywordSearch(document.searchForm, 'amphibian')" class="searchsubcat">Amphibian,</a> 
245
              <a href="#" onClick="keywordSearch(document.searchForm, 'bird')" class="searchsubcat">Bird,</a> 
246
              <a href="#" onClick="keywordSearch(document.searchForm, 'fish')" class="searchsubcat">Fish,</a> 
247
              <a href="#" onClick="keywordSearch(document.searchForm, 'fungus')" class="searchsubcat">Fungus,</a> 
248
              <a href="#" onClick="keywordSearch(document.searchForm, 'invertebrate')" class="searchsubcat">Invertebrate,</a> 
249
              <a href="#" onClick="keywordSearch(document.searchForm, 'mammal')" class="searchsubcat">Mammal,</a> 
250
              <a href="#" onClick="keywordSearch(document.searchForm, 'microbe')" class="searchsubcat">Microbe,</a> 
251
              <a href="#" onClick="keywordSearch(document.searchForm, 'plant')" class="searchsubcat">Plant,</a> 
252
              <a href="#" onClick="keywordSearch(document.searchForm, 'reptile')" class="searchsubcat">Reptile,</a> 
253
              <a href="#" onClick="keywordSearch(document.searchForm, 'virus')" class="searchsubcat">Virus</a>
254
            </td>
255
          </tr>
256
          <tr> 
257
            <td width="375">&nbsp;</td>
258
            <td width="365">&nbsp;</td>
259
          </tr>
260
        </table>
261
      </td>
262
    </tr>
263
  </table>
264
</body>
265
<!-- ************************* END SEARCHBOX TABLE ************************* -->
(3-3/9)