Project

General

Profile

« Previous | Next » 

Revision 3005

Major upgrade of lter skin. The skin now integrates the functionality of the advanced query web application (previously a separate web app) directly into the skin.

View differences:

lib/style/skins/lter/include_login.jsp
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$'
11
  *     '$Date$'
12
  * '$Revision$'
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
  */
29
-->
30

  
31
<%@ include file="settings.jsp"%>
32
<%@ include file="session_vars.jsp"%>
33
<!-- *********************** START LOGIN TABLE ************************* -->
34
<html>
35
<head>
36
  <title</title>
37
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
38
  <link href="<%=relativeRoot%>/lter.css" rel="stylesheet" type="text/css">
39
  <script language="javascript" 
40
    type="text/javascript" src="<%=relativeRoot%>/lter.js">
41
  </script>
42
  <script language="javascript" type="text/javascript">
43
    var popupMsg = "If you need to create a new account, \n"
44
                   +"click the \"create new account\" link";
45
    function trim(stringToTrim) {
46
      return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
47
    }
48
    function allowSubmit(formObj) {
49
      if (trim(formObj.elements["loginAction"].value)!="Login") return true;
50
      //trim username & passwd:
51
      var username = trim(formObj.elements["username"].value);
52
      var organization = trim(formObj.elements["organization"].value);
53
      var password = trim(formObj.elements["password"].value);
54
      if (username=="") {
55
        alert("You must type a username. \n"+popupMsg);
56
                formObj.elements["username"].focus();
57
        return false;
58
      } 
59
      if (organization=="") {
60
        alert("You must select an organization.\n"+popupMsg); 
61
                formObj.elements["organization"].focus();
62
        return false;
63
      } 
64
      if (password=="") {
65
        alert("You must type a password. \n"+popupMsg);
66
              formObj.elements["password"].focus();
67
        return false;
68
      }
69
      return true;
70
    } 
71
    <%=(isLoggedIn)?
72
        "   document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
73
        +"                  path="          + CONTEXT_NAME  +  "\";\n"
74
        :"  document.cookie = \"JSESSIONID=" + sess_sessionId + ";"
75
        +"                  path="          + CONTEXT_NAME  +  ";"
76
        +"                  expires=Thu, 01-Jan-70 00:00:01 GMT\";\n"
77
    %>
78
  </script>
79
</head>
80

  
81
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
82
  <table width="750px" align="center" border="0" cellspacing="0" cellpadding="0">
83
    <tr> 
84
      <td width="10">
85
        <img src="./images/panelhead_bg_lcorner.gif" width="10" height="21">
86
      </td>
87
      <td class="sectionheader">login &amp; registration</td>
88
      <td width="10">
89
        <img src="./images/panelhead_bg_rcorner.gif" width="10" height="21">
90
      </td>
91
    </tr>
92
    <tr>
93
      <td colspan="3">
94
        <table width="100%" class="subpanel" border="0" cellpadding="0"
95
          cellspacing="0">
96
          <tr>
97
            <td width="10">
98
              <img src="./images/transparent1x1.gif" width="10" height="10">
99
            </td>
100
            <td class="text_example">
101
              <a name="loginanchor"></a>
102
                <p>
103
                  Logging into your account enables you to search any 
104
                  additional, non-public data for which you may have access 
105
                  priviliges:
106
                </p>
107
                <%= loginStatus %>
108
            </td>
109
            <td width="10">
110
              <img src="./images/transparent1x1.gif" width="10" height="10">
111
            </td>
112
          </tr>
113
          <tr> 
114
            <td width="10">
115
              <img src="./images/transparent1x1.gif" width="10" height="10">
116
            </td>
117
            <td> 
118
              <form name="loginform" method="post" action="index.jsp" 
119
                target="_top" onSubmit="return allowSubmit(this);">
120
                <input type="hidden" name="action"  value="login">
121
                <input type="hidden" name="ldapusername"  value="">
122
                <input type="hidden" name="qformat" value="lter">
123
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
124
                <tr valign="middle"> 
125
                  <td align="left" valign="middle" class="text_plain_smaller">
126
                    username:
127
                  </td>
128
                  <td width="173" align="left" 
129
                    style="padding-top: 2px; padding-bottom: 2px;">
130
                    <input name="username" type="text" style="width: 140px;" 
131
                      value="<%=typedUserName%>" <%=loginEnabledDisabled%>>
132
                  </td>
133
                  <td width="10px">
134
                    <img src="./images/transparent1x1.gif" width="10">
135
                  </td>
136
                  <td align="center" class="text_plain">
137
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi">
138
                    create a new account</a>
139
                  </td>
140
                </tr>
141
                <tr valign="middle">
142
                  <td height="28" align="left" 
143
                    valign="middle" class="text_plain_smaller">
144
                    organization:
145
                  </td>
146
                  <td align="left" 
147
                    style="padding-top: 2px; padding-bottom: 2px;">
