Project

General

Profile

1 3780 daigle
<%@ 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$'
9
 *      '$Date$'
10
 * '$Revision$'
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 4080 daigle
<%@ include file="../../common/configure-check.jsp"%>
30 3780 daigle
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 5710 leinfelder
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>"
53 4505 daigle
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
54 3780 daigle
                                                  +"<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>keyword</returnfield>"
68
                                                           +"<querygroup operator=\"INTERSECT\">"
69
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
70
                                                                        +"<value>Organization of Biological Field Stations</value>"
71
                                                                        +"<pathexpr>organizationName</pathexpr>"
72
                                                                +"</queryterm>"
73
                                                                +"<querygroup operator=\"UNION\">"
74
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
75
                                                                                +"<value>" + searchString + "</value>"
76
                                                                                +"<pathexpr>surName</pathexpr>"
77
                                                                        +"</queryterm>"
78
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
79
                                                                                +"<value>" + searchString + "</value>"
80
                                                                                +"<pathexpr>givenName</pathexpr>"
81
                                                                        +"</queryterm>"
82
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
83
                                                                                +"<value>" + searchString + "</value>"
84
                                                                                +"<pathexpr>keyword</pathexpr>"
85
                                                                        +"</queryterm>"
86
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
87
                                                                                +"<value>" + searchString + "</value>"
88
                                                                                +"<pathexpr>para</pathexpr>"
89
                                                                        +"</queryterm>"
90
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
91
                                                                                +"<value>" + searchString + "</value>"
92
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
93
                                                                        +"</queryterm>"
94
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
95
                                                                                +"<value>" + searchString + "</value>"
96
                                                                                +"<pathexpr>literalLayout</pathexpr>"
97
                                                                        +"</queryterm>"
98
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
99
                                                                                +"<value>" + searchString + "</value>"
100
                                                                                +"<pathexpr>title</pathexpr>"
101
                                                                        +"</queryterm>"
102
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
103
                                                                                +"<value>" + searchString + "</value>"
104
                                                                                +"<pathexpr>@packageId</pathexpr>"
105
                                                                        +"</queryterm>"
106
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
107
                                                                                +"<value>" + searchString + "</value>"
108
                                                                                +"<pathexpr>abstract/para</pathexpr>"
109
                                                                        +"</queryterm>"
110
                                                                +"</querygroup>"
111
                                                          +"</querygroup>"
112
                                                  +"</pathquery>";
113
                return true;
114
        }
115
  </script>
116
117
</head>
118
119
<body>
120
<table width="760" border="0" cellspacing="0" cellpadding="0">
121
  <tr>
122
    <td valign="middle" colspan="4" class="title">Organization of Biological
123
    Field Stations<br> Data Registry</td>
124
    <td rowspan="3" width="20%" valign="top">
125
      <div align="right"><img src="<%=STYLE_SKINS_URL%>/obfs/obfs-logo.png"></div>
126
    </td>
127
  </tr>
128
  <tr>
129
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
130
  </tr>
131
  <tr>
132
    <td valign="top" width="20%">
133
      <p><a href="http://www.obfs.org" target="_top"> OBFS Home</a></p>
134
    </td>
135
    <td valign="top" width="20%">
136
      <p><a href="<%=STYLE_SKINS_URL%>/obfs/index.jsp" target="_top">Registry Home</a></p>
137
    </td>
138
    <td valign="top" width="20%">
139
      <p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=obfs" target="_top">Register a <br>New Data Set</a></p>
140
    </td>
141
    <td valign="top" width="20%">
142
      <!--
143
      <p>
144 5710 leinfelder
        <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>
145 3780 daigle
      -->
146
<p class="searchbox">
147
Search for Data<br />
148
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
149
  <input value="INTERSECT" name="operator" type="hidden">
150
  <input size="14" name="searchstring" type="text" value="">
151
  <input name="query" type="hidden"/>
152
  <input name="qformat" value="obfs" type="hidden">
153
  <input name="enableediting" value="true" type="hidden">
154
  <input type="hidden" name="action" value="squery">
155
  <!-- <input value="Start Search" type="submit"> -->
156
</form>
157
</p>
158
    </td>
159
  </tr>
160
</table>
161
</body>
162
</html>