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-04-09 15:43:16 -0700 (Tue, 09 Apr 2013) $'
12
 * '$Revision: 7537 $'
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>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
        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?")) {
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/value</returnfield>"
81
                                                           +"<returnfield>dataset/title</returnfield>"
82
                                                           +"<returnfield>keyword</returnfield>"
83
                                                           +"<returnfield>keyword/value</returnfield>"
84
                                                           +"<querygroup operator=\"INTERSECT\">"
85
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
86
                                                                        +"<value>Organization of Biological Field Stations</value>"
87
                                                                        +"<pathexpr>organizationName</pathexpr>"
88
                                                                +"</queryterm>"
89
                                                                +"<querygroup operator=\"UNION\">"
90
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
91
                                                                                +"<value>" + searchString + "</value>"
92
                                                                                +"<pathexpr>surName</pathexpr>"
93
                                                                        +"</queryterm>"
94
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
95
                                                                                +"<value>" + searchString + "</value>"
96
                                                                                +"<pathexpr>givenName</pathexpr>"
97
                                                                        +"</queryterm>"
98
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
99
                                                                                +"<value>" + searchString + "</value>"
100
                                                                                +"<pathexpr>keyword</pathexpr>"
101
                                                                        +"</queryterm>"
102
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
103
                                                                                +"<value>" + searchString + "</value>"
104
                                                                                +"<pathexpr>keyword/value</pathexpr>"
105
                                                                        +"</queryterm>"
106
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
107
                                                                                +"<value>" + searchString + "</value>"
108
																				+"<pathexpr>para</pathexpr>"
109
                                                                        +"</queryterm>"
110
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
111
                                                                                +"<value>" + searchString + "</value>"
112
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
113
                                                                        +"</queryterm>"
114
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
115
                                                                                +"<value>" + searchString + "</value>"
116
                                                                                +"<pathexpr>literalLayout</pathexpr>"
117
                                                                        +"</queryterm>"
118
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
119
                                                                                +"<value>" + searchString + "</value>"
120
                                                                                +"<pathexpr>dataset/title</pathexpr>"
121
                                                                        +"</queryterm>"
122
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
123
                                                                                +"<value>" + searchString + "</value>"
124
                                                                                +"<pathexpr>dataset/title/value</pathexpr>"
125
                                                                        +"</queryterm>"
126
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
127
                                                                                +"<value>" + searchString + "</value>"
128
                                                                                +"<pathexpr>@packageId</pathexpr>"
129
                                                                        +"</queryterm>"
130
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
131
                                                                                +"<value>" + searchString + "</value>"
132
                                                                                +"<pathexpr>abstract/para</pathexpr>"
133
                                                                        +"</queryterm>"
134
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
135
                                                                                +"<value>" + searchString + "</value>"
136
                                                                                +"<pathexpr>abstract/para/value</pathexpr>"
137
                                                                        +"</queryterm>"
138
                                                                +"</querygroup>"
139
                                                          +"</querygroup>"
140
                                                  +"</pathquery>";
141
                } else {
142
                        queryTermString = "";
143
                        if(searchString != "%"){
144
                                queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">"
145
                                                        +"<value>" + searchString + "</value>"
146
                                                 +"</queryterm>";
147
                        }
148
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
149
                                                           +"<querytitle>Web-Search</querytitle>"
150
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
151
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
152
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
153
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
154
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
155
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
156
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
157
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
158
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
159
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
160
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
161
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
162
                                                           +"<returnfield>originator/organizationName</returnfield>"
163
                                                           +"<returnfield>creator/organizationName</returnfield>"
164
                                                           +"<returnfield>dataset/title</returnfield>"
165
                                                           +"<returnfield>dataset/title/value</returnfield>"
166
                                                           +"<returnfield>keyword</returnfield>"
167
                                                           +"<returnfield>keyword/value</returnfield>"
168
                                                           +"<querygroup operator=\"INTERSECT\">"
169
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
170
                                                                        +"<value>Organization of Biological Field Stations</value>"
171
                                                                        +"<pathexpr>organizationName</pathexpr>"
172
                                                                +"</queryterm>"
173
                                                                + queryTermString
174
                                                           +"</querygroup>"
175
                                                    +"</pathquery>";
176

    
177
                }
178
                return true;
179
        }
180

    
181
        function searchAll(){
182
                var checkBox = document.getElementById("searchCheckBox");
183
                if(checkBox.checked == true){
184
                        alert("You have selected to search all possible existing fields. This search will take longer.");
185
                }
186
        }
187

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

    
262
  <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 />
263
    <menu>
264
      The registry search system is used to locate data sets of interest
265
      by searching through existing registered data sets.  
266
      Presently the search covers all fields, including
267
      author, title, abstract, keywords, and other documentation
268
      for each dataset.  (More sophisticated search capabilities, 
269
      including boolean field searches, will be available in future.)
270
    </menu>
271
  </li>
272
  <p>&nbsp;</p>
273
  <li><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=obfs">Register a new OBFS 
274
       data set</a><br />
275
    <menu>
276
      The registration page is used to submit information about a <b>new</b>
277
      data set associated with OBFS research.  The documentation about the
278
      data set will be reviewed and then submitted to the Registry.
279
    </menu>
280
  </li>
281
  <p>&nbsp;</p>
282
  <li>
283
      <a href="map.jsp"> View Interactive Map </a>
284
      <menu> View and query the geographic coverages of the data sets. </menu>
285
  </li>
286

    
287
</menu>
288
</p>
289
  </td></tr>
290
</table>
291
<p>&nbsp;</p>
292
<script language="JavaScript">          
293
    insertTemplateClosing("<%=CONTEXT_URL%>");
294
</script>
295
</body>
296
</html>
(3-3/12)