148
                    <select name="organization" style="width:140px;" 
149
                      <%=loginEnabledDisabled%> >
150
                      <option value="" <%=((posted_organization.length()<1)?                 "selected":"")%>>&#8212; choose one &#8212;</option>
151
                      <option value="NCEAS" <%=((posted_organization.equalsIgnoreCase("NCEAS"))?        "selected":"")%>>NCEAS</option>
152
                      <option value="LTER"         <%=((posted_organization.equalsIgnoreCase("LTER"))?         "selected":"")%>>LTER</option>
153
                      <option value="NRS"          <%=((posted_organization.equalsIgnoreCase("NRS"))?          "selected":"")%>>NRS</option>
154
                      <option value="PISCO"        <%=((posted_organization.equalsIgnoreCase("PISCO"))?        "selected":"")%>>PISCO</option>
155
                      <option value="OBFS"         <%=((posted_organization.equalsIgnoreCase("OBFS"))?         "selected":"")%>>OBFS</option>
156
                      <option value="unaffiliated" <%=((posted_organization.equalsIgnoreCase("unaffiliated"))? "selected":"")%>>unaffiliated</option>
157
                    </select>
158
                  </td>
159
                  <td width="10px">
160
                    <img src="./images/transparent1x1.gif" width="10" >
161
                  </td>
162
                  <td align="center" class="text_plain">
163
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=resetpass">forgot your password?</a>
164
                  </td>
165
                </tr>
166
                <tr valign="middle"> 
167
                  <td width="85" align="left" valign="middle" 
168
                    class="text_plain_smaller">
169
                    password:
170
                  </td>
171
                  <td> 
172
                    <input name="password" type="password" maxlength="50" 
173
                      style="width:140px;" value="<%=posted_password%>" 
174
                    <%=loginEnabledDisabled%>>
175
                  </td>
176
                  <td width="10px">
177
                    <img src="./images/transparent1x1.gif" width="10">
178
                  </td>
179
                  <td align="center" class="text_plain">
180
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=changepass">change your password</a> 
181
                  </td>
182
                </tr>
183
                <tr>
184
                  <td align="center" colspan="2" class="<%= ((isLoggedIn)? "buttonBG_logout": "buttonBG_login") %>">
185
                    <input type="submit" name="loginAction" 
186
                      value="<%=loginButtonLabel%>" class="button_login" />
187
                  </td>
188
                  </td>
189
                  <td width="10">
190
                    <img src="./images/transparent1x1.gif" width="10">
191
                  </td>
192
                  <td>
193
                    <img src="./images/transparent1x1.gif" width="10">
194
                  </td>
195
                </tr>
196
                <tr>
197
                  <td colspan="4">
198
                    </br>
199
                  </td>
200
                </tr>
201
              </table>
202
              </form>
203
            </td>
204
          </tr>
205
        </table>
206
      </td>
207
    </tr>
208
  </table>
209
</body>    
210 0

  
lib/style/skins/lter/include_searchbox.jsp
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$'
11
  *     '$Date$'
12
  * '$Revision$'
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 %> &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
                      <a href="/query/metacatpathquery.jsp" target="_top">
132
                      &raquo;&nbsp;advanced&nbsp;search&nbsp;&laquo;
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">&nbsp;</td>
150
            <td width="365" class="searchsubcat">&nbsp;</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">&nbsp;</td>
187
            <td width="365">&nbsp;</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">&nbsp;</td>
222
            <td width="365" class="searchsubcat">&nbsp;</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">&nbsp;</td>
256
            <td width="365">&nbsp;</td>
257
          </tr>
258
        </table>
259
      </td>
260
    </tr>
261
  </table>
262
</body>
263
<!-- ************************* END SEARCHBOX TABLE ************************* -->
264 0

  
lib/style/skins/lter/include_header.jsp
1
<%@ page    language="java" %>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones, CHad Berkley
5
  *    Copyright: 2000 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$'
10
  *     '$Date$'
11
  * '$Revision$'
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
-->
28
<head>
29
  <title>LTER Data Catalog</title>
30
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
31
  <link href="@style-skins-path@/lter/lter.css" rel="stylesheet" type="text/css">
32
</head>
33

  
34
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
35
    <table width="750px" align="left" border="0" cellpadding="0" cellspacing="0">
36
      <tr> 
37
        <td colspan="4" valign="top">
38
          <table width="100%" border="0" cellpadding="2" cellspacing="0">
39
            <tr> 
40
              <td width="126" align="right" class="sidenav" >&nbsp;</td>
41
              <td width="68%" align="right" nowrap class="topnav" >
42
                <a href="http://www.lternet.edu">LTER Home</a> | <a href="http://intranet.lternet.edu">Intranet</a>
43
              </td>
44
              <td width="126" class="sidenav" >&nbsp;</td>
45
            </tr>
46
          </table>
47
        </td>
48
      </tr>
