Project

General

Profile

1 3780 daigle
<%@ 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$'
11
 *     '$Date$'
12
 * '$Revision$'
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 4080 daigle
<%@ include file="../../common/configure-check.jsp"%>
34 3780 daigle
35
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
36
<html>
37
<head>
38
<title>OBFS Data Registry</title>
39
  <link rel="stylesheet" type="text/css"
40
        href="<%=STYLE_SKINS_URL%>/obfs/obfs.css"></link>
41
  <script language="JavaScript" type="text/JavaScript"
42
          src="<%=STYLE_SKINS_URL%>/obfs/obfs.js"></script>
43
  <script language="JavaScript" type="text/JavaScript"
44
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
45
  <script language="Javascript">
46
47 7678 leinfelder
		function encodeXML(theString) {
48
			return theString.replace(/&/g, '&amp;')
49
				.replace(/</g, '&lt;')
50
				.replace(/>/g, '&gt;')
51
				.replace(/"/g, '&quot;');
52
		}
53
54 3780 daigle
        function trim(stringToTrim) {
55
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
56
        }
57
58
        function checkSearch(submitFormObj) {
59 7678 leinfelder
        	var searchString = trim(submitFormObj.searchstring.value);
60
    		searchString = encodeXML(searchString);
61
			var checkBox = document.getElementById("searchAll");
62 3780 daigle
63
                if (searchString=="") {
64 7537 leinfelder
                       if (confirm("Show *all* data?")) {
65 3780 daigle
            			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 5710 leinfelder
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
75 4505 daigle
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
76 3780 daigle
                                                           +"<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 5816 leinfelder
                                                           +"<returnfield>dataset/title/value</returnfield>"
89 3780 daigle
                                                           +"<returnfield>dataset/title</returnfield>"
90
                                                           +"<returnfield>keyword</returnfield>"
91 5816 leinfelder
                                                           +"<returnfield>keyword/value</returnfield>"
92 3780 daigle
                                                           +"<querygroup operator=\"INTERSECT\">"
93
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
94
                                                                        +"<value>Organization of Biological Field Stations</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 5816 leinfelder
                                                                                +"<pathexpr>keyword/value</pathexpr>"
113
                                                                        +"</queryterm>"
114
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
115
                                                                                +"<value>" + searchString + "</value>"
116 7490 leinfelder
																				+"<pathexpr>para</pathexpr>"
117 3780 daigle
                                                                        +"</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 7490 leinfelder
                                                                                +"<pathexpr>dataset/title</pathexpr>"
129 3780 daigle
                                                                        +"</queryterm>"
130
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
131
                                                                                +"<value>" + searchString + "</value>"
132 7490 leinfelder
                                                                                +"<pathexpr>dataset/title/value</pathexpr>"
133 5816 leinfelder
                                                                        +"</queryterm>"
134
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
135
                                                                                +"<value>" + searchString + "</value>"
136 3780 daigle
                                                                                +"<pathexpr>@packageId</pathexpr>"
137
                                                                        +"</queryterm>"
138
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
139
                                                                                +"<value>" + searchString + "</value>"
140
                                                                                +"<pathexpr>abstract/para</pathexpr>"
141
                                                                        +"</queryterm>"
142 5816 leinfelder
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
143
                                                                                +"<value>" + searchString + "</value>"
144
                                                                                +"<pathexpr>abstract/para/value</pathexpr>"
145
                                                                        +"</queryterm>"
146 3780 daigle
                                                                +"</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 5710 leinfelder
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
159 4505 daigle
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
160 3780 daigle
                                                           +"<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 5816 leinfelder
                                                           +"<returnfield>dataset/title/value</returnfield>"
174 3780 daigle
                                                           +"<returnfield>keyword</returnfield>"
175 5816 leinfelder
                                                           +"<returnfield>keyword/value</returnfield>"
176 3780 daigle
                                                           +"<querygroup operator=\"INTERSECT\">"
177
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
178
                                                                        +"<value>Organization of Biological Field Stations</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
196
  </script>
197
</head>
198
<body>
199
      <script language="JavaScript">
200 4080 daigle
          insertTemplateOpening("<%=CONTEXT_URL%>");
201
          insertSearchBox("<%=CONTEXT_URL%>");
202 3780 daigle
      </script>
203
<table width="760" border="0" cellspacing="0" cellpadding="0">
204
  <tr><td colspan="5">
205
<p>
206
Welcome to the OBFS Data Registry. This is the primary source for
207
comprehensive information about scientific and research data sets collected
208
within or under the auspices of the Organization of Biological Field Stations.
209
</p>
210
</td></tr>
211
<tr><td colspan="5">
212
<p>This project is a cooperative effort of <a href="http://www.obfs.org">OBFS</a>,
213
the <a href="http://www.nceas.ucsb.edu">National Center for
214
Ecological Analysis and Synthesis (NCEAS)</a>, the
215
<a href="http://nrs.ucop.edu">UC Natural Reserve System</a>, and the
216
<a href="http://www.lternet.edu">LTER Network Office</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 data sets in this registry goes to the investigators who
228
collected the data, and also to the OBFS sites and system for providing
229
an effective and pleasant environment for research and education at
230
the individual research stations.
231
Our particular thanks go out to the OBFS reserve managers, scientists,
232
and stewards 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="obfs" 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
255
      This tool allows you to search the registry for data
256
      sets of interest. When you type text in the box and
257
      click on the "Search" button, the search will only
258
      be conducted within the title, author, abstract,
259
      and keyword fields. Checking the "Search All Fields"
260
      box will search on these and all other existing
261
      fields (this search will take more time).
262
     <br><br>
263
      You can use the '%' character as a wildcard in your
264
      searches (e.g., '%biodiversity%' would locate any
265
      phrase with the word biodiversity embedded within it).
266
      </menu>
267
    <br><br>
268
  </li>
269
270 5710 leinfelder
  <li><a href="<%=SERVLET_URL%>?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;organizationName=Organization%20of%20Biological%20Field%20Stations&amp;qformat=obfs&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 OBFS data sets</a><br />
271 3780 daigle
    <menu>
272
      The registry search system is used to locate data sets of interest
273
      by searching through existing registered data sets.
274
      Presently the search covers all fields, including
275
      author, title, abstract, keywords, and other documentation
276
      for each dataset.  (More sophisticated search capabilities,
277
      including boolean field searches, will be available in future.)
278
    </menu>
279
  </li>
280
  <p>&nbsp;</p>
281
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=obfs">Register a new OBFS
282
       data set</a><br />
283
    <menu>
284
      The registration page is used to submit information about a <b>new</b>
285
      data set associated with OBFS research.  The documentation about the
286
      data set will be reviewed and then submitted to the Registry.
287
    </menu>
288
  </li>
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 4080 daigle
    insertTemplateClosing("<%=CONTEXT_URL%>");
302 3780 daigle
</script>
303
</body>
304
</html>