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

    
157
                }
158
                return true;
159
        }
160

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

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

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

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