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: 2011-11-10 23:36:42 -0800 (Thu, 10 Nov 2011) $'
|
13
|
* '$Revision: 6635 $'
|
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
|
<input type="hidden" name="configureType" value="dataone"/>
|
166
|
<input type="hidden" name="processForm" value="true"/>
|
167
|
<input class=button type="submit" value="Update"/>
|
168
|
<input class=button type="button" value="Bypass" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')">
|
169
|
<input class=button type="button" value="Cancel" onClick="forward('./admin')">
|
170
|
|
171
|
</form>
|
172
|
|
173
|
<%@ include file="./footer-section.jsp"%>
|
174
|
|
175
|
</body>
|
176
|
</html>
|