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
30
<!--____________________________max_width____________________________________-->
31
32
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
33
<html>
34
<head>
35
  <title>OBFS Data Registry</title>
36
  <link rel="stylesheet" type="text/css"
37
        href="<%=STYLE_SKINS_URL%>/obfs/obfs.css"></link>
38
<script language="Javascript">
39
        function trim(stringToTrim) {
40
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
41
        }
42
43
        function checkSearch(submitFormObj) {
44
                var searchString = trim(submitFormObj.searchstring.value);
45
                if (searchString=="") {
46
                        searchString="%";
47
                }
48
49
                submitFormObj.query.value = "<pathquery version=\"1.2\">"
50
                                                  +"<querytitle>Web-Search</querytitle>"
51
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
52
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
53
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
54
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
55
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
56
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
57
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
58
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
59
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
60
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
61
                                                           +"<returnfield>originator/organizationName</returnfield>"
62
                                                           +"<returnfield>creator/organizationName</returnfield>"
63
                                                           +"<returnfield>dataset/title</returnfield>"
64
                                                           +"<returnfield>keyword</returnfield>"
65
                                                           +"<querygroup operator=\"INTERSECT\">"
66
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
67
                                                                        +"<value>Organization of Biological Field Stations</value>"
68
                                                                        +"<pathexpr>organizationName</pathexpr>"
69
                                                                +"</queryterm>"
70
                                                                +"<querygroup operator=\"UNION\">"
71
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
72
                                                                                +"<value>" + searchString + "</value>"
73
                                                                                +"<pathexpr>surName</pathexpr>"
74
                                                                        +"</queryterm>"
75
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
76
                                                                                +"<value>" + searchString + "</value>"
77
                                                                                +"<pathexpr>givenName</pathexpr>"
78
                                                                        +"</queryterm>"
79
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
80
                                                                                +"<value>" + searchString + "</value>"
81
                                                                                +"<pathexpr>keyword</pathexpr>"
82
                                                                        +"</queryterm>"
83
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
84
                                                                                +"<value>" + searchString + "</value>"
85
                                                                                +"<pathexpr>para</pathexpr>"
86
                                                                        +"</queryterm>"
87
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
88
                                                                                +"<value>" + searchString + "</value>"
89
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
90
                                                                        +"</queryterm>"
91
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
92
                                                                                +"<value>" + searchString + "</value>"
93
                                                                                +"<pathexpr>literalLayout</pathexpr>"
94
                                                                        +"</queryterm>"
95
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
96
                                                                                +"<value>" + searchString + "</value>"
97
                                                                                +"<pathexpr>title</pathexpr>"
98
                                                                        +"</queryterm>"
99
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
100
                                                                                +"<value>" + searchString + "</value>"
101
                                                                                +"<pathexpr>@packageId</pathexpr>"
102
                                                                        +"</queryterm>"
103
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
104
                                                                                +"<value>" + searchString + "</value>"
105
                                                                                +"<pathexpr>abstract/para</pathexpr>"
106
                                                                        +"</queryterm>"
107
                                                                +"</querygroup>"
108
                                                          +"</querygroup>"
109
                                                  +"</pathquery>";
110
                return true;
111
        }
112
  </script>
113
114
</head>
115
116
<body>
117
<table width="760" border="0" cellspacing="0" cellpadding="0">
118
  <tr>
119
    <td valign="middle" colspan="4" class="title">Organization of Biological
120
    Field Stations<br> Data Registry</td>
121
    <td rowspan="3" width="20%" valign="top">
122
      <div align="right"><img src="<%=STYLE_SKINS_URL%>/obfs/obfs-logo.png"></div>
123
    </td>
124
  </tr>
125
  <tr>
126
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
127
  </tr>
128
  <tr>
129
    <td valign="top" width="20%">
130
      <p><a href="http://www.obfs.org" target="_top"> OBFS Home</a></p>
131
    </td>
132
    <td valign="top" width="20%">
133
      <p><a href="<%=STYLE_SKINS_URL%>/obfs/index.jsp" target="_top">Registry Home</a></p>
134
    </td>
135
    <td valign="top" width="20%">
136
      <p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=obfs" target="_top">Register a <br>New Data Set</a></p>
137
    </td>
138
    <td valign="top" width="20%">
139
      <!--
140
      <p>
141
        <a href="<%=SERVLET_URL%>?action=query&operator=INTERSECT&anyfield=%25&organizationName=Organization%20of%20Biological%20Field%20Stations&qformat=obfs&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>
142
      -->
143
<p class="searchbox">
144
Search for Data<br />
145
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
146
  <input value="INTERSECT" name="operator" type="hidden">
147
  <input size="14" name="searchstring" type="text" value="">
148
  <input name="query" type="hidden"/>
149
  <input name="qformat" value="obfs" type="hidden">
150
  <input name="enableediting" value="true" type="hidden">
151
  <input type="hidden" name="action" value="squery">
152
  <!-- <input value="Start Search" type="submit"> -->
153
</form>
154
</p>
155
    </td>
156
  </tr>
157
</table>
158
</body>
159
</html>