49
      <tr> 
50
        <td width="126" bgcolor="#006699" align="center">
51
          <img src="./images/lterleft.jpg" width="126" height="92" border="0" usemap="#Map">
52
        </td>
53
        <td width="68%" bgcolor="#006699" align="center">
54
          <img src="./images/ltermain.jpg" width="550" height="92">
55
        </td>
56
        <td width="126" bgcolor="#006699">
57
          <img src="./images/lterright.jpg" width="126" height="92">
58
        </td>
59
      </tr>
60
    </table>
61
</body>
62

  
63
</html>
64 0

  
lib/style/skins/lter/lter.js
86 86

  
87 87
//  Location of the header that will be displayed at the top of the page
88 88
var HEADER_URL 
89
  = "@style-skins-path@/lter/include_header.jsp";
89
  = "@style-skins-path@/lter/header.jsp";
90 90

  
91
// Location of the search box that will be displayed above the  
92
//  results on the results page (optional)
93
var SEARCHBOX_URL 
94
  = "@style-skins-path@/lter/include_searchbox.jsp";
91
// Location of the search box that will be displayed on the simple 
92
// search page (optional)
93
var SEARCHBOX_URL
94
  = "@style-skins-path@/lter/metacatsearch.jsp";
95 95

  
96
// Location of the advanced search box
97
var ADVANCED_SEARCHBOX_URL 
98
  = "@style-skins-path@/lter/advancedsearch.jsp";
99

  
100
// Location of the advanced browse box
101
var ADVANCED_BROWSEBOX_URL 
102
  = "@style-skins-path@/lter/advancedbrowse.jsp";
103

  
104
// Location of the login box
96 105
var LOGINBOX_URL
97
  = "@style-skins-path@/lter/include_login.jsp";
106
  = "@style-skins-path@/lter/metacatlogin.jsp";
98 107

  
99
//  Location of the header that will be displayed at the top of the page
100
var LEFTCOL_URL 
101
  = "";
108
//  Location of the column that will be displayed at the left of the page
109
var LEFTCOL_URL
110
  = "@style-skins-path@/lter/leftcol.jsp";
102 111
  
103
//  Location of the header that will be displayed at the top of the page
112
//  Location of the column that will be displayed at the right of the page
104 113
var RIGHTCOL_URL 
105
  = "";
114
  = "@style-skins-path@/lter/rightcol.html";
106 115
  
107
//  Location of the header that will be displayed at the top of the page
116
//  Location of the footer row that will be displayed across the bottom of the page
108 117
var FOOTER_URL 
109
  = "";
118
  = "@style-skins-path@/lter/footer.html";
110 119
  
111 120

  
112 121

  
......
136 145
//(metacat only) search box iframe class
137 146
var IFRAME_SEARCHBOX_CLASS      = "iframesearchboxclass";
138 147

  
148
//(metacat only) advanced search box iframe class
149
var IFRAME_ADVANCED_SEARCHBOX_CLASS = "iframeadvancedsearchboxclass";
150

  
151
//(metacat only) advanced browse box iframe class
152
var IFRAME_ADVANCED_BROWSEBOX_CLASS = "iframeadvancedbrowseboxclass";
153

  
139 154
//(metacat only) login box iframe class
140 155
var IFRAME_LOGINBOX_CLASS      = "iframeloginboxclass";
141 156

  
157
//(metacat only) login box iframe class
158
var IFRAME_DOCUMENT_CLASS      = "iframedocumentclass";
159

  
142 160
//left column iframe class
143 161
var IFRAME_LEFTCOL_CLASS        = "iframeleftcolclass";
144 162

  
......
184 202
//footer table-cell class. Note you should not set "width" on this, since it 
185 203
//includes a colspan
186 204
var TEMPLATE_FOOTERROW_CLASS    = "templatefooterrowclass";
187

  
188

  
lib/style/skins/lter/advancedbrowse.jsp
1
<%@ page language="java"%>
2

  
3
<!--
4
/**
5
  *  '$RCSfile$'
6
  *      Authors:     Duane Costa
7
  *      Copyright:   2006 University of New Mexico and
8
  *                   Regents of the University of California and the
9
  *                   National Center for Ecological Analysis and Synthesis
10
  *      For Details: http://www.nceas.ucsb.edu/
11
  *
12
  *   '$Author$'
13
  *     '$Date$'
14
  * '$Revision$'
15
  * 
16
  * This program is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 2 of the License, or
19
  * (at your option) any later version.
20
  *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
  * GNU General Public License for more details.
25
  *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program; if not, write to the Free Software
28
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
  *
30
  */
31
-->
32

  
33
<%@ include file="settings.jsp"%>
34
<%@ include file="session_vars.jsp"%>
35

  
36
<html>
37

  
38
  <head>
39
    <link href="<%=relativeRoot%>/lter.css" rel="stylesheet" type="text/css">
40
    <script language="javascript" type="text/javascript">
