1 |
3404
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
3 |
3405
|
leinfelder
|
|
4 |
|
|
<!-- to change the content type or response encoding change the following line -->
|
5 |
|
|
<jsp:directive.page contentType="text/html;charset=UTF-8" />
|
6 |
|
|
<jsp:directive.page
|
7 |
|
|
import="edu.ucsb.nceas.metacat.clientview.ClientView" />
|
8 |
|
|
<jsp:directive.page
|
9 |
|
|
import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper" />
|
10 |
|
|
<jsp:directive.page
|
11 |
|
|
import="edu.ucsb.nceas.metacat.clientview.ClientHtmlHelper" />
|
12 |
|
|
|
13 |
|
|
<jsp:declaration>
|
14 |
3414
|
leinfelder
|
private ClientViewHelper clientViewHelper = null;
|
15 |
3404
|
leinfelder
|
</jsp:declaration>
|
16 |
3405
|
leinfelder
|
|
17 |
3414
|
leinfelder
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
18 |
|
|
<head>
|
19 |
3405
|
leinfelder
|
|
20 |
|
|
<script type="text/javascript">
|
21 |
3404
|
leinfelder
|
|
22 |
|
|
function allowSubmit(formObj) {
|
23 |
|
|
var result = true;
|
24 |
|
|
var action = "";
|
25 |
|
|
|
26 |
|
|
action = trim(formObj.elements["action"].value);
|
27 |
|
|
if (action == "Login") {
|
28 |
|
|
if (isEmpty(formObj.elements["username"])) {
|
29 |
|
|
result = false;
|
30 |
|
|
alert("User name is required");
|
31 |
|
|
} else if (isEmpty(formObj.elements["organization"])) {
|
32 |
|
|
result = false;
|
33 |
|
|
alert("Organization is required");
|
34 |
|
|
} else if (isEmpty(formObj.elements["password"])) {
|
35 |
|
|
result = false;
|
36 |
|
|
alert("Password is required");
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
return(result);
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
function isEmpty(aTextField) {
|
44 |
|
|
var value = trim(aTextField.value);
|
45 |
|
|
var result = ((value.length == 0) || (value == null));
|
46 |
|
|
return(result);
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
function trim(stringToTrim) {
|
50 |
|
|
return(stringToTrim.replace(/^\s+|\s+$/g,""));
|
51 |
|
|
}
|
52 |
3405
|
leinfelder
|
</script>
|
53 |
|
|
|
54 |
3414
|
leinfelder
|
<title>SANParks - South African National Park Data Repository</title>
|
55 |
3405
|
leinfelder
|
<link href="sanparks.css" rel="stylesheet" type="text/css" />
|
56 |
|
|
|
57 |
3414
|
leinfelder
|
</head>
|
58 |
|
|
|
59 |
|
|
<body style="background: #FFFFFF;">
|
60 |
|
|
<div class="templatecontentareaclass">
|
61 |
|
|
<jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView" />
|
62 |
|
|
<jsp:setProperty name="clientViewBean" property="*" />
|
63 |
|
|
<jsp:scriptlet>
|
64 |
|
|
clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
|
65 |
|
|
clientViewHelper.clientRequest(request, response);
|
66 |
|
|
</jsp:scriptlet>
|
67 |
3405
|
leinfelder
|
|
68 |
3414
|
leinfelder
|
<table>
|
69 |
3415
|
leinfelder
|
<tr>
|
70 |
|
|
<td colspan="3">
|
71 |
|
|
<p class="regtext">
|
72 |
|
|
Welcome to the SANParks Data Repository.
|
73 |
|
|
This is the primary source for comprehensive information about scientific
|
74 |
|
|
and research data sets collected throughout the South African National Park System.
|
75 |
|
|
</p>
|
76 |
|
|
</td>
|
77 |
|
|
</tr>
|
78 |
3414
|
leinfelder
|
<tr valign="top">
|
79 |
|
|
<td>
|
80 |
|
|
|
81 |
|
|
<h2>Search for SANParks Data</h2>
|
82 |
|
|
<form name="searchform" method="post" action="../../../metacat" target="_top">
|
83 |
|
|
<jsp:include page="SimpleSearchMetacatPostFields.html" />
|
84 |
|
|
<jsp:element name="input">
|
85 |
|
|
<jsp:attribute name="name">sessionid</jsp:attribute>
|
86 |
|
|
<jsp:attribute name="type">hidden</jsp:attribute>
|
87 |
|
|
<jsp:attribute name="value">
|
88 |
|
|
<jsp:getProperty name="clientViewBean" property="sessionid" />
|
89 |
|
|
</jsp:attribute>
|
90 |
|
|
</jsp:element>
|
91 |
|
|
<p class="regtext">
|
92 |
3415
|
leinfelder
|
The repository search system is used to locate data sets of interest by
|
93 |
|
|
searching through existing registered data sets.
|
94 |
|
|
Presently the search covers all fields, including author, title, abstract,
|
95 |
|
|
keywords, and other documentation for each data set.
|
96 |
|
|
<br />
|
97 |
|
|
Use a '%' symbol as a wildcard in searches (e.g., '%herbivore%'
|
98 |
|
|
would locate any phrase with the word herbivore embedded within it).
|
99 |
3414
|
leinfelder
|
</p>
|
100 |
|
|
<input name="anyfield" value="" type="text" size="14" />
|
101 |
3415
|
leinfelder
|
<input name="action" value="Search" type="submit" />
|
102 |
3414
|
leinfelder
|
|
103 |
|
|
</form>
|
104 |
|
|
<p class="regtext">
|
105 |
|
|
-Or-
|
106 |
3405
|
leinfelder
|
</p>
|
107 |
|
|
<form name="browseform" method="post" action="../../../metacat"
|
108 |
3414
|
leinfelder
|
target="_top">
|
109 |
|
|
<jsp:include page="SimpleSearchMetacatPostFields.html" />
|
110 |
|
|
<input name="anyfield" type="hidden" value="%" />
|
111 |
|
|
<jsp:element name="input">
|
112 |
|
|
<jsp:attribute name="name">sessionid</jsp:attribute>
|
113 |
|
|
<jsp:attribute name="type">hidden</jsp:attribute>
|
114 |
|
|
<jsp:attribute name="value">
|
115 |
|
|
<jsp:getProperty name="clientViewBean" property="sessionid" />
|
116 |
|
|
</jsp:attribute>
|
117 |
|
|
</jsp:element>
|
118 |
|
|
<p class="regtext">
|
119 |
|
|
Browse all existing data sets by title. This operation can be slow.
|
120 |
|
|
</p>
|
121 |
|
|
<input name="action" value="Browse All" type="submit" />
|
122 |
3405
|
leinfelder
|
</form>
|
123 |
|
|
|
124 |
3414
|
leinfelder
|
</td>
|
125 |
|
|
<td>
|
126 |
|
|
|
127 |
|
|
<!-- Login section -->
|
128 |
3405
|
leinfelder
|
<jsp:scriptlet>
|
129 |
3414
|
leinfelder
|
if (!clientViewHelper.isLoggedIn()) {
|
130 |
|
|
</jsp:scriptlet>
|
131 |
|
|
|
132 |
|
|
<h3>
|
133 |
|
|
Login
|
134 |
|
|
<!-- TODO: Config param follows -->
|
135 |
|
|
<a href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi" target="_parent">
|
136 |
|
|
<span class="regtext"> (request an account...)</span>
|
137 |
|
|
</a>
|
138 |
|
|
</h3>
|
139 |
3405
|
leinfelder
|
<form name="loginForm" method="post" action="SaeonLogin.jspx"
|
140 |
3414
|
leinfelder
|
onsubmit="return allowSubmit(this)">
|
141 |
|
|
<input name="qformat" type="hidden" value="sanparks" />
|
142 |
3405
|
leinfelder
|
<table>
|
143 |
3414
|
leinfelder
|
<tr valign="top">
|
144 |
|
|
<td>
|
145 |
|
|
<span class="required">User name</span>
|
146 |
3405
|
leinfelder
|
</td>
|
147 |
3414
|
leinfelder
|
<td>
|
148 |
|
|
<input name="username" type="text" value=""
|
149 |
|
|
style="width: 140" />
|
150 |
|
|
</td>
|
151 |
3405
|
leinfelder
|
</tr>
|
152 |
|
|
<tr>
|
153 |
|
|
<td><span class="required">Organization</span></td>
|
154 |
|
|
<td><select name="organization" style="width: 140">
|
155 |
|
|
<option value="SANParks" selected="">SANParks</option>
|
156 |
|
|
<option value="SAEON">SAEON</option>
|
157 |
|
|
<option value="NCEAS">NCEAS</option>
|
158 |
|
|
<option value="unaffiliated">unaffiliated</option>
|
159 |
|
|
</select></td>
|
160 |
|
|
</tr>
|
161 |
|
|
<tr>
|
162 |
|
|
<td><span class="required">Password</span></td>
|
163 |
|
|
<td><input name="password" value="" type="password"
|
164 |
|
|
style="width: 140" maxlength="50" /></td>
|
165 |
|
|
</tr>
|
166 |
|
|
<tr>
|
167 |
3414
|
leinfelder
|
<td colspan="2" align="center">
|
168 |
|
|
<input name="action"
|
169 |
|
|
value="Login" type="submit" class="button_login" />
|
170 |
|
|
</td>
|
171 |
3405
|
leinfelder
|
</tr>
|
172 |
|
|
</table>
|
173 |
|
|
</form>
|
174 |
3414
|
leinfelder
|
|
175 |
3405
|
leinfelder
|
<jsp:scriptlet>
|
176 |
3414
|
leinfelder
|
} else {
|
177 |
|
|
</jsp:scriptlet>
|
178 |
3416
|
leinfelder
|
<h3>
|
179 |
|
|
Welcome,
|
180 |
|
|
<jsp:expression>clientViewBean.getUsername()</jsp:expression>
|
181 |
|
|
</h3>
|
182 |
3405
|
leinfelder
|
<form name="logoutForm" method="post" action="SaeonLogin.jspx">
|
183 |
|
|
<input name="qformat" value="sanparks" type="hidden" />
|
184 |
|
|
<table>
|
185 |
3416
|
leinfelder
|
<tr valign="top">
|
186 |
3405
|
leinfelder
|
<td>
|
187 |
3416
|
leinfelder
|
<p class="regtext">
|
188 |
|
|
You are currently logged in.
|
189 |
|
|
</p>
|
190 |
3405
|
leinfelder
|
</td>
|
191 |
3416
|
leinfelder
|
<td align="right">
|
192 |
|
|
<input name="action" type="submit" value="Logout" class="button_login" />
|
193 |
|
|
</td>
|
194 |
|
|
</tr>
|
195 |
|
|
<tr valign="top">
|
196 |
|
|
<td colspan="2">
|
197 |
|
|
<p class="regtext">
|
198 |
|
|
(<jsp:expression>clientViewBean.getMessage(ClientView.LOGIN_MESSAGE)</jsp:expression>)
|
199 |
|
|
</p>
|
200 |
|
|
</td>
|
201 |
|
|
</tr>
|
202 |
|
|
<tr>
|
203 |
|
|
<td colspan="2"
|
204 |
|
|
class="regtext"
|
205 |
|
|
align="center"
|
206 |
|
|
valign="top">
|
207 |
|
|
|
208 |
3414
|
leinfelder
|
<!-- TODO: Config param follows -->
|
209 |
|
|
<a
|
210 |
|
|
href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi?stage=resetpass"
|
211 |
|
|
target="_parent">reset your password</a>
|
212 |
3416
|
leinfelder
|
|
|
213 |
|
|
<!-- TODO: Config param follows -->
|
214 |
|
|
<a
|
215 |
3414
|
leinfelder
|
href="HOSTNAME_HERE/cgiScripts/cgi-bin/ldapweb.cgi?stage=changepass"
|
216 |
|
|
target="_parent">change your password</a>
|
217 |
3405
|
leinfelder
|
</td>
|
218 |
|
|
</tr>
|
219 |
|
|
</table>
|
220 |
|
|
</form>
|
221 |
|
|
<jsp:scriptlet>
|
222 |
3414
|
leinfelder
|
}
|
223 |
|
|
</jsp:scriptlet>
|
224 |
|
|
|
225 |
|
|
</td>
|
226 |
|
|
|
227 |
|
|
<!-- so the map frame doesn't overlap content -->
|
228 |
|
|
<td width="50px"></td>
|
229 |
|
|
|
230 |
|
|
</tr>
|
231 |
|
|
|
232 |
|
|
<tr>
|
233 |
|
|
<td colspan="2">
|
234 |
|
|
|
235 |
|
|
<!-- File Upload Form -->
|
236 |
|
|
<br />
|
237 |
|
|
<h3>Data Package Upload</h3>
|
238 |
|
|
|
239 |
3405
|
leinfelder
|
<jsp:scriptlet>
|
240 |
3414
|
leinfelder
|
if (clientViewHelper.isLoggedIn()) {
|
241 |
|
|
</jsp:scriptlet>
|
242 |
3405
|
leinfelder
|
<form action="SaeonUpload.jspx">
|
243 |
3414
|
leinfelder
|
<input name="action" type="submit" value="Go" class="button_login" />
|
244 |
3405
|
leinfelder
|
</form>
|
245 |
|
|
<jsp:scriptlet>
|
246 |
3414
|
leinfelder
|
} else {
|
247 |
|
|
</jsp:scriptlet>
|
248 |
|
|
|
249 |
|
|
<p class="regtext">
|
250 |
|
|
You must be logged into your user account before uploading a data set.
|
251 |
|
|
</p>
|
252 |
3405
|
leinfelder
|
<jsp:scriptlet>
|
253 |
3414
|
leinfelder
|
}
|
254 |
|
|
</jsp:scriptlet>
|
255 |
|
|
|
256 |
|
|
</td>
|
257 |
|
|
|
258 |
|
|
<!-- so the map frame doesn't overlap content -->
|
259 |
|
|
<td width="50px"></td>
|
260 |
|
|
|
261 |
|
|
</tr>
|
262 |
|
|
|
263 |
|
|
<!--
|
264 |
|
|
<tr>
|
265 |
|
|
<td colspan="3">
|
266 |
|
|
<iframe
|
267 |
|
|
width="100%"
|
268 |
|
|
height="400px"
|
269 |
|
|
frameborder="0"
|
270 |
|
|
scrolling="no"
|
271 |
|
|
src="spatial/pma.html" />
|
272 |
|
|
</td>
|
273 |
|
|
</tr>
|
274 |
|
|
-->
|
275 |
|
|
</table>
|
276 |
|
|
|
277 |
3405
|
leinfelder
|
</div>
|
278 |
3414
|
leinfelder
|
</body>
|
279 |
|
|
</html>
|
280 |
3404
|
leinfelder
|
</jsp:root>
|