Project

General

Profile

1 3780 daigle
<%@ page    language="java" %>
2 5202 daigle
<%@ page import="edu.ucsb.nceas.metacat.properties.SkinPropertyService" %>
3
4 3780 daigle
<%
5
/**
6
 *  '$RCSfile$'
7
 *    Copyright: 2008 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 is an HTML document for displaying metadata catalog tools
16
 *
17
 * This program is free software; you can redistribute it and/or modify
18
 * it under the terms of the GNU General Public License as published by
19
 * the Free Software Foundation; either version 2 of the License, or
20
 * (at your option) any later version.
21
 *
22
 * This program is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 *
27
 * You should have received a copy of the GNU General Public License
28
 * along with this program; if not, write to the Free Software
29
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
30
 */
31
 %>
32
33 5202 daigle
 <%
34
	String esaHome = SkinPropertyService.getProperty("esa","registryurl");
35
 %>
36
37 3780 daigle
 <%@ include file="../../common/common-settings.jsp"%>
38 4080 daigle
 <%@ include file="../../common/configure-check.jsp"%>
39 3780 daigle
40
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
41
<html>
42
<head>
43
<title>ESA Data Registry</title>
44
  <link rel="stylesheet" type="text/css"
45
        href="<%=STYLE_SKINS_URL%>/esa/esa.css"></link>
46
  <script language="JavaScript" type="text/JavaScript"
47
          src="<%=STYLE_SKINS_URL%>/esa/esa.js"></script>
48
  <script language="JavaScript" type="text/JavaScript"
49
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
50
  <script language="Javascript">