41
    
42
      function trim(stringToTrim) {
43
        return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
44
      }
45
      
46
      function keywordSearch(formObj, searchKeyword) {
47
        var searchString = trim(searchKeyword);
48
        formObj.browseValue.value=searchString;
49
        formObj.submit();
50
        return true;
51
      }
52
      
53
    </script>
54
    <title>
55
      Browse the LTER Data Catalog
56
    </title>
57
  </head>
58

  
59
  <body>
60
    <h2>
61
      Browse the LTER Data Catalog
62
    </h2>
63
    <p>
64
      Browse by category using the links below.
65
    </p>
66
    <form name="browseForm" action="advancedbrowseforward.jsp" method="POST" target="_top">
67
      <input type="hidden" name="browseValue" value="" />
68
      <table>
69
        <tr>
70
          <td width="375">
71
            &nbsp;
72
          </td>
73
          <td width="365" class="searchsubcat">
74
            &nbsp;
75
          </td>
76
        </tr>
77
        <tr>
78
          <td width="375" class="searchcat">
79
            Ecology
80
          </td>
81
          <td width="365" class="searchcat">
82
            Evolution
83
          </td>
84
        </tr>
85
        <tr valign="top">
86
          <td width="375" class="searchsubcat">
87
            <a href="#1" onClick="keywordSearch(document.browseForm, 'biodiversity')" class="searchsubcat">
88
              Biodiversity,
89
            </a>
90
            <a href="#2" onClick="keywordSearch(document.browseForm, 'competition')" class="searchsubcat">
91
              Competition,
92
            </a>
93
            <a href="#3" onClick="keywordSearch(document.browseForm, 'decomposition')" class="searchsubcat">
94
              Decomposition,
95
            </a>
96
            <a href="#4" onClick="keywordSearch(document.browseForm, 'disturbance')" class="searchsubcat">
97
              Disturbance,
98
            </a>
99
            <a href="#5" onClick="keywordSearch(document.browseForm, 'endangered species')" class="searchsubcat">
100
              Endangered Species,
101
            </a>
102
            <a href="#6" onClick="keywordSearch(document.browseForm, 'herbivory')" class="searchsubcat">
103
              Herbivory,
104
            </a>
105
            <a href="#7" onClick="keywordSearch(document.browseForm, 'invasive species')" class="searchsubcat">
106
              Invasive Species,
107
            </a>
108
            <a href="#8" onClick="keywordSearch(document.browseForm, 'nutrient cycling')" class="searchsubcat">
109
              Nutrient Cycling,
110
            </a>
111
            <a href="#9" onClick="keywordSearch(document.browseForm, 'parasitism')" class="searchsubcat">
112
              Parasitism,
113
            </a>
114
            <a href="#10" onClick="keywordSearch(document.browseForm, 'population dynamics')" class="searchsubcat">
115
              Population Dynamics,
116
            </a>
117
            <a href="#11" onClick="keywordSearch(document.browseForm, 'predation')" class="searchsubcat">
118
              Predation,
119
            </a>
120
            <a href="#12" onClick="keywordSearch(document.browseForm, 'productivity')" class="searchsubcat">
121
              Productivity,
122
            </a>
123
            <a href="#13" onClick="keywordSearch(document.browseForm, 'succession')" class="searchsubcat">
124
              Succession,
125
            </a>
126
            <a href="#14" onClick="keywordSearch(document.browseForm, 'symbiosis')" class="searchsubcat">
127
              Symbiosis,
128
            </a>
129
            <a href="#15" onClick="keywordSearch(document.browseForm, 'trophic dynamics')" class="searchsubcat">
130
              Trophic Dynamics
131
            </a>
132
          </td>
133
          <td width="365" class="searchsubcat">
134
            <a href="#16" onClick="keywordSearch(document.browseForm, 'adaptation')" class="searchsubcat">
135
              Adaptation,
136
            </a>
137
            <a href="#17" onClick="keywordSearch(document.browseForm, 'evolution')" class="searchsubcat">
138
              Evolution,
139
            </a>
140
            <a href="#18" onClick="keywordSearch(document.browseForm, 'extinction')" class="searchsubcat">
141
              Extinction,
142
            </a>
143
            <a href="#19" onClick="keywordSearch(document.browseForm, 'genetics')" class="searchsubcat">
144
              Genetics,
145
            </a>
146
            <a href="#20" onClick="keywordSearch(document.browseForm, 'mutation')" class="searchsubcat">
147
              Mutation,
148
            </a>
149
            <a href="#21" onClick="keywordSearch(document.browseForm, 'selection')" class="searchsubcat">
150
              Selection,
151
            </a>
152
            <a href="#22" onClick="keywordSearch(document.browseForm, 'speciation')" class="searchsubcat">
153
              Speciation,
154
            </a>
155
            <a href="#23" onClick="keywordSearch(document.browseForm, 'survival')" class="searchsubcat">
