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-04-02 16:28:31 -0700 (Wed, 02 Apr 2008) $'
12
 * '$Revision: 3780 $'
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
  
34
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
35
<html>
36
<head>
37
<title>OBFS Data Registry</title>
38
  <link rel="stylesheet" type="text/css" 
39
        href="<%=STYLE_SKINS_URL%>/obfs/obfs.css"></link>
40
  <script language="JavaScript" type="text/JavaScript"
41
          src="<%=STYLE_SKINS_URL%>/obfs/obfs.js"></script>
42
  <script language="JavaScript" type="text/JavaScript"
43
          src="<%=STYLE_COMMON_URL%>/branding.js"></script>
44
  <script language="Javascript">
45

    
46
        function trim(stringToTrim) {
47
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
48
        }
49

    
50
        function checkSearch(submitFormObj) {
51
                var searchString = trim(submitFormObj.searchstring.value);
52
		var checkBox = document.getElementById("searchAll");
53

    
54
                if (searchString=="") {
55
                       if (confirm("Show *all* data in the KNB?")) {
56
            			searchString = "%";
57
          		} else {
58
            			return false;
59
          		}
60
                }
61

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

    
156
                }
157
                return true;
158
        }
159

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

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

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

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