51
52 7678 leinfelder
  function encodeXML(theString) {
53
		return theString.replace(/&/g, '&amp;')
54
			.replace(/</g, '&lt;')
55
			.replace(/>/g, '&gt;')
56
			.replace(/"/g, '&quot;');
57
	}
58 3780 daigle
	function trim(stringToTrim) {
59
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
60
        }
61
62
        function checkSearch(submitFormObj) {
63
                var checkBox = document.getElementById("searchCheckBox");
64
                var searchBox = document.getElementById("searchBox");
65
                var searchString = trim(searchBox.value);
66 7678 leinfelder
                searchString = encodeXML(searchString);
67
68 3780 daigle
                if (searchString=="") {
69
                        searchString="%";
70
                }
71
72
                if(checkBox.checked == false){
73
			if(searchString!="%"){
74
                        	searchBox.name = "title";
75
				searchBox.id = "searchBox";
76
77
                        	submitFormObj.surName.value = searchString;
78
	                        submitFormObj.givenName.value = searchString;
79
        	                submitFormObj.keyword.value = searchString;
80
                        	submitFormObj.organizationName.value = searchString;
81
	                        submitFormObj.para.value = searchString;
82
        	                submitFormObj.geographicDescription.value = searchString;
83
                	        submitFormObj.literalLayout.value = searchString;
84 5816 leinfelder
							submitFormObj.operator.value="UNION";
85 3780 daigle
	                        var abs = document.getElementById("abstract");
86
        	                abs.value=searchString;
87 5816 leinfelder
        	                var abstractValue = document.getElementById("abstractValue");
88
	                        abstractValue.value="";
89
	                        var keywordValue = document.getElementById("keywordValue");
90
	                        keywordValue.value="";
91 3780 daigle
	                        var pid = document.getElementById("packageId");
92
        	                pid.value=searchString;
93
			} else {
94
	                        searchBox.name = "anyfield";
95
				searchBox.id = "searchBox";
96
				submitFormObj.surName.value = "";
97
                                submitFormObj.givenName.value = "";
98
                                submitFormObj.keyword.value = "";
99
                                submitFormObj.organizationName.value = "";
100
                                submitFormObj.para.value = "";
101
                                submitFormObj.geographicDescription.value = "";
102
                                submitFormObj.literalLayout.value = "";
103
                                submitFormObj.operator.value="INTERSECT";
104
                                var abs = document.getElementById("abstract");
105
                                abs.value="";
106 5816 leinfelder
                                var abstractValue = document.getElementById("abstractValue");
107
		                        abstractValue.value="";
108
		                        var keywordValue = document.getElementById("keywordValue");
109
		                        keywordValue.value="";
110
		                        var pid = document.getElementById("packageId");
111
	        	                pid.value="";
112 3780 daigle
			}
113
                } else {
114
                        searchBox.name = "anyfield";
115
			searchBox.id = "searchBox";
116
			submitFormObj.surName.value = "";
117
	                submitFormObj.givenName.value = "";
118
                        submitFormObj.keyword.value = "";
119
                        submitFormObj.organizationName.value = "";
120
                        submitFormObj.para.value = "";
121
                        submitFormObj.geographicDescription.value = "";
122
                        submitFormObj.literalLayout.value = "";
123
                        submitFormObj.operator.value="INTERSECT";
124
                        var abs = document.getElementById("abstract");
125
                        abs.value="";
126 5816 leinfelder
                        var abstractValue = document.getElementById("abstractValue");
127
                        abstractValue.value="";
128
                        var keywordValue = document.getElementById("keywordValue");
129
                        keywordValue.value="";
130
		                var pid = document.getElementById("packageId");
131
	        	        pid.value="";
132 3780 daigle
		}
133
134
                var knbCheckBox = document.getElementById("knbCheckBox");
135
                if(knbCheckBox.checked == true){
136
                        document.forms[0].action = "http://knb.ecoinformatics.org/knb/servlet/metacat";
137
                        submitFormObj.qformat.value = "knb";
138
	                var pid = document.getElementById("packageId");
139
        	        pid.value="";
140
                }
141 4164 leinfelder
                else {
142
                	document.forms[0].action = "<%=SERVLET_URL%>";
143
                	submitFormObj.qformat.value = "esa";
144
                }
145 3780 daigle
146
                var actionField=document.createElement("input");
147
                actionField.setAttribute("type", "hidden");
148
                actionField.setAttribute("name", "action");
149
                actionField.setAttribute("value", "query");
150
                submitFormObj.appendChild(actionField);
151
152
                return true;
153
        }
154
155
  </script>
156
</head>
157
<body>
158
      <script language="JavaScript">
159 4080 daigle
          insertTemplateOpening("<%=CONTEXT_URL%>");
160
          insertSearchBox("<%=CONTEXT_URL%>");
161 3780 daigle
      </script>
162
<table width="760" border="0" cellspacing="0" cellpadding="0">
163
  <tr><td colspan="5">
164
165
Welcome to the ESA Data Registry. This is a publicly accessible registry
166
describing <b>scientific data sets on ecology and the environment</b>.  The
167
data sets registered here are associated with articles published in the
168
journals of the Ecological Society of America.  They are registered here
169
in order to facilitate communication and data sharing by scientists.  See
170
individual registry entries for citation information as well as usage rights.
171
172
<br><br>
173
<tr><td colspan="5">
174
<b>Registry Tools</b>
175
176
177
<li>
178
<span class="searchbox"><a name="search">Search for Data Sets</a></span><br />
179
<ul><table width="760" border="0" cellspacing="0" cellpadding="0"><tr>
180
<td>
181
182
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
183
  <input value="INTERSECT" name="operator" type="hidden">
184
  <input type="hidden" name="organizationName">
185
  <input type="hidden" name="surName">
186
  <input type="hidden" name="givenName">
187
  <input type="hidden" name="keyword">
188 5816 leinfelder
  <input type="hidden" name="keyword/value" id="keywordValue">
189 3780 daigle
  <input type="hidden" name="para">
190
  <input type="hidden" name="geographicDescription">
191
  <input type="hidden" name="literalLayout">
192
  <input type="hidden" name="@packageId" id="packageId">
193
  <input type="hidden" name="abstract/para" id="abstract">
194 5816 leinfelder
  <input type="hidden" name="abstract/para/value" id="abstractValue">
195 3780 daigle
  <input name="qformat" value="esa" type="hidden">
196
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
197
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
198
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
199
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
200
  <input name="returnfield" value="originator/organizationName" type="hidden">
201
  <input name="returnfield" value="creator/organizationName" type="hidden">
202
  <input name="returnfield" value="dataset/title" type="hidden">
203 5816 leinfelder
  <input name="returnfield" value="dataset/title/value" type="hidden">
204 3780 daigle
  <input name="returnfield" value="keyword" type="hidden">
205 5816 leinfelder
  <input name="returnfield" value="keyword/value" type="hidden">
206 5710 leinfelder
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.1.1" type="hidden">
207 4505 daigle
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.1.0" type="hidden">
208 3780 daigle
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
209
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
210
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
211
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
212
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
213
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
214
  &nbsp;<input size="14" name="anyfield" type="text" value="" id="searchBox">
215
  <input value="Search" type="submit">
216
</form></td>
217
<td><form>
218
<input name="search" type="radio" checked><span class="text_plain"> Search only within the ESA Data Registry</span></input><br>
219
<input name="search" type="radio" id="knbCheckBox"><span class="text_plain"> Search entire Knowledge Network for Biocomplexity</span></input>
220
</form></td>
221
</tr>
222
</table>
223
<form>
224
  <input name="searchAll" type="radio" checked><span >Search Title, Abstract, Keywords, Personnel (Quicker)</span></input><br>
225
  <input name="searchAll" type="radio" id="searchCheckBox"><span >Search all fields (Slower)</span></input>
226
</form>
227
228
      This tool allows you to search the registry for data
229
      sets of interest. When you type text in the box and
230
      click on the "Search" button, the search will only
231
      be conducted within the title, author, abstract,
232
      and keyword fields. Checking the "Search All Fields"
233
      box will search on these and all other existing
234
      fields (this search will take more time). Checking
235
      the "Search Knowledge Network for Biocomplexity" box
236
      will allow you to search the Knowledge Network for
237
      Biocomplexity (KNB) in addition to the ESA Data
238
      Registry. The KNB is an international data repository
239
      dedicated to facilitating ecological and environmental
240
      research. Click <a href="http://knb.ecoinformatics.org/">
241
      here </a> for more information on the KNB.
242
     <br><br>
243
      You can use the '%' character as a wildcard in your
244
      searches (e.g., '%biodiversity%' would locate any
245
      phrase with the word biodiversity embedded within it).
246
      </ul>
247
  </li>
248 5710 leinfelder
  <li><a href="<%=SERVLET_URL%>?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;qformat=esa&amp;returndoctype=eml://ecoinformatics.org/eml-2.1.1&amp;returndoctype=eml://ecoinformatics.org/eml-2.1.0&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.1&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.0&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&amp;returnfield=dataset/title&amp;returnfield=keyword&amp;returnfield=originator/individualName/surName&amp;returnfield=creator/individualName/surName&amp;returnfield=originator/organizationName&amp;returnfield=creator/organizationName">Browse data sets</a>    <ul>
249 3780 daigle
      <p>Browse all existing data sets by title.  This operation can be slow as the
250
      number of entries in the registry grows.</p>
251
252
    </ul>
253
  </li>
254
255
  <li>
256
      <a href="map.jsp"> View Interactive Map </a>
257
      <ul> <p> View and query the geographic coverages of the data sets. </p> </ul>
258
  </li>
259
260
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=esa">Register a new
261
       data set</a><br>
262
         <ul>
263
           <p>The ESA Data Registry form is for registering data sets associated with articles published in the journals of the Ecological Society of America. Other Ecological data sets can be registered with the Knowledge Network for Biocomplexity (<a href="http://knb.ecoinformatics.org">KNB</a>).
264
           </p>
265
	   <br>
266
           <strong>Steps for registering an ESA data set</strong>
267
	    <br>
268
           <span class="greenbold">Step 1: Create an Account</span> <br>
269 7481 leinfelder
           <p> <a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa">Create an account</a> by registering with the <a href="http://knb.ecoinformatics.org">KNB</a>. Many scientists will already have accounts in the KNB, especially those
270 3780 daigle
from institutions like NCEAS and LTER. If you already have an account please use that existing account rather than creating a new one. </p>
271
           <span class="greenbold">Step 2: Login</span><br>
272 5202 daigle
	   <p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=esa&stage=loginform">Login to the ESA Registry</a> website with the account you created. Fill out the ESA Data Registry Form.</p>
273 3780 daigle
           <span class="greenbold">Step 3: Register Data</span><br>
274 5202 daigle
	  <p>Fill out the <a href="<%=CGI_URL%>/cgi-bin/register-dataset.cgi?cfg=esa">ESA Data Registry Form</a>. A page titled "Success" will appear when the form has been successfully submitted.             </p>
275 3780 daigle
           <span class="greenbold">Step 4: Look for Feedback</span> <br>
276
<p>After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set  has been accepted.</p>      </ul>
277
278
      <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa">Create a new account</a>
279
    <ul>
280
        <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa&amp;stage=changepass">Change your password</a>
281
        <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa&amp;stage=resetpass">Reset your password</a>
282
    </ul>
283
        <ul>
284
      The account management tools are used to create and manage registry
285
      accounts.   Accounts are free, and are used to identify contributors
286
      so that they can maintain their entries in the future.
287
    </ul>
288
  </li>
289
</ul>
290
</p>
291
</td>
292
</tr>
293
294
  <tr><td>
295
   <br>
296
   <b>About the Registry</b>
297
    <p>
298
    This project is a cooperative effort of the
299
    <a href="http://www.esa.org">Ecological Society of
300
    America</a> and the <a href="http://www.nceas.ucsb.edu">National
301
    Center for Ecological Analysis and Synthesis (NCEAS)</a>.
302
    The Data Registry is based on software developed by
303
    the <a href="http://knb.ecoinformatics.org">Knowledge Network for
304
    Biocomplexity (KNB)</a>, and houses metadata that are compliant with <a
305
    href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata
306
    Language (EML)</a>.  Consequently, data found in this registry
307
    also are accessible from the larger collection of data found in the
308
    <a href="http://knb.ecoinformatics.org">Knowledge Network for
309
    Biocomplexity (KNB)</a>.
310
    </p>
311
  </td></tr>
312
</table>
313
314
<script language="JavaScript">
315 4080 daigle
    insertTemplateClosing("<%=CONTEXT_URL%>");
316 3780 daigle
</script>
317
</body>
318
</html>