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: daigle $'
11
 *     '$Date: 2008-04-02 16:28:31 -0700 (Wed, 02 Apr 2008) $'
12
 * '$Revision: 3780 $'
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
  
34
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
35
<html>
36
<head>
37
<title>UCNRS Data Registry</title>
38
  <link rel="stylesheet" type="text/css" 
39
        href="<%=STYLE_SKINS_URL%>/nrs/nrs.css"></link>
40
  <script language="JavaScript" type="text/JavaScript"
41
          src="<%=STYLE_SKINS_URL%>/nrs/nrs.js"></script>
42
  <script language="JavaScript" type="text/JavaScript"
43
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
44
  <script language="Javascript">
45

    
46
        function trim(stringToTrim) {
47
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
48
        }
49

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

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

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

    
156
                }
157
                return true;
158
        }
159

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

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

    
260
  <p>&nbsp;</p>
261
  <li>
262
      <a href="map.jsp"> View Interactive Map </a>
263
      <menu> View and query the geographic coverages of the data sets. </menu>
264
  </li>
265

    
266
</menu>
267
</p>
268
  </td></tr>
269
</table>
270
<p>&nbsp;</p>
271
<script language="JavaScript">          
272
    insertTemplateClosing("<%=SERVER_URL_WITH_CONTEXT%>");
273
</script>
274
</body>
275
</html>
(2-2/9)