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: leinfelder $'
|
12
|
* '$Date: 2012-01-06 09:42:08 -0800 (Fri, 06 Jan 2012) $'
|
13
|
* '$Revision: 6861 $'
|
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
|
<div class="form-row">
|
95
|
<img class="question-mark" src="style/images/question-mark.gif"
|
96
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
97
|
<div class="textinput-label">
|
98
|
<label for="dataone.memberNodeId" title="Node Identifier">Node Identifier</label>
|
99
|
</div>
|
100
|
<input class="textinput"
|
101
|
id="dataone.memberNodeId"
|
102
|
name="dataone.memberNodeId"
|
103
|
value="<%= request.getAttribute("dataone.memberNodeId") %>"/>
|
104
|
</div>
|
105
|
<div class="form-row">
|
106
|
<img class="question-mark" src="style/images/question-mark.gif"
|
107
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
108
|
<div class="textinput-label">
|
109
|
<label for="dataone.subject" title="Node Subject">Node Subject</label>
|
110
|
</div>
|
111
|
<input class="textinput"
|
112
|
id="dataone.subject"
|
113
|
name="dataone.subject"
|
114
|
value="<%= request.getAttribute("dataone.subject") %>"/>
|
115
|
</div>
|
116
|
<div class="form-row">
|
117
|
<img class="question-mark" src="style/images/question-mark.gif"
|
118
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
119
|
<div class="textinput-label">
|
120
|
<label for="D1Client.certificate.file" title="Node Certificate Path">Node Certificate Path</label>
|
121
|
</div>
|
122
|
<input class="textinput"
|
123
|
id="D1Client.certificate.file"
|
124
|
name="D1Client.certificate.file"
|
125
|
value="<%= request.getAttribute("D1Client.certificate.file") %>"/>
|
126
|
</div>
|
127
|
<hr class="config-line">
|
128
|
<div class="form-row">
|
129
|
<img class="question-mark" src="style/images/question-mark.gif"
|
130
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
131
|
<div class="textinput-label"><label for="dataone.nodeSynchronize" title="Share metadata with DataONE">Share with DataONE</label></div>
|
132
|
|
133
|
<%
|
134
|
boolean synchronize = (Boolean) request.getAttribute("dataone.nodeSynchronize");
|
135
|
if (synchronize) {
|
136
|
%>
|
137
|
<input type="checkbox"
|
138
|
class="textinput"
|
139
|
id="dataone.nodeSynchronize"
|
140
|
name="dataone.nodeSynchronize"
|
141
|
value="true"
|
142
|
checked="checked"/>
|
143
|
<% } else {%>
|
144
|
<input type="checkbox"
|
145
|
class="textinput"
|
146
|
id="dataone.nodeSynchronize"
|
147
|
name="dataone.nodeSynchronize"
|
148
|
value="true"/>
|
149
|
<% } %>
|
150
|
|
151
|
</div>
|
152
|
<div class="form-row">
|
153
|
<img class="question-mark" src="style/images/question-mark.gif"
|
154
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
155
|
<div class="textinput-label"><label for="dataone.nodeReplicate" title="Accept Replicas from other Member Nodes">Accept Replicas</label></div>
|
156
|
|
157
|
<%
|
158
|
boolean replicate = (Boolean) request.getAttribute("dataone.nodeReplicate");
|
159
|
if (replicate) {
|
160
|
%>
|
161
|
<input type="checkbox"
|
162
|
class="textinput"
|
163
|
id="dataone.nodeReplicate"
|
164
|
name="dataone.nodeReplicate"
|
165
|
value="true"
|
166
|
checked="checked"/>
|
167
|
<% } else {%>
|
168
|
<input type="checkbox"
|
169
|
class="textinput"
|
170
|
id="dataone.nodeReplicate"
|
171
|
name="dataone.nodeReplicate"
|
172
|
value="true"/>
|
173
|
<% } %>
|
174
|
|
175
|
</div>
|
176
|
|
177
|
<h3>Synchronization Schedule</h3>
|
178
|
<hr class="config-line">
|
179
|
<div class="form-row">
|
180
|
<img class="question-mark" src="style/images/question-mark.gif"
|
181
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
182
|
<div class="textinput-label">
|
183
|
<label for="dataone.nodeSynchronization.schedule.year" title="Year">Year</label>
|
184
|
</div>
|
185
|
<input class="textinput"
|
186
|
id="dataone.nodeSynchronization.schedule.year"
|
187
|
name="dataone.nodeSynchronization.schedule.year"
|
188
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.year") %>"/>
|
189
|
</div>
|
190
|
<div class="form-row">
|
191
|
<img class="question-mark" src="style/images/question-mark.gif"
|
192
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
193
|
<div class="textinput-label">
|
194
|
<label for="dataone.nodeSynchronization.schedule.mon" title="Month">Month</label>
|
195
|
</div>
|
196
|
<input class="textinput"
|
197
|
id="dataone.nodeSynchronization.schedule.mon"
|
198
|
name="dataone.nodeSynchronization.schedule.mon"
|
199
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mon") %>"/>
|
200
|
</div>
|
201
|
<div class="form-row">
|
202
|
<img class="question-mark" src="style/images/question-mark.gif"
|
203
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
204
|
<div class="textinput-label">
|
205
|
<label for="dataone.nodeSynchronization.schedule.mday" title="Day of Month">Day of Month</label>
|
206
|
</div>
|
207
|
<input class="textinput"
|
208
|
id="dataone.nodeSynchronization.schedule.mday"
|
209
|
name="dataone.nodeSynchronization.schedule.mday"
|
210
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mday") %>"/>
|
211
|
</div>
|
212
|
<div class="form-row">
|
213
|
<img class="question-mark" src="style/images/question-mark.gif"
|
214
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
215
|
<div class="textinput-label">
|
216
|
<label for="dataone.nodeSynchronization.schedule.wday" title="Day of Week">Day of Week</label>
|
217
|
</div>
|
218
|
<input class="textinput"
|
219
|
id="dataone.nodeSynchronization.schedule.wday"
|
220
|
name="dataone.nodeSynchronization.schedule.wday"
|
221
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.wday") %>"/>
|
222
|
</div>
|
223
|
<div class="form-row">
|
224
|
<img class="question-mark" src="style/images/question-mark.gif"
|
225
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
226
|
<div class="textinput-label">
|
227
|
<label for="dataone.nodeSynchronization.schedule.hour" title="Hours">Hours</label>
|
228
|
</div>
|
229
|
<input class="textinput"
|
230
|
id="dataone.nodeSynchronization.schedule.hour"
|
231
|
name="dataone.nodeSynchronization.schedule.hour"
|
232
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.hour") %>"/>
|
233
|
</div>
|
234
|
<div class="form-row">
|
235
|
<img class="question-mark" src="style/images/question-mark.gif"
|
236
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
237
|
<div class="textinput-label">
|
238
|
<label for="dataone.nodeSynchronization.schedule.min" title="Minutes">Minutes</label>
|
239
|
</div>
|
240
|
<input class="textinput"
|
241
|
id="dataone.nodeSynchronization.schedule.min"
|
242
|
name="dataone.nodeSynchronization.schedule.min"
|
243
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.min") %>"/>
|
244
|
</div>
|
245
|
<div class="form-row">
|
246
|
<img class="question-mark" src="style/images/question-mark.gif"
|
247
|
onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
|
248
|
<div class="textinput-label">
|
249
|
<label for="dataone.nodeSynchronization.schedule.sec" title="Seconds">Seconds</label>
|
250
|
</div>
|
251
|
<input class="textinput"
|
252
|
id="dataone.nodeSynchronization.schedule.sec"
|
253
|
name="dataone.nodeSynchronization.schedule.sec"
|
254
|
value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.sec") %>"/>
|
255
|
</div>
|
256
|
|
257
|
<input type="hidden" name="configureType" value="dataone"/>
|
258
|
<input type="hidden" name="processForm" value="true"/>
|
259
|
<input class=button type="submit" value="Register"/>
|
260
|
<input class=button type="button" value="Skip" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')">
|
261
|
<input class=button type="button" value="Cancel" onClick="forward('./admin')">
|
262
|
|
263
|
</form>
|
264
|
|
265
|
<%@ include file="./footer-section.jsp"%>
|
266
|
|
267
|
</body>
|
268
|
</html>
|