156
              Survival
157
            </a>
158
          </td>
159
        </tr>
160
        <tr>
161
          <td width="375">
162
            &nbsp;
163
          </td>
164
          <td width="365">
165
            &nbsp;
166
          </td>
167
        </tr>
168
        <tr>
169
          <td width="365" class="searchcat">
170
            Habitat
171
          </td>
172
          <td width="375" class="searchcat">
173
            Level of Organization
174
          </td>
175
        </tr>
176
        <tr valign="top">
177
          <td width="365" class="searchsubcat">
178
            <a href="#24" onClick="keywordSearch(document.browseForm, 'alpine')" class="searchsubcat">
179
              Alpine,
180
            </a>
181
            <a href="#25" onClick="keywordSearch(document.browseForm, 'benthic')" class="searchsubcat">
182
              Benthic,
183
            </a>
184
            <a href="#26" onClick="keywordSearch(document.browseForm, 'desert')" class="searchsubcat">
185
              Desert,
186
            </a>
187
            <a href="#27" onClick="keywordSearch(document.browseForm, 'estuary')" class="searchsubcat">
188
              Estuary,
189
            </a>
190
            <a href="#28" onClick="keywordSearch(document.browseForm, 'forest')" class="searchsubcat">
191
              Forest,
192
            </a>
193
            <a href="#29" onClick="keywordSearch(document.browseForm, 'freshwater')" class="searchsubcat">
194
              Freshwater,
195
            </a>
196
            <a href="#30" onClick="keywordSearch(document.browseForm, 'grassland')" class="searchsubcat">
197
              Grassland,
198
            </a>
199
            <a href="#31" onClick="keywordSearch(document.browseForm, 'marine')" class="searchsubcat">
200
              Marine,
201
            </a>
202
            <a href="#32" onClick="keywordSearch(document.browseForm, 'montane')" class="searchsubcat">
203
              Montane,
204
            </a>
205
            <a href="#33" onClick="keywordSearch(document.browseForm, 'terrestrial')" class="searchsubcat">
206
              Terrestrial,
207
            </a>
208
            <a href="#34" onClick="keywordSearch(document.browseForm, 'tundra')" class="searchsubcat">
209
              Tundra,
210
            </a>
211
            <a href="#35" onClick="keywordSearch(document.browseForm, 'urban')" class="searchsubcat">
212
              Urban,
213
            </a>
214
            <a href="#36" onClick="keywordSearch(document.browseForm, 'wetland')" class="searchsubcat">
215
              Wetland
216
            </a>
217
          </td>
218
          <td width="375" class="searchsubcat">
219
            <a href="#37" onClick="keywordSearch(document.browseForm, 'cell')" class="searchsubcat">
220
              Cell,
221
            </a>
222
            <a href="#38" onClick="keywordSearch(document.browseForm, 'community')" class="searchsubcat">
223
              Community,
224
            </a>
225
            <a href="#39" onClick="keywordSearch(document.browseForm, 'ecosystem')" class="searchsubcat">
226
              Ecosystem,
227
            </a>
228
            <a href="#40" onClick="keywordSearch(document.browseForm, 'global')" class="searchsubcat">
229
              Global,
230
            </a>
231
            <a href="#41" onClick="keywordSearch(document.browseForm, 'landscape')" class="searchsubcat">
232
              Landscape,
233
            </a>
234
            <a href="#42" onClick="keywordSearch(document.browseForm, 'molecule')" class="searchsubcat">
235
              Molecule,
236
            </a>
237
            <a href="#43" onClick="keywordSearch(document.browseForm, 'organism')" class="searchsubcat">
238
              Organism,
239
            </a>
240
            <a href="#44" onClick="keywordSearch(document.browseForm, 'population')" class="searchsubcat">
241
              Population
242
            </a>
243
          </td>
244
        </tr>
245
        <tr>
246
          <td width="375">
247
            &nbsp;
248
          </td>
249
          <td width="365" class="searchsubcat">
250
            &nbsp;
251
          </td>
252
        </tr>
253
        <tr>
254
          <td width="365" class="searchcat">
255
            Measurements
256
          </td>
257
          <td width="375" class="searchcat">
258
            Taxonomy
259
          </td>
260
        </tr>
261
        <tr valign="top">
262
          <td width="365" class="searchsubcat">
263
            <a href="#45" onClick="keywordSearch(document.browseForm, 'biomass')" class="searchsubcat">
264
              Biomass,
265
            </a>
266
            <a href="#46" onClick="keywordSearch(document.browseForm, 'carbon')" class="searchsubcat">
267
              Carbon,
268
            </a>
269
            <a href="#47" onClick="keywordSearch(document.browseForm, 'chlorophyll')" class="searchsubcat">
270
              Chlorophyll,
271
            </a>
272
            <a href="#48" onClick="keywordSearch(document.browseForm, 'gis')" class="searchsubcat">
