Project

General

Profile

1
<%@ page    language="java" %>
2
<%
3
/**
4
 * 
5
 * '$RCSfile$'
6
 * Copyright: 2008 Regents of the University of California and the
7
 *             National Center for Ecological Analysis and Synthesis
8
 *    '$Author: leinfelder $'
9
 *      '$Date: 2011-01-18 17:04:51 -0800 (Tue, 18 Jan 2011) $'
10
 * '$Revision: 5816 $'
11
 * 
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 * 
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
     
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */  
26
%>
27

    
28
<%@ include file="../../common/common-settings.jsp"%>
29
<%@ include file="../../common/configure-check.jsp"%>
30

    
31
<!--____________________________max_width____________________________________-->
32

    
33
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
34
<html>
35
<head>
36
  <title>OBFS Data Registry</title>
37
  <link rel="stylesheet" type="text/css" 
38
        href="<%=STYLE_SKINS_URL%>/obfs/obfs.css"></link>
39
<script language="Javascript">
40
        function trim(stringToTrim) {
41
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
42
        }
43

    
44
        function checkSearch(submitFormObj) {
45
                var searchString = trim(submitFormObj.searchstring.value);
46
                if (searchString=="") {
47
                        searchString="%";
48
                }
49

    
50
                submitFormObj.query.value = "<pathquery version=\"1.2\">"
51
                                                  +"<querytitle>Web-Search</querytitle>"
52
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
53
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
54
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
55
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
56
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
57
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
58
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
59
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
60
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
61
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
62
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
63
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
64
                                                           +"<returnfield>originator/organizationName</returnfield>"
65
                                                           +"<returnfield>creator/organizationName</returnfield>"
66
                                                           +"<returnfield>dataset/title</returnfield>"
67
                                                           +"<returnfield>dataset/title/value</returnfield>"
68
                                                           +"<returnfield>keyword</returnfield>"
69
                                                           +"<returnfield>keyword/value</returnfield>"
70
                                                           +"<querygroup operator=\"INTERSECT\">"
71
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
72
                                                                        +"<value>Organization of Biological Field Stations</value>"
73
                                                                        +"<pathexpr>organizationName</pathexpr>"
74
                                                                +"</queryterm>"
75
                                                                +"<querygroup operator=\"UNION\">"
76
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
77
                                                                                +"<value>" + searchString + "</value>"
78
                                                                                +"<pathexpr>surName</pathexpr>"
79
                                                                        +"</queryterm>"
80
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
81
                                                                                +"<value>" + searchString + "</value>"
82
                                                                                +"<pathexpr>givenName</pathexpr>"
83
                                                                        +"</queryterm>"
84
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
85
                                                                                +"<value>" + searchString + "</value>"
86
                                                                                +"<pathexpr>keyword</pathexpr>"
87
                                                                        +"</queryterm>"
88
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
89
                                                                                +"<value>" + searchString + "</value>"
90
                                                                                +"<pathexpr>keyword/value</pathexpr>"
91
                                                                        +"</queryterm>"
92
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
93
                                                                                +"<value>" + searchString + "</value>"
94
                                                                                +"<pathexpr>para</pathexpr>"
95
                                                                        +"</queryterm>"
96
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
97
                                                                                +"<value>" + searchString + "</value>"
98
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
99
                                                                        +"</queryterm>"
100
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
101
                                                                                +"<value>" + searchString + "</value>"
102
                                                                                +"<pathexpr>literalLayout</pathexpr>"
103
                                                                        +"</queryterm>"
104
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
105
                                                                                +"<value>" + searchString + "</value>"
106
                                                                                +"<pathexpr>title</pathexpr>"
107
                                                                        +"</queryterm>"
108
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
109
                                                                                +"<value>" + searchString + "</value>"
110
                                                                                +"<pathexpr>title/value</pathexpr>"
111
                                                                        +"</queryterm>"
112
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
113
                                                                                +"<value>" + searchString + "</value>"
114
                                                                                +"<pathexpr>@packageId</pathexpr>"
115
                                                                        +"</queryterm>"
116
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
117
                                                                                +"<value>" + searchString + "</value>"
118
                                                                                +"<pathexpr>abstract/para</pathexpr>"
119
                                                                        +"</queryterm>"
120
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
121
                                                                                +"<value>" + searchString + "</value>"
122
                                                                                +"<pathexpr>abstract/para/value</pathexpr>"
123
                                                                        +"</queryterm>"
124
                                                                +"</querygroup>"
125
                                                          +"</querygroup>"
126
                                                  +"</pathquery>";
127
                return true;
128
        }
129
  </script>
130

    
131
</head>
132

    
133
<body>
134
<table width="760" border="0" cellspacing="0" cellpadding="0">
135
  <tr> 
136
    <td valign="middle" colspan="4" class="title">Organization of Biological 
137
    Field Stations<br> Data Registry</td>
138
    <td rowspan="3" width="20%" valign="top"> 
139
      <div align="right"><img src="<%=STYLE_SKINS_URL%>/obfs/obfs-logo.png"></div>
140
    </td>
141
  </tr>
142
  <tr> 
143
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
144
  </tr>
145
  <tr> 
146
    <td valign="top" width="20%"> 
147
      <p><a href="http://www.obfs.org" target="_top"> OBFS Home</a></p>
148
    </td>
149
    <td valign="top" width="20%"> 
150
      <p><a href="<%=STYLE_SKINS_URL%>/obfs/index.jsp" target="_top">Registry Home</a></p>
151
    </td>
152
    <td valign="top" width="20%"> 
153
      <p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=obfs" target="_top">Register a <br>New Data Set</a></p>
154
    </td>
155
    <td valign="top" width="20%"> 
156
      <!--
157
      <p>
158
        <a href="<%=SERVLET_URL%>?action=query&operator=INTERSECT&anyfield=%25&organizationName=Organization%20of%20Biological%20Field%20Stations&qformat=obfs&returndoctype=eml://ecoinformatics.org/eml-2.1.1&returndoctype=eml://ecoinformatics.org/eml-2.1.0&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returnfield=dataset/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName" target="_top">Search for Data</a></p>
159
      -->
160
<p class="searchbox">
161
Search for Data<br />
162
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
163
  <input value="INTERSECT" name="operator" type="hidden">
164
  <input size="14" name="searchstring" type="text" value="">
165
  <input name="query" type="hidden"/>
166
  <input name="qformat" value="obfs" type="hidden">
167
  <input name="enableediting" value="true" type="hidden">
168
  <input type="hidden" name="action" value="squery">
169
  <!-- <input value="Start Search" type="submit"> -->
170
</form>
171
</p>
172
    </td>
173
  </tr>
174
</table>
175
</body>
176
</html>
(1-1/12)