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>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 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>Organization of Biological Field Stations</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>Organization of Biological Field Stations</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

    
172
  </script>
173
</head>
174
<body>
175
      <script language="JavaScript">
176
          insertTemplateOpening("<%=CONTEXT_URL%>");
177
          insertSearchBox("<%=CONTEXT_URL%>");
178
      </script>
179
<table width="760" border="0" cellspacing="0" cellpadding="0">
180
  <tr><td colspan="5">
181
<p>
182
Welcome to the OBFS Data Registry. This is the primary source for
183
comprehensive information about scientific and research data sets collected
184
within or under the auspices of the Organization of Biological Field Stations.
185
</p>
186
</td></tr>
187
<tr><td colspan="5">
188
<p>This project is a cooperative effort of <a href="http://www.obfs.org">OBFS</a>, 
189
the <a href="http://www.nceas.ucsb.edu">National Center for 
190
Ecological Analysis and Synthesis (NCEAS)</a>, the 
191
<a href="http://nrs.ucop.edu">UC Natural Reserve System</a>, and the 
192
<a href="http://www.lternet.edu">LTER Network Office</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 data sets in this registry goes to the investigators who
204
collected the data, and also to the OBFS sites and system for providing 
205
an effective and pleasant environment for research and education at 
206
the individual research stations.
207
Our particular thanks go out to the OBFS reserve managers, scientists,
208
and stewards 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="obfs" 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
   
231
      This tool allows you to search the registry for data
232
      sets of interest. When you type text in the box and
233
      click on the "Search" button, the search will only
234
      be conducted within the title, author, abstract,
235
      and keyword fields. Checking the "Search All Fields"
236
      box will search on these and all other existing
237
      fields (this search will take more time).
238
     <br><br>
239
      You can use the '%' character as a wildcard in your
240
      searches (e.g., '%biodiversity%' would locate any
241
      phrase with the word biodiversity embedded within it).
242
      </menu>
243
    <br><br>
244
  </li>
245

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