1
|
<%@ page language="java" %>
|
2
|
<%
|
3
|
/**
|
4
|
* '$RCSfile$'
|
5
|
* Copyright: 2003 Regents of the University of California and the
|
6
|
* National Center for Ecological Analysis and Synthesis
|
7
|
* '$Author: leinfelder $'
|
8
|
* '$Date: 2011-01-18 17:04:51 -0800 (Tue, 18 Jan 2011) $'
|
9
|
* '$Revision: 5816 $'
|
10
|
*
|
11
|
* This program is free software; you can redistribute it and/or modify
|
12
|
* it under the terms of the GNU General Public License as published by
|
13
|
* the Free Software Foundation; either version 2 of the License, or
|
14
|
* (at your option) any later version.
|
15
|
*
|
16
|
* This program is distributed in the hope that it will be useful,
|
17
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
* GNU General Public License for more details.
|
20
|
*
|
21
|
* You should have received a copy of the GNU General Public License
|
22
|
* along with this program; if not, write to the Free Software
|
23
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
24
|
*/
|
25
|
%>
|
26
|
|
27
|
<%@ include file="../../common/common-settings.jsp"%>
|
28
|
<%@ include file="../../common/configure-check.jsp"%>
|
29
|
|
30
|
<!--____________________________max_width____________________________________-->
|
31
|
|
32
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
33
|
<html>
|
34
|
<head>
|
35
|
<title>UCNRS Data Registry</title>
|
36
|
<link rel="stylesheet" type="text/css"
|
37
|
href="<%=STYLE_SKINS_URL%>/nrs/nrs.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.1.1</returndoctype>"
|
52
|
+"<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>"
|
53
|
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
|
54
|
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
|
55
|
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
|
56
|
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
|
57
|
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
|
58
|
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
|
59
|
+"<returnfield>originator/individualName/surName</returnfield>"
|
60
|
+"<returnfield>originator/individualName/givenName</returnfield>"
|
61
|
+"<returnfield>creator/individualName/surName</returnfield>"
|
62
|
+"<returnfield>creator/individualName/givenName</returnfield>"
|
63
|
+"<returnfield>originator/organizationName</returnfield>"
|
64
|
+"<returnfield>creator/organizationName</returnfield>"
|
65
|
+"<returnfield>dataset/title</returnfield>"
|
66
|
+"<returnfield>dataset/title/value</returnfield>"
|
67
|
+"<returnfield>keyword</returnfield>"
|
68
|
+"<returnfield>keyword/value</returnfield>"
|
69
|
+"<querygroup operator=\"INTERSECT\">"
|
70
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
71
|
+"<value>University of California Natural Reserve System</value>"
|
72
|
+"<pathexpr>organizationName</pathexpr>"
|
73
|
+"</queryterm>"
|
74
|
+"<querygroup operator=\"UNION\">"
|
75
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
76
|
+"<value>" + searchString + "</value>"
|
77
|
+"<pathexpr>surName</pathexpr>"
|
78
|
+"</queryterm>"
|
79
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
80
|
+"<value>" + searchString + "</value>"
|
81
|
+"<pathexpr>givenName</pathexpr>"
|
82
|
+"</queryterm>"
|
83
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
84
|
+"<value>" + searchString + "</value>"
|
85
|
+"<pathexpr>keyword</pathexpr>"
|
86
|
+"</queryterm>"
|
87
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
88
|
+"<value>" + searchString + "</value>"
|
89
|
+"<pathexpr>keyword/value</pathexpr>"
|
90
|
+"</queryterm>"
|
91
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
92
|
+"<value>" + searchString + "</value>"
|
93
|
+"<pathexpr>para</pathexpr>"
|
94
|
+"</queryterm>"
|
95
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
96
|
+"<value>" + searchString + "</value>"
|
97
|
+"<pathexpr>geographicDescription</pathexpr>"
|
98
|
+"</queryterm>"
|
99
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
100
|
+"<value>" + searchString + "</value>"
|
101
|
+"<pathexpr>literalLayout</pathexpr>"
|
102
|
+"</queryterm>"
|
103
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
104
|
+"<value>" + searchString + "</value>"
|
105
|
+"<pathexpr>title</pathexpr>"
|
106
|
+"</queryterm>"
|
107
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
108
|
+"<value>" + searchString + "</value>"
|
109
|
+"<pathexpr>title/value</pathexpr>"
|
110
|
+"</queryterm>"
|
111
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
112
|
+"<value>" + searchString + "</value>"
|
113
|
+"<pathexpr>@packageId</pathexpr>"
|
114
|
+"</queryterm>"
|
115
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
116
|
+"<value>" + searchString + "</value>"
|
117
|
+"<pathexpr>abstract/para</pathexpr>"
|
118
|
+"</queryterm>"
|
119
|
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
|
120
|
+"<value>" + searchString + "</value>"
|
121
|
+"<pathexpr>abstract/para/value</pathexpr>"
|
122
|
+"</queryterm>"
|
123
|
+"</querygroup>"
|
124
|
+"</querygroup>"
|
125
|
+"</pathquery>";
|
126
|
return true;
|
127
|
}
|
128
|
</script>
|
129
|
</head>
|
130
|
|
131
|
<body>
|
132
|
<table width="760" class="headertopmargin" border="0" cellspacing="0" cellpadding="0">
|
133
|
<tr>
|
134
|
<td valign="middle" colspan="4" class="title">UC Natural Reserve System
|
135
|
Data Registry</td>
|
136
|
<td rowspan="3" width="20%" valign="top">
|
137
|
<div align="right"><img src="<%=STYLE_SKINS_URL%>/nrs/nrs-logo.gif"></div>
|
138
|
</td>
|
139
|
</tr>
|
140
|
<tr>
|
141
|
<td class="spacerrow" valign="top" colspan="4"> </td>
|
142
|
</tr>
|
143
|
<tr>
|
144
|
<td valign="top" width="20%">
|
145
|
<p><a href="http://www.ucnrs.org" target="_top"> NRS Home</a></p>
|
146
|
</td>
|
147
|
<td valign="top" width="20%">
|
148
|
<p><a href="<%=STYLE_SKINS_URL%>/nrs/index.jsp" target="_top">Registry Home</a></p>
|
149
|
</td>
|
150
|
<td valign="top" width="20%">
|
151
|
<p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=nrs"
|
152
|
target="_top">Register a<br>
|
153
|
New Data Set</a></p>
|
154
|
</td>
|
155
|
<td valign="top" width="20%">
|
156
|
<p class="searchbox">
|
157
|
Search for Data<br />
|
158
|
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
|
159
|
<input value="INTERSECT" name="operator" type="hidden">
|
160
|
<input size="14" name="searchstring" type="text" value="">
|
161
|
<input name="query" type="hidden"/>
|
162
|
<input name="qformat" value="nrs" type="hidden">
|
163
|
<input name="enableediting" value="true" type="hidden">
|
164
|
<input type="hidden" name="action" value="squery">
|
165
|
<!-- <input value="Start Search" type="submit"> -->
|
166
|
</form>
|
167
|
</p>
|
168
|
</td>
|
169
|
</tr>
|
170
|
</table>
|
171
|
</body>
|
172
|
</html>
|