Project

General

Profile

1
<%@ page    language="java" %>
2
<%@ page import="edu.ucsb.nceas.metacat.properties.SkinPropertyService" %>
3

    
4
<%
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: leinfelder $'
12
 *     '$Date: 2010-12-09 10:04:28 -0800 (Thu, 09 Dec 2010) $'
13
 * '$Revision: 5710 $'
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
 <%
34
	String esaHome = SkinPropertyService.getProperty("esa","registryurl");
35
 %>
36
 
37
 <%@ include file="../../common/common-settings.jsp"%>
38
 <%@ include file="../../common/configure-check.jsp"%>
39
 
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
	function trim(stringToTrim) {
53
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
54
        }
55

    
56
        function checkSearch(submitFormObj) {
57
                var checkBox = document.getElementById("searchCheckBox");
58
                var searchBox = document.getElementById("searchBox");
59
                var searchString = trim(searchBox.value);
60

    
61
                if (searchString=="") {
62
                        searchString="%";
63
                }
64

    
65
                if(checkBox.checked == false){
66
			if(searchString!="%"){
67
                        	searchBox.name = "title";
68
				searchBox.id = "searchBox";
69
			
70
                        	submitFormObj.surName.value = searchString;
71
	                        submitFormObj.givenName.value = searchString;
72
        	                submitFormObj.keyword.value = searchString;
73
                        	submitFormObj.organizationName.value = searchString;
74
	                        submitFormObj.para.value = searchString;
75
        	                submitFormObj.geographicDescription.value = searchString;
76
                	        submitFormObj.literalLayout.value = searchString;
77
				submitFormObj.operator.value="UNION";
78
	                        var abs = document.getElementById("abstract");
79
        	                abs.value=searchString;
80
	                        var pid = document.getElementById("packageId");
81
        	                pid.value=searchString;
82
			} else {
83
	                        searchBox.name = "anyfield";
84
				searchBox.id = "searchBox";
85
				submitFormObj.surName.value = "";
86
                                submitFormObj.givenName.value = "";
87
                                submitFormObj.keyword.value = "";
88
                                submitFormObj.organizationName.value = "";
89
                                submitFormObj.para.value = "";
90
                                submitFormObj.geographicDescription.value = "";
91
                                submitFormObj.literalLayout.value = "";
92
                                submitFormObj.operator.value="INTERSECT";
93
                                var abs = document.getElementById("abstract");
94
                                abs.value="";
95
	                        var pid = document.getElementById("packageId");
96
        	                pid.value="";
97
			}
98
                } else {
99
                        searchBox.name = "anyfield";
100
			searchBox.id = "searchBox";
101
			submitFormObj.surName.value = "";
102
	                submitFormObj.givenName.value = "";
103
                        submitFormObj.keyword.value = "";
104
                        submitFormObj.organizationName.value = "";
105
                        submitFormObj.para.value = "";
106
                        submitFormObj.geographicDescription.value = "";
107
                        submitFormObj.literalLayout.value = "";
108
                        submitFormObj.operator.value="INTERSECT";
109
                        var abs = document.getElementById("abstract");
110
                        abs.value="";
111
	                var pid = document.getElementById("packageId");
112
        	        pid.value="";
113
		}
114

    
115
                var knbCheckBox = document.getElementById("knbCheckBox");
116
                if(knbCheckBox.checked == true){
117
                        document.forms[0].action = "http://knb.ecoinformatics.org/knb/servlet/metacat";
118
                        submitFormObj.qformat.value = "knb";
119
	                var pid = document.getElementById("packageId");
120
        	        pid.value="";
121
                }
122
                else {
123
                	document.forms[0].action = "<%=SERVLET_URL%>";
124
                	submitFormObj.qformat.value = "esa";
125
                }
126

    
127
                var actionField=document.createElement("input");
128
                actionField.setAttribute("type", "hidden");
129
                actionField.setAttribute("name", "action");
130
                actionField.setAttribute("value", "query");
131
                submitFormObj.appendChild(actionField);
132

    
133
                return true;
134
        }
135

    
136
  </script>
137
</head>
138
<body>
139
      <script language="JavaScript">
140
          insertTemplateOpening("<%=CONTEXT_URL%>");
141
          insertSearchBox("<%=CONTEXT_URL%>");
142
      </script>
143
<table width="760" border="0" cellspacing="0" cellpadding="0">
144
  <tr><td colspan="5">
145

    
146
Welcome to the ESA Data Registry. This is a publicly accessible registry
147
describing <b>scientific data sets on ecology and the environment</b>.  The
148
data sets registered here are associated with articles published in the
149
journals of the Ecological Society of America.  They are registered here
150
in order to facilitate communication and data sharing by scientists.  See
151
individual registry entries for citation information as well as usage rights.
152

    
153
<br><br>
154
<tr><td colspan="5">
155
<b>Registry Tools</b>
156

    
157
    
158
<li>
159
<span class="searchbox"><a name="search">Search for Data Sets</a></span><br />
160
<ul><table width="760" border="0" cellspacing="0" cellpadding="0"><tr>
161
<td>
162

    
163
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
164
  <input value="INTERSECT" name="operator" type="hidden">
165
  <input type="hidden" name="organizationName">
166
  <input type="hidden" name="surName">
167
  <input type="hidden" name="givenName">
168
  <input type="hidden" name="keyword">
