Project

General

Profile

1
<%@ page    language="java" %>
2
<%
3
/**
4
 *  '$RCSfile$'
5
 *      Authors: Matt Jones
6
 *    Copyright: 2008 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: leinfelder $'
11
 *     '$Date: 2013-05-08 22:14:36 -0700 (Wed, 08 May 2013) $'
12
 * '$Revision: 7678 $'
13
 * 
14
 * This is an HTML document for displaying metadata catalog tools
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
<%@ include file="../../common/common-settings.jsp"%>
33
<%@ include file="../../common/configure-check.jsp"%>
34
  
35
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
36
<html>
37
<head>
38
<title>UCNRS Data Registry</title>
39
  <link rel="stylesheet" type="text/css" 
40
        href="<%=STYLE_SKINS_URL%>/nrs/nrs.css"></link>
41
  <script language="JavaScript" type="text/JavaScript"
42
          src="<%=STYLE_SKINS_URL%>/nrs/nrs.js"></script>
43
  <script language="JavaScript" type="text/JavaScript"
44
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
45
  <script language="Javascript">
46

    
47
		function encodeXML(theString) {
48
			return theString.replace(/&/g, '&amp;')
49
				.replace(/</g, '&lt;')
50
				.replace(/>/g, '&gt;')
51
				.replace(/"/g, '&quot;');
52
		}
53
  
54
        function trim(stringToTrim) {
55
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
56
        }
57

    
58
        function checkSearch(submitFormObj) {
59
		var searchString = trim(submitFormObj.searchstring.value);
60
		searchString = encodeXML(searchString);
61
		var checkBox = document.getElementById("searchAll");
62

    
63
                if (searchString=="") {
64
			if (confirm("Show *all* data?")) {
65
            			searchString = "%";
66
          		} else {
67
            			return false;
68
          		}
69
                }
70

    
71
		if(!checkBox.checked && searchString!="%"){
72
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
73
							   +"<querytitle>Web-Search</querytitle>"
74
							   +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
75
							   +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
76
							   +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
77
							   +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
78
							   +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
79
							   +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
80
							   +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
81
							   +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
82
	                                                   +"<returnfield>originator/individualName/surName</returnfield>"
83
        	                                           +"<returnfield>originator/individualName/givenName</returnfield>"
84
                	                                   +"<returnfield>creator/individualName/surName</returnfield>"
85
                        	                           +"<returnfield>creator/individualName/givenName</returnfield>"
86
                                	                   +"<returnfield>originator/organizationName</returnfield>"
87
                                        	           +"<returnfield>creator/organizationName</returnfield>"
88
                                                	   +"<returnfield>dataset/title</returnfield>"
89
                                                	   +"<returnfield>dataset/title/value</returnfield>"
90
	                                                   +"<returnfield>keyword</returnfield>"
91
	                                                   +"<returnfield>keyword/value</returnfield>"
92
        	                                           +"<querygroup operator=\"INTERSECT\">"
93
							   	+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
94
                        	                           		+"<value>University of California Natural Reserve System</value>"
95
									+"<pathexpr>organizationName</pathexpr>"
96
							   	+"</queryterm>"
97
							   	+"<querygroup operator=\"UNION\">"
98
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
99
							     			+"<value>" + searchString + "</value>"
100
							     			+"<pathexpr>surName</pathexpr>"
101
									+"</queryterm>"
102
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
103
							     			+"<value>" + searchString + "</value>"
104
							     			+"<pathexpr>givenName</pathexpr>"
105
									+"</queryterm>"
106
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
107
							     			+"<value>" + searchString + "</value>"
108
							     			+"<pathexpr>keyword</pathexpr>"
109
									+"</queryterm>"
110
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
111
							     			+"<value>" + searchString + "</value>"
112
							     			+"<pathexpr>keyword/value</pathexpr>"
113
									+"</queryterm>"
114
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
115
							     			+"<value>" + searchString + "</value>"
116
							     			+"<pathexpr>para</pathexpr>"
117
									+"</queryterm>"
118
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
119
							     			+"<value>" + searchString + "</value>"
120
							     			+"<pathexpr>geographicDescription</pathexpr>"
121
									+"</queryterm>"
122
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
123
							     			+"<value>" + searchString + "</value>"
124
							     			+"<pathexpr>literalLayout</pathexpr>"
125
									+"</queryterm>"
126
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
127
							     			+"<value>" + searchString + "</value>"
128
							     			+"<pathexpr>dataset/title</pathexpr>"
129
									+"</queryterm>"
130
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
131
							     			+"<value>" + searchString + "</value>"
132
							     			+"<pathexpr>dataset/title/value</pathexpr>"
133
									+"</queryterm>"
134
                                    +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
135
                                            +"<value>" + searchString + "</value>"
136
                                            +"<pathexpr>@packageId</pathexpr>"
137
                                    +"</queryterm>"
138
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
139
							     			+"<value>" + searchString + "</value>"
140
							     			+"<pathexpr>abstract/para</pathexpr>"
141
									+"</queryterm>"
142
									+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
143
							     			+"<value>" + searchString + "</value>"
144
							     			+"<pathexpr>abstract/para/value</pathexpr>"
145
									+"</queryterm>"
146
							   	+"</querygroup>"
147
							  +"</querygroup>"
148
						  +"</pathquery>";
149
                } else {
150
			queryTermString = "";
151
			if(searchString != "%"){
152
				queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">"
153
                                                  	+"<value>" + searchString + "</value>"
154
                                                 +"</queryterm>";
155
			} 
156
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
157
                                                           +"<querytitle>Web-Search</querytitle>"
158
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
159
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
160
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
161
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
162
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
163
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
164
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
165
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
166
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
167
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
168
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
169
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
170
                                                           +"<returnfield>originator/organizationName</returnfield>"
171
                                                           +"<returnfield>creator/organizationName</returnfield>"
172
                                                           +"<returnfield>dataset/title</returnfield>"
173
                                                           +"<returnfield>dataset/title/value</returnfield>"
174
                                                           +"<returnfield>keyword</returnfield>"
175
                                                           +"<returnfield>keyword/value</returnfield>"
176
                                                           +"<querygroup operator=\"INTERSECT\">"
177
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
178
                                                                        +"<value>University of California Natural Reserve System</value>"
179
                                                                        +"<pathexpr>organizationName</pathexpr>"
180
                                                                +"</queryterm>"
181
								+ queryTermString
182
                                                           +"</querygroup>"
183
						    +"</pathquery>";
184

    
185
                }
186
                return true;
187
        }
188

    
189
        function searchAll(){
190
                var checkBox = document.getElementById("searchCheckBox");
191
                if(checkBox.checked == true){
192
                        alert("You have selected to search all possible existing fields. This search will take longer.");
193
                }
194
        }
195
  </script>
196
</head>
197
<body>
198
      <script language="JavaScript">
199
          insertTemplateOpening("<%=CONTEXT_URL%>");
200
          insertSearchBox("<%=CONTEXT_URL%>");
201
      </script>
202
<table width="760" border="0" cellspacing="0" cellpadding="0">
203
  <tr><td colspan="5">
204
<p>
205
Welcome to the NRS Data Registry. This is the primary source for
206
comprehensive information about scientific and research data sets collected
207
within or under the auspices of the University of California's Natural
208
Reserve System.
209
</p>
210
</td></tr>
211
<tr><td colspan="5">
212
<p>
213
This project is a cooperative effort of the 
214
<a href="http://nrs.ucop.edu">University of California's Natural Reserve System</a>, 
215
and the <a href="http://www.nceas.ucsb.edu">National Center for 
216
Ecological Analysis and Synthesis (NCEAS)</a>.  
217
The Data Registry is based on software developed by the
218
<a href="http://knb.ecoinformatics.org">Knowledge Network for 
219
Biocomplexity (KNB)</a>, and
220
houses metadata that are compliant with 
221
<a href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata 
222
Language (EML)</a>.
223
</p>
224
</td></tr>
225
<tr><td colspan="5">
226
<p>
227
Credit for the datasets in this registry goes to the investigators who
228
collected the data, and also to the NRS system for providing an effective and
229
pleasant environment for research and education at the individual reserves.
230
Our particular thanks go out to the NRS reserve managers and stewards, as
231
well as the system-wide NRS office maintained by the University of
232
California, for their comments and continuing support.
233
</p>
234
</td></tr>
235
<tr><td colspan="5">
236
<p><b>Registry Tools</b></p>
237
<p>
238
<menu>
239
<li><span class="searchbox"><a name="search"> Search for Data Sets</a></span><br />
240
    <menu>
241
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
242
  <input value="UNION" name="operator" type="hidden">
243
  &nbsp;<input size="14" name="searchstring" type="text" value="" id="searchBox">
244
  <input name="query" type="hidden"/>	
245
  <input name="qformat" value="nrs" type="hidden">
246
  <input name="enableediting" value="true" type="hidden">
247
  <input type="hidden" name="action" value="squery">
248
  <input value="Search" type="submit">
249
</form>
250
<form>
251
  <input name="search" type="radio" checked><span class="text_plain"> Search Title, Abstract, Keywords, Personnel (Quicker)</span></input><br>
252
  <input name="search" type="radio" id="searchAll"><span class="text_plain"> Search all fields (Slower)</span></input><br>
253
</form>
254
      This tool allows you to search the registry for data
255
      sets of interest. When you type text in the box and
256
      click on the "Search" button, the search will only
257
      be conducted within the title, author, abstract,
258
      and keyword fields. Checking the "Search All Fields"
259
      box will search on these and all other existing
260
      fields (this search will take more time). 
261
     <br><br>
262
      You can use the '%' character as a wildcard in your
263
      searches (e.g., '%biodiversity%' would locate any
264
      phrase with the word biodiversity embedded within it).
265
      </menu>
266
    <br><br>
267
  </li>
268

    
269
  <li><a href="<%=SERVLET_URL%>?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;organizationName=University%20of%20California%20Natural%20Reserve%20System&amp;qformat=nrs&amp;enableediting=true&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 existing NRS data sets</a><br />
270
    <menu>
271
      The registry search system is used to locate data sets of interest
272
      by searching through existing registered data sets.  
273
      Presently the search covers all fields, including
274
      author, title, abstract, keywords, and other documentation
275
      for each dataset.  (More sophisticated search capabilities, 
276
      including boolean field searches, will be available in future.)
277
    </menu>
278
  </li>
279
  <p>&nbsp;</p>
280
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=nrs">Register a new UCNRS 
281
       data set</a><br />
282
    <menu>
283
      The registration page is used to submit information about a <b>new</b>
284
      data set associated with UCNRS research.  The documentation about the
285
      data set will be reviewed and then submitted to the Registry.
286
    </menu>
287
  </li>
288

    
289
  <p>&nbsp;</p>
290
  <li>
291
      <a href="map.jsp"> View Interactive Map </a>
292
      <menu> View and query the geographic coverages of the data sets. </menu>
293
  </li>
294

    
295
</menu>
296
</p>
297
  </td></tr>
298
</table>
299
<p>&nbsp;</p>
300
<script language="JavaScript">          
301
    insertTemplateClosing("<%=CONTEXT_URL%>");
302
</script>
303
</body>
304
</html>
(3-3/11)