273
              GIS,
274
            </a>
275
            <a href="#49" onClick="keywordSearch(document.browseForm, 'nitrate')" class="searchsubcat">
276
              Nitrate,
277
            </a>
278
            <a href="#50" onClick="keywordSearch(document.browseForm, 'nutrients')" class="searchsubcat">
279
              Nutrients,
280
            </a>
281
            <a href="#51" onClick="keywordSearch(document.browseForm, 'precipitation')" class="searchsubcat">
282
              Precipitation,
283
            </a>
284
            <a href="#52" onClick="keywordSearch(document.browseForm, 'radiation')" class="searchsubcat">
285
              Radiation,
286
            </a>
287
            <a href="#53" onClick="keywordSearch(document.browseForm, 'temperature')" class="searchsubcat">
288
              Temperature,
289
            </a>
290
            <a href="#54" onClick="keywordSearch(document.browseForm, 'weather')" class="searchsubcat">
291
              Weather
292
            </a>
293
          </td>
294
          <td width="375" class="searchsubcat">
295
            <a href="#55" onClick="keywordSearch(document.browseForm, 'amphibian')" class="searchsubcat">
296
              Amphibian,
297
            </a>
298
            <a href="#56" onClick="keywordSearch(document.browseForm, 'bird')" class="searchsubcat">
299
              Bird,
300
            </a>
301
            <a href="#57" onClick="keywordSearch(document.browseForm, 'fish')" class="searchsubcat">
302
              Fish,
303
            </a>
304
            <a href="#58" onClick="keywordSearch(document.browseForm, 'fungus')" class="searchsubcat">
305
              Fungus,
306
            </a>
307
            <a href="#59" onClick="keywordSearch(document.browseForm, 'invertebrate')" class="searchsubcat">
308
              Invertebrate,
309
            </a>
310
            <a href="#60" onClick="keywordSearch(document.browseForm, 'mammal')" class="searchsubcat">
311
              Mammal,
312
            </a>
313
            <a href="#61" onClick="keywordSearch(document.browseForm, 'microbe')" class="searchsubcat">
314
              Microbe,
315
            </a>
316
            <a href="#62" onClick="keywordSearch(document.browseForm, 'plant')" class="searchsubcat">
317
              Plant,
318
            </a>
319
            <a href="#63" onClick="keywordSearch(document.browseForm, 'reptile')" class="searchsubcat">
320
              Reptile,
321
            </a>
322
            <a href="#64" onClick="keywordSearch(document.browseForm, 'virus')" class="searchsubcat">
323
              Virus
324
            </a>
325
          </td>
326
        </tr>
327
      </table>
328
    </form>
329
  </body>
330

  
331
</html>
0 332

  
lib/style/skins/lter/leftcol.jsp
1
<%@ page language="java"%>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones, CHad Berkley
5
  *    Copyright: 2000 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$'
10
  *     '$Date$'
11
  * '$Revision$'
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
-->
28
<%@ include file="settings.jsp"%>
29
<%@ include file="session_vars.jsp"%>
30

  
31
<%
32
      Boolean loggedIn = (Boolean) session.getAttribute("loggedIn");
33
      String loginHref = "index_login.jsp";
34
      String loginText = "Login";
35

  
36
      if ((loggedIn != null) && (loggedIn.booleanValue() == true)) {
37
        loginHref = "metacatlogout.jsp";
38
        loginText = "Logout";
39
      }
40
%>
41

  
42
<html>
43
  <head>
44
    <title>
45
      leftcol.jsp
46
    </title>
47
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
48
    <link href="@style-skins-path@/lter/lter.css" rel="stylesheet" type="text/css">
49
  </head>
50

  
51
  <body class="sidenav">
52
    <p class="sidelarge">
53
      <a href="http://www.lternet.edu" target="_top">
54
        Home
55
      </a>
56
      <br />
57
      <a href="<%=loginHref%>" target="_top">
58
        <%=loginText%>
59
      </a>
60
      <br />
61
      <a href="index.jsp" target="_top">
62
        Search
63
      </a>
64
      <br />
65
      <a href="index_advancedbrowse.jsp" target="_top">
66
        Browse
67
      </a>
68
      <br />
69
    </p>
70
  </body>
71

  
72
</html>
0 73

  
lib/style/skins/lter/header.jsp
1
<%@ page language="java"%>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Duane Costa
5
  *    Copyright: 2006 University of New Mexico and
6
  *               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$'
11
  *     '$Date$'
12
  * '$Revision$'
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
-->
29
<%@ include file="settings.jsp"%>
30
<%@ include file="session_vars.jsp"%>
31

  
32
<html>
33

  
34
  <head>
35
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
36
    <link href="@style-skins-path@/lter/lter.css" rel="stylesheet" type="text/css">
37
    <script language="javascript" type="text/javascript" src="<%= relativeRoot %>/lter.js"></script>
38
    <title>
