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: 2010-12-09 10:04:28 -0800 (Thu, 09 Dec 2010) $'
12
 * '$Revision: 5710 $'
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 trim(stringToTrim) {
48
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
49
        }
50

    
51
        function checkSearch(submitFormObj) {
52
                var searchString = trim(submitFormObj.searchstring.value);
53
		var checkBox = document.getElementById("searchAll");
54

    
55
                if (searchString=="") {
56
			if (confirm("Show *all* data in the KNB?")) {
57
            			searchString = "%";
58
          		} else {
59
            			return false;
60
          		}
61
                }
62

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

    
161
                }
162
                return true;
163
        }
164

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

    
245
  <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 />
246
    <menu>
247
      The registry search system is used to locate data sets of interest
248
      by searching through existing registered data sets.  
249
      Presently the search covers all fields, including
250
      author, title, abstract, keywords, and other documentation
251
      for each dataset.  (More sophisticated search capabilities, 
252
      including boolean field searches, will be available in future.)
253
    </menu>
254
  </li>
255
  <p>&nbsp;</p>
256
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=nrs">Register a new UCNRS 
257
       data set</a><br />
258
    <menu>
259
      The registration page is used to submit information about a <b>new</b>
260
      data set associated with UCNRS research.  The documentation about the
261
      data set will be reviewed and then submitted to the Registry.
262
    </menu>
263
  </li>
264

    
265
  <p>&nbsp;</p>
266
  <li>
267
      <a href="map.jsp"> View Interactive Map </a>
268
      <menu> View and query the geographic coverages of the data sets. </menu>
269
  </li>
270

    
271
</menu>
272
</p>
273
  </td></tr>
274
</table>
275
<p>&nbsp;</p>
276
<script language="JavaScript">          
277
    insertTemplateClosing("<%=CONTEXT_URL%>");
278
</script>
279
</body>
280
</html>
(3-3/11)