169
  <input type="hidden" name="para">
170
  <input type="hidden" name="geographicDescription">
171
  <input type="hidden" name="literalLayout">
172
  <input type="hidden" name="@packageId" id="packageId">
173
  <input type="hidden" name="abstract/para" id="abstract">
174
  <input name="qformat" value="esa" type="hidden">
175
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
176
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
177
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
178
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
179
  <input name="returnfield" value="originator/organizationName" type="hidden">
180
  <input name="returnfield" value="creator/organizationName" type="hidden">
181
  <input name="returnfield" value="dataset/title" type="hidden">
182
  <input name="returnfield" value="keyword" type="hidden">
183
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.1.1" type="hidden">
184
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.1.0" type="hidden">
185
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
186
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
187
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
188
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
189
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
190
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
191
  &nbsp;<input size="14" name="anyfield" type="text" value="" id="searchBox">
192
  <input value="Search" type="submit">
193
</form></td>
194
<td><form>
195
<input name="search" type="radio" checked><span class="text_plain"> Search only within the ESA Data Registry</span></input><br>
196
<input name="search" type="radio" id="knbCheckBox"><span class="text_plain"> Search entire Knowledge Network for Biocomplexity</span></input>
197
</form></td>
198
</tr>
199
</table>
200
<form>
201
  <input name="searchAll" type="radio" checked><span >Search Title, Abstract, Keywords, Personnel (Quicker)</span></input><br>
202
  <input name="searchAll" type="radio" id="searchCheckBox"><span >Search all fields (Slower)</span></input>
203
</form>
204
  
205
      This tool allows you to search the registry for data 
206
      sets of interest. When you type text in the box and 
207
      click on the "Search" button, the search will only 
208
      be conducted within the title, author, abstract,
209
      and keyword fields. Checking the "Search All Fields" 
210
      box will search on these and all other existing 
211
      fields (this search will take more time). Checking 
212
      the "Search Knowledge Network for Biocomplexity" box 
213
      will allow you to search the Knowledge Network for 
214
      Biocomplexity (KNB) in addition to the ESA Data 
215
      Registry. The KNB is an international data repository 
216
      dedicated to facilitating ecological and environmental 
217
      research. Click <a href="http://knb.ecoinformatics.org/">
218
      here </a> for more information on the KNB.
219
     <br><br>
220
      You can use the '%' character as a wildcard in your 
221
      searches (e.g., '%biodiversity%' would locate any 
222
      phrase with the word biodiversity embedded within it).
223
      </ul>
224
  </li>
225
  <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>
226
      <p>Browse all existing data sets by title.  This operation can be slow as the
227
      number of entries in the registry grows.</p>
228
      
229
    </ul>
230
  </li>
231
  
232
  <li>
233
      <a href="map.jsp"> View Interactive Map </a> 
234
      <ul> <p> View and query the geographic coverages of the data sets. </p> </ul> 
235
  </li>
236
 
237
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=esa">Register a new 
238
       data set</a><br>
239
         <ul>
240
           <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>). 
241
           </p>
242
	   <br>
243
           <strong>Steps for registering an ESA data set</strong>
244
	    <br>
245
           <span class="greenbold">Step 1: Create an Account</span> <br>
246
           <p> <a href="<%=CGI_URL%>/cgi-bin/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 
247
from institutions like NCEAS and LTER. If you already have an account please use that existing account rather than creating a new one. </p>
248
           <span class="greenbold">Step 2: Login</span><br>
249
	   <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>
250
           <span class="greenbold">Step 3: Register Data</span><br>
251
	  <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>
252
           <span class="greenbold">Step 4: Look for Feedback</span> <br>
253
<p>After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set  has been accepted.</p>      </ul>
254
  
255
      <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa">Create a new account</a>
256
    <ul>
257
        <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa&amp;stage=changepass">Change your password</a>
258
        <li><a href="<%=CGI_URL%>/ldapweb.cgi?cfg=esa&amp;stage=resetpass">Reset your password</a>
259
    </ul>
260
        <ul>
261
      The account management tools are used to create and manage registry 
262
      accounts.   Accounts are free, and are used to identify contributors
263
      so that they can maintain their entries in the future.  
264
    </ul>
265
  </li>
266
</ul>
267
</p>
268
</td>
269
</tr>
270
 
271
  <tr><td>
272
   <br>
273
   <b>About the Registry</b>
274
    <p>
275
    This project is a cooperative effort of the
276
    <a href="http://www.esa.org">Ecological Society of
277
    America</a> and the <a href="http://www.nceas.ucsb.edu">National
278
    Center for Ecological Analysis and Synthesis (NCEAS)</a>.  
279
    The Data Registry is based on software developed by
280
    the <a href="http://knb.ecoinformatics.org">Knowledge Network for
281
    Biocomplexity (KNB)</a>, and houses metadata that are compliant with <a
282
    href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata
283
    Language (EML)</a>.  Consequently, data found in this registry
284
    also are accessible from the larger collection of data found in the
285
    <a href="http://knb.ecoinformatics.org">Knowledge Network for 
286
    Biocomplexity (KNB)</a>.  
287
    </p>
288
  </td></tr>
289
</table>
290

    
291
<script language="JavaScript">          
292
    insertTemplateClosing("<%=CONTEXT_URL%>");
293
</script>
294
</body>
295
</html>
(14-14/17)