1 |
1929
|
brooke
|
[% INCLUDE "genericHeader.tmpl" %]
|
2 |
|
|
|
3 |
1982
|
jones
|
<script language="JavaScript" type="text/javascript">
|
4 |
2404
|
sgarg
|
|
5 |
1982
|
jones
|
function addParagraph() {
|
6 |
|
|
var newParaWidget=document.createElement("textarea");
|
7 |
2404
|
sgarg
|
newParaWidget.setAttribute("rows", "6");
|
8 |
|
|
newParaWidget.className="longwidth";
|
9 |
1982
|
jones
|
newParaWidget.setAttribute("name", "methodPara");
|
10 |
2404
|
sgarg
|
|
11 |
|
|
var TR = document.createElement("tr");
|
12 |
|
|
TR.className='sectbody';
|
13 |
|
|
var TD = createTD("5","left");
|
14 |
|
|
var emptyTD = createTD("","right");
|
15 |
|
|
TD.appendChild(newParaWidget);
|
16 |
|
|
TR.appendChild(emptyTD);
|
17 |
|
|
TR.appendChild(TD);
|
18 |
1982
|
jones
|
var addParaButton = document.getElementById("addparabutton1");
|
19 |
|
|
var parent = addParaButton.parentNode;
|
20 |
2404
|
sgarg
|
parent.insertBefore(TR, addParaButton);
|
21 |
1982
|
jones
|
}
|
22 |
1984
|
jones
|
|
23 |
2404
|
sgarg
|
function addMethod(){
|
24 |
|
|
var index = incrementCount('methodCount');
|
25 |
|
|
var methodButton = document.getElementById("addmethodbutton");
|
26 |
|
|
var parent = methodButton.parentNode;
|
27 |
|
|
|
28 |
|
|
parent.insertBefore(createHRRow(), methodButton);
|
29 |
|
|
parent.insertBefore(addMethodTitle(), methodButton);
|
30 |
|
|
parent.insertBefore(addMethodDescription(index), methodButton);
|
31 |
|
|
parent.insertBefore(addMethodButton(index), methodButton);
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
function addMethodButton(index){
|
35 |
|
|
var TR = document.createElement("tr");
|
36 |
|
|
var buttonId = 'addparabutton' + index;
|
37 |
|
|
TR.className='sectbody';
|
38 |
|
|
TR.setAttribute("id", buttonId);
|
39 |
|
|
var labelTD = createTD("","right");
|
40 |
|
|
var TD = createTD("5","left");
|
41 |
|
|
var button=document.createElement("input");
|
42 |
|
|
button.setAttribute("type", "button");
|
43 |
|
|
button.setAttribute("value", "Add Paragraph to Method Description");
|
44 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
45 |
|
|
button.attachEvent("onclick", new Function("addParagraph("+ index + ", '" + buttonId + "')"));
|
46 |
|
|
} else {
|
47 |
|
|
button.setAttribute("onclick", "addParagraph("+ index +", '" + buttonId + "')");
|
48 |
|
|
}
|
49 |
|
|
TD.appendChild(button);
|
50 |
|
|
TR.appendChild(labelTD);
|
51 |
|
|
TR.appendChild(TD);
|
52 |
|
|
return TR;
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
function addMethodTitle(){
|
56 |
|
|
var TR = document.createElement("tr");
|
57 |
|
|
TR.className='sectbody';
|
58 |
|
|
var labelTD = createTD("","right");
|
59 |
|
|
labelTD.appendChild(document.createTextNode("Method Title"));
|
60 |
|
|
var TD = createTD("5","left");
|
61 |
|
|
var textField=document.createElement("input");
|
62 |
|
|
textField.setAttribute("type", "text");
|
63 |
|
|
textField.setAttribute("name", "methodTitle");
|
64 |
|
|
textField.className="longwidth";
|
65 |
|
|
TD.appendChild(textField);
|
66 |
|
|
TR.appendChild(labelTD);
|
67 |
|
|
TR.appendChild(TD);
|
68 |
|
|
return TR;
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
function addMethodDescription(index){
|
72 |
|
|
var TR = document.createElement("tr");
|
73 |
|
|
TR.className='sectbody';
|
74 |
|
|
var labelTD = createTD("","right");
|
75 |
|
|
labelTD.setAttribute("vAlign","top");
|
76 |
|
|
labelTD.appendChild(document.createTextNode("Method Description"));
|
77 |
|
|
var TD = createTD("5","left");
|
78 |
|
|
var textArea=document.createElement("textarea");
|
79 |
|
|
textArea.setAttribute("name", "methodPara"+index);
|
80 |
|
|
textArea.setAttribute("rows", 6);
|
81 |
|
|
textArea.className="longwidth";
|
82 |
|
|
TD.appendChild(textArea);
|
83 |
|
|
TR.appendChild(labelTD);
|
84 |
|
|
TR.appendChild(TD);
|
85 |
|
|
return TR;
|
86 |
|
|
}
|
87 |
|
|
|
88 |
|
|
function createTextField(name, size, value) {
|
89 |
2390
|
sgarg
|
var newField=document.createElement("input");
|
90 |
|
|
newField.setAttribute("type", "text");
|
91 |
|
|
newField.setAttribute("name", name);
|
92 |
|
|
newField.setAttribute("size", size);
|
93 |
2404
|
sgarg
|
newField.value = value;
|
94 |
2390
|
sgarg
|
return newField;
|
95 |
|
|
}
|
96 |
|
|
|
97 |
2404
|
sgarg
|
function createTextRow(count, varName, labelText, value) {
|
98 |
|
|
var textField=createTextField(varName + count, "30", value);
|
99 |
2390
|
sgarg
|
var row = createRow(count, textField, labelText);
|
100 |
|
|
return row;
|
101 |
|
|
}
|
102 |
|
|
|
103 |
|
|
function createRow(count, elem, labelText){
|
104 |
2404
|
sgarg
|
var textTD = createTD("5");
|
105 |
2390
|
sgarg
|
textTD.appendChild(elem);
|
106 |
|
|
|
107 |
2404
|
sgarg
|
var labelTD = createTD("","right");
|
108 |
2390
|
sgarg
|
|
109 |
|
|
var labelSpan = document.createElement("span");
|
110 |
|
|
labelSpan.className = 'label';
|
111 |
|
|
|
112 |
|
|
var label = document.createTextNode(labelText);
|
113 |
|
|
labelSpan.appendChild(label);
|
114 |
|
|
labelTD.appendChild(labelSpan);
|
115 |
|
|
|
116 |
|
|
var TR = document.createElement("tr");
|
117 |
|
|
TR.className='sectbody';
|
118 |
|
|
TR.appendChild(labelTD);
|
119 |
|
|
TR.appendChild(textTD);
|
120 |
|
|
|
121 |
|
|
return TR;
|
122 |
|
|
}
|
123 |
|
|
|
124 |
|
|
function createHRRow() {
|
125 |
2404
|
sgarg
|
var hrCell = createTD("6");
|
126 |
2390
|
sgarg
|
var hr = document.createElement("hr");
|
127 |
|
|
hr.setAttribute("width", "85%");
|
128 |
|
|
hrCell.appendChild(hr);
|
129 |
|
|
|
130 |
|
|
var hrTR = document.createElement("tr");
|
131 |
|
|
hrTR.className = 'sectbody';
|
132 |
|
|
hrTR.appendChild(hrCell);
|
133 |
|
|
|
134 |
2404
|
sgarg
|
return hrTR;
|
135 |
2390
|
sgarg
|
}
|
136 |
|
|
|
137 |
2404
|
sgarg
|
function createHiddenInput(name, value){
|
138 |
|
|
var elem = document.createElement("input");
|
139 |
|
|
elem.setAttribute("type", "hidden");
|
140 |
|
|
elem.setAttribute("name", name);
|
141 |
|
|
elem.setAttribute("value", value);
|
142 |
|
|
return elem
|
143 |
|
|
}
|
144 |
2390
|
sgarg
|
|
145 |
2404
|
sgarg
|
function sortInputTags(){
|
146 |
|
|
sortTagWithAttributeName("aoFirstName", "addAssociatedParty");
|
147 |
|
|
sortTagWithAttributeName("aoLastName", "addAssociatedParty");
|
148 |
|
|
sortTagWithAttributeName("aoRole", "addAssociatedParty", "select");
|
149 |
|
|
|
150 |
|
|
sortTagWithAttributeName("taxonName", "addTaxon");
|
151 |
|
|
sortTagWithAttributeName("taxonRank", "addTaxon");
|
152 |
|
|
|
153 |
|
|
sortTagWithAttributeName("keyword", "addKeyword");
|
154 |
|
|
sortTagWithAttributeName("keywordType", "addKeyword");
|
155 |
|
|
sortTagWithAttributeName("keywordTh", "addKeyword");
|
156 |
2390
|
sgarg
|
|
157 |
2404
|
sgarg
|
}
|
158 |
|
|
|
159 |
1984
|
jones
|
|
160 |
2404
|
sgarg
|
function sortTagWithAttributeName(tag, afterTag, parentTag){
|
161 |
|
|
var elem = document.getElementById(afterTag);
|
162 |
|
|
|
163 |
|
|
elem=elem.nextSibling.nextSibling;
|
164 |
|
|
while(elem.nodeName == "TR"){
|
165 |
|
|
var nodes = elem.getElementsByTagName("input");
|
166 |
|
|
for(var i=0; i < nodes.length; i++){
|
167 |
|
|
var node = nodes.item(i);
|
168 |
|
|
if(node.getAttribute("name")==tag){
|
169 |
|
|
var parent = node.parentNode;
|
170 |
|
|
var clone = node.cloneNode(true);
|
171 |
|
|
parent.removeChild(node);
|
172 |
|
|
parent.appendChild(clone);
|
173 |
|
|
}
|
174 |
|
|
}
|
175 |
|
|
if(parentTag != null){
|
176 |
|
|
var nodes = elem.getElementsByTagName(parentTag);
|
177 |
|
|
for(var i=0; i < nodes.length; i++){
|
178 |
|
|
var node = nodes.item(i);
|
179 |
|
|
if(node.getAttribute("name")==tag){
|
180 |
|
|
var parent = node.parentNode;
|
181 |
|
|
var clone = node.cloneNode(true);
|
182 |
|
|
clone.value = node.value;
|
183 |
|
|
parent.removeChild(node);
|
184 |
|
|
parent.appendChild(clone);
|
185 |
|
|
}
|
186 |
|
|
}
|
187 |
|
|
}
|
188 |
|
|
elem=elem.nextSibling;
|
189 |
|
|
}
|
190 |
1984
|
jones
|
}
|
191 |
2404
|
sgarg
|
|
192 |
|
|
function incrementCount(_count){
|
193 |
|
|
var countField = document.getElementById(_count);
|
194 |
|
|
var count = countField.getAttribute("value");
|
195 |
|
|
count++;
|
196 |
|
|
countField.setAttribute("value", count);
|
197 |
|
|
return count;
|
198 |
|
|
}
|
199 |
|
|
|
200 |
|
|
function decrementCount(_count){
|
201 |
|
|
var countField = document.getElementById(_count);
|
202 |
|
|
var count = countField.getAttribute("value");
|
203 |
|
|
count--;
|
204 |
|
|
countField.setAttribute("value", count);
|
205 |
|
|
return count;
|
206 |
|
|
}
|
207 |
|
|
|
208 |
|
|
function createImageLink(imgSrc, imgAlt, imgOnClick, cursor){
|
209 |
|
|
var link = document.createElement("a");
|
210 |
|
|
var img = document.createElement("img");
|
211 |
|
|
img.setAttribute("src", imgSrc);
|
212 |
|
|
img.setAttribute("alt", imgAlt);
|
213 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
214 |
|
|
link.style.setAttribute("cursor", cursor);
|
215 |
|
|
img.attachEvent("onclick", new Function(imgOnClick));
|
216 |
|
|
} else {
|
217 |
|
|
link.setAttribute("style", "cursor:"+cursor);
|
218 |
|
|
img.setAttribute("onClick", imgOnClick);
|
219 |
|
|
}
|
220 |
|
|
img.setAttribute("border", "0");
|
221 |
|
|
link.appendChild(img);
|
222 |
|
|
return link;
|
223 |
|
|
}
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
function createTD(colSpan, align, cursor){
|
227 |
|
|
var td = document.createElement("td");
|
228 |
|
|
if(colSpan != "")
|
229 |
|
|
td.setAttribute("colSpan", colSpan);
|
230 |
|
|
td.setAttribute("align", align);
|
231 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
232 |
|
|
td.style.setAttribute("cursor", cursor);
|
233 |
|
|
} else {
|
234 |
|
|
td.setAttribute("style", "cursor:"+cursor);
|
235 |
|
|
}
|
236 |
|
|
return td;
|
237 |
|
|
}
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
function cleanTextNodes(startTagId, endTagId){
|
241 |
|
|
var startTag = document.getElementById(startTagId);
|
242 |
1984
|
jones
|
|
243 |
2404
|
sgarg
|
var bro = startTag.nextSibling;
|
244 |
1984
|
jones
|
|
245 |
2404
|
sgarg
|
while(bro){
|
246 |
|
|
if(bro.nodeName == "#text"){
|
247 |
|
|
var temp = bro.nextSibling;
|
248 |
|
|
bro.parentNode.removeChild(bro);
|
249 |
|
|
bro = temp;
|
250 |
|
|
} else {
|
251 |
|
|
var id = bro.getAttribute("id");
|
252 |
|
|
if(id == endTagId){
|
253 |
|
|
return;
|
254 |
|
|
}
|
255 |
|
|
bro = bro.nextSibling;
|
256 |
|
|
}
|
257 |
|
|
}
|
258 |
2390
|
sgarg
|
|
259 |
2404
|
sgarg
|
}
|
260 |
|
|
|
261 |
|
|
function delRow(evt){
|
262 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
263 |
|
|
if (evt) {
|
264 |
|
|
// equalize W3C/IE models to get event target reference
|
265 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
266 |
|
|
if (elem) {
|
267 |
|
|
try {
|
268 |
|
|
var table = elem.parentNode.parentNode.parentNode.parentNode;
|
269 |
|
|
var row = elem.parentNode.parentNode.parentNode;
|
270 |
2390
|
sgarg
|
|
271 |
2404
|
sgarg
|
table.removeChild(row);
|
272 |
|
|
}
|
273 |
|
|
catch(e) {
|
274 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
275 |
|
|
alert("Error:\n" + msg);
|
276 |
|
|
return;
|
277 |
|
|
}
|
278 |
|
|
}
|
279 |
|
|
}
|
280 |
|
|
}
|
281 |
2390
|
sgarg
|
|
282 |
2404
|
sgarg
|
function moveUpRow(evt){
|
283 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
284 |
|
|
if (evt) {
|
285 |
|
|
// equalize W3C/IE models to get event target reference
|
286 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
287 |
|
|
if (elem) {
|
288 |
|
|
try {
|
289 |
|
|
var table = elem.parentNode.parentNode.parentNode.parentNode;
|
290 |
|
|
var row = elem.parentNode.parentNode.parentNode;
|
291 |
|
|
|
292 |
|
|
var bro = row.previousSibling;
|
293 |
|
|
if(bro != null && bro.previousSibling.nodeName =="TR"){
|
294 |
|
|
clone = row.cloneNode(true);
|
295 |
|
|
table.insertBefore(clone, bro);
|
296 |
|
|
table.removeChild(row);
|
297 |
|
|
}
|
298 |
|
|
}
|
299 |
|
|
catch(e) {
|
300 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
301 |
|
|
alert("Error:\n" + msg);
|
302 |
|
|
return;
|
303 |
|
|
}
|
304 |
|
|
}
|
305 |
|
|
}
|
306 |
2027
|
sgarg
|
}
|
307 |
|
|
|
308 |
2404
|
sgarg
|
function moveDownRow(evt, lastTR){
|
309 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
310 |
|
|
if (evt) {
|
311 |
|
|
// equalize W3C/IE models to get event target reference
|
312 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
313 |
|
|
if (elem) {
|
314 |
|
|
try {
|
315 |
|
|
var table = elem.parentNode.parentNode.parentNode.parentNode;
|
316 |
|
|
var row = elem.parentNode.parentNode.parentNode;
|
317 |
|
|
|
318 |
|
|
var _test = row.nextSibling;
|
319 |
|
|
if(_test.getAttribute("id") == lastTR){
|
320 |
|
|
return;
|
321 |
|
|
}
|
322 |
|
|
var bro = row.nextSibling.nextSibling;
|
323 |
|
|
if(bro != null && bro.nodeName =="TR"){
|
324 |
|
|
clone = row.cloneNode(true);
|
325 |
|
|
table.insertBefore(clone, bro);
|
326 |
|
|
table.removeChild(row);
|
327 |
|
|
}
|
328 |
|
|
}
|
329 |
|
|
catch(e) {
|
330 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
331 |
|
|
alert("Error:\n" + msg);
|
332 |
|
|
return;
|
333 |
|
|
}
|
334 |
|
|
}
|
335 |
|
|
}
|
336 |
2027
|
sgarg
|
}
|
337 |
2404
|
sgarg
|
|
338 |
|
|
function addAssociatedParty() {
|
339 |
|
|
var AOLN = document.getElementById("AONameLast");
|
340 |
|
|
var AOFN = document.getElementById("AONameFirst");
|
341 |
|
|
var AORole = document.getElementById("AORole");
|
342 |
2027
|
sgarg
|
|
343 |
2404
|
sgarg
|
if(AOLN.value != ""){
|
344 |
|
|
|
345 |
|
|
var aoCount = incrementCount("aoCount");
|
346 |
|
|
|
347 |
|
|
try{
|
348 |
|
|
var aoRow = createAORow(aoCount, AOLN.value, AOFN.value, AORole.options[AORole.selectedIndex].text);
|
349 |
|
|
} catch(e) {
|
350 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
351 |
|
|
alert("Error:\n" + msg);
|
352 |
|
|
return;
|
353 |
|
|
}
|
354 |
|
|
|
355 |
|
|
var aoRowMarker = document.getElementById("addaorow");
|
356 |
|
|
var parent = aoRowMarker.parentNode;
|
357 |
|
|
|
358 |
|
|
var aoHR = document.getElementById("aoHRRow");
|
359 |
|
|
if(aoHR == null) {
|
360 |
|
|
var aoHRRow = createHRRow();
|
361 |
|
|
aoHRRow.setAttribute("id", "aoHRRow");
|
362 |
|
|
parent.insertBefore(aoHRRow, aoRowMarker);
|
363 |
|
|
}
|
364 |
|
|
|
365 |
|
|
parent.insertBefore(aoRow, aoRowMarker);
|
366 |
|
|
|
367 |
|
|
AOFN.value = "";
|
368 |
|
|
AOLN.value = "";
|
369 |
|
|
AORole.selectedIndex = 0;
|
370 |
|
|
} else {
|
371 |
|
|
alert("Enter the last name of the associated party");
|
372 |
|
|
}
|
373 |
|
|
}
|
374 |
|
|
|
375 |
|
|
function createAORow(aoCount, AOLN, AOFN, AORole){
|
376 |
|
|
var TR = document.createElement("tr");
|
377 |
|
|
TR.className='sectbody';
|
378 |
|
|
var labelTD = createTD("5","left", "pointer");
|
379 |
|
|
|
380 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
381 |
|
|
labelTD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN + "\",\""
|
382 |
|
|
+ AOLN + "\",\"" + AORole + "\")"));
|
383 |
|
|
} else {
|
384 |
|
|
labelTD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN + "\",\""
|
385 |
|
|
+ AOLN + "\",\"" + AORole + "\")");
|
386 |
|
|
}
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
var text = AOFN + " " + AOLN + " (Role: " + AORole + ")";
|
390 |
|
|
var label = document.createTextNode(text);
|
391 |
|
|
|
392 |
|
|
labelTD.appendChild(label);
|
393 |
|
|
labelTD.appendChild(createHiddenInput("aoFirstName", AOFN));
|
394 |
|
|
labelTD.appendChild(createHiddenInput("aoLastName", AOLN));
|
395 |
|
|
labelTD.appendChild(createHiddenInput("aoRole", AORole));
|
396 |
|
|
|
397 |
|
|
var imgTD = createTD("","right");
|
398 |
|
|
|
399 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
|
400 |
|
|
"Move Up","moveUpRow(event)","pointer"));
|
401 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
402 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
|
403 |
|
|
"Move Down", "moveDownRow(event, \"addaorow\")",
|
404 |
|
|
"pointer"));
|
405 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
406 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
|
407 |
|
|
"Delete", "delRow(event)",
|
408 |
|
|
"pointer"));
|
409 |
|
|
|
410 |
|
|
TR.appendChild(imgTD);
|
411 |
|
|
TR.appendChild(labelTD);
|
412 |
|
|
|
413 |
|
|
return TR;
|
414 |
|
|
}
|
415 |
|
|
|
416 |
|
|
function aoEditRow(evt, num, AOFN , AOLN , AORole){
|
417 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
418 |
|
|
if (evt) {
|
419 |
|
|
// equalize W3C/IE models to get event target reference
|
420 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
421 |
|
|
if (elem && elem.nodeName == "TD") {
|
422 |
|
|
try {
|
423 |
|
|
var table = elem.parentNode;
|
424 |
|
|
if(num == 0){
|
425 |
|
|
table.removeChild(elem);
|
426 |
|
|
var TD = createTD("5","left", "pointer");
|
427 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
428 |
|
|
TD.attachEvent("onclick", new Function("aoEditRow(event, 1, \"" + AOFN + "\",\""
|
429 |
|
|
+ AOLN + "\",\"" + AORole + "\")"));
|
430 |
|
|
} else {
|
431 |
|
|
TD.setAttribute("onClick","aoEditRow(event, 1, \"" + AOFN + "\",\""
|
432 |
|
|
+ AOLN + "\",\"" + AORole + "\")");
|
433 |
|
|
}
|
434 |
|
|
TD.appendChild(createTextField("aoFirstName", 15, AOFN));
|
435 |
|
|
TD.appendChild(document.createTextNode(" "));
|
436 |
|
|
TD.appendChild(createTextField("aoLastName", 15, AOLN));
|
437 |
|
|
TD.appendChild(document.createTextNode(" Role: "));
|
438 |
|
|
TD.appendChild(createAORoleTypeSelect("aoRole", AORole));
|
439 |
|
|
table.appendChild(TD);
|
440 |
|
|
} else {
|
441 |
|
|
var child = elem.childNodes;
|
442 |
|
|
AOFN = child.item(0).value;
|
443 |
|
|
AOLN = child.item(2).value;
|
444 |
|
|
var _AORole = child.item(4);
|
445 |
|
|
AORole = _AORole.options[_AORole.selectedIndex].text;
|
446 |
|
|
table.removeChild(elem);
|
447 |
|
|
|
448 |
|
|
var TD = createTD("5","left", "pointer");
|
449 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
450 |
|
|
TD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN + "\",\""
|
451 |
|
|
+ AOLN + "\",\"" + AORole + "\")"));
|
452 |
|
|
} else {
|
453 |
|
|
TD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN + "\",\""
|
454 |
|
|
+ AOLN + "\",\"" + AORole + "\")");
|
455 |
|
|
}
|
456 |
|
|
var text = AOFN + " " + AOLN + " (Role: " + AORole + ")";
|
457 |
|
|
var label = document.createTextNode(text);
|
458 |
|
|
TD.appendChild(label);
|
459 |
|
|
TD.appendChild(createHiddenInput("aoFirstName", AOFN));
|
460 |
|
|
TD.appendChild(createHiddenInput("aoLastName", AOLN));
|
461 |
|
|
TD.appendChild(createHiddenInput("aoRole", AORole));
|
462 |
|
|
table.appendChild(TD);
|
463 |
|
|
}
|
464 |
|
|
}
|
465 |
|
|
catch(e) {
|
466 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
467 |
|
|
alert("Error:\n" + msg);
|
468 |
|
|
return;
|
469 |
|
|
}
|
470 |
|
|
}
|
471 |
|
|
}
|
472 |
|
|
}
|
473 |
|
|
|
474 |
|
|
function createAORoleTypeSelect(name, value) {
|
475 |
2027
|
sgarg
|
var newField=document.createElement("select");
|
476 |
|
|
newField.setAttribute("name", name);
|
477 |
|
|
var option1=document.createElement("option");
|
478 |
2404
|
sgarg
|
var text1=document.createTextNode("Co-owner");
|
479 |
|
|
//var text1=document.createTextNode("Principal Investigator");
|
480 |
2027
|
sgarg
|
option1.appendChild(text1);
|
481 |
|
|
newField.appendChild(option1);
|
482 |
|
|
var option2=document.createElement("option");
|
483 |
2404
|
sgarg
|
var text2=document.createTextNode("Custodian/Steward");
|
484 |
2033
|
sgarg
|
option2.appendChild(text2);
|
485 |
2027
|
sgarg
|
newField.appendChild(option2);
|
486 |
|
|
var option3=document.createElement("option");
|
487 |
2404
|
sgarg
|
var text3=document.createTextNode("Metadata Provider");
|
488 |
2033
|
sgarg
|
option3.appendChild(text3);
|
489 |
2027
|
sgarg
|
newField.appendChild(option3)
|
490 |
|
|
var option4=document.createElement("option");
|
491 |
2404
|
sgarg
|
var text4=document.createTextNode("User");
|
492 |
2033
|
sgarg
|
option4.appendChild(text4);
|
493 |
2027
|
sgarg
|
newField.appendChild(option4);
|
494 |
2404
|
sgarg
|
|
495 |
|
|
if(value == "Co-owner"){
|
496 |
|
|
newField.selectedIndex=0;
|
497 |
|
|
} else if(value == "Custodian/Steward"){
|
498 |
|
|
newField.selectedIndex=1;
|
499 |
|
|
} else if(value == "Metadata Provider"){
|
500 |
|
|
newField.selectedIndex=2;
|
501 |
|
|
} else if(value == "User"){
|
502 |
|
|
newField.selectedIndex=3;
|
503 |
|
|
}
|
504 |
2027
|
sgarg
|
|
505 |
|
|
return newField;
|
506 |
|
|
}
|
507 |
|
|
|
508 |
2390
|
sgarg
|
|
509 |
|
|
|
510 |
2404
|
sgarg
|
function addTaxon() {
|
511 |
|
|
var taxonRank = document.getElementById("taxonRank");
|
512 |
|
|
var taxonName = document.getElementById("taxonName");
|
513 |
|
|
|
514 |
|
|
if(taxonRank.value !="" && taxonName.value != ""){
|
515 |
|
|
|
516 |
|
|
var taxonCount = incrementCount("taxaCount");
|
517 |
|
|
|
518 |
2786
|
sgarg
|
var row = createTaxonRow(taxonCount, taxonRank.value, taxonName.value);
|
519 |
2404
|
sgarg
|
var taxonRowMarker = document.getElementById("addtaxarow");
|
520 |
|
|
var parent = taxonRowMarker.parentNode;
|
521 |
|
|
|
522 |
|
|
var taxonHR = document.getElementById("taxonHRRow");
|
523 |
|
|
if(taxonHR == null) {
|
524 |
|
|
var taxonHRRow = createHRRow();
|
525 |
|
|
taxonHRRow.setAttribute("id", "taxonHRRow");
|
526 |
|
|
parent.insertBefore(taxonHRRow, taxonRowMarker);
|
527 |
|
|
}
|
528 |
|
|
|
529 |
|
|
parent.insertBefore(row, taxonRowMarker);
|
530 |
2390
|
sgarg
|
|
531 |
2404
|
sgarg
|
taxonRank.value = "";
|
532 |
|
|
taxonName.value = "";
|
533 |
|
|
} else {
|
534 |
|
|
alert("Enter complete taxonomic information");
|
535 |
|
|
}
|
536 |
2144
|
sgarg
|
}
|
537 |
2027
|
sgarg
|
|
538 |
2404
|
sgarg
|
function createTaxonRow(taxonCount, taxonRank, taxonName){
|
539 |
|
|
var TR = document.createElement("tr");
|
540 |
|
|
TR.className='sectbody';
|
541 |
|
|
|
542 |
|
|
var labelTD = createTD("5","left", "pointer");
|
543 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
544 |
|
|
labelTD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
|
545 |
|
|
+ "\",\"" + taxonRank + "\")"));
|
546 |
|
|
} else {
|
547 |
|
|
labelTD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
|
548 |
|
|
+ "\",\"" + taxonRank + "\")");
|
549 |
|
|
}
|
550 |
|
|
|
551 |
|
|
|
552 |
2786
|
sgarg
|
var text = "Rank: " + taxonRank + ", Name: " + taxonName;
|
553 |
2404
|
sgarg
|
var label = document.createTextNode(text);
|
554 |
|
|
|
555 |
|
|
labelTD.appendChild(label);
|
556 |
|
|
labelTD.appendChild(createHiddenInput("taxonName", taxonName));
|
557 |
|
|
labelTD.appendChild(createHiddenInput("taxonRank", taxonRank));
|
558 |
|
|
|
559 |
|
|
var imgTD = createTD("","right");
|
560 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
|
561 |
|
|
"Move Up", "moveUpRow(event)",
|
562 |
|
|
"pointer"));
|
563 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
564 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
|
565 |
|
|
"Move Down", "moveDownRow(event, 'addtaxarow')",
|
566 |
|
|
"pointer"));
|
567 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
568 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
|
569 |
|
|
"Delete", "delRow(event)",
|
570 |
|
|
"pointer"));
|
571 |
|
|
|
572 |
|
|
TR.appendChild(imgTD);
|
573 |
|
|
TR.appendChild(labelTD);
|
574 |
|
|
|
575 |
|
|
return TR;
|
576 |
|
|
}
|
577 |
|
|
|
578 |
|
|
|
579 |
|
|
function taxonEditRow(evt, num, taxonName , taxonRank){
|
580 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
581 |
|
|
if (evt) {
|
582 |
|
|
// equalize W3C/IE models to get event target reference
|
583 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
584 |
|
|
if (elem && elem.nodeName == "TD") {
|
585 |
|
|
try {
|
586 |
|
|
var table = elem.parentNode;
|
587 |
|
|
if(num == 0){
|
588 |
|
|
table.removeChild(elem);
|
589 |
|
|
var TD = createTD("5","left", "pointer");
|
590 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
591 |
|
|
TD.attachEvent("onclick",new Function("taxonEditRow(event, 1, \"" + taxonName
|
592 |
|
|
+ "\",\"" + taxonRank + "\")"));
|
593 |
|
|
} else {
|
594 |
|
|
TD.setAttribute("onClick","taxonEditRow(event, 1, \"" + taxonName
|
595 |
|
|
+ "\",\"" + taxonRank + "\")");
|
596 |
|
|
}
|
597 |
|
|
|
598 |
|
|
TD.appendChild(document.createTextNode("Rank: "));
|
599 |
|
|
TD.appendChild(createTextField("taxonName", 15, taxonName));
|
600 |
|
|
TD.appendChild(document.createTextNode(" Name: "));
|
601 |
|
|
TD.appendChild(createTextField("taxonRank", 15, taxonRank));
|
602 |
|
|
table.appendChild(TD);
|
603 |
|
|
} else {
|
604 |
|
|
var child = elem.childNodes;
|
605 |
|
|
taxonName = child.item(1).value;
|
606 |
|
|
taxonRank = child.item(3).value;
|
607 |
|
|
table.removeChild(elem);
|
608 |
|
|
|
609 |
|
|
var TD = createTD("5","left", "pointer");
|
610 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
611 |
|
|
TD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
|
612 |
|
|
+ "\",\"" + taxonRank + "\")"));
|
613 |
|
|
} else {
|
614 |
|
|
TD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
|
615 |
|
|
+ "\",\"" + taxonRank + "\")");
|
616 |
|
|
}
|
617 |
|
|
var text = "Rank: " + taxonName + ", Name: " + taxonRank;
|
618 |
|
|
var label = document.createTextNode(text);
|
619 |
|
|
TD.appendChild(label);
|
620 |
|
|
TD.appendChild(createHiddenInput("taxonName", taxonName));
|
621 |
|
|
TD.appendChild(createHiddenInput("taxonRank", taxonRank));
|
622 |
|
|
table.appendChild(TD);
|
623 |
|
|
}
|
624 |
|
|
}
|
625 |
|
|
catch(e) {
|
626 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
627 |
|
|
alert("Error:\n" + msg);
|
628 |
|
|
return;
|
629 |
|
|
}
|
630 |
|
|
}
|
631 |
|
|
}
|
632 |
|
|
}
|
633 |
|
|
|
634 |
|
|
function addKeyword() {
|
635 |
|
|
var keyword = document.getElementById("keyword");
|
636 |
|
|
var keywordType = document.getElementById("keywordType");
|
637 |
|
|
var keywordTh = document.getElementById("keywordTh");
|
638 |
|
|
|
639 |
|
|
if(keyword.value !=""){
|
640 |
|
|
var keyCount = incrementCount("keyCount");
|
641 |
|
|
|
642 |
|
|
var keyRow = createKeywordRow(keyCount, keyword.value, keywordType.options[keywordType.selectedIndex].text, keywordTh.options[keywordTh.selectedIndex].text);
|
643 |
|
|
var keyRowMarker = document.getElementById("addkeyrow");
|
644 |
|
|
var parent = keyRowMarker.parentNode;
|
645 |
|
|
|
646 |
|
|
var keyHR = document.getElementById("keywordHRRow");
|
647 |
|
|
if(keyHR == null) {
|
648 |
|
|
var keyHRRow = createHRRow();
|
649 |
|
|
keyHRRow.setAttribute("id", "keywordHRRow");
|
650 |
|
|
parent.insertBefore(keyHRRow, keyRowMarker);
|
651 |
|
|
}
|
652 |
|
|
|
653 |
|
|
parent.insertBefore(keyRow, keyRowMarker);
|
654 |
|
|
|
655 |
|
|
keyword.value = "";
|
656 |
|
|
keywordType.selectedIndex = 0;
|
657 |
|
|
keywordTh.selectedIndex = 0;
|
658 |
|
|
} else {
|
659 |
|
|
alert("Enter keyword");
|
660 |
|
|
}
|
661 |
|
|
}
|
662 |
|
|
|
663 |
|
|
|
664 |
|
|
function createKeywordRow(keyCount, keyword, keywordType, keywordTh){
|
665 |
|
|
var TR = document.createElement("tr");
|
666 |
|
|
TR.className='sectbody';
|
667 |
|
|
|
668 |
|
|
var labelTD = createTD("5","left", "pointer");
|
669 |
|
|
|
670 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
671 |
|
|
labelTD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
|
672 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")"));
|
673 |
|
|
} else {
|
674 |
|
|
labelTD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
|
675 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")");
|
676 |
|
|
}
|
677 |
|
|
|
678 |
|
|
var text = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
|
679 |
|
|
var label = document.createTextNode(text);
|
680 |
|
|
|
681 |
|
|
labelTD.appendChild(label);
|
682 |
|
|
labelTD.appendChild(createHiddenInput("keyword", keyword));
|
683 |
|
|
labelTD.appendChild(createHiddenInput("keywordType", keywordType));
|
684 |
|
|
labelTD.appendChild(createHiddenInput("keywordTh", keywordTh));
|
685 |
|
|
|
686 |
|
|
var imgTD = createTD("","right");
|
687 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/previous.gif",
|
688 |
|
|
"Move Up", "moveUpRow(event)",
|
689 |
|
|
"pointer"));
|
690 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
691 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/next.gif",
|
692 |
|
|
"Move Down", "moveDownRow(event, 'addkeyrow')",
|
693 |
|
|
"pointer"));
|
694 |
|
|
imgTD.appendChild(document.createTextNode(" "));
|
695 |
|
|
imgTD.appendChild(createImageLink("@systemidserver@@html-path@/style/images/delete.gif",
|
696 |
|
|
"Delete", "delRow(event)",
|
697 |
|
|
"pointer"));
|
698 |
|
|
|
699 |
|
|
TR.appendChild(imgTD);
|
700 |
|
|
TR.appendChild(labelTD);
|
701 |
|
|
|
702 |
|
|
return TR;
|
703 |
|
|
}
|
704 |
|
|
|
705 |
|
|
function keywordEditRow(evt, num, keyword, keywordType, keywordTh){
|
706 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
707 |
|
|
if (evt) {
|
708 |
|
|
// equalize W3C/IE models to get event target reference
|
709 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
710 |
|
|
if (elem && elem.nodeName == "TD") {
|
711 |
|
|
try {
|
712 |
|
|
var table = elem.parentNode;
|
713 |
|
|
if(num == 0){
|
714 |
|
|
table.removeChild(elem);
|
715 |
|
|
var TD = createTD("5","left", "pointer");
|
716 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
717 |
|
|
TD.attachEvent("onclick", new Function("keywordEditRow(event, 1, \"" + keyword
|
718 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")"));
|
719 |
|
|
} else {
|
720 |
|
|
TD.setAttribute("onClick","keywordEditRow(event, 1, \"" + keyword
|
721 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")");
|
722 |
|
|
}
|
723 |
|
|
|
724 |
|
|
TD.appendChild(createTextField("keyword", 15, keyword));
|
725 |
|
|
TD.appendChild(document.createTextNode(" Type: "));
|
726 |
|
|
TD.appendChild(createKeyTypeSelect("keywordType", keywordType));
|
727 |
|
|
TD.appendChild(document.createTextNode(" Thesaurus: "));
|
728 |
|
|
TD.appendChild(createKeyThSelect("keywordTh", keywordTh));
|
729 |
|
|
table.appendChild(TD);
|
730 |
|
|
} else {
|
731 |
|
|
var child = elem.childNodes;
|
732 |
|
|
keyword = child.item(0).value;
|
733 |
|
|
var _keywordType = child.item(2);
|
734 |
|
|
keywordType = _keywordType.options[_keywordType.selectedIndex].text;
|
735 |
|
|
var _keywordTh = child.item(4);
|
736 |
|
|
keywordTh = _keywordTh.options[_keywordTh.selectedIndex].text;
|
737 |
|
|
table.removeChild(elem);
|
738 |
|
|
|
739 |
|
|
var TD = createTD("5","left", "pointer");
|
740 |
|
|
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){
|
741 |
|
|
TD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
|
742 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")"));
|
743 |
|
|
} else {
|
744 |
|
|
TD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
|
745 |
|
|
+ "\",\"" + keywordType + "\",\"" + keywordTh + "\")");
|
746 |
|
|
}
|
747 |
|
|
|
748 |
|
|
var text = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
|
749 |
|
|
var label = document.createTextNode(text);
|
750 |
|
|
TD.appendChild(label);
|
751 |
|
|
TD.appendChild(createHiddenInput("keyword", keyword));
|
752 |
|
|
TD.appendChild(createHiddenInput("keywordType", keywordType));
|
753 |
|
|
TD.appendChild(createHiddenInput("keywordTh", keywordTh));
|
754 |
|
|
table.appendChild(TD);
|
755 |
|
|
}
|
756 |
|
|
}
|
757 |
|
|
catch(e) {
|
758 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
759 |
|
|
alert("Error:\n" + msg);
|
760 |
|
|
return;
|
761 |
|
|
}
|
762 |
|
|
}
|
763 |
|
|
}
|
764 |
|
|
}
|
765 |
|
|
|
766 |
|
|
function createKeywordThesaurusRow(name) {
|
767 |
|
|
var keyRowTemplate = document.getElementById("keyThRow");
|
768 |
|
|
var newField = keyRowTemplate.cloneNode(true);
|
769 |
|
|
var nodes = newField.getElementsByTagName("input");
|
770 |
|
|
nodes.item(0).setAttribute("name", name);
|
771 |
|
|
nodes.item(1).setAttribute("name", name);
|
772 |
|
|
return newField;
|
773 |
|
|
}
|
774 |
|
|
|
775 |
|
|
function createKeyThSelect(name, value) {
|
776 |
2144
|
sgarg
|
var newField=document.createElement("select");
|
777 |
|
|
newField.setAttribute("name", name);
|
778 |
|
|
var option1=document.createElement("option");
|
779 |
2404
|
sgarg
|
var text1=document.createTextNode("None");
|
780 |
2144
|
sgarg
|
option1.appendChild(text1);
|
781 |
|
|
newField.appendChild(option1);
|
782 |
|
|
var option2=document.createElement("option");
|
783 |
2404
|
sgarg
|
var text2=document.createTextNode("GCMD");
|
784 |
2144
|
sgarg
|
option2.appendChild(text2);
|
785 |
|
|
newField.appendChild(option2);
|
786 |
2404
|
sgarg
|
|
787 |
|
|
if(value == "None"){
|
788 |
|
|
newField.selectedIndex=0;
|
789 |
|
|
} else if(value == "GCMD"){
|
790 |
|
|
newField.selectedIndex=1;
|
791 |
|
|
}
|
792 |
|
|
return newField;
|
793 |
|
|
}
|
794 |
|
|
|
795 |
|
|
function createKeyTypeSelect(name, value) {
|
796 |
|
|
var newField=document.createElement("select");
|
797 |
|
|
newField.setAttribute("name", name);
|
798 |
|
|
var option1=document.createElement("option");
|
799 |
|
|
var text1=document.createTextNode("None");
|
800 |
|
|
option1.appendChild(text1);
|
801 |
|
|
newField.appendChild(option1);
|
802 |
|
|
var option2=document.createElement("option");
|
803 |
|
|
var text2=document.createTextNode("Theme");
|
804 |
|
|
option2.appendChild(text2);
|
805 |
|
|
newField.appendChild(option2);
|
806 |
2144
|
sgarg
|
var option3=document.createElement("option");
|
807 |
2404
|
sgarg
|
var text3=document.createTextNode("Place");
|
808 |
2144
|
sgarg
|
option3.appendChild(text3);
|
809 |
|
|
newField.appendChild(option3)
|
810 |
|
|
var option4=document.createElement("option");
|
811 |
2404
|
sgarg
|
var text4=document.createTextNode("Stratum");
|
812 |
2144
|
sgarg
|
option4.appendChild(text4);
|
813 |
|
|
newField.appendChild(option4);
|
814 |
2404
|
sgarg
|
var option5=document.createElement("option");
|
815 |
|
|
var text5=document.createTextNode("Temporal");
|
816 |
|
|
option5.appendChild(text5);
|
817 |
|
|
newField.appendChild(option5);
|
818 |
|
|
var option6=document.createElement("option");
|
819 |
|
|
var text6=document.createTextNode("Taxonomic");
|
820 |
|
|
option6.appendChild(text6);
|
821 |
|
|
newField.appendChild(option6);
|
822 |
|
|
if(value == "None"){
|
823 |
|
|
newField.selectedIndex=0;
|
824 |
|
|
} else if(value == "Theme"){
|
825 |
|
|
newField.selectedIndex=1;
|
826 |
|
|
} else if(value == "Place"){
|
827 |
|
|
newField.selectedIndex=2;
|
828 |
|
|
} else if(value == "Stratum"){
|
829 |
|
|
newField.selectedIndex=3;
|
830 |
|
|
}else if(value == "Temporal"){
|
831 |
|
|
newField.selectedIndex=4;
|
832 |
|
|
} else if(value == "Taxonomic"){
|
833 |
|
|
newField.selectedIndex=5;
|
834 |
|
|
}
|
835 |
2144
|
sgarg
|
return newField;
|
836 |
|
|
}
|
837 |
2404
|
sgarg
|
|
838 |
|
|
var basicInfoBit = 1;
|
839 |
2863
|
tyburczy
|
var submitterBit = 1;
|
840 |
2404
|
sgarg
|
var dsoBit = 1;
|
841 |
|
|
var apBit = 1;
|
842 |
|
|
var abstractBit = 1;
|
843 |
|
|
var keywordBit = 1;
|
844 |
|
|
var temporalBit = 1;
|
845 |
|
|
var spatialBit = 1;
|
846 |
|
|
var taxonomicBit = 1;
|
847 |
|
|
var methodBit = 1;
|
848 |
|
|
var dscBit = 1;
|
849 |
|
|
var distBit = 1;
|
850 |
3422
|
walbridge
|
var uploadBit = 1;
|
851 |
2404
|
sgarg
|
|
852 |
|
|
function swap(evt, _node, nodeBit){
|
853 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
854 |
|
|
if(evt) {
|
855 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
856 |
2413
|
sgarg
|
|
857 |
|
|
// hack so that this works on safari...
|
858 |
|
|
if(elem.nodeName != 'A'){
|
859 |
|
|
elem=elem.parentNode;
|
860 |
|
|
}
|
861 |
2404
|
sgarg
|
elem.removeChild(elem.firstChild);
|
862 |
|
|
var node = document.getElementById(_node);
|
863 |
|
|
if(nodeBit){
|
864 |
|
|
elem.appendChild(document.createTextNode("Show"));
|
865 |
2413
|
sgarg
|
node.className="hide";
|
866 |
2404
|
sgarg
|
return 0;
|
867 |
|
|
} else {
|
868 |
|
|
elem.appendChild(document.createTextNode("Hide"));
|
869 |
2413
|
sgarg
|
node.className="tables";
|
870 |
2404
|
sgarg
|
return 1;
|
871 |
|
|
}
|
872 |
|
|
}
|
873 |
|
|
}
|
874 |
|
|
|
875 |
|
|
|
876 |
|
|
function handleOther(enable, node){
|
877 |
|
|
var textBox = document.getElementById(node);
|
878 |
|
|
if(enable){
|
879 |
|
|
textBox.removeAttribute("disabled");
|
880 |
|
|
} else {
|
881 |
|
|
textBox.value="";
|
882 |
|
|
textBox.disabled = "true";
|
883 |
|
|
}
|
884 |
|
|
}
|
885 |
2033
|
sgarg
|
function copyContact(){
|
886 |
|
|
var checkBox = document.getElementById("copyCheckBox");
|
887 |
|
|
if(checkBox.checked == true)
|
888 |
|
|
{
|
889 |
|
|
var cnf=document.getElementById("contactNameFirst");
|
890 |
|
|
var onf=document.getElementById("origNameFirst");
|
891 |
|
|
cnf.value = onf.value;
|
892 |
2390
|
sgarg
|
cnf.disabled = "true";
|
893 |
2033
|
sgarg
|
|
894 |
|
|
var cnl=document.getElementById("contactNameLast");
|
895 |
|
|
var onl=document.getElementById("origNameLast");
|
896 |
|
|
cnl.value = onl.value;
|
897 |
2390
|
sgarg
|
cnl.disabled = "true";
|
898 |
2033
|
sgarg
|
|
899 |
|
|
var cno=document.getElementById("contactNameOrg");
|
900 |
|
|
var ono=document.getElementById("origNameOrg");
|
901 |
|
|
cno.value = ono.value;
|
902 |
2390
|
sgarg
|
cno.disabled = "true";
|
903 |
2033
|
sgarg
|
|
904 |
|
|
var ce=document.getElementById("contactEmail");
|
905 |
|
|
var oe=document.getElementById("origEmail");
|
906 |
|
|
ce.value = oe.value;
|
907 |
2390
|
sgarg
|
ce.disabled = "true";
|
908 |
2033
|
sgarg
|
|
909 |
|
|
var cp=document.getElementById("contactPhone");
|
910 |
|
|
var op=document.getElementById("origPhone");
|
911 |
|
|
cp.value = op.value;
|
912 |
2390
|
sgarg
|
cp.disabled = "true";
|
913 |
2033
|
sgarg
|
|
914 |
|
|
var cf=document.getElementById("contactFAX");
|
915 |
|
|
var of=document.getElementById("origFAX");
|
916 |
|
|
cf.value = of.value;
|
917 |
2390
|
sgarg
|
cf.disabled = "true";
|
918 |
2033
|
sgarg
|
|
919 |
|
|
var cd=document.getElementById("contactDelivery");
|
920 |
|
|
var od=document.getElementById("origDelivery");
|
921 |
|
|
cd.value = od.value;
|
922 |
2390
|
sgarg
|
cd.disabled = "true";
|
923 |
2033
|
sgarg
|
|
924 |
|
|
var cc=document.getElementById("contactCity");
|
925 |
|
|
var oc=document.getElementById("origCity");
|
926 |
|
|
cc.value = oc.value;
|
927 |
2390
|
sgarg
|
cc.disabled = "true";
|
928 |
2033
|
sgarg
|
|
929 |
|
|
var cs=document.getElementById("contactState");
|
930 |
|
|
var os=document.getElementById("origState");
|
931 |
2390
|
sgarg
|
cs.options[os.selectedIndex].selected=true;
|
932 |
|
|
cs.disabled = "true";
|
933 |
2033
|
sgarg
|
|
934 |
|
|
var cso=document.getElementById("contactStateOther");
|
935 |
|
|
var oso=document.getElementById("origStateOther");
|
936 |
|
|
cso.value = oso.value;
|
937 |
2390
|
sgarg
|
cso.disabled = "true";
|
938 |
2033
|
sgarg
|
|
939 |
|
|
var cz=document.getElementById("contactZip");
|
940 |
|
|
var oz=document.getElementById("origZip");
|
941 |
|
|
cz.value = oz.value;
|
942 |
2390
|
sgarg
|
cz.disabled = "true";
|
943 |
2033
|
sgarg
|
|
944 |
|
|
var cC=document.getElementById("contactCountry");
|
945 |
|
|
var oC=document.getElementById("origCountry");
|
946 |
|
|
cC.value = oC.value;
|
947 |
2390
|
sgarg
|
cC.disabled = "true";
|
948 |
2033
|
sgarg
|
|
949 |
|
|
} else {
|
950 |
|
|
var cnf=document.getElementById("contactNameFirst");
|
951 |
|
|
cnf.value = "";
|
952 |
2390
|
sgarg
|
cnf.removeAttribute("disabled");
|
953 |
2033
|
sgarg
|
|
954 |
|
|
var cnl=document.getElementById("contactNameLast");
|
955 |
|
|
cnl.value = "";
|
956 |
2390
|
sgarg
|
cnl.removeAttribute("disabled");
|
957 |
2033
|
sgarg
|
|
958 |
|
|
var cno=document.getElementById("contactNameOrg");
|
959 |
|
|
cno.value = "";
|
960 |
2390
|
sgarg
|
cno.removeAttribute("disabled");
|
961 |
2033
|
sgarg
|
|
962 |
|
|
var ce=document.getElementById("contactEmail");
|
963 |
|
|
ce.value = "";
|
964 |
2390
|
sgarg
|
ce.removeAttribute("disabled");
|
965 |
2033
|
sgarg
|
|
966 |
|
|
var cp=document.getElementById("contactPhone");
|
967 |
|
|
cp.value = "";
|
968 |
2390
|
sgarg
|
cp.removeAttribute("disabled");
|
969 |
2033
|
sgarg
|
|
970 |
|
|
var cf=document.getElementById("contactFAX");
|
971 |
|
|
cf.value = "";
|
972 |
2390
|
sgarg
|
cf.removeAttribute("disabled");
|
973 |
2033
|
sgarg
|
|
974 |
|
|
var cd=document.getElementById("contactDelivery");
|
975 |
|
|
cd.value = "";
|
976 |
2390
|
sgarg
|
cd.removeAttribute("disabled");
|
977 |
2033
|
sgarg
|
|
978 |
|
|
var cc=document.getElementById("contactCity");
|
979 |
|
|
cc.value = "";
|
980 |
2390
|
sgarg
|
cc.removeAttribute("disabled");
|
981 |
2033
|
sgarg
|
|
982 |
2390
|
sgarg
|
var cs=document.getElementById("contactState");
|
983 |
|
|
cs.options[0].selected = true;
|
984 |
|
|
cs.removeAttribute("disabled");
|
985 |
|
|
|
986 |
2033
|
sgarg
|
var cso=document.getElementById("contactStateOther");
|
987 |
|
|
cso.value = "";
|
988 |
2390
|
sgarg
|
cso.removeAttribute("disabled");
|
989 |
2033
|
sgarg
|
|
990 |
|
|
var cz=document.getElementById("contactZip");
|
991 |
|
|
cz.value = "";
|
992 |
2390
|
sgarg
|
cz.removeAttribute("disabled");
|
993 |
2033
|
sgarg
|
|
994 |
|
|
var cC=document.getElementById("contactCountry");
|
995 |
|
|
cC.value = "";
|
996 |
2390
|
sgarg
|
cC.removeAttribute("disabled");
|
997 |
2033
|
sgarg
|
}
|
998 |
|
|
}
|
999 |
|
|
|
1000 |
3422
|
walbridge
|
// include source for Multiple file uploader:
|
1001 |
|
|
// http://the-stickman.com/web-development/javascript/
|
1002 |
|
|
|
1003 |
|
|
function MultiSelector( list_target, max ){
|
1004 |
|
|
|
1005 |
|
|
this.list_target = list_target;
|
1006 |
|
|
this.count = 0;
|
1007 |
|
|
this.id = 0;
|
1008 |
|
|
var fcount = document.getElementById("fileCount");
|
1009 |
|
|
if (fcount.value > 0) {
|
1010 |
|
|
this.id = fcount.value;
|
1011 |
|
|
}
|
1012 |
|
|
|
1013 |
|
|
if( max ){
|
1014 |
|
|
this.max = max;
|
1015 |
|
|
} else {
|
1016 |
|
|
this.max = -1;
|
1017 |
|
|
};
|
1018 |
|
|
|
1019 |
|
|
/**
|
1020 |
|
|
* Add a new file input element
|
1021 |
|
|
*/
|
1022 |
|
|
this.addElement = function( element ){
|
1023 |
|
|
|
1024 |
|
|
// Make sure it's a file input element
|
1025 |
|
|
if( element.tagName == 'INPUT' && element.type == 'file' ){
|
1026 |
|
|
// Element name -- what number am I?
|
1027 |
|
|
element.name = 'file_' + this.id++;
|
1028 |
|
|
|
1029 |
|
|
// Add reference to this object
|
1030 |
|
|
element.multi_selector = this;
|
1031 |
|
|
|
1032 |
|
|
// What to do when a file is selected
|
1033 |
|
|
element.onchange = function(){
|
1034 |
|
|
// Increment file counter
|
1035 |
|
|
var fileCount = incrementCount("fileCount");
|
1036 |
|
|
|
1037 |
|
|
// Clean up file text
|
1038 |
|
|
var comment_element = document.getElementById( 'file_comment' );
|
1039 |
|
|
if (comment_element){
|
1040 |
|
|
comment_element.parentNode.removeChild(comment_element);
|
1041 |
|
|
}
|
1042 |
|
|
|
1043 |
|
|
// New file input
|
1044 |
|
|
var new_element = document.createElement( 'input' );
|
1045 |
|
|
new_element.type = 'file';
|
1046 |
|
|
|
1047 |
|
|
// Add new element
|
1048 |
|
|
this.parentNode.insertBefore( new_element, this );
|
1049 |
|
|
|
1050 |
|
|
// Apply 'update' to element
|
1051 |
|
|
this.multi_selector.addElement( new_element );
|
1052 |
|
|
|
1053 |
|
|
// Update list
|
1054 |
|
|
this.multi_selector.addListRow( this );
|
1055 |
|
|
|
1056 |
|
|
// Hide this: we can't use display:none because Safari doesn't like it
|
1057 |
|
|
this.style.position = 'absolute';
|
1058 |
|
|
this.style.left = '-1000px';
|
1059 |
|
|
|
1060 |
|
|
};
|
1061 |
|
|
|
1062 |
|
|
// If we've reached maximum number, disable input element
|
1063 |
|
|
if( this.max != -1 && this.count >= this.max ){
|
1064 |
|
|
element.disabled = true;
|
1065 |
|
|
};
|
1066 |
|
|
// File element counter
|
1067 |
|
|
this.count++;
|
1068 |
|
|
|
1069 |
|
|
// Most recent element
|
1070 |
|
|
this.current_element = element;
|
1071 |
|
|
|
1072 |
|
|
} else {
|
1073 |
|
|
// This can only be applied to file input elements!
|
1074 |
|
|
alert( 'Error: not a file input element' );
|
1075 |
|
|
};
|
1076 |
|
|
|
1077 |
|
|
};
|
1078 |
|
|
|
1079 |
|
|
/**
|
1080 |
|
|
* Add a new row to the list of files
|
1081 |
|
|
*/
|
1082 |
|
|
this.addListRow = function( element ){
|
1083 |
|
|
|
1084 |
|
|
// Row div
|
1085 |
|
|
var new_row = document.createElement( 'div' );
|
1086 |
|
|
|
1087 |
|
|
// Delete button
|
1088 |
|
|
var new_row_button = document.createElement( 'input' );
|
1089 |
|
|
new_row_button.type = 'button';
|
1090 |
|
|
new_row_button.value = 'Delete';
|
1091 |
|
|
|
1092 |
|
|
// References
|
1093 |
|
|
new_row.element = element;
|
1094 |
|
|
|
1095 |
|
|
// Delete function
|
1096 |
|
|
new_row_button.onclick= function(){
|
1097 |
|
|
// Remove element from form
|
1098 |
|
|
this.parentNode.element.parentNode.removeChild( this.parentNode.element );
|
1099 |
|
|
|
1100 |
|
|
// Remove this row from the list
|
1101 |
|
|
this.parentNode.parentNode.removeChild( this.parentNode );
|
1102 |
|
|
// Decrement counter
|
1103 |
|
|
this.parentNode.element.multi_selector.count--;
|
1104 |
|
|
|
1105 |
|
|
// Re-enable input element (if it's disabled)
|
1106 |
|
|
this.parentNode.element.multi_selector.current_element.disabled = false;
|
1107 |
|
|
|
1108 |
|
|
// Appease Safari
|
1109 |
|
|
// without it Safari wants to reload the browser window
|
1110 |
|
|
// which nixes your already queued uploads
|
1111 |
|
|
return false;
|
1112 |
|
|
};
|
1113 |
|
|
|
1114 |
|
|
// Set row value
|
1115 |
|
|
new_row.innerHTML = element.value + " ";
|
1116 |
|
|
|
1117 |
|
|
// Add button
|
1118 |
|
|
new_row.appendChild( new_row_button );
|
1119 |
|
|
|
1120 |
|
|
// Add it to the list
|
1121 |
|
|
this.list_target.appendChild( new_row );
|
1122 |
|
|
|
1123 |
|
|
};
|
1124 |
|
|
|
1125 |
|
|
};
|
1126 |
|
|
|
1127 |
|
|
function deleteFile(evt, file) {
|
1128 |
|
|
evt = (evt) ? evt : ((window.event) ? window.event : null);
|
1129 |
|
|
if (evt) {
|
1130 |
|
|
// equalize W3C/IE models to get event target reference
|
1131 |
|
|
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
1132 |
|
|
var element = document.getElementById("file_element");
|
1133 |
|
|
if (elem) {
|
1134 |
|
|
try {
|
1135 |
|
|
// Add a new hidden form element to delete exisiting files
|
1136 |
|
|
// FIXME: this needs to find the matching file element, so if our node
|
1137 |
|
|
// has 'test.txt' as the filename, find the input hidden value="test.txt"
|
1138 |
|
|
//element.parentNode.removeChild( element );
|
1139 |
|
|
|
1140 |
|
|
var delete_input = document.createElement( 'input' );
|
1141 |
|
|
delete_input.type = 'hidden';
|
1142 |
|
|
delete_input.value = file;
|
1143 |
|
|
elem.appendChild( delete_input );
|
1144 |
|
|
|
1145 |
|
|
// Remove this row from the list
|
1146 |
|
|
elem.parentNode.parentNode.removeChild( elem.parentNode );
|
1147 |
|
|
|
1148 |
|
|
// Decrement counter
|
1149 |
|
|
elem.parentNode.element.multi_selector.count--;
|
1150 |
|
|
|
1151 |
|
|
// Re-enable input element (if it's disabled)
|
1152 |
|
|
elem.parentNode.element.multi_selector.current_element.disabled = false;
|
1153 |
|
|
}
|
1154 |
|
|
catch(e) {
|
1155 |
|
|
var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
|
1156 |
|
|
alert("Error:\n" + msg);
|
1157 |
|
|
return;
|
1158 |
|
|
}
|
1159 |
|
|
}
|
1160 |
|
|
}
|
1161 |
|
|
}
|
1162 |
|
|
|
1163 |
1982
|
jones
|
</script>
|
1164 |
|
|
|
1165 |
1929
|
brooke
|
[% IF form != 're_entry' %]
|
1166 |
2390
|
sgarg
|
|
1167 |
|
|
|
1168 |
2404
|
sgarg
|
<table class="intro" cellpadding="3" cellspacing="0">
|
1169 |
2390
|
sgarg
|
|
1170 |
2453
|
sgarg
|
<tr><td align="left"><span class="emphasis">Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</td></tr>
|
1171 |
2404
|
sgarg
|
<tr><td align="left"><span class="regtext">Use this form to submit a new data set description for
|
1172 |
2868
|
tyburczy
|
inclusion in the [%IF cfg =='nceas'%] repository [% ELSE %] registry [% END %].</span>
|
1173 |
2884
|
tyburczy
|
[%IF cfg =='esa' %]<span class="redbold">This metadata registry is ONLY for entries associated with articles for ESA publications.</span>
|
1174 |
2868
|
tyburczy
|
<span class="regtext"> For those wishing to make public metadata entries not associated with
|
1175 |
|
|
ESA, <a href="http://knb.ecoinformatics.org">The Knowledge Network for Biocomplexity</a> runs a
|
1176 |
|
|
metadata registry available to the greater scientific community.
|
1177 |
|
|
</span>
|
1178 |
|
|
[% END %]
|
1179 |
|
|
</td></tr>
|
1180 |
2390
|
sgarg
|
<tr><td></td></tr>
|
1181 |
|
|
<tr><td align="left"><span class="regtext">Please have a look at the
|
1182 |
1982
|
jones
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide" target="guide">
|
1183 |
2453
|
sgarg
|
<span class="boldlink">Guide for Completing the Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</span></a>
|
1184 |
2404
|
sgarg
|
before you start filling in this form. Also, use your browser's
|
1185 |
1929
|
brooke
|
Reload/Refresh function to make sure you see the latest version of this
|
1186 |
2390
|
sgarg
|
page.</span></td></tr>
|
1187 |
|
|
<tr><td></td></tr>
|
1188 |
2868
|
tyburczy
|
|
1189 |
2884
|
tyburczy
|
[%IF cfg =='esa' %]
|
1190 |
2868
|
tyburczy
|
<tr><td align="left"><span class="regtext">After you submit, watch for e-mail
|
1191 |
|
|
sent by the ESA moderator regarding whether your data set description needs revision, has been denied or has been accepted.</span>
|
1192 |
|
|
</td></tr>
|
1193 |
|
|
<tr><td></td></tr>
|
1194 |
|
|
[% END %]
|
1195 |
|
|
|
1196 |
2390
|
sgarg
|
<tr><td align="left"><span class="regtext">If you have any questions, comments or problems
|
1197 |
1929
|
brooke
|
regarding this form, please contact [% adminname %] at
|
1198 |
2413
|
sgarg
|
<a href="mailto:[% recipient %]"><span class="boldlink">[% recipient %]</span></a></span>.
|
1199 |
2390
|
sgarg
|
</td></tr><tr><td></td></tr>
|
1200 |
1929
|
brooke
|
[% ELSE %]
|
1201 |
2413
|
sgarg
|
|
1202 |
|
|
|
1203 |
|
|
<table class="intro" cellpadding="3" cellspacing="0">
|
1204 |
2453
|
sgarg
|
<tr><td align="left"><span class="regtext">Use this page to edit the data set description that you submitted earlier to the [%IF cfg =='nceas'%]
|
1205 |
|
|
repository [% ELSE %] registry [% END %].
|
1206 |
2413
|
sgarg
|
[%IF docid !=''%]
|
1207 |
|
|
<br>The ID of this data set is: <span class="boldlink"><a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
|
1208 |
|
|
</span>
|
1209 |
|
|
[%END%]
|
1210 |
|
|
</span></td></tr>
|
1211 |
2390
|
sgarg
|
<tr><td></td></tr>
|
1212 |
|
|
<tr><td align="left"><span class="regtext">Please have a look at the
|
1213 |
1982
|
jones
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide" target="guide">
|
1214 |
2453
|
sgarg
|
<span class="boldlink">Guide for Completing the Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</span></a>
|
1215 |
2413
|
sgarg
|
for help with filling in this form.</span></td</tr>
|
1216 |
2390
|
sgarg
|
<tr><td></td></tr>
|
1217 |
|
|
<tr><td align="left"><span class="regtext">If you have any questions, comments or problems
|
1218 |
1929
|
brooke
|
regarding this form, please contact [% adminname %] at
|
1219 |
2413
|
sgarg
|
<a href="mailto:[% recipient %]"><span class="boldling">[% recipient %]</span></a>.</span>
|
1220 |
|
|
</td></tr><tr><td></td></tr>
|
1221 |
1929
|
brooke
|
[% END %]
|
1222 |
2413
|
sgarg
|
|
1223 |
|
|
|
1224 |
2404
|
sgarg
|
<tr><td align="left"><span class="label">*Denotes a required field.</span></td></tr>
|
1225 |
2390
|
sgarg
|
<tr><td></td></tr>
|
1226 |
|
|
|
1227 |
|
|
<tr><td></td></tr>
|
1228 |
|
|
|
1229 |
|
|
</table>
|
1230 |
|
|
|
1231 |
|
|
|
1232 |
3422
|
walbridge
|
<form action="@cgi-prefix@/register-dataset.cgi" enctype="multipart/form-data" method="post">
|
1233 |
1929
|
brooke
|
<input type="hidden" name="cfg" value="[% cfg %]">
|
1234 |
|
|
<input type="hidden" name="docid" value="[% docid %]">
|
1235 |
|
|
<input type="hidden" name="stage" value="insert">
|
1236 |
2281
|
sgarg
|
<input type="hidden" name="showSiteList" value="[% showSiteList %]">
|
1237 |
|
|
<input type="hidden" name="showWgList" value="[% showWgList %]">
|
1238 |
|
|
<input type="hidden" name="showOrganization" value="[% showOrganization %]">
|
1239 |
2282
|
sgarg
|
<input type="hidden" name="lsite" value="[% lsite %]">
|
1240 |
2281
|
sgarg
|
<input type="hidden" name="usite" value="[% usite %]">
|
1241 |
2138
|
sgarg
|
<input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
|
1242 |
2150
|
sgarg
|
<input type="hidden" name="hasTemporal" value="[% hasTemporal %]">
|
1243 |
|
|
<input type="hidden" name="hasSpatial" value="[% hasSpatial %]">
|
1244 |
|
|
<input type="hidden" name="hasTaxonomic" value="[% hasTaxonomic %]">
|
1245 |
|
|
<input type="hidden" name="hasMethod" value="[% hasMethod %]">
|
1246 |
3422
|
walbridge
|
<input type="hidden" name="hasUpload" value="[% hasUpload %]">
|
1247 |
2150
|
sgarg
|
<input type="hidden" name="temporalRequired" value="[% temporalRequired %]">
|
1248 |
2390
|
sgarg
|
<input type="hidden" name="spatialRequired" value="[% spatialRequired %]">
|
1249 |
2689
|
sgarg
|
<input type="hidden" name="contactEmailAddressRequired" value="[% contactEmailAddressRequired %]">
|
1250 |
2390
|
sgarg
|
|
1251 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1252 |
2863
|
tyburczy
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">NAME OF SUBMITTER
|
1253 |
|
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#Submitter" target="guide">
|
1254 |
2404
|
sgarg
|
<span class="smalltext">(What's this?)</span></a></td>
|
1255 |
2863
|
tyburczy
|
<td class="rightCol"><span><a onClick="submitterBit=swap(event, 'submitterTable', submitterBit)" style="cursor:pointer">Hide</a></span></td>
|
1256 |
2404
|
sgarg
|
</tr>
|
1257 |
|
|
</table>
|
1258 |
|
|
|
1259 |
2863
|
tyburczy
|
<table class="tables" cellpadding="5" cellspacing="0" id="submitterTable">
|
1260 |
2404
|
sgarg
|
<tr class="sectbody" id="firstName"><td class="rightCol"><span class="label">*First Name</span><td colspan="5"><input type="TEXT" name="providerGivenName" class="shortwidth" value="[%providerGivenName%]">
|
1261 |
2390
|
sgarg
|
</td></tr>
|
1262 |
2404
|
sgarg
|
<tr class="sectbody" id="lastName"><td class="rightCol"><span class="label">*Last Name</span><td colspan="5"><input type="TEXT" name="providerSurName" class="shortwidth" value="[%providerSurName%]">
|
1263 |
2390
|
sgarg
|
</td></tr>
|
1264 |
2863
|
tyburczy
|
</table>
|
1265 |
2390
|
sgarg
|
|
1266 |
2863
|
tyburczy
|
|
1267 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1268 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">BASIC INFORMATION
|
1269 |
|
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#BasicInformation" target="guide">
|
1270 |
|
|
<span class="smalltext">(What's this?)</span></a></td>
|
1271 |
|
|
<td class="rightCol"><span><a onClick="basicInfoBit=swap(event, 'basicInfoTable', basicInfoBit)" style="cursor:pointer">Hide</a></span></td>
|
1272 |
|
|
</tr>
|
1273 |
|
|
</table>
|
1274 |
|
|
|
1275 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="basicInfoTable">
|
1276 |
2404
|
sgarg
|
<tr class="sectbody" id="title"><td class="rightCol"><span class="label">*Data Set Title</span></td><td colspan="5"><input type="TEXT" name="title" value="[%title%]" class="longwidth">
|
1277 |
2390
|
sgarg
|
</td></tr>
|
1278 |
|
|
|
1279 |
|
|
[% IF showSiteList == 'true' %]
|
1280 |
2404
|
sgarg
|
<tr class="sectbody" id="sitelist"><td class="rightCol"><span class="label">*[% usite %] Name</span></td>
|
1281 |
2413
|
sgarg
|
<td colspan="5"><select name="site" class="longwidth">
|
1282 |
1929
|
brooke
|
[% IF form == 're_entry' %]
|
1283 |
|
|
<option selected>[%site%]</option>
|
1284 |
|
|
[% ELSE %]
|
1285 |
|
|
<option>Select your [% lsite %] here.</option>
|
1286 |
|
|
[% END %]
|
1287 |
|
|
[% FOREACH site = siteList %]
|
1288 |
|
|
<option>[% site %]</option>
|
1289 |
|
|
[% END %]
|
1290 |
2390
|
sgarg
|
</select></td></tr>
|
1291 |
1973
|
jones
|
[% END %]
|
1292 |
2390
|
sgarg
|
|
1293 |
|
|
[% IF showWgList == 'true' %]
|
1294 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">*NCEAS Project(s):</span></td>
|
1295 |
|
|
<td colspan="5"><select name="wg" multiple="multiple" size="5" class="longwidth">
|
1296 |
1974
|
jones
|
[% FOREACH project = projects %]
|
1297 |
2001
|
jones
|
[% SET pname = $project.3 %]
|
1298 |
|
|
[% IF pname.length > 50 %]
|
1299 |
|
|
[% SET sname = $project.4 %]
|
1300 |
|
|
[% END %]
|
1301 |
2041
|
sgarg
|
[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
|
1302 |
|
|
[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
|
1303 |
1974
|
jones
|
[% SET sel = '' %]
|
1304 |
|
|
[% FOREACH group = wg %]
|
1305 |
2001
|
jones
|
[% IF group == value %]
|
1306 |
1974
|
jones
|
[% SET sel = 'selected="selected"' %]
|
1307 |
|
|
[% END %]
|
1308 |
|
|
[% END %]
|
1309 |
2001
|
jones
|
<option value="[% value %]" [% sel %]>[% label %]</option>
|
1310 |
1974
|
jones
|
[% END %]
|
1311 |
2390
|
sgarg
|
</select></td></tr>
|
1312 |
1973
|
jones
|
[% END %]
|
1313 |
2258
|
jones
|
[% IF showOrganization == 'true' %]
|
1314 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">*Organization Name</span></td>
|
1315 |
|
|
<td colspan="5"><input type="TEXT" name="site" class="longwidth" value="[%site%]"></td></tr>
|
1316 |
2038
|
jones
|
[% END %]
|
1317 |
2542
|
sgarg
|
</table>
|
1318 |
2404
|
sgarg
|
|
1319 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1320 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">PRINCIPAL DATA SET OWNER </span>
|
1321 |
|
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetOriginator"
|
1322 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
1323 |
|
|
<td class="rightCol"><span><a onClick="dsoBit=swap(event, 'dsoTable', dsoBit)" style="cursor:pointer">Hide</a></span></td>
|
1324 |
|
|
</tr>
|
1325 |
|
|
</table>
|
1326 |
|
|
|
1327 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="dsoTable">
|
1328 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">*First Name</span></td>
|
1329 |
|
|
<td colspan="5"><input type="TEXT" name="origNamefirst0" class="shortwidth" id="origNameFirst" value="[%origNamefirst0%]"></td></tr>
|
1330 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">*Last Name</span></td>
|
1331 |
|
|
<td colspan="5"><input type="TEXT" name="origNamelast0" class="shortwidth" id="origNameLast" value="[%origNamelast0%]"></td></tr>
|
1332 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Organization Name</span></td>
|
1333 |
|
|
<td colspan="5"><input type="TEXT" name="origNameOrg" class="longwidth" id="origNameOrg" value="[%origNameOrg%]"></td></tr>
|
1334 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">E-Mail</span></td>
|
1335 |
|
|
<td colspan="5"><input type="TEXT" name="origEmail" class="shortwidth" id="origEmail" value="[%origEmail%]"></td></tr>
|
1336 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Phone</span></td>
|
1337 |
|
|
<td colspan="5"><input type="TEXT" name="origPhone" class="shortwidth" id="origPhone" value="[%origPhone%]"></td></tr>
|
1338 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">FAX</span></td>
|
1339 |
|
|
<td colspan="5"><input type="TEXT" name="origFAX" class="shortwidth" id="origFAX" value="[%origFAX%]"></td></tr>
|
1340 |
|
|
|
1341 |
|
|
<tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
|
1342 |
|
|
<td colspan="5"><textarea id="origDelivery" name="origDelivery" class="longwidth">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span>
|
1343 |
|
|
</td></tr>
|
1344 |
2390
|
sgarg
|
|
1345 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">City</span></td>
|
1346 |
|
|
<td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" class="shortwidth"></td></tr>
|
1347 |
2510
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">U.S. State or Territory</span></td>
|
1348 |
2404
|
sgarg
|
<td colspan="5"><select name="origState" id="origState" class="shortwidth">
|
1349 |
1929
|
brooke
|
[% IF form == 're_entry' %]
|
1350 |
|
|
<option selected>[%origState%]</option>
|
1351 |
|
|
[% ELSE %]
|
1352 |
2510
|
sgarg
|
<option>Select state or territory here.</option>
|
1353 |
1929
|
brooke
|
[% END %]
|
1354 |
|
|
<option>Alabama</option>
|
1355 |
|
|
<option>Alaska</option>
|
1356 |
|
|
<option>American Samoa</option>
|
1357 |
|
|
<option>Arizona</option>
|
1358 |
|
|
<option>Arkansas</option>
|
1359 |
|
|
<option>California</option>
|
1360 |
|
|
<option>Colorado</option>
|
1361 |
|
|
<option>Connecticut</option>
|
1362 |
|
|
<option>Delaware</option>
|
1363 |
2284
|
sgarg
|
<option>District of Columbia</option>
|
1364 |
1929
|
brooke
|
<option>Florida</option>
|
1365 |
|
|
<option>Georgia</option>
|
1366 |
|
|
<option>Guam</option>
|
1367 |
|
|
<option>Hawaii</option>
|
1368 |
|
|
<option>Idaho</option>
|
1369 |
|
|
<option>Illinois</option>
|
1370 |
|
|
<option>Indiana</option>
|
1371 |
|
|
<option>Iowa</option>
|
1372 |
|
|
<option>Kansas</option>
|
1373 |
|
|
<option>Kentucky</option>
|
1374 |
|
|
<option>Louisiana</option>
|
1375 |
|
|
<option>Maine</option>
|
1376 |
|
|
<option>Maryland</option>
|
1377 |
|
|
<option>Massachusetts</option>
|
1378 |
|
|
<option>Michigan</option>
|
1379 |
|
|
<option>Minnesota</option>
|
1380 |
|
|
<option>Mississippi</option>
|
1381 |
|
|
<option>Missouri</option>
|
1382 |
|
|
<option>Montana</option>
|
1383 |
|
|
<option>Nebraska</option>
|
1384 |
|
|
<option>Nevada</option>
|
1385 |
|
|
<option>New Hampshire</option>
|
1386 |
|
|
<option>New Jersey</option>
|
1387 |
|
|
<option>New Mexico</option>
|
1388 |
|
|
<option>New York</option>
|
1389 |
|
|
<option>North Carolina</option>
|
1390 |
|
|
<option>North Dakota</option>
|
1391 |
|
|
<option>Northern Mariana Islands</option>
|
1392 |
|
|
<option>Ohio</option>
|
1393 |
|
|
<option>Oklahoma</option>
|
1394 |
|
|
<option>Oregon</option>
|
1395 |
|
|
<option>Pennsylvania</option>
|
1396 |
|
|
<option>Puerto Rico</option>
|
1397 |
|
|
<option>Rhode Island</option>
|
1398 |
|
|
<option>South Carolina</option>
|
1399 |
|
|
<option>South Dakota</option>
|
1400 |
|
|
<option>Tennessee</option>
|
1401 |
|
|
<option>Texas</option>
|
1402 |
|
|
<option>Utah</option>
|
1403 |
|
|
<option>Vermont</option>
|
1404 |
|
|
<option>Virgin Islands</option>
|
1405 |
|
|
<option>Virginia</option>
|
1406 |
|
|
<option>Washington</option>
|
1407 |
|
|
<option>West Virginia</option>
|
1408 |
|
|
<option>Wisconsin</option>
|
1409 |
|
|
<option>Wyoming</option>
|
1410 |
2404
|
sgarg
|
</select></td></tr>
|
1411 |
|
|
|
1412 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Other State/Province</span></td>
|
1413 |
|
|
<td colspan="5"><input type="TEXT" name="origStateOther" class="shortwidth" id="origStateOther" value="[%origStateOther%]"></td></tr>
|
1414 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Postal Code</span></td>
|
1415 |
|
|
<td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" class="shortwidth"></td></tr>
|
1416 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Country</span></td>
|
1417 |
|
|
<td colspan="5"><input type="TEXT" name="origCountry" class="shortwidth" id="origCountry" value="[%origCountry%]"></td></tr>
|
1418 |
|
|
</table>
|
1419 |
|
|
|
1420 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1421 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">ASSOCIATED PARTIES </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#AdditionalOriginators"
|
1422 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
1423 |
|
|
<td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td>
|
1424 |
|
|
</tr>
|
1425 |
|
|
</table>
|
1426 |
|
|
|
1427 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="apTable">
|
1428 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
|
1429 |
2390
|
sgarg
|
<td colspan="5">
|
1430 |
2404
|
sgarg
|
<input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
|
1431 |
2390
|
sgarg
|
|
1432 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
|
1433 |
|
|
<td colspan="5">
|
1434 |
|
|
<input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
|
1435 |
2390
|
sgarg
|
|
1436 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
|
1437 |
|
|
<td colspan="5">
|
1438 |
|
|
<select id="AORole" name="aoRole" class="shortwidth">
|
1439 |
|
|
<option>Co-owner</option>
|
1440 |
1929
|
brooke
|
<option>Custodian/Steward</option>
|
1441 |
|
|
<option>Metadata Provider</option>
|
1442 |
2404
|
sgarg
|
<option>User</option>
|
1443 |
|
|
</select>
|
1444 |
|
|
</td>
|
1445 |
|
|
</tr>
|
1446 |
|
|
|
1447 |
|
|
<tr id="addAssociatedParty" class="sectbody">
|
1448 |
2390
|
sgarg
|
<td></td>
|
1449 |
|
|
<td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
|
1450 |
2404
|
sgarg
|
onClick="addAssociatedParty()"></td></tr>
|
1451 |
|
|
|
1452 |
|
|
[% numAO = 0 %]
|
1453 |
3422
|
walbridge
|
[% IF aoCount %]
|
1454 |
2404
|
sgarg
|
[% numAO = aoCount %]
|
1455 |
|
|
<tr class="sectbody" id="aoHRRow">
|
1456 |
|
|
<td colSpan="6">
|
1457 |
|
|
<hr width = "85%"/>
|
1458 |
|
|
</td>
|
1459 |
|
|
</tr>
|
1460 |
|
|
[% END %]
|
1461 |
|
|
[% cnt = 1 %]
|
1462 |
|
|
[% WHILE cnt < numAO%]
|
1463 |
|
|
|
1464 |
|
|
<tr class="sectbody">
|
1465 |
|
|
[% SET aofn = "origNamefirst${cnt}" %]
|
1466 |
|
|
[% SET aoln = "origNamelast${cnt}" %]
|
1467 |
|
|
[% SET aorole = "origRole${cnt}" %]
|
1468 |
|
|
|
1469 |
|
|
<td class="rightCol">
|
1470 |
|
|
<a style="cursor:pointer">
|
1471 |
|
|
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
|
1472 |
|
|
src="@systemidserver@@html-path@/style/images/previous.gif"
|
1473 |
|
|
alt="Move Up" border="0"/>
|
1474 |
|
|
</a>
|
1475 |
|
|
<a style="cursor:pointer">
|
1476 |
|
|
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
|
1477 |
|
|
src="@systemidserver@@html-path@/style/images/next.gif"
|
1478 |
|
|
alt="Move Down" border="0"/>
|
1479 |
|
|
</a>
|
1480 |
|
|
<a style="cursor:pointer">
|
1481 |
|
|
<img src="@systemidserver@@html-path@/style/images/delete.gif"
|
1482 |
|
|
onClick="delRow(event)" alt="Delete" border="0"/>
|
1483 |
|
|
</a>
|
1484 |
|
|
</td>
|
1485 |
|
|
<td colspan="5" align ="left" style="cursor:pointer"
|
1486 |
|
|
onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
|
1487 |
|
|
[%$aofn%] [%$aoln%] (Role: [%$aorole%])
|
1488 |
|
|
<input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
|
1489 |
|
|
<input name="aoLastName" type="hidden" value="[%$aoln%]"/>
|
1490 |
|
|
<input name="aoRole" type="hidden" value="[%$aorole%]"/>
|
1491 |
|
|
</td>
|
1492 |
|
|
</tr>
|
1493 |
|
|
[% cnt = cnt + 1 %]
|
1494 |
|
|
[% END %]
|
1495 |
|
|
<input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
|
1496 |
|
|
<tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
|
1497 |
|
|
</table>
|
1498 |
|
|
|
1499 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1500 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">DATA SET ABSTRACT </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetAbstract"
|
1501 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></td>
|
1502 |
|
|
<td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>
|
1503 |
|
|
</tr>
|
1504 |
|
|
</table>
|
1505 |
|
|
|
1506 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">
|
1507 |
2529
|
sgarg
|
<tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span><br><span class="regtext">(max. 350 words)</span></td>
|
1508 |
2390
|
sgarg
|
<td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
|
1509 |
2404
|
sgarg
|
</table>
|
1510 |
|
|
|
1511 |
2138
|
sgarg
|
[% IF hasKeyword == 'true' %]
|
1512 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1513 |
2413
|
sgarg
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">KEYWORD INFORMATION <span class="label"> </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#KeywordInformation"
|
1514 |
2404
|
sgarg
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
1515 |
|
|
<td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
|
1516 |
|
|
</tr>
|
1517 |
|
|
</table>
|
1518 |
|
|
|
1519 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">
|
1520 |
2413
|
sgarg
|
<tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
|
1521 |
|
|
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
|
1522 |
|
|
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
|
1523 |
|
|
|
1524 |
|
|
<tr class="sectbody">
|
1525 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Keyword</span></td>
|
1526 |
2390
|
sgarg
|
<td colspan="5">
|
1527 |
2404
|
sgarg
|
<input name="keyword" id="keyword" class="shortwidth"></td></tr>
|
1528 |
|
|
|
1529 |
|
|
|
1530 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
|
1531 |
2390
|
sgarg
|
<td colspan="5">
|
1532 |
2404
|
sgarg
|
<select name="keywordType" id="keywordType" class="shortwidth">
|
1533 |
2390
|
sgarg
|
<option>None</option>
|
1534 |
|
|
<option>Theme</option>
|
1535 |
|
|
<option>Place</option>
|
1536 |
|
|
<option>Stratum</option>
|
1537 |
|
|
<option>Temporal</option>
|
1538 |
|
|
<option>Taxonomic</option>
|
1539 |
2404
|
sgarg
|
</select>
|
1540 |
|
|
</td></tr>
|
1541 |
2390
|
sgarg
|
|
1542 |
2404
|
sgarg
|
<tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
|
1543 |
2390
|
sgarg
|
<td colspan="5">
|
1544 |
|
|
|
1545 |
2404
|
sgarg
|
<select name="keywordTh" id="keywordTh" class="shortwidth">
|
1546 |
|
|
<option>None</option>
|
1547 |
|
|
<option>GCMD</option>
|
1548 |
|
|
</select>
|
1549 |
2390
|
sgarg
|
|
1550 |
2404
|
sgarg
|
<!-- <input type="radio" name="kwTh[%cnt%]" value="none"><span class="regtext">None </span>
|
1551 |
|
|
<input type="radio" name="kwTh[%cnt%]" value="GCMD"><span class="regtext">GCMD </span> -->
|
1552 |
2390
|
sgarg
|
|
1553 |
|
|
|
1554 |
|
|
</td></tr>
|
1555 |
|
|
|
1556 |
2404
|
sgarg
|
<tr id="addKeyword" class="sectbody">
|
1557 |
|
|
<td></td>
|
1558 |
|
|
<td colspan="5" align="left">
|
1559 |
|
|
<input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
|
1560 |
|
|
|
1561 |
|
|
|
1562 |
|
|
[% numKey = 0 %]
|
1563 |
3422
|
walbridge
|
[% IF keyCount %]
|
1564 |
2404
|
sgarg
|
[% numKey = keyCount %]
|
1565 |
|
|
[% numAO = aoCount %]
|
1566 |
|
|
<tr class="sectbody" id="keywordHRRow">
|
1567 |
|
|
<td colSpan="6">
|
1568 |
|
|
<hr width = "85%"/>
|
1569 |
|
|
</td>
|
1570 |
|
|
</tr>
|
1571 |
|
|
[% END %]
|
1572 |
|
|
<input type="hidden" name="keyCount" value="[%numKey%]"
|
1573 |
|
|
id="keyCount">
|
1574 |
|
|
|
1575 |
|
|
[% cnt = 1 %]
|
1576 |
|
|
[% WHILE cnt < numKey %]
|
1577 |
|
|
|
1578 |
|
|
<tr class="sectbody">
|
1579 |
|
|
<td class="rightCol">
|
1580 |
|
|
<a style="cursor:pointer">
|
1581 |
|
|
<img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
|
1582 |
|
|
src="@systemidserver@@html-path@/style/images/previous.gif"
|
1583 |
|
|
alt="Move Up" border="0"/>
|
1584 |
|
|
</a>
|
1585 |
|
|
<a style="cursor:pointer">
|
1586 |
|
|
<img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
|
1587 |
|
|
src="@systemidserver@@html-path@/style/images/next.gif"
|
1588 |
|
|
alt="Move Down" border="0"/>
|
1589 |
|
|
</a>
|
1590 |
|
|
<a style="cursor:pointer">
|
1591 |
|
|
<img src="@systemidserver@@html-path@/style/images/delete.gif"
|
1592 |
|
|
onClick="delRow(event)" alt="Delete" border="0"/>
|
1593 |
|
|
</a>
|
1594 |
|
|
</td>
|
1595 |
|
|
[% SET keyword = "keyword${cnt}" %]
|
1596 |
|
|
[% SET keywordType = "kwType${cnt}" %]
|
1597 |
|
|
[% SET keywordTh = "kwTh${cnt}" %]
|
1598 |
|
|
<td colspan="5" align ="left" style="cursor:pointer"
|
1599 |
|
|
onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
|
1600 |
|
|
[%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
|
1601 |
|
|
<input name="keyword" type="hidden" value="[%$keyword%]"/>
|
1602 |
|
|
<input name="keywordType" type="hidden" value="[%$keywordType%]"/>
|
1603 |
|
|
<input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
|
1604 |
|
|
</td>
|
1605 |
|
|
</tr>
|
1606 |
|
|
[% cnt = cnt + 1 %]
|
1607 |
|
|
[% END %]
|
1608 |
|
|
<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
|
1609 |
|
|
</table>
|
1610 |
2138
|
sgarg
|
[% END %]
|
1611 |
2404
|
sgarg
|
|
1612 |
2150
|
sgarg
|
[% IF hasTemporal == 'true' %]
|
1613 |
2404
|
sgarg
|
|
1614 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1615 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">
|
1616 |
|
|
TEMPORAL COVERAGE OF DATA </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TemporalCoverageOfData"
|
1617 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
1618 |
2642
|
sgarg
|
<td class="rightCol"e<span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
|
1619 |
2404
|
sgarg
|
</tr>
|
1620 |
|
|
</table>
|
1621 |
|
|
|
1622 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">
|
1623 |
|
|
<tr class="sectbody">
|
1624 |
|
|
<td/>
|
1625 |
|
|
<td align="left"><span class="label">Start Date</span></td>
|
1626 |
|
|
<td/>
|
1627 |
|
|
<td align="left"><span class="label">Stop Date</span></td>
|
1628 |
|
|
<td colspan="2"></td>
|
1629 |
|
|
</tr>
|
1630 |
2390
|
sgarg
|
|
1631 |
|
|
<tr class="sectbody">
|
1632 |
2404
|
sgarg
|
<td class="rightCol">
|
1633 |
2150
|
sgarg
|
[% IF temporalRequired == 'true' %]
|
1634 |
2390
|
sgarg
|
<span class="label">*Year (yyyy)</span>
|
1635 |
2150
|
sgarg
|
[% ELSE %]
|
1636 |
2390
|
sgarg
|
<span class="label">Year (yyyy)</span>
|
1637 |
|
|
[% END %]</td>
|
1638 |
2642
|
sgarg
|
<td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
|
1639 |
|
|
<td class="rightCol"><span class="label">Year (yyyy)</span></td>
|
1640 |
|
|
<td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
|
1641 |
|
|
<td colspan="3"></td>
|
1642 |
2390
|
sgarg
|
</tr>
|
1643 |
|
|
|
1644 |
|
|
|
1645 |
|
|
<tr class="sectbody">
|
1646 |
2404
|
sgarg
|
<td class="rightCol">
|
1647 |
2642
|
sgarg
|
<!-- from eml-2.0.1, it is not required to make month and day required -->
|
1648 |
|
|
<!-- [% IF temporalRequired == 'true' %]
|
1649 |
2390
|
sgarg
|
<span class="label">*Month</span>
|
1650 |
2349
|
sgarg
|
[% ELSE %]
|
1651 |
2390
|
sgarg
|
<span class="label">Month</span>
|
1652 |
2642
|
sgarg
|
[% END %]-->
|
1653 |
|
|
<span class="label">Month</span>
|
1654 |
|
|
</td>
|
1655 |
2390
|
sgarg
|
<td align="left"><select name="beginningMonth">
|
1656 |
2361
|
sgarg
|
[% IF form == 're_entry' && beginningMonth != ""%]
|
1657 |
2146
|
sgarg
|
<option selected>[%beginningMonth%]</option>
|
1658 |
|
|
[% END %]
|
1659 |
2642
|
sgarg
|
<option>MM</option> <option>01</option> <option>02</option> <option>03</option>
|
1660 |
2146
|
sgarg
|
<option>04</option> <option>05</option> <option>06</option> <option>07</option>
|
1661 |
|
|
<option>08</option> <option>09</option> <option>10</option> <option>11</option>
|
1662 |
|
|
<option>12</option>
|
1663 |
2390
|
sgarg
|
</select></td>
|
1664 |
|
|
|
1665 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Month</span></td>
|
1666 |
|
|
<td align="left"> <select name="endingMonth">
|
1667 |
2390
|
sgarg
|
[% IF form == 're_entry' && endingMonth != ""%]
|
1668 |
|
|
<option selected>[%endingMonth%]</option>
|
1669 |
|
|
[% END %]
|
1670 |
2642
|
sgarg
|
<option>MM</option> <option>01</option> <option>02</option> <option>03</option>
|
1671 |
2390
|
sgarg
|
<option>04</option> <option>05</option> <option>06</option> <option>07</option>
|
1672 |
|
|
<option>08</option> <option>09</option> <option>10</option> <option>11</option>
|
1673 |
|
|
<option>12</option>
|
1674 |
2404
|
sgarg
|
</select></td> <td colspan="2"></td></tr>
|
1675 |
2390
|
sgarg
|
|
1676 |
|
|
<tr class="sectbody">
|
1677 |
2404
|
sgarg
|
<td class="rightCol">
|
1678 |
2642
|
sgarg
|
<!--[% IF temporalRequired == 'true' %]
|
1679 |
2390
|
sgarg
|
<span class="label">*Day</span>
|
1680 |
2150
|
sgarg
|
[% ELSE %]
|
1681 |
2390
|
sgarg
|
<span class="label">Day</span>
|
1682 |
2642
|
sgarg
|
[% END %]-->
|
1683 |
|
|
<span class="label">Day</span>
|
1684 |
|
|
</td>
|
1685 |
2390
|
sgarg
|
|
1686 |
|
|
<td align="left"><select name="beginningDay">
|
1687 |
2361
|
sgarg
|
[% IF form == 're_entry' && beginningDay != ""%]
|
1688 |
2146
|
sgarg
|
<option selected>[%beginningDay%]</option>
|
1689 |
|
|
[% END %]
|
1690 |
2642
|
sgarg
|
<option>DD</option> <option>01</option> <option>02</option> <option>03</option>
|
1691 |
2146
|
sgarg
|
<option>04</option> <option>05</option> <option>06</option> <option>07</option>
|
1692 |
|
|
<option>08</option> <option>09</option> <option>10</option> <option>11</option>
|
1693 |
|
|
<option>12</option> <option>13</option> <option>14</option> <option>15</option>
|
1694 |
|
|
<option>16</option> <option>17</option> <option>18</option> <option>19</option>
|
1695 |
|
|
<option>20</option> <option>21</option> <option>22</option> <option>23</option>
|
1696 |
|
|
<option>24</option> <option>25</option> <option>26</option> <option>27</option>
|
1697 |
|
|
<option>28</option> <option>29</option> <option>30</option> <option>31</option>
|
1698 |
2390
|
sgarg
|
</select></td>
|
1699 |
|
|
|
1700 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Day</span></td>
|
1701 |
|
|
<td align="left"><select name="endingDay">
|
1702 |
2361
|
sgarg
|
[% IF form == 're_entry' && endingDay != ""%]
|
1703 |
2146
|
sgarg
|
<option selected>[%endingDay%]</option>
|
1704 |
|
|
[% END %]
|
1705 |
2642
|
sgarg
|
<option>DD</option> <option>01</option> <option>02</option> <option>03</option>
|
1706 |
2146
|
sgarg
|
<option>04</option> <option>05</option> <option>06</option> <option>07</option>
|
1707 |
|
|
<option>08</option> <option>09</option> <option>10</option> <option>11</option>
|
1708 |
|
|
<option>12</option> <option>13</option> <option>14</option> <option>15</option>
|
1709 |
|
|
<option>16</option> <option>17</option> <option>18</option> <option>19</option>
|
1710 |
|
|
<option>20</option> <option>21</option> <option>22</option> <option>23</option>
|
1711 |
|
|
<option>24</option> <option>25</option> <option>26</option> <option>27</option>
|
1712 |
|
|
<option>28</option> <option>29</option> <option>30</option> <option>31</option>
|
1713 |
2404
|
sgarg
|
</select></td>
|
1714 |
|
|
<td colspan="2"></td></tr>
|
1715 |
2390
|
sgarg
|
<tr class="sectbody">
|
1716 |
|
|
<td></td><td align="left" colspan="5">
|
1717 |
|
|
<span class="label">Note: </span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
|
1718 |
|
|
</td></tr>
|
1719 |
2404
|
sgarg
|
</table>
|
1720 |
|
|
[% END %]
|
1721 |
2390
|
sgarg
|
|
1722 |
|
|
[% IF hasSpatial == 'true' %]
|
1723 |
2404
|
sgarg
|
|
1724 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1725 |
|
|
|
1726 |
|
|
<tr class="sectheader"><td colspan="5" align="left"><span class="label">SPATIAL COVERAGE OF DATA </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#SpatialCoverageOfData"
|
1727 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a>
|
1728 |
|
|
</td>
|
1729 |
|
|
<td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
|
1730 |
|
|
</tr>
|
1731 |
|
|
</table>
|
1732 |
2390
|
sgarg
|
|
1733 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">
|
1734 |
|
|
|
1735 |
2390
|
sgarg
|
<tr class="sectbody">
|
1736 |
|
|
[% IF spatialRequired == 'true' %]
|
1737 |
|
|
<td align="right" valign="top"><span class="label">*Geographic Description</span></td>
|
1738 |
2150
|
sgarg
|
[% ELSE %]
|
1739 |
2390
|
sgarg
|
<td align="right" valign="top"><span class="label">Geographic Description</span></td>
|
1740 |
2150
|
sgarg
|
[% END %]
|
1741 |
2390
|
sgarg
|
<td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
|
1742 |
|
|
<tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected.
|
1743 |
|
|
It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
|
1744 |
|
|
</td></tr>
|
1745 |
|
|
<tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
|
1746 |
|
|
|
1747 |
|
|
|
1748 |
2689
|
sgarg
|
[% IF showSiteList == 'true' %]
|
1749 |
2390
|
sgarg
|
<tr class="sectbody"><td align="left" valign="top" colspan="6">
|
1750 |
|
|
<input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
|
1751 |
2349
|
sgarg
|
<span class="regtext">Use [% lsite %] coordinates. (This indicates that the data were
|
1752 |
1984
|
jones
|
collected at the [% lsite %]. If you check this box, you don't need
|
1753 |
2349
|
sgarg
|
to fill in the lat./long. fields below).</span>
|
1754 |
2390
|
sgarg
|
</td></tr>
|
1755 |
2689
|
sgarg
|
[% END %]
|
1756 |
2390
|
sgarg
|
|
1757 |
|
|
<tr class="sectbody">
|
1758 |
|
|
<td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
|
1759 |
|
|
<td width="110" align="left"><span class="label">Minutes</span></td>
|
1760 |
|
|
<td width="70" align="left"><span class="label">Seconds</span></td>
|
1761 |
|
|
<td width="200"></td><td width="90"</td></tr>
|
1762 |
|
|
|
1763 |
|
|
|
1764 |
|
|
<tr class="sectbody">
|
1765 |
2404
|
sgarg
|
<td class="rightCol">
|
1766 |
2150
|
sgarg
|
[% IF spatialRequired == 'true' %]
|
1767 |
2390
|
sgarg
|
<span class="label">*Latitude</span>
|
1768 |
2150
|
sgarg
|
[% ELSE %]
|
1769 |
|
|
<span class="label">Latitude</span>
|
1770 |
2390
|
sgarg
|
[% END %]</td>
|
1771 |
|
|
<td>
|
1772 |
|
|
<input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
|
1773 |
|
|
<td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
|
1774 |
|
|
<td> <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
|
1775 |
|
|
|
1776 |
|
|
<td Align="left" colspan="2">
|
1777 |
2404
|
sgarg
|
|
1778 |
2390
|
sgarg
|
<!-- <select name="hemisphLat1">
|
1779 |
2361
|
sgarg
|
[% IF form == 're_entry' && hemisphLat1 != ""%]
|
1780 |
1929
|
brooke
|
<option selected>[%hemisphLat1%]</option>
|
1781 |
|
|
[% END %]
|
1782 |
|
|
<option>N</option>
|
1783 |
|
|
<option>S</option>
|
1784 |
2390
|
sgarg
|
</select> -->
|
1785 |
|
|
|
1786 |
2404
|
sgarg
|
[% IF form == 're_entry' && hemisphLat1 == "N"%]
|
1787 |
|
|
<input type="radio" name="hemisphLat1" value="N" CHECKED><span class="regtext">North </span>
|
1788 |
|
|
[%ELSE%]
|
1789 |
2390
|
sgarg
|
<input type="radio" name="hemisphLat1" value="N"><span class="regtext">North </span>
|
1790 |
2404
|
sgarg
|
[%END%]
|
1791 |
|
|
[% IF form == 're_entry' && hemisphLat1 == "S"%]
|
1792 |
|
|
<input type="radio" name="hemisphLat1" value="S" CHECKED><span class="regtext">South </span>
|
1793 |
|
|
[%ELSE%]
|
1794 |
2390
|
sgarg
|
<input type="radio" name="hemisphLat1" value="S"><span class="regtext">South </span>
|
1795 |
2404
|
sgarg
|
[%END%]
|
1796 |
|
|
|
1797 |
2390
|
sgarg
|
</td></tr>
|
1798 |
|
|
|
1799 |
|
|
|
1800 |
|
|
<tr class="sectbody">
|
1801 |
2404
|
sgarg
|
<td class="rightCol">
|
1802 |
2390
|
sgarg
|
[% IF spatialRequired == 'true' %]
|
1803 |
|
|
<span class="label">*Longitude</span>
|
1804 |
|
|
[% ELSE %]
|
1805 |
|
|
<span class="label">Longitude</span>
|
1806 |
|
|
[% END %]</td>
|
1807 |
|
|
|
1808 |
|
|
<td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
|
1809 |
|
|
<td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
|
1810 |
|
|
<td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
|
1811 |
|
|
|
1812 |
|
|
|
1813 |
|
|
<td align="left" colspan="2">
|
1814 |
|
|
|
1815 |
|
|
<!-- <select name="hemisphLong1">
|
1816 |
2361
|
sgarg
|
[% IF form == 're_entry' && hemisphLong1 != ""%]
|
1817 |
1929
|
brooke
|
<option selected>[%hemisphLong1%]</option>
|
1818 |
|
|
[% END %]
|
1819 |
|
|
<option>W</option>
|
1820 |
|
|
<option>E</option>
|
1821 |
2390
|
sgarg
|
</select> -->
|
1822 |
|
|
|
1823 |
|
|
|
1824 |
2404
|
sgarg
|
[% IF form == 're_entry' && hemisphLong1 == "W"%]
|
1825 |
|
|
<input type="radio" name="hemisphLong1" value="W" CHECKED><span class="regtext">West </span>
|
1826 |
|
|
[%ELSE%]
|
1827 |
2390
|
sgarg
|
<input type="radio" name="hemisphLong1" value="W"><span class="regtext">West </span>
|
1828 |
2404
|
sgarg
|
[%END%]
|
1829 |
|
|
[% IF form == 're_entry' && hemisphLong1 == "E"%]
|
1830 |
|
|
<input type="radio" name="hemisphLong1" value="E" CHECKED><span class="regtext">East </span>
|
1831 |
|
|
[%ELSE%]
|
1832 |
2390
|
sgarg
|
<input type="radio" name="hemisphLong1" value="E"><span class="regtext">East </span>
|
1833 |
2404
|
sgarg
|
[%END%]
|
1834 |
2390
|
sgarg
|
</td></tr>
|
1835 |
|
|
|
1836 |
|
|
|
1837 |
2404
|
sgarg
|
<tr class="sectbody"><td><td colspan="4" align="left"><span class="regtext">If only this first lat/long pair is entered, this indicates a point location. If both lat/long pairs are entered, then this first pair represents the northwest corner of a bounding box.</span>
|
1838 |
2390
|
sgarg
|
</td><td></td></tr>
|
1839 |
|
|
|
1840 |
|
|
<tr class="sectbody">
|
1841 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Latitude</span></td>
|
1842 |
2390
|
sgarg
|
<td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
|
1843 |
|
|
<td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
|
1844 |
|
|
<td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
|
1845 |
|
|
|
1846 |
|
|
<td align="left" colspan="2">
|
1847 |
|
|
|
1848 |
|
|
<!-- <select name="hemisphLat2">
|
1849 |
2361
|
sgarg
|
[% IF form == 're_entry' && hemisphLat2 != ""%]
|
1850 |
1929
|
brooke
|
<option selected>[%hemisphLat2%]</option>
|
1851 |
|
|
[% END %]
|
1852 |
|
|
<option>N</option>
|
1853 |
|
|
<option>S</option>
|
1854 |
2390
|
sgarg
|
</select> -->
|
1855 |
|
|
|
1856 |
2404
|
sgarg
|
[% IF form == 're_entry' && hemisphLat2 == "N"%]
|
1857 |
|
|
<input type="radio" name="hemisphLat2" value="N" CHECKED><span class="regtext">North </span>
|
1858 |
|
|
[%ELSE%]
|
1859 |
2390
|
sgarg
|
<input type="radio" name="hemisphLat2" value="N"><span class="regtext">North </span>
|
1860 |
2404
|
sgarg
|
[%END%]
|
1861 |
|
|
[% IF form == 're_entry' && hemisphLat2 == "S"%]
|
1862 |
|
|
<input type="radio" name="hemisphLat2" value="S" CHECKED><span class="regtext">South </span>
|
1863 |
|
|
[%ELSE%]
|
1864 |
2390
|
sgarg
|
<input type="radio" name="hemisphLat2" value="S"><span class="regtext">South </span>
|
1865 |
2404
|
sgarg
|
[%END%]
|
1866 |
2390
|
sgarg
|
|
1867 |
|
|
</td></tr>
|
1868 |
|
|
|
1869 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
|
1870 |
2390
|
sgarg
|
<td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
|
1871 |
|
|
<td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
|
1872 |
|
|
<td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
|
1873 |
|
|
<td align="left" colspan="2">
|
1874 |
|
|
|
1875 |
|
|
<!-- <select name="hemisphLong2">
|
1876 |
|
|
[% IF form == 're_entry' && hemisphLong2 != ""%]
|
1877 |
1929
|
brooke
|
<option selected>[%hemisphLong2%]</option>
|
1878 |
|
|
[% END %]
|
1879 |
|
|
<option>W</option>
|
1880 |
|
|
<option>E</option>
|
1881 |
2390
|
sgarg
|
</select> -->
|
1882 |
|
|
|
1883 |
2404
|
sgarg
|
[% IF form == 're_entry' && hemisphLong2 == "W"%]
|
1884 |
|
|
<input type="radio" name="hemisphLong2" value="W" CHECKED><span class="regtext">West </span>
|
1885 |
|
|
[%ELSE%]
|
1886 |
2390
|
sgarg
|
<input type="radio" name="hemisphLong2" value="W"><span class="regtext">West </span>
|
1887 |
2404
|
sgarg
|
[%END%]
|
1888 |
|
|
[% IF form == 're_entry' && hemisphLong2 == "E"%]
|
1889 |
|
|
<input type="radio" name="hemisphLong2" value="E" CHECKED><span class="regtext">East </span>
|
1890 |
|
|
[%ELSE%]
|
1891 |
2390
|
sgarg
|
<input type="radio" name="hemisphLong2" value="E"><span class="regtext">East </span>
|
1892 |
2404
|
sgarg
|
[%END%]
|
1893 |
2390
|
sgarg
|
|
1894 |
|
|
</td></tr>
|
1895 |
|
|
<tr class="sectbody"><td></td>
|
1896 |
|
|
<td align="left" colspan="4"><span class="regtext">
|
1897 |
|
|
If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
|
1898 |
|
|
</td><td></td></tr>
|
1899 |
2404
|
sgarg
|
</table>
|
1900 |
2390
|
sgarg
|
[% END %]
|
1901 |
1982
|
jones
|
|
1902 |
2404
|
sgarg
|
[% IF hasTaxonomic == 'true' %]
|
1903 |
|
|
|
1904 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1905 |
|
|
|
1906 |
|
|
<tr class="sectheader"><td colspan="5" align="left">
|
1907 |
|
|
<span class="label">TAXONOMIC COVERAGE OF DATA </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TaxonomicCoverage"
|
1908 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a> </td>
|
1909 |
|
|
<td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td>
|
1910 |
|
|
</tr>
|
1911 |
|
|
</table>
|
1912 |
|
|
|
1913 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable">
|
1914 |
2413
|
sgarg
|
<tr class="sectbody"><td></td>
|
1915 |
|
|
<td colspan="5" align="left"><span class="regtext">See the <a href=
|
1916 |
2404
|
sgarg
|
"http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href=
|
1917 |
|
|
"http://www.itis.usda.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr>
|
1918 |
2390
|
sgarg
|
|
1919 |
2404
|
sgarg
|
<tr class="sectbody">
|
1920 |
2413
|
sgarg
|
<td class="rightCol"><span class="label">Taxonomic Rank</span></td>
|
1921 |
2404
|
sgarg
|
<td align="left" colspan="5">
|
1922 |
|
|
<input name="taxonRank" id="taxonRank" class="shortwidth"> <span class="label"><span class="regtext">(e.g., Species)</span>
|
1923 |
|
|
</td>
|
1924 |
|
|
</tr>
|
1925 |
|
|
|
1926 |
|
|
<tr class="sectbody">
|
1927 |
2413
|
sgarg
|
<td class="rightCol"><span class="label">Taxonomic Name</span></td>
|
1928 |
2404
|
sgarg
|
<td align="left" colspan="5">
|
1929 |
|
|
<input name="taxonName" id="taxonName" class="shortwidth"> <span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
|
1930 |
|
|
</td>
|
1931 |
|
|
</tr>
|
1932 |
|
|
|
1933 |
|
|
<tr id="addTaxon" class="sectbody">
|
1934 |
|
|
<td></td>
|
1935 |
|
|
<td colspan="5" align="left"> <input type="button" value="Add Taxon"
|
1936 |
|
|
onClick="addTaxon()">
|
1937 |
|
|
</td>
|
1938 |
|
|
</tr>
|
1939 |
|
|
|
1940 |
|
|
[% numTaxa = 0 %]
|
1941 |
3422
|
walbridge
|
[% IF taxaCount %]
|
1942 |
1984
|
jones
|
[% numTaxa = taxaCount %]
|
1943 |
2404
|
sgarg
|
<tr class="sectbody" id="taxonHRRow">
|
1944 |
|
|
<td colSpan="6">
|
1945 |
|
|
<hr width = "85%"/>
|
1946 |
|
|
</td>
|
1947 |
|
|
</tr>
|
1948 |
1984
|
jones
|
[% END %]
|
1949 |
2404
|
sgarg
|
<input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
|
1950 |
2390
|
sgarg
|
|
1951 |
2404
|
sgarg
|
[% cnt = 1 %]
|
1952 |
|
|
[% WHILE cnt <= numTaxa%]
|
1953 |
|
|
<tr class="sectbody">
|
1954 |
|
|
<td class="rightCol">
|
1955 |
|
|
<a style="cursor:pointer">
|
1956 |
|
|
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
|
1957 |
|
|
src="@systemidserver@@html-path@/style/images/previous.gif"
|
1958 |
|
|
alt="Move Up" border="0"/>
|
1959 |
|
|
</a>
|
1960 |
|
|
<a style="cursor:pointer">
|
1961 |
|
|
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
|
1962 |
|
|
src="@systemidserver@@html-path@/style/images/next.gif"
|
1963 |
|
|
alt="Move Down" border="0"/>
|
1964 |
|
|
</a>
|
1965 |
|
|
<a style="cursor:pointer">
|
1966 |
|
|
<img src="@systemidserver@@html-path@/style/images/delete.gif"
|
1967 |
|
|
onClick="delRow(event)" alt="Delete" border="0"/>
|
1968 |
|
|
</a>
|
1969 |
|
|
</td>
|
1970 |
2850
|
sgarg
|
[% SET rank = "taxonRankName${cnt}" %]
|
1971 |
|
|
[% SET name = "taxonRankValue${cnt}" %]
|
1972 |
2404
|
sgarg
|
<td colspan="5" align ="left" style="cursor:pointer"
|
1973 |
2850
|
sgarg
|
onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
|
1974 |
|
|
Rank: [%$rank%], Name: [%$name%]
|
1975 |
|
|
<input name="taxonName" type="hidden" value="[%$name%]"/>
|
1976 |
|
|
<input name="taxonRank" type="hidden" value="[%$rank%]"/>
|
1977 |
2404
|
sgarg
|
</tr>
|
1978 |
1984
|
jones
|
[% cnt = cnt + 1 %]
|
1979 |
2404
|
sgarg
|
[% END %]
|
1980 |
|
|
|
1981 |
2413
|
sgarg
|
<tr class="sectbody" id="addtaxarow">
|
1982 |
|
|
<td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
|
1983 |
|
|
<td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
|
1984 |
|
|
</tr>
|
1985 |
|
|
<tr class="sectbody">
|
1986 |
|
|
<td></td>
|
1987 |
|
|
<td colspan="5"><span class="regtext">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or
|
1988 |
|
|
nomenclature revision).</span></td>
|
1989 |
|
|
</tr>
|
1990 |
2404
|
sgarg
|
</table>
|
1991 |
|
|
[% END %]
|
1992 |
|
|
|
1993 |
|
|
[% IF hasMethod == 'true' %]
|
1994 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
1995 |
|
|
<tr class="sectheader"><td colspan="5" align="left">
|
1996 |
|
|
<span class="label">DATA COLLECTION METHODS </span>
|
1997 |
|
|
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#Methods" target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
1998 |
|
|
<td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
|
1999 |
|
|
</tr>
|
2000 |
|
|
</table>
|
2001 |
2390
|
sgarg
|
|
2002 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0" id="methodTable">
|
2003 |
1984
|
jones
|
|
2004 |
2390
|
sgarg
|
<tr class="sectbody">
|
2005 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Method Title</span></td>
|
2006 |
2413
|
sgarg
|
<td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
|
2007 |
2404
|
sgarg
|
|
2008 |
|
|
<tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>
|
2009 |
|
|
<td colspan="5" align="left">
|
2010 |
3422
|
walbridge
|
[% IF !methodPara %]
|
2011 |
2404
|
sgarg
|
<textarea rows="6" cols="60" name="methodPara"></textarea>
|
2012 |
1982
|
jones
|
[% END %]
|
2013 |
|
|
[% FOREACH para = methodPara %]
|
2014 |
2404
|
sgarg
|
<textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
|
2015 |
1982
|
jones
|
[% END %]
|
2016 |
2404
|
sgarg
|
</td></tr>
|
2017 |
2390
|
sgarg
|
|
2018 |
2413
|
sgarg
|
<tr class="sectbody" id="addparabutton1">
|
2019 |
|
|
<td ></td>
|
2020 |
|
|
<td colspan="5" align="left">
|
2021 |
2404
|
sgarg
|
<input type="button" value="Add Paragraph to Method Description"
|
2022 |
2390
|
sgarg
|
onClick="addParagraph()"></td></tr>
|
2023 |
2404
|
sgarg
|
|
2024 |
|
|
|
2025 |
2413
|
sgarg
|
<tr class="sectbody">
|
2026 |
|
|
<td valign="top" align="right" class="bordertop">
|
2027 |
|
|
<span class="label">Extent of Study Description</span>
|
2028 |
|
|
</td>
|
2029 |
|
|
<td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
|
2030 |
|
|
</tr>
|
2031 |
2390
|
sgarg
|
|
2032 |
2413
|
sgarg
|
<tr class="sectbody">
|
2033 |
|
|
<td>
|
2034 |
|
|
</td>
|
2035 |
|
|
<td colspan="5"><span class="regtext">
|
2036 |
|
|
Describe the temporal, spatial and taxonomic extent of the study,<br>
|
2037 |
|
|
supplementing the information on coverage provided above. <br>
|
2038 |
|
|
For example, if the temporal coverage of the data is 1990-2000, you<br>
|
2039 |
|
|
might provide details about any years that were missed or the months<br>
|
2040 |
|
|
in which sampling occurred.</span>
|
2041 |
|
|
</td>
|
2042 |
|
|
</tr>
|
2043 |
2390
|
sgarg
|
|
2044 |
2413
|
sgarg
|
<tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
|
2045 |
|
|
<td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
|
2046 |
2390
|
sgarg
|
|
2047 |
2413
|
sgarg
|
<tr class="sectbody"><td><td colspan="5"><span class="regtext">
|
2048 |
|
|
Describe the sampling design of the study. For example, you might <br>
|
2049 |
|
|
describe the way in which treatments were assigned to sampling units.</span></td></tr>
|
2050 |
2390
|
sgarg
|
|
2051 |
2404
|
sgarg
|
</table>
|
2052 |
2390
|
sgarg
|
[% END %]
|
2053 |
|
|
|
2054 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0">
|
2055 |
|
|
<tr class="sectheader"><td colspan="5" align="left">
|
2056 |
|
|
<span class="label">DATA SET CONTACT </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetContactAddress" target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
2057 |
|
|
<td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
|
2058 |
|
|
</tr>
|
2059 |
|
|
</table>
|
2060 |
2390
|
sgarg
|
|
2061 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0" id="dscTable">
|
2062 |
2390
|
sgarg
|
<tr class="sectbody"><td valign="top" align="left" colspan="6">
|
2063 |
2033
|
sgarg
|
<input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
|
2064 |
2404
|
sgarg
|
<span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr>
|
2065 |
2390
|
sgarg
|
<tr class="sectbody">
|
2066 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">*First Name</span></td>
|
2067 |
|
|
<td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
|
2068 |
2390
|
sgarg
|
<tr class="sectbody">
|
2069 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">*Last Name</span>
|
2070 |
|
|
<td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
|
2071 |
2390
|
sgarg
|
<tr class="sectbody">
|
2072 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Organization Name</span>
|
2073 |
|
|
<td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
|
2074 |
2390
|
sgarg
|
<tr class="sectbody">
|
2075 |
2689
|
sgarg
|
[% IF contactEmailAddressRequired == 'true' %]
|
2076 |
|
|
<td class="rightCol"><span class="label">*E-Mail</span>
|
2077 |
|
|
[% ELSE %]
|
2078 |
|
|
<td class="rightCol"><span class="label">E-Mail</span>
|
2079 |
|
|
[% END %]
|
2080 |
2404
|
sgarg
|
<td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
|
2081 |
2390
|
sgarg
|
<tr class="sectbody">
|
2082 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Phone</span>
|
2083 |
|
|
<td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
|
2084 |
2390
|
sgarg
|
<tr class="sectbody">
|
2085 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">FAX</span>
|
2086 |
|
|
<td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
|
2087 |
2390
|
sgarg
|
<tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
|
2088 |
|
|
<td colspan="5"><textarea rows="3" cols="30" name="origDeliveryContact" id="contactDelivery">[%origDeliveryContact%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span></td></tr>
|
2089 |
|
|
<tr class="sectbody">
|
2090 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">City</span>
|
2091 |
|
|
<td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
|
2092 |
2390
|
sgarg
|
<tr class="sectbody">
|
2093 |
2510
|
sgarg
|
<td class="rightCol"><span class="label">U.S. State or Territory</span>
|
2094 |
2404
|
sgarg
|
<td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
|
2095 |
1929
|
brooke
|
[% IF form == 're_entry' %]
|
2096 |
1982
|
jones
|
<option>[%origStateContact%]</option>
|
2097 |
1929
|
brooke
|
[% ELSE %]
|
2098 |
2510
|
sgarg
|
<option>Select state or territory here.</option>
|
2099 |
1929
|
brooke
|
[% END %]
|
2100 |
1982
|
jones
|
<option>Alabama</option>
|
2101 |
|
|
<option>Alaska</option>
|
2102 |
|
|
<option>American Samoa</option>
|
2103 |
|
|
<option>Arizona</option>
|
2104 |
|
|
<option>Arkansas</option>
|
2105 |
|
|
<option>California</option>
|
2106 |
|
|
<option>Colorado</option>
|
2107 |
|
|
<option>Connecticut</option>
|
2108 |
|
|
<option>Delaware</option>
|
2109 |
|
|
<option>District of Columbia</option>
|
2110 |
|
|
<option>Florida</option>
|
2111 |
|
|
<option>Georgia</option>
|
2112 |
|
|
<option>Guam</option>
|
2113 |
|
|
<option>Hawaii</option>
|
2114 |
|
|
<option>Idaho</option>
|
2115 |
|
|
<option>Illinois</option>
|
2116 |
|
|
<option>Indiana</option>
|
2117 |
|
|
<option>Iowa</option>
|
2118 |
|
|
<option>Kansas</option>
|
2119 |
|
|
<option>Kentucky</option>
|
2120 |
|
|
<option>Louisiana</option>
|
2121 |
|
|
<option>Maine</option>
|
2122 |
|
|
<option>Maryland</option>
|
2123 |
|
|
<option>Massachusetts</option>
|
2124 |
|
|
<option>Michigan</option>
|
2125 |
|
|
<option>Minnesota</option>
|
2126 |
|
|
<option>Mississippi</option>
|
2127 |
|
|
<option>Missouri</option>
|
2128 |
|
|
<option>Montana</option>
|
2129 |
|
|
<option>Nebraska</option>
|
2130 |
|
|
<option>Nevada</option>
|
2131 |
|
|
<option>New Hampshire</option>
|
2132 |
|
|
<option>New Jersey</option>
|
2133 |
|
|
<option>New Mexico</option>
|
2134 |
|
|
<option>New York</option>
|
2135 |
|
|
<option>North Carolina</option>
|
2136 |
|
|
<option>North Dakota</option>
|
2137 |
|
|
<option>Northern Mariana Islands</option>
|
2138 |
|
|
<option>Ohio</option>
|
2139 |
|
|
<option>Oklahoma</option>
|
2140 |
|
|
<option>Oregon</option>
|
2141 |
|
|
<option>Pennsylvania</option>
|
2142 |
|
|
<option>Puerto Rico</option>
|
2143 |
|
|
<option>Rhode Island</option>
|
2144 |
|
|
<option>South Carolina</option>
|
2145 |
|
|
<option>South Dakota</option>
|
2146 |
|
|
<option>Tennessee</option>
|
2147 |
|
|
<option>Texas</option>
|
2148 |
|
|
<option>Utah</option>
|
2149 |
|
|
<option>Vermont</option>
|
2150 |
|
|
<option>Virgin Islands</option>
|
2151 |
|
|
<option>Virginia</option>
|
2152 |
|
|
<option>Washington</option>
|
2153 |
|
|
<option>West Virginia</option>
|
2154 |
|
|
<option>Wisconsin</option>
|
2155 |
|
|
<option>Wyoming</option>
|
2156 |
2390
|
sgarg
|
</select></td></tr>
|
2157 |
|
|
<tr class="sectbody">
|
2158 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Other State/Province</span>
|
2159 |
|
|
<td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
|
2160 |
2390
|
sgarg
|
<tr class="sectbody">
|
2161 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Postal Code</span>
|
2162 |
|
|
<td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
|
2163 |
2390
|
sgarg
|
<tr class="sectbody">
|
2164 |
2404
|
sgarg
|
<td class="rightCol"><span class="label">Country</span>
|
2165 |
|
|
<td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
|
2166 |
|
|
</table>
|
2167 |
|
|
|
2168 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
2169 |
|
|
<tr class="sectheader"><td colspan="5" align="left">
|
2170 |
|
|
<span class="label">DISTRIBUTION INFORMATION </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DistributionIinformation"
|
2171 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
2172 |
|
|
<td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
|
2173 |
|
|
</tr>
|
2174 |
|
|
</table>
|
2175 |
|
|
|
2176 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="distTable">
|
2177 |
|
|
<tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
|
2178 |
|
|
<td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
|
2179 |
2390
|
sgarg
|
<tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
|
2180 |
2413
|
sgarg
|
<td colspan="4" align="left"><span class="regtext">
|
2181 |
|
|
If available, please enter a name or number that uniquely identifies and<br>
|
2182 |
|
|
describes concisely the data set. Alternatively, provide other pertinent<br>
|
2183 |
|
|
information that can identify and locate the data set within your site's<br>
|
2184 |
|
|
data management system.</span></td><td></td></tr>
|
2185 |
2390
|
sgarg
|
|
2186 |
2404
|
sgarg
|
<tr class="sectbody">
|
2187 |
|
|
<td class="rightCol"><span class="label">*Data Medium</span></td>
|
2188 |
2390
|
sgarg
|
|
2189 |
2404
|
sgarg
|
<td colspan="5" align="left">
|
2190 |
2609
|
sgarg
|
[% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital") %]
|
2191 |
2404
|
sgarg
|
<input type="radio" name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED><span class="regtext">Digital </span></input>
|
2192 |
|
|
[%ELSE%]
|
2193 |
|
|
<input type="radio" name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital"><span class="regtext">Digital </span></input>
|
2194 |
|
|
[% END %]
|
2195 |
2609
|
sgarg
|
[% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]
|
2196 |
2404
|
sgarg
|
<input type="radio" name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED><span class="regtext">Hardcopy </span></input>
|
2197 |
|
|
[%ELSE%]
|
2198 |
|
|
<input type="radio" name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy"><span class="regtext">Hardcopy </span></input>
|
2199 |
|
|
[% END %]
|
2200 |
|
|
[% IF form == 're_entry' && dataMedium == "other" %]
|
2201 |
|
|
<input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED><span class="regtext">Other </span></input>
|
2202 |
|
|
[%ELSE%]
|
2203 |
|
|
<input type="radio" name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other"><span class="regtext">Other </span></input>
|
2204 |
|
|
[% END %]
|
2205 |
|
|
|
2206 |
|
|
<input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
|
2207 |
|
|
</td>
|
2208 |
|
|
</tr>
|
2209 |
2390
|
sgarg
|
|
2210 |
2432
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
|
2211 |
2390
|
sgarg
|
<td colspan="5" align="left">
|
2212 |
|
|
|
2213 |
|
|
|
2214 |
|
|
|
2215 |
|
|
<!-- <select name="useConstraints">
|
2216 |
1929
|
brooke
|
[% IF form == 're_entry' %]
|
2217 |
|
|
<option selected>[%useConstraints%]</option>
|
2218 |
|
|
[% ELSE %]
|
2219 |
|
|
<option>Select restrictions here.</option>
|
2220 |
|
|
[% END %]
|
2221 |
2390
|
sgarg
|
<option>No restrictions</option>
|
2222 |
2432
|
sgarg
|
<option>Obtain permission from data set owner(s)</option>
|
2223 |
2390
|
sgarg
|
<option>Other</option>
|
2224 |
|
|
</select> -->
|
2225 |
|
|
|
2226 |
2404
|
sgarg
|
[% IF form == 're_entry' && useConstraints == "no restrictions" %]
|
2227 |
|
|
<input type="radio" name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED><span class="regtext">No restrictions </span>
|
2228 |
|
|
[%ELSE%]
|
2229 |
|
|
<input type="radio" name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions"><span class="regtext">No restrictions </span>
|
2230 |
|
|
[%END%]
|
2231 |
2611
|
sgarg
|
[% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]
|
2232 |
|
|
<input type="radio" name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED><span class="regtext">Obtain permission from data set owner(s) </span>
|
2233 |
2404
|
sgarg
|
[%ELSE%]
|
2234 |
2611
|
sgarg
|
<input type="radio" name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)"><span class="regtext">Obtain permission from data set owner(s) </span>
|
2235 |
2404
|
sgarg
|
[%END%]
|
2236 |
|
|
</td></tr>
|
2237 |
2390
|
sgarg
|
|
2238 |
2404
|
sgarg
|
|
2239 |
2390
|
sgarg
|
|
2240 |
|
|
<tr class="sectbody"><td></td><td colspan="5" align="left">
|
2241 |
2404
|
sgarg
|
|
2242 |
|
|
[% IF form == 're_entry' && useConstraints == "other" %]
|
2243 |
|
|
<input type="radio" name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED><span class="regtext">Other </span>
|
2244 |
|
|
[%ELSE%]
|
2245 |
|
|
<input type="radio" name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other"><span class="regtext">Other </span>
|
2246 |
|
|
[%END%]
|
2247 |
|
|
<input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
|
2248 |
2390
|
sgarg
|
|
2249 |
|
|
|
2250 |
2404
|
sgarg
|
<tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
|
2251 |
|
|
<td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
|
2252 |
2390
|
sgarg
|
|
2253 |
2404
|
sgarg
|
<tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
|
2254 |
|
|
<td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
|
2255 |
2390
|
sgarg
|
|
2256 |
2404
|
sgarg
|
</table>
|
2257 |
2390
|
sgarg
|
|
2258 |
3422
|
walbridge
|
[% IF hasUpload == 'true' %]
|
2259 |
|
|
|
2260 |
|
|
<!-- Associated Data -->
|
2261 |
|
|
<table class="tables" cellpadding="5" cellspacing="0">
|
2262 |
|
|
<tr class="sectheader"><td colspan="5" align="left">
|
2263 |
|
|
<span class="label">UPLOAD DATA </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#XXX"
|
2264 |
|
|
target="guide"><span class="smalltext">(What's this?)</span></a></td>
|
2265 |
|
|
<td class="rightCol"><span><a onClick="distBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
|
2266 |
|
|
</tr>
|
2267 |
|
|
</table>
|
2268 |
|
|
<table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
|
2269 |
|
|
<tr class="sectbody">
|
2270 |
|
|
<td class="rightCol"><span class="label">Upload Data File:</span></td>
|
2271 |
|
|
<td colspan="5">
|
2272 |
|
|
<input type="file" id="file_element" name="file_1" class="longwidth">
|
2273 |
|
|
|
2274 |
|
|
[% IF form == 're_entry' && upCount %]
|
2275 |
|
|
[% cnt = 0 %]
|
2276 |
|
|
[% WHILE cnt < upCount %]
|
2277 |
|
|
[% SET fileSum = "upload_${cnt}" %]
|
2278 |
|
|
[% SET fileName = "uploadname_${cnt}" %]
|
2279 |
|
|
[% SET fileType = "uploadtype_${cnt}" %]
|
2280 |
|
|
[% IF fileSum %]
|
2281 |
|
|
<input type="hidden" name="[%fileSum%]" value="[% $fileSum %]">
|
2282 |
|
|
<input type="hidden" name="[%fileName%]" value="[% $fileName %]">
|
2283 |
|
|
<input type="hidden" name="[%fileType%]" value="[% $fileType %]">
|
2284 |
|
|
[% END %]
|
2285 |
|
|
[% cnt = cnt + 1 %]
|
2286 |
|
|
[% END %]
|
2287 |
|
|
<input type="hidden" name="upCount" value="[%upCount%]">
|
2288 |
|
|
[% END %]
|
2289 |
|
|
|
2290 |
|
|
<input type="hidden" name="fileCount" value="[%fileCount%]" id="fileCount"></td>
|
2291 |
|
|
</tr>
|
2292 |
|
|
<tr class="sectbody">
|
2293 |
|
|
<td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
|
2294 |
|
|
<td colspan="5">
|
2295 |
|
|
[% IF !upCount %]
|
2296 |
|
|
<div id="file_comment">
|
2297 |
|
|
(<i>None currently attached</i>)
|
2298 |
|
|
</div>
|
2299 |
|
|
[% END %]
|
2300 |
|
|
<div id="files_list">[% IF form == 're_entry' && upCount %]
|
2301 |
|
|
[% cnt = 0 %]
|
2302 |
|
|
[% WHILE cnt < upCount %]
|
2303 |
|
|
[% SET fileName = "uploadname_${cnt}" %]
|
2304 |
|
|
[% IF fileName %]<div>[% $fileName %] <input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"</div>[% END %]
|
2305 |
|
|
[% cnt = cnt + 1 %]
|
2306 |
|
|
[% END %]
|
2307 |
|
|
[% END %]</div></td>
|
2308 |
|
|
</tr>
|
2309 |
|
|
</table>
|
2310 |
|
|
|
2311 |
|
|
<script language="JavaScript" type="text/JavaScript">
|
2312 |
|
|
var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
|
2313 |
|
|
multi_selector.addElement( document.getElementById( 'file_element' ) );
|
2314 |
|
|
</script>
|
2315 |
|
|
[% END %]
|
2316 |
2404
|
sgarg
|
<table class="tables" cellpadding="5" cellspacing="0">
|
2317 |
|
|
<tr class="sectheader"><td colspan="6" align="left"></td></tr>
|
2318 |
2413
|
sgarg
|
<tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
|
2319 |
2404
|
sgarg
|
|
2320 |
2390
|
sgarg
|
|
2321 |
2404
|
sgarg
|
<!-- <span> </span><input type="RESET" value="Reset Form" name="RESET"></td></tr>-->
|
2322 |
1929
|
brooke
|
</table>
|
2323 |
2390
|
sgarg
|
<p></p>
|
2324 |
|
|
|
2325 |
1929
|
brooke
|
</form>
|
2326 |
|
|
|
2327 |
2390
|
sgarg
|
|
2328 |
1929
|
brooke
|
[% INCLUDE "genericFooter.tmpl" %]
|