39
      LTER Data Catalog
40
    </title>
41
  </head>
42

  
43
  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
44
    <table width="912px" height="100%" align="left" border="0" cellpadding="0" cellspacing="0">
45
      <tr>
46
        <td colspan="3" valign="top">
47
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
48
            <tr>
49
              <td width="126" align="right" class="sidenav">
50
                &nbsp;
51
              </td>
52
              <td width="660" align="right" nowrap class="topnav">
53
                <a href="http://www.lternet.edu" target="_top">
54
                  LTER Home
55
                </a>
56
                |
57
                <a href="http://intranet.lternet.edu" target="_top">
58
                  Intranet
59
                </a>
60
                &nbsp;
61
              </td>
62
              <td width="126" class="sidenav">
63
                &nbsp;
64
              </td>
65

  
66
            </tr>
67
          </table>
68
        </td>
69
      </tr>
70
      <tr>
71
        <td height="100%" width="126" bgcolor="#006699" align="center">
72
          <img src="images/lterleft.jpg" width="126" height="92" border="0" usemap="#Map">
73
        </td>
74
        <td height="100%" width="660" bgcolor="#006699" align="center">
75
          <img src="images/ltermain.jpg" width="550" height="92">
76

  
77
        </td>
78
        <td height="100%" width="126" bgcolor="#006699">
79
          <img src="images/lterright.jpg" width="126" height="92">
80
        </td>
81
      </tr>
82
      <tr>
83
        <td colspan="3" class="sidenav"></td>
84
      </tr>
85
    </table>
86
  </body>
87

  
88
</html>
0 89

  
lib/style/skins/lter/metacatsearchforward.jsp
1
<%@ page language="java"%>
2

  
3
<!--
4
/**
5
  *  '$RCSfile$'
6
  *      Authors:     Duane Costa
7
  *      Copyright:   2005 University of New Mexico and
8
  *                   Regents of the University of California and the
9
  *                   National Center for Ecological Analysis and Synthesis
10
  *      For Details: http://www.nceas.ucsb.edu/
11
  *
12
  *   '$Author$'
13
  *     '$Date$'
14
  * '$Revision$'
15
  * 
16
  * This program is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 2 of the License, or
19
  * (at your option) any later version.
20
  *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
  * GNU General Public License for more details.
25
  *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program; if not, write to the Free Software
28
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
  *
30
  */
31
-->
32

  
33
<jsp:useBean id="advancedSearchBean" 
34
             class="edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchBean"
35
             scope="request">
36
  <jsp:setProperty name="advancedSearchBean" property="*" />
37
</jsp:useBean>
38
  
39
<jsp:forward page="/searchServlet" />
0 40

  
lib/style/skins/lter/advancedsearch.jsp
1
<%@ page     language="java" %>
2
<!--
3
/**
4
  *  '$RCSfile$'
5
  *      Authors:     Duane Costa
6
  *      Copyright:   2005 University of New Mexico and
7
  *                   Regents of the University of California and the
8
  *                   National Center for Ecological Analysis and Synthesis
9
  *      For Details: http://www.nceas.ucsb.edu/
10
  *
11
  *   '$Author$'
12
  *     '$Date$'
13
  * '$Revision$'
14
  * 
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  *
29
  */
30
-->
31
<%@ include file="settings.jsp"%>
32
<%@ include file="session_vars.jsp"%>
33

  
34
<%
35
  String imageHeight = "3";
36
%>
37

  
38
<!-- *********************** START SEARCHBOX TABLE ************************* -->
39
<html>
40
<head>
41
  <title>Metacat Data Catalog Advanced Search Page</title>
42
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
43
  <link href="<%=relativeRoot%>/lter.css" rel="stylesheet" type="text/css">
44

  
45
  <script language="javascript" 
46
    type="text/javascript" src="<%=relativeRoot%>/lter.js">
47
  </script>
48

  
49
  <script language="javascript" type="text/javascript">
50

  
51
      function trim(stringToTrim) {
52
        return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
53
      }
