Project

General

Profile

1 6635 leinfelder
<%@ 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$'
12
 *     '$Date$'
13
 * '$Revision$'
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 6861 leinfelder
	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 6635 leinfelder
</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 6861 leinfelder
		<div class="textinput-label"><label for="dataone.nodeSynchronize" title="Share metadata with DataONE">Share with DataONE</label></div>
132 6635 leinfelder
133
		<%
134 6864 leinfelder
135
		boolean synchronize = false;
136
		String nodeSynchronize = (String) request.getAttribute("dataone.nodeSynchronize");
137
		if (nodeSynchronize != null) {
138
			synchronize = Boolean.parseBoolean(nodeSynchronize);
139
		}
140
141 6635 leinfelder
		if (synchronize) {
142
		%>
143
		<input type="checkbox"
144
				class="textinput"
145
				id="dataone.nodeSynchronize"
146
				name="dataone.nodeSynchronize"
147
				value="true"
148
				checked="checked"/>
149
		<% } else {%>
150
		<input type="checkbox"
151
				class="textinput"
152
				id="dataone.nodeSynchronize"
153
				name="dataone.nodeSynchronize"
154
				value="true"/>
155
		<% } %>
156
157
	</div>
158
	<div class="form-row">
159
		<img class="question-mark" src="style/images/question-mark.gif"
160
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
161 6861 leinfelder
		<div class="textinput-label"><label for="dataone.nodeReplicate" title="Accept Replicas from other Member Nodes">Accept Replicas</label></div>
162 6635 leinfelder
163
		<%
164 6864 leinfelder
		boolean replicate = false;
165
		String nodeReplicate = (String) request.getAttribute("dataone.nodeReplicate");
166
		if (nodeReplicate != null) {
167
			replicate = Boolean.parseBoolean(nodeReplicate);
168
		}
169 6635 leinfelder
		if (replicate) {
170
		%>
171
		<input type="checkbox"
172
				class="textinput"
173
				id="dataone.nodeReplicate"
174
				name="dataone.nodeReplicate"
175
				value="true"
176
				checked="checked"/>
177
		<% } else {%>
178
		<input type="checkbox"
179
				class="textinput"
180
				id="dataone.nodeReplicate"
181
				name="dataone.nodeReplicate"
182
				value="true"/>
183
		<% } %>
184
185
	</div>
186
187 6690 leinfelder
	<h3>Synchronization Schedule</h3>
188
	<hr class="config-line">
189
	<div class="form-row">
190
		<img class="question-mark" src="style/images/question-mark.gif"
191
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
192
		<div class="textinput-label">
193
			<label for="dataone.nodeSynchronization.schedule.year" title="Year">Year</label>
194
		</div>
195
		<input class="textinput"
196
			id="dataone.nodeSynchronization.schedule.year"
197
			name="dataone.nodeSynchronization.schedule.year"
198
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.year") %>"/>
199
	</div>
200
	<div class="form-row">
201
		<img class="question-mark" src="style/images/question-mark.gif"
202
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
203
		<div class="textinput-label">
204
			<label for="dataone.nodeSynchronization.schedule.mon" title="Month">Month</label>
205
		</div>
206
		<input class="textinput"
207
			id="dataone.nodeSynchronization.schedule.mon"
208
			name="dataone.nodeSynchronization.schedule.mon"
209
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mon") %>"/>
210
	</div>
211
	<div class="form-row">
212
		<img class="question-mark" src="style/images/question-mark.gif"
213
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
214
		<div class="textinput-label">
215
			<label for="dataone.nodeSynchronization.schedule.mday" title="Day of Month">Day of Month</label>
216
		</div>
217
		<input class="textinput"
218
			id="dataone.nodeSynchronization.schedule.mday"
219
			name="dataone.nodeSynchronization.schedule.mday"
220
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mday") %>"/>
221
	</div>
222
	<div class="form-row">
223
		<img class="question-mark" src="style/images/question-mark.gif"
224
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
225
		<div class="textinput-label">
226
			<label for="dataone.nodeSynchronization.schedule.wday" title="Day of Week">Day of Week</label>
227
		</div>
228
		<input class="textinput"
229
			id="dataone.nodeSynchronization.schedule.wday"
230
			name="dataone.nodeSynchronization.schedule.wday"
231
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.wday") %>"/>
232
	</div>
233
	<div class="form-row">
234
		<img class="question-mark" src="style/images/question-mark.gif"
235
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
236
		<div class="textinput-label">
237
			<label for="dataone.nodeSynchronization.schedule.hour" title="Hours">Hours</label>
238
		</div>
239
		<input class="textinput"
240
			id="dataone.nodeSynchronization.schedule.hour"
241
			name="dataone.nodeSynchronization.schedule.hour"
242
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.hour") %>"/>
243
	</div>
244
	<div class="form-row">
245
		<img class="question-mark" src="style/images/question-mark.gif"
246
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
247
		<div class="textinput-label">
248
			<label for="dataone.nodeSynchronization.schedule.min" title="Minutes">Minutes</label>
249
		</div>
250
		<input class="textinput"
251
			id="dataone.nodeSynchronization.schedule.min"
252
			name="dataone.nodeSynchronization.schedule.min"
253
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.min") %>"/>
254
	</div>
255
	<div class="form-row">
256
		<img class="question-mark" src="style/images/question-mark.gif"
257
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
258
		<div class="textinput-label">
259
			<label for="dataone.nodeSynchronization.schedule.sec" title="Seconds">Seconds</label>
260
		</div>
261
		<input class="textinput"
262
			id="dataone.nodeSynchronization.schedule.sec"
263
			name="dataone.nodeSynchronization.schedule.sec"
264
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.sec") %>"/>
265
	</div>
266
267 6635 leinfelder
	<input type="hidden" name="configureType" value="dataone"/>
268
	<input type="hidden" name="processForm" value="true"/>
269 6861 leinfelder
	<input class=button type="submit" value="Register"/>
270
	<input class=button type="button" value="Skip" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')">
271 6635 leinfelder
	<input class=button type="button" value="Cancel" onClick="forward('./admin')">
272
273
</form>
274
275
<%@ include file="./footer-section.jsp"%>
276
277
</body>
278
</html>