Project

General

Profile

1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author: tao $'
9
  *     '$Date: 2007-09-27 14:38:28 -0700 (Thu, 27 Sep 2007) $'
10
  * '$Revision: 3478 $'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29
<html>
30
<head>
31
<title>UCNRS Data Registry</title>
32
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
33
  <link rel="stylesheet" type="text/css" 
34
        href="@systemidserver@@style-skins-path@/nrs/nrs.css"></link>
35
  <script language="JavaScript" type="text/JavaScript"
36
          src="@systemidserver@@style-skins-path@/nrs/nrs.js"></script>
37
  <script language="JavaScript" type="text/JavaScript"
38
          src="@systemidserver@@style-common-path@/branding.js"></script>
39
  <script language="Javascript">
40

    
41
        function trim(stringToTrim) {
42
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
43
        }
44

    
45
        function checkSearch(submitFormObj) {
46
                var searchString = trim(submitFormObj.searchstring.value);
47
		var checkBox = document.getElementById("searchAll");
48

    
49
                if (searchString=="") {
50
			if (confirm("Show *all* data in the KNB?")) {
51
            			searchString = "%";
52
          		} else {
53
            			return false;
54
          		}
55
                }
56

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

    
151
                }
152
                return true;
153
        }
154

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

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

    
255
  <p>&nbsp;</p>
256
  <li>
257
      <a href="map.html"> View Interactive Map </a>
258
      <menu> View and query the geographic coverages of the data sets. </menu>
259
  </li>
260

    
261
</menu>
262
</p>
263
  </td></tr>
264
</table>
265
<p>&nbsp;</p>
266
<script language="JavaScript">          
267
    insertTemplateClosing();
268
</script>
269
</body>
270
</html>
(2-2/9)