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-11-03 16:09:04 -0800 (Mon, 03 Nov 2008) $'
12
 * '$Revision: 4505 $'
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.0</returndoctype>"
67
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
68
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
69
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
70
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
71
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
72
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
73
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
74
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
75
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
76
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
77
                                                           +"<returnfield>originator/organizationName</returnfield>"
78
                                                           +"<returnfield>creator/organizationName</returnfield>"
79
                                                           +"<returnfield>dataset/title</returnfield>"
80
                                                           +"<returnfield>keyword</returnfield>"
81
                                                           +"<querygroup operator=\"INTERSECT\">"
82
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
83
                                                                        +"<value>Organization of Biological Field Stations</value>"
84
                                                                        +"<pathexpr>organizationName</pathexpr>"
85
                                                                +"</queryterm>"
86
                                                                +"<querygroup operator=\"UNION\">"
87
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
88
                                                                                +"<value>" + searchString + "</value>"
89
                                                                                +"<pathexpr>surName</pathexpr>"
90
                                                                        +"</queryterm>"
91
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
92
                                                                                +"<value>" + searchString + "</value>"
93
                                                                                +"<pathexpr>givenName</pathexpr>"
94
                                                                        +"</queryterm>"
95
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
96
                                                                                +"<value>" + searchString + "</value>"
97
                                                                                +"<pathexpr>keyword</pathexpr>"
98
                                                                        +"</queryterm>"
99
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
100
                                                                                +"<value>" + searchString + "</value>"
101
                                                                         +"<pathexpr>para</pathexpr>"
102
                                                                        +"</queryterm>"
103
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
104
                                                                                +"<value>" + searchString + "</value>"
105
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
106
                                                                        +"</queryterm>"
107
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
108
                                                                                +"<value>" + searchString + "</value>"
109
                                                                                +"<pathexpr>literalLayout</pathexpr>"
110
                                                                        +"</queryterm>"
111
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
112
                                                                                +"<value>" + searchString + "</value>"
113
                                                                                +"<pathexpr>title</pathexpr>"
114
                                                                        +"</queryterm>"
115
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
116
                                                                                +"<value>" + searchString + "</value>"
117
                                                                                +"<pathexpr>@packageId</pathexpr>"
118
                                                                        +"</queryterm>"
119
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
120
                                                                                +"<value>" + searchString + "</value>"
121
                                                                                +"<pathexpr>abstract/para</pathexpr>"
122
                                                                        +"</queryterm>"
123
                                                                +"</querygroup>"
124
                                                          +"</querygroup>"
125
                                                  +"</pathquery>";
126
                } else {
127
                        queryTermString = "";
128
                        if(searchString != "%"){
129
                                queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">"
130
                                                        +"<value>" + searchString + "</value>"
131
                                                 +"</queryterm>";
132
                        }
133
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
134
                                                           +"<querytitle>Web-Search</querytitle>"
135
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
136
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
137
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
138
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
139
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
140
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
141
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
142
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
143
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
144
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
145
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
146
                                                           +"<returnfield>originator/organizationName</returnfield>"
147
                                                           +"<returnfield>creator/organizationName</returnfield>"
148
                                                           +"<returnfield>dataset/title</returnfield>"
149
                                                           +"<returnfield>keyword</returnfield>"
150
                                                           +"<querygroup operator=\"INTERSECT\">"
151
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
152
                                                                        +"<value>Organization of Biological Field Stations</value>"
153
                                                                        +"<pathexpr>organizationName</pathexpr>"
154
                                                                +"</queryterm>"
155
                                                                + queryTermString
156
                                                           +"</querygroup>"
157
                                                    +"</pathquery>";
158

    
159
                }
160
                return true;
161
        }
162

    
163
        function searchAll(){
164
                var checkBox = document.getElementById("searchCheckBox");
165
                if(checkBox.checked == true){
166
                        alert("You have selected to search all possible existing fields. This search will take longer.");
167
                }
168
        }
169

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

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

    
269
</menu>
270
</p>
271
  </td></tr>
272
</table>
273
<p>&nbsp;</p>
274
<script language="JavaScript">          
275
    insertTemplateClosing("<%=CONTEXT_URL%>");
276
</script>
277
</body>
278
</html>
(3-3/12)