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
	Configure the Metacat as a DataONE Member Node.
48
</p>
49
<!-- BRL TODO add DataONE instructions and contact info -->
50
<br clear="right"/>
51
52
<%@ include file="page-message-section.jsp"%>
53
54
<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin"
55
                                        onsubmit="return submitForm(this);">
56
57
	<h3>Member Node Configuration</h3>
58
	<hr class="config-line">
59
60
	<div class="form-row">
61
		<img class="question-mark" src="style/images/question-mark.gif"
62
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
63
		<div class="textinput-label">
64
			<label for="dataone.nodeName" title="Node Name">Node Name</label>
65
		</div>
66
		<input class="textinput"
67
			id="dataone.nodeName"
68
			name="dataone.nodeName"
69
			value="<%= request.getAttribute("dataone.nodeName") %>"/>
70
	</div>
71
	<div class="form-row">
72
		<img class="question-mark" src="style/images/question-mark.gif"
73
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
74
		<div class="textinput-label">
75
			<label for="dataone.nodeDescription" title="Node Description">Node Description</label>
76
		</div>
77
		<input class="textinput"
78
			id="dataone.nodeDescription"
79
			name="dataone.nodeDescription"
80
			value="<%= request.getAttribute("dataone.nodeDescription") %>"/>
81
	</div>
82
	<div class="form-row">
83
		<img class="question-mark" src="style/images/question-mark.gif"
84
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
85
		<div class="textinput-label">
86
			<label for="dataone.memberNodeId" title="Node Identifier">Node Identifier</label>
87
		</div>
88
		<input class="textinput"
89
			id="dataone.memberNodeId"
90
			name="dataone.memberNodeId"
91
			value="<%= request.getAttribute("dataone.memberNodeId") %>"/>
92
	</div>
93
	<div class="form-row">
94
		<img class="question-mark" src="style/images/question-mark.gif"
95
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
96
		<div class="textinput-label">
97
			<label for="dataone.subject" title="Node Subject">Node Subject</label>
98
		</div>
99
		<input class="textinput"
100
			id="dataone.subject"
101
			name="dataone.subject"
102
			value="<%= request.getAttribute("dataone.subject") %>"/>
103
	</div>
104
	<div class="form-row">
105
		<img class="question-mark" src="style/images/question-mark.gif"
106
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
107
		<div class="textinput-label">
108
			<label for="D1Client.certificate.file" title="Node Certificate Path">Node Certificate Path</label>
109
		</div>
110
		<input class="textinput"
111
			id="D1Client.certificate.file"
112
			name="D1Client.certificate.file"
113
			value="<%= request.getAttribute("D1Client.certificate.file") %>"/>
114
	</div>
115
	<hr class="config-line">
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"><label for="dataone.nodeSynchronize" title="Synchronize">Synchronize</label></div>
120
121
		<%
122
		boolean synchronize = (Boolean) request.getAttribute("dataone.nodeSynchronize");
123
		if (synchronize) {
124
		%>
125
		<input type="checkbox"
126
				class="textinput"
127
				id="dataone.nodeSynchronize"
128
				name="dataone.nodeSynchronize"
129
				value="true"
130
				checked="checked"/>
131
		<% } else {%>
132
		<input type="checkbox"
133
				class="textinput"
134
				id="dataone.nodeSynchronize"
135
				name="dataone.nodeSynchronize"
136
				value="true"/>
137
		<% } %>
138
139
	</div>
140
	<div class="form-row">
141
		<img class="question-mark" src="style/images/question-mark.gif"
142
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
143
		<div class="textinput-label"><label for="dataone.nodeReplicate" title="Replicate">Replicate</label></div>
144
145
		<%
146
		boolean replicate = (Boolean) request.getAttribute("dataone.nodeReplicate");
147
		if (replicate) {
148
		%>
149
		<input type="checkbox"
150
				class="textinput"
151
				id="dataone.nodeReplicate"
152
				name="dataone.nodeReplicate"
153
				value="true"
154
				checked="checked"/>
155
		<% } else {%>
156
		<input type="checkbox"
157
				class="textinput"
158
				id="dataone.nodeReplicate"
159
				name="dataone.nodeReplicate"
160
				value="true"/>
161
		<% } %>
162
163
	</div>
164
165 6690 leinfelder
	<h3>Synchronization Schedule</h3>
166
	<hr class="config-line">
167
	<div class="form-row">
168
		<img class="question-mark" src="style/images/question-mark.gif"
169
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
170
		<div class="textinput-label">
171
			<label for="dataone.nodeSynchronization.schedule.year" title="Year">Year</label>
172
		</div>
173
		<input class="textinput"
174
			id="dataone.nodeSynchronization.schedule.year"
175
			name="dataone.nodeSynchronization.schedule.year"
176
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.year") %>"/>
177
	</div>
178
	<div class="form-row">
179
		<img class="question-mark" src="style/images/question-mark.gif"
180
			onClick="helpWindow('<%= request.getContextPath() %>','metacat-configure.html#dataone')"/>
181
		<div class="textinput-label">
182
			<label for="dataone.nodeSynchronization.schedule.mon" title="Month">Month</label>
183
		</div>
184
		<input class="textinput"
185
			id="dataone.nodeSynchronization.schedule.mon"
186
			name="dataone.nodeSynchronization.schedule.mon"
187
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mon") %>"/>
188
	</div>
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.mday" title="Day of Month">Day of Month</label>
194
		</div>
195
		<input class="textinput"
196
			id="dataone.nodeSynchronization.schedule.mday"
197
			name="dataone.nodeSynchronization.schedule.mday"
198
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.mday") %>"/>
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.wday" title="Day of Week">Day of Week</label>
205
		</div>
206
		<input class="textinput"
207
			id="dataone.nodeSynchronization.schedule.wday"
208
			name="dataone.nodeSynchronization.schedule.wday"
209
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.wday") %>"/>
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.hour" title="Hours">Hours</label>
216
		</div>
217
		<input class="textinput"
218
			id="dataone.nodeSynchronization.schedule.hour"
219
			name="dataone.nodeSynchronization.schedule.hour"
220
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.hour") %>"/>
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.min" title="Minutes">Minutes</label>
227
		</div>
228
		<input class="textinput"
229
			id="dataone.nodeSynchronization.schedule.min"
230
			name="dataone.nodeSynchronization.schedule.min"
231
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.min") %>"/>
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.sec" title="Seconds">Seconds</label>
238
		</div>
239
		<input class="textinput"
240
			id="dataone.nodeSynchronization.schedule.sec"
241
			name="dataone.nodeSynchronization.schedule.sec"
242
			value="<%= request.getAttribute("dataone.nodeSynchronization.schedule.sec") %>"/>
243
	</div>
244
245 6635 leinfelder
	<input type="hidden" name="configureType" value="dataone"/>
246
	<input type="hidden" name="processForm" value="true"/>
247
	<input class=button type="submit" value="Update"/>
248
	<input class=button type="button" value="Bypass" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')">
249
	<input class=button type="button" value="Cancel" onClick="forward('./admin')">
250
251
</form>
252
253
<%@ include file="./footer-section.jsp"%>
254
255
</body>
256
</html>