54

  
55
      function submitRequest(form) {
56
        var canSearch = true;
57
        var x_range = document.map.get_x_range();
58
        var y_range = document.map.get_y_range();
59
        var x_index = x_range.indexOf(' ');
60
        var y_index = y_range.indexOf(' ');
61
        var x_length = x_range.length();
62
        var y_length = y_range.length();
63
        var x_lo = x_range.substring(0, x_index);
64
        var x_hi = x_range.substring(x_index + 1, x_length);
65
        var y_lo = y_range.substring(0, y_index);
66
        var y_hi = y_range.substring(y_index + 1, y_length);
67

  
68
        if (trim(form.subjectValue.value) == "" &&
69
            trim(form.creatorSurname.value) == "" &&
70
            trim(form.creatorOrganization.value) == "" &&
71
            trim(form.locationName.value) == "" &&
72
            (x_range == "-180.0 180.0") &&
73
            (y_range == "-90.0 90.0") &&            
74
            trim(form.taxon.value) == "" &&
75
            form.siteValue.value == "ALLSITES"
76
           ) {              
77
          canSearch = 
78
             confirm("Show *all* data in the catalog?\n(This may take some time!)");
79
        }
80

  
81
        if (canSearch) {        
82
          // Re-initialize the hidden form values prior to submitting
83
          form.northBound.value = "";
84
          form.southBound.value = "";
85
          form.eastBound.value = "";
86
          form.westBound.value = "";
87

  
88
          if ((x_range != "-180.0 180.0") && (y_range != "-90.0 90.0")) {     
89
            form.northBound.value = y_hi;
90
            form.southBound.value = y_lo;
91
            form.eastBound.value = x_hi;
92
            form.westBound.value = x_lo;
93
          }
94
          
95
          return(validateAdvancedSearchForm(form));
96
        }
97
        else {
98
          return false;
99
        }
100
      }
101
  </script>
102
</head>
103

  
104
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
105
  <table width="750px" align="center" cellspacing="0" cellpadding="0">
106
    <tr> 
107
      <td colspan="2"><h2>Advanced Search</h2></td>
108
    </tr>
109
    <tr> 
110
      <td colspan="2">
111
        <table width="100%" border="0" cellpadding="0" cellspacing="0" 
112
          class="subpanel">
113
          <tr> 
114
            <td colspan="2"></td>
115
          </tr>
116
          <tr valign="baseline"> 
117
            <td colspan="2">
118
    <form name="advancedSearchForm"
119
          method="POST"
120
          action="advancedsearchforward.jsp"
121
          onsubmit="return submitRequest(this)"
122
          target="_top">
123
      <table width="100%" border="0" cellpadding="0" cellspacing="0" >
124
        <tr class="searchresultsdivider">
125
          <td colspan="2">
126
            <img height="<%= imageHeight %>" width="1" src="/knb/style/skins/default/images/transparent1x1.gif">
127
          </td>
128
        </tr>        
129
        <tr>
130
          <td>&nbsp;</td>
131
        </tr>
132
        <tr>
133
          <td colspan="2">
134
            <h3>Subject</h3>
135
          </td>
136
        </tr>
137
        <tr>
138
          <td>&nbsp;</td>
139
          <td>&nbsp;</td>
140
        </tr>
141
        <tr>
142
          <td align="right" nowrap>
143
            <select name="subjectField">
144
              <option value="ALL">Subject</option>
145
              <option value="TITLE">Title Only</option>
146
              <option value="ABSTRACT">Abtract Only</option>
147
              <option value="KEYWORDS">Keywords Only</option>
148
            </select>
149
          </td>
150
          <td>
151
            <select name="subjectQueryType">
152
              <option value="0" selected="selected">contains</option>
153
              <option value="1">matches exactly</option>
154
              <option value="2">starts with</option>
155
              <option value="3">ends with</option>
156
            </select>
157
            <input type="text" name="subjectValue" value="">
158
            <input type="radio" name="subjectAllAny" value="0" checked="checked">All Terms
159
            <input type="radio" name="subjectAllAny" value="1">Any Term
160
          </td>
161
        </tr>
162
        <tr>
163
          <td>&nbsp;</td>
164
          <td>&nbsp;</td>
165
        </tr>
166
        <tr class="searchresultsdivider">
167
          <td colspan="2">
168
            <img height="<%= imageHeight %>" width="1" src="/knb/style/skins/default/images/transparent1x1.gif">
169
          </td>
170
        </tr>        
171
        <tr>
172
          <td>&nbsp;</td>
173
        </tr>
174
        <tr>
175
          <td colspan="2">
176
            <h3>Author</h3>
177
          </td>
178
        </tr>
179
        <tr>
180
          <td>&nbsp;</td>
181
          <td>&nbsp;</td>
182
        </tr>
183
        <tr>
184
          <td nowrap align="right">Individual's Last Name:
185
          </td>
186
          <td>
187
            <select name="creatorSurnameQueryType">
188
              <option value="0" selected="selected">contains</option>
189
              <option value="1">matches exactly</option>
190
              <option value="2">starts with</option>
191
              <option value="3">ends with</option></select>
192
            <input type="text" name="creatorSurname" value="">
193
          </td>
194
        </tr>
195
        <tr>
196
          <td>&nbsp;</td>
197
          <td>&nbsp;</td>
198
        </tr>
199
        <tr>
200
          <td align="right" nowrap>Organization:
201
          </td>
202
          <td>
203
            <select name="creatorOrganizationQueryType">
204
              <option value="0" selected="selected">contains</option>
205
              <option value="1">matches exactly</option>
206
              <option value="2">starts with</option>
207
              <option value="3">ends with</option></select>
208
            <input type="text" name="creatorOrganization" value="">
209
          </td>
210
        </tr>
211
        <tr>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff