1
|
<%@ page language="java" %>
|
2
|
<%@ page import="java.util.Set,java.util.Map,java.util.Vector,edu.ucsb.nceas.utilities.PropertiesMetaData" %>
|
3
|
<%@ page import="edu.ucsb.nceas.utilities.MetaDataGroup,edu.ucsb.nceas.utilities.MetaDataProperty" %>
|
4
|
<%
|
5
|
/**
|
6
|
* '$RCSfile$'
|
7
|
* Copyright: 2008 Regents of the University of California and the
|
8
|
* National Center for Ecological Analysis and Synthesis
|
9
|
* For Details: http://www.nceas.ucsb.edu/
|
10
|
*
|
11
|
* '$Author: jones $'
|
12
|
* '$Date: 2012-02-06 13:06:34 -0800 (Mon, 06 Feb 2012) $'
|
13
|
* '$Revision: 6985 $'
|
14
|
*
|
15
|
* This program is free software; you can redistribute it and/or modify
|
16
|
* it under the terms of the GNU General Public License as published by
|
17
|
* the Free Software Foundation; either version 2 of the License, or
|
18
|
* (at your option) any later version.
|
19
|
*
|
20
|
* This program is distributed in the hope that it will be useful,
|
21
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23
|
* GNU General Public License for more details.
|
24
|
*
|
25
|
* You should have received a copy of the GNU General Public License
|
26
|
* along with this program; if not, write to the Free Software
|
27
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28
|
*/
|
29
|
%>
|
30
|
|
31
|
<html>
|
32
|
<head>
|
33
|
|
34
|
<title>DataONE Configuration</title>
|
35
|
<link rel="stylesheet" type="text/css"
|
36
|
href="<%= request.getContextPath() %>/admin/admin.css"></link>
|
37
|
<script language="JavaScript" type="text/JavaScript" src="<%= request.getContextPath() %>/admin/admin.js"></script>
|
38
|
|
39
|
</head>
|
40
|
<body>
|
41
|
<%@ include file="./header-section.jsp"%>
|
42
|
|
43
|
<img src="<%= request.getContextPath() %>/metacat-logo.png" width="100px" align="right"/>
|
44
|
<h2>DataONE Configuration</h2>
|
45
|
|
46
|
<p>
|
47
|
Becoming a DataONE Member Node is a means of distributing data and metadata within the broader DataONE infrastructure.
|
48
|
Metadata will be synchronized in the network and additional backups of data can be housed among other Member Nodes for
|
49
|
archival safe-keeping.
|
50
|
Optionally, this Member Node can provide backup space for other Member Nodes that wish to share their data in the federation.
|
51
|
<p/>
|
52
|
<p>
|
53
|
In order to become a Member Node, the registration must be reviewed and verified.
|
54
|
A unique Member Node Id will be assigned and
|
55
|
should only be used for this node and never shared or altered.
|
56
|
<p/>
|
57
|
<p>
|
58
|
A client certificate can be requested from the DataONE Certificate Authority and will be used by this node when communicating with
|
59
|
the Coordinating Node and other participating Member Nodes.
|
60
|
This certificate should be properly protected so that nefarious entities cannot pose as this Member Node.
|
61
|
</p>
|
62
|
<br clear="right"/>
|
63
|
|
64
|
<%@ include file="page-message-section.jsp"%>
|
65
|
|
66
|
<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin"
|
67
|
onsubmit="return submitForm(this);">
|
68
|
|
69
|
<h3>Member Node Configuration</h3>
|
70
|
<hr class="config-line">
|
71
|
|
72
|
<div class="form-row">
|
73
|
<img class="question-mark" src="style/images/question-mark.gif"
|
74
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
75
|
<div class="textinput-label">
|
76
|
<label for="dataone.nodeName" title="Node Name">Node Name</label>
|
77
|
</div>
|
78
|
<input class="textinput"
|
79
|
id="dataone.nodeName"
|
80
|
name="dataone.nodeName"
|
81
|
value="<%= request.getAttribute("dataone.nodeName") %>"/>
|
82
|
</div>
|
83
|
<div class="form-row">
|
84
|
<img class="question-mark" src="style/images/question-mark.gif"
|
85
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
86
|
<div class="textinput-label">
|
87
|
<label for="dataone.nodeDescription" title="Node Description">Node Description</label>
|
88
|
</div>
|
89
|
<input class="textinput"
|
90
|
id="dataone.nodeDescription"
|
91
|
name="dataone.nodeDescription"
|
92
|
value="<%= request.getAttribute("dataone.nodeDescription") %>"/>
|
93
|
</div>
|
94
|
<!--
|
95
|
<div class="form-row">
|
96
|
<img class="question-mark" src="style/images/question-mark.gif"
|
97
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
98
|
<div class="textinput-label">
|
99
|
<label for="dataone.memberNodeId" title="Node Identifier">Node Identifier</label>
|
100
|
</div>
|
101
|
<input class="textinput"
|
102
|
id="dataone.memberNodeId"
|
103
|
name="dataone.memberNodeId"
|
104
|
value="<%= request.getAttribute("dataone.memberNodeId") %>"/>
|
105
|
</div>
|
106
|
-->
|
107
|
<div class="form-row">
|
108
|
<img class="question-mark" src="style/images/question-mark.gif"
|
109
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
110
|
<div class="textinput-label">
|
111
|
<label for="dataone.subject" title="Node Subject">Node Subject</label>
|
112
|
</div>
|
113
|
<input class="textinput"
|
114
|
id="dataone.subject"
|
115
|
name="dataone.subject"
|
116
|
value="<%= request.getAttribute("dataone.subject") %>"/>
|
117
|
</div>
|
118
|
<div class="form-row">
|
119
|
<img class="question-mark" src="style/images/question-mark.gif"
|
120
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
121
|
<div class="textinput-label">
|
122
|
<label for="dataone.contactSubject" title="Contact Subject">Contact Subject</label>
|
123
|
</div>
|
124
|
<input class="textinput"
|
125
|
id="dataone.contactSubject"
|
126
|
name="dataone.contactSubject"
|
127
|
value="<%= request.getAttribute("dataone.contactSubject") %>"/>
|
128
|
</div>
|
129
|
<div class="form-row">
|
130
|
<img class="question-mark" src="style/images/question-mark.gif"
|
131
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
132
|
<div class="textinput-label">
|
133
|
<label for="D1Client.certificate.file" title="Node Certificate Path">Node Certificate Path</label>
|
134
|
</div>
|
135
|
<input class="textinput"
|
136
|
id="D1Client.certificate.file"
|
137
|
name="D1Client.certificate.file"
|
138
|
value="<%= request.getAttribute("D1Client.certificate.file") %>"/>
|
139
|
</div>
|
140
|
<hr class="config-line">
|
141
|
<div class="form-row">
|
142
|
<img class="question-mark" src="style/images/question-mark.gif"
|
143
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
144
|
<div class="textinput-label"><label for="dataone.nodeSynchronize" title="Share metadata with DataONE">Share with DataONE</label></div>
|
145
|
|
146
|
<%
|
147
|
|
148
|
boolean synchronize = false;
|
149
|
String nodeSynchronize = (String) request.getAttribute("dataone.nodeSynchronize");
|
150
|
if (nodeSynchronize != null) {
|
151
|
synchronize = Boolean.parseBoolean(nodeSynchronize);
|
152
|
}
|
153
|
|
154
|
if (synchronize) {
|
155
|
%>
|
156
|
<input type="checkbox"
|
157
|
class="textinput"
|
158
|
id="dataone.nodeSynchronize"
|
159
|
name="dataone.nodeSynchronize"
|
160
|
value="true"
|
161
|
checked="checked"/>
|
162
|
<% } else {%>
|
163
|
<input type="checkbox"
|
164
|
class="textinput"
|
165
|
id="dataone.nodeSynchronize"
|
166
|
name="dataone.nodeSynchronize"
|
167
|
value="true"/>
|
168
|
<% } %>
|
169
|
|
170
|
</div>
|
171
|
<div class="form-row">
|
172
|
<img class="question-mark" src="style/images/question-mark.gif"
|
173
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
174
|
<div class="textinput-label"><label for="dataone.nodeReplicate" title="Accept Replicas from other Member Nodes">Accept Replicas</label></div>
|
175
|
|
176
|
<%
|
177
|
boolean replicate = false;
|
178
|
String nodeReplicate = (String) request.getAttribute("dataone.nodeReplicate");
|
179
|
if (nodeReplicate != null) {
|
180
|
replicate = Boolean.parseBoolean(nodeReplicate);
|
181
|
}
|
182
|
if (replicate) {
|
183
|
%>
|
184
|
<input type="checkbox"
|
185
|
class="textinput"
|
186
|
id="dataone.nodeReplicate"
|
187
|
name="dataone.nodeReplicate"
|
188
|
value="true"
|
189
|
checked="checked"/>
|
190
|
<% } else {%>
|
191
|
<input type="checkbox"
|
192
|
class="textinput"
|
193
|
id="dataone.nodeReplicate"
|
194
|
name="dataone.nodeReplicate"
|
195
|
value="true"/>
|
196
|
<% } %>
|
197
|
|
198
|
</div>
|
199
|
|
200
|
<h3>Synchronization Schedule</h3>
|
201
|
<hr class="config-line">
|
202
|
<div class="form-row">
|
203
|
<img class="question-mark" src="style/images/question-mark.gif"
|
204
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
205
|
<div class="textinput-label">
|
206
|
<label for="dataone.nodeSynchronization.schedule.year" title="Year">Year</label>
|
207
|
</div>
|
208
|
<input class="textinput"
|
209
|
id="dataone.nodeSynchronization.schedule.year"
|
210
|
name="dataone.nodeSynchronization.schedule.year"
|
211
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.year") %>"/>
|
212
|
</div>
|
213
|
<div class="form-row">
|
214
|
<img class="question-mark" src="style/images/question-mark.gif"
|
215
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
216
|
<div class="textinput-label">
|
217
|
<label for="dataone.nodeSynchronization.schedule.mon" title="Month">Month</label>
|
218
|
</div>
|
219
|
<input class="textinput"
|
220
|
id="dataone.nodeSynchronization.schedule.mon"
|
221
|
name="dataone.nodeSynchronization.schedule.mon"
|
222
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mon") %>"/>
|
223
|
</div>
|
224
|
<div class="form-row">
|
225
|
<img class="question-mark" src="style/images/question-mark.gif"
|
226
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
227
|
<div class="textinput-label">
|
228
|
<label for="dataone.nodeSynchronization.schedule.mday" title="Day of Month">Day of Month</label>
|
229
|
</div>
|
230
|
<input class="textinput"
|
231
|
id="dataone.nodeSynchronization.schedule.mday"
|
232
|
name="dataone.nodeSynchronization.schedule.mday"
|
233
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mday") %>"/>
|
234
|
</div>
|
235
|
<div class="form-row">
|
236
|
<img class="question-mark" src="style/images/question-mark.gif"
|
237
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
238
|
<div class="textinput-label">
|
239
|
<label for="dataone.nodeSynchronization.schedule.wday" title="Day of Week">Day of Week</label>
|
240
|
</div>
|
241
|
<input class="textinput"
|
242
|
id="dataone.nodeSynchronization.schedule.wday"
|
243
|
name="dataone.nodeSynchronization.schedule.wday"
|
244
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.wday") %>"/>
|
245
|
</div>
|
246
|
<div class="form-row">
|
247
|
<img class="question-mark" src="style/images/question-mark.gif"
|
248
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
249
|
<div class="textinput-label">
|
250
|
<label for="dataone.nodeSynchronization.schedule.hour" title="Hours">Hours</label>
|
251
|
</div>
|
252
|
<input class="textinput"
|
253
|
id="dataone.nodeSynchronization.schedule.hour"
|
254
|
name="dataone.nodeSynchronization.schedule.hour"
|
255
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.hour") %>"/>
|
256
|
</div>
|
257
|
<div class="form-row">
|
258
|
<img class="question-mark" src="style/images/question-mark.gif"
|
259
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
260
|
<div class="textinput-label">
|
261
|
<label for="dataone.nodeSynchronization.schedule.min" title="Minutes">Minutes</label>
|
262
|
</div>
|
263
|
<input class="textinput"
|
264
|
id="dataone.nodeSynchronization.schedule.min"
|
265
|
name="dataone.nodeSynchronization.schedule.min"
|
266
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.min") %>"/>
|
267
|
</div>
|
268
|
<div class="form-row">
|
269
|
<img class="question-mark" src="style/images/question-mark.gif"
|
270
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
271
|
<div class="textinput-label">
|
272
|
<label for="dataone.nodeSynchronization.schedule.sec" title="Seconds">Seconds</label>
|
273
|
</div>
|
274
|
<input class="textinput"
|
275
|
id="dataone.nodeSynchronization.schedule.sec"
|
276
|
name="dataone.nodeSynchronization.schedule.sec"
|
277
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.sec") %>"/>
|
278
|
</div>
|
279
|
|
280
|
<input type="hidden" name="configureType" value="dataone"/>
|
281
|
<input type="hidden" name="processForm" value="true"/>
|
282
|
<input class=button type="submit" value="Register"/>
|
283
|
<input class=button type="button" value="Skip" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')">
|
284
|
<input class=button type="button" value="Cancel" onClick="forward('./admin')">
|
285
|
|
286
|
</form>
|
287
|
|
288
|
<%@ include file="./footer-section.jsp"%>
|
289
|
|
290
|
</body>
|
291
|
</html>
|