Revision 2404
Added by sgarg almost 20 years ago
lib/style/common/templates/entryForm.tmpl | ||
---|---|---|
1 | 1 |
[% INCLUDE "genericHeader.tmpl" %] |
2 | 2 |
|
3 | 3 |
<script language="JavaScript" type="text/javascript"> |
4 |
|
|
4 | 5 |
function addParagraph() { |
5 | 6 |
var newParaWidget=document.createElement("textarea"); |
6 |
newParaWidget.setAttribute("rows", "5");
|
|
7 |
newParaWidget.setAttribute("columns", "80");
|
|
7 |
newParaWidget.setAttribute("rows", "6");
|
|
8 |
newParaWidget.className="longwidth";
|
|
8 | 9 |
newParaWidget.setAttribute("name", "methodPara"); |
9 |
var newParaContainer = document.createElement("p"); |
|
10 |
newParaContainer.appendChild(newParaWidget); |
|
10 |
|
|
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); |
|
11 | 18 |
var addParaButton = document.getElementById("addparabutton1"); |
12 | 19 |
var parent = addParaButton.parentNode; |
13 |
parent.insertBefore(newParaContainer, addParaButton);
|
|
20 |
parent.insertBefore(TR, addParaButton);
|
|
14 | 21 |
} |
15 | 22 |
|
16 |
function createTextField(name, size) { |
|
23 |
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) { |
|
17 | 89 |
var newField=document.createElement("input"); |
18 | 90 |
newField.setAttribute("type", "text"); |
19 | 91 |
newField.setAttribute("name", name); |
20 | 92 |
newField.setAttribute("size", size); |
21 |
|
|
93 |
newField.value = value; |
|
22 | 94 |
return newField; |
23 | 95 |
} |
24 | 96 |
|
25 |
function createTextRow(count, varName, labelText) { |
|
26 |
var textField=createTextField(varName + count, "30"); |
|
97 |
function createTextRow(count, varName, labelText, value) {
|
|
98 |
var textField=createTextField(varName + count, "30", value);
|
|
27 | 99 |
var row = createRow(count, textField, labelText); |
28 | 100 |
return row; |
29 | 101 |
} |
30 | 102 |
|
31 | 103 |
function createRow(count, elem, labelText){ |
32 |
var textTD = document.createElement("td"); |
|
33 |
textTD.setAttribute("colSpan", "5"); |
|
104 |
var textTD = createTD("5"); |
|
34 | 105 |
textTD.appendChild(elem); |
35 | 106 |
|
36 |
var labelTD = document.createElement("td"); |
|
37 |
labelTD.setAttribute("align", "right"); |
|
107 |
var labelTD = createTD("","right"); |
|
38 | 108 |
|
39 | 109 |
var labelSpan = document.createElement("span"); |
40 | 110 |
labelSpan.className = 'label'; |
... | ... | |
52 | 122 |
} |
53 | 123 |
|
54 | 124 |
function createHRRow() { |
55 |
var hrCell = document.createElement("td"); |
|
56 |
hrCell.setAttribute("colSpan", "7"); |
|
125 |
var hrCell = createTD("6"); |
|
57 | 126 |
var hr = document.createElement("hr"); |
58 | 127 |
hr.setAttribute("width", "85%"); |
59 | 128 |
hrCell.appendChild(hr); |
... | ... | |
62 | 131 |
hrTR.className = 'sectbody'; |
63 | 132 |
hrTR.appendChild(hrCell); |
64 | 133 |
|
65 |
return hrTR; |
|
134 |
return hrTR;
|
|
66 | 135 |
} |
67 | 136 |
|
68 |
function addTaxon() { |
|
69 |
var taxaCountField = document.getElementById("taxaCount"); |
|
70 |
var taxaCount = taxaCountField.getAttribute("value"); |
|
71 |
taxaCount++; |
|
72 |
taxaCountField.setAttribute("value", taxaCount); |
|
137 |
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 |
} |
|
73 | 144 |
|
74 |
var hrRow = createHRRow(); |
|
75 |
var taxonRankRow = createTextRow(taxaCount, "taxonRankName","Taxon Rank"); |
|
76 |
var taxonNameRow = createTextRow(taxaCount, "taxonRankValue","Taxon Name"); |
|
145 |
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"); |
|
77 | 156 |
|
78 |
var taxonRowMarker = document.getElementById("addtaxarow");
|
|
79 |
var parent = taxonRowMarker.parentNode; |
|
157 |
}
|
|
158 |
|
|
80 | 159 |
|
81 |
parent.insertBefore(hrRow, taxonRowMarker); |
|
82 |
parent.insertBefore(taxonRankRow, taxonRowMarker); |
|
83 |
parent.insertBefore(taxonNameRow, taxonRowMarker); |
|
160 |
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 |
} |
|
84 | 190 |
} |
191 |
|
|
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); |
|
85 | 242 |
|
243 |
var bro = startTag.nextSibling; |
|
86 | 244 |
|
87 |
function addKeyword() { |
|
88 |
var keyCountField = document.getElementById("keyCount"); |
|
89 |
var keyCount = keyCountField.getAttribute("value"); |
|
90 |
keyCount++; |
|
91 |
keyCountField.setAttribute("value", keyCount); |
|
245 |
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 |
} |
|
92 | 258 |
|
93 |
var hrRow = createHRRow(); |
|
94 |
var keyRow = createTextRow(keyCount,"keyword", "Keyword"); |
|
95 |
var keyTypeSelect = createKeyTypeSelect("kwType" + keyCount); |
|
96 |
var keyTypeRow = createRow(keyCount, keyTypeSelect, "Keyword Type"); |
|
97 |
var keyThRow = createKeywordThesaurusRow("kwTh" + keyCount); |
|
259 |
} |
|
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; |
|
98 | 270 |
|
99 |
var keyRowMarker = document.getElementById("addkeyrow"); |
|
100 |
var parent = keyRowMarker.parentNode; |
|
271 |
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 |
} |
|
101 | 281 |
|
102 |
parent.insertBefore(hrRow, keyRowMarker); |
|
103 |
parent.insertBefore(keyRow, keyRowMarker); |
|
104 |
parent.insertBefore(keyTypeRow, keyRowMarker); |
|
105 |
parent.insertBefore(keyThRow, keyRowMarker); |
|
106 |
|
|
282 |
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 |
} |
|
107 | 306 |
} |
108 | 307 |
|
109 |
function createKeywordThesaurusRow(name) { |
|
110 |
var keyRowTemplate = document.getElementById("keyThRow"); |
|
111 |
var newField = keyRowTemplate.cloneNode(true); |
|
112 |
var nodes = newField.getElementsByTagName("input"); |
|
113 |
nodes.item(0).setAttribute("name", name); |
|
114 |
nodes.item(1).setAttribute("name", name); |
|
115 |
return newField; |
|
308 |
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 |
} |
|
116 | 336 |
} |
337 |
|
|
338 |
function addAssociatedParty() { |
|
339 |
var AOLN = document.getElementById("AONameLast"); |
|
340 |
var AOFN = document.getElementById("AONameFirst"); |
|
341 |
var AORole = document.getElementById("AORole"); |
|
117 | 342 |
|
118 |
function createKeyTypeSelect(name) { |
|
343 |
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) { |
|
119 | 475 |
var newField=document.createElement("select"); |
120 | 476 |
newField.setAttribute("name", name); |
121 | 477 |
var option1=document.createElement("option"); |
122 |
var text1=document.createTextNode("None"); |
|
478 |
var text1=document.createTextNode("Co-owner"); |
|
479 |
//var text1=document.createTextNode("Principal Investigator"); |
|
123 | 480 |
option1.appendChild(text1); |
124 | 481 |
newField.appendChild(option1); |
125 | 482 |
var option2=document.createElement("option"); |
126 |
var text2=document.createTextNode("Theme");
|
|
483 |
var text2=document.createTextNode("Custodian/Steward");
|
|
127 | 484 |
option2.appendChild(text2); |
128 | 485 |
newField.appendChild(option2); |
129 | 486 |
var option3=document.createElement("option"); |
130 |
var text3=document.createTextNode("Place");
|
|
487 |
var text3=document.createTextNode("Metadata Provider");
|
|
131 | 488 |
option3.appendChild(text3); |
132 | 489 |
newField.appendChild(option3) |
133 | 490 |
var option4=document.createElement("option"); |
134 |
var text4=document.createTextNode("Stratum");
|
|
491 |
var text4=document.createTextNode("User");
|
|
135 | 492 |
option4.appendChild(text4); |
136 | 493 |
newField.appendChild(option4); |
137 |
var option5=document.createElement("option"); |
|
138 |
var text5=document.createTextNode("Temporal"); |
|
139 |
option5.appendChild(text5); |
|
140 |
newField.appendChild(option5); |
|
141 |
var option6=document.createElement("option"); |
|
142 |
var text6=document.createTextNode("Taxonomic"); |
|
143 |
option6.appendChild(text6); |
|
144 |
newField.appendChild(option6); |
|
494 |
|
|
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 |
} |
|
145 | 504 |
|
146 | 505 |
return newField; |
147 | 506 |
} |
148 | 507 |
|
149 |
function addAdditionalPeople() { |
|
150 |
var aoCountField = document.getElementById("aoCount"); |
|
151 |
var aoCount = aoCountField.getAttribute("value"); |
|
152 |
aoCount++; |
|
153 |
aoCountField.setAttribute("value", aoCount); |
|
154 | 508 |
|
155 |
var aoHRRow = createHRRow(); |
|
156 |
var aoFirstNameRow = createTextRow(aoCount, "origNamefirst", "First Name"); |
|
157 |
var aoLastNameRow = createTextRow(aoCount, "origNamelast", "Last Name"); |
|
158 | 509 |
|
159 |
var role = createRoleTypeSelect("origRole" + aoCount); |
|
160 |
var aoRoleRow = createRow(aoCount, role, "Role"); |
|
161 |
|
|
162 |
var aoRowMarker = document.getElementById("addaorow"); |
|
163 |
var parent = aoRowMarker.parentNode; |
|
510 |
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 |
var row = createTaxonRow(taxonCount, taxonName.value, taxonRank.value); |
|
519 |
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); |
|
164 | 530 |
|
165 |
parent.insertBefore(aoHRRow, aoRowMarker) |
|
166 |
parent.insertBefore(aoFirstNameRow, aoRowMarker); |
|
167 |
parent.insertBefore(aoLastNameRow, aoRowMarker); |
|
168 |
parent.insertBefore(aoRoleRow, aoRowMarker); |
|
531 |
taxonRank.value = ""; |
|
532 |
taxonName.value = ""; |
|
533 |
} else { |
|
534 |
alert("Enter complete taxonomic information"); |
|
535 |
} |
|
169 | 536 |
} |
170 | 537 |
|
171 |
function createRoleTypeSelect(name) { |
|
538 |
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 |
var text = "Rank: " + taxonName + ", Name: " + taxonRank; |
|
553 |
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) { |
|
172 | 776 |
var newField=document.createElement("select"); |
173 | 777 |
newField.setAttribute("name", name); |
174 | 778 |
var option1=document.createElement("option"); |
175 |
var text1=document.createTextNode("Principal Investigator");
|
|
779 |
var text1=document.createTextNode("None");
|
|
176 | 780 |
option1.appendChild(text1); |
177 | 781 |
newField.appendChild(option1); |
178 | 782 |
var option2=document.createElement("option"); |
179 |
var text2=document.createTextNode("Custodian/Steward");
|
|
783 |
var text2=document.createTextNode("GCMD");
|
|
180 | 784 |
option2.appendChild(text2); |
181 | 785 |
newField.appendChild(option2); |
786 |
|
|
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); |
|
182 | 806 |
var option3=document.createElement("option"); |
183 |
var text3=document.createTextNode("Metadata Provider");
|
|
807 |
var text3=document.createTextNode("Place");
|
|
184 | 808 |
option3.appendChild(text3); |
185 | 809 |
newField.appendChild(option3) |
186 | 810 |
var option4=document.createElement("option"); |
187 |
var text4=document.createTextNode("Owner");
|
|
811 |
var text4=document.createTextNode("Stratum");
|
|
188 | 812 |
option4.appendChild(text4); |
189 | 813 |
newField.appendChild(option4); |
814 |
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 |
} |
|
190 | 835 |
return newField; |
191 | 836 |
} |
837 |
|
|
838 |
var basicInfoBit = 1; |
|
839 |
var dsoBit = 1; |
|
840 |
var apBit = 1; |
|
841 |
var abstractBit = 1; |
|
842 |
var keywordBit = 1; |
|
843 |
var temporalBit = 1; |
|
844 |
var spatialBit = 1; |
|
845 |
var taxonomicBit = 1; |
|
846 |
var methodBit = 1; |
|
847 |
var dscBit = 1; |
|
848 |
var distBit = 1; |
|
849 |
|
|
850 |
function swap(evt, _node, nodeBit){ |
|
851 |
evt = (evt) ? evt : ((window.event) ? window.event : null); |
|
852 |
if(evt) { |
|
853 |
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); |
|
854 |
elem.removeChild(elem.firstChild); |
|
192 | 855 |
|
856 |
var node = document.getElementById(_node); |
|
857 |
if(nodeBit){ |
|
858 |
elem.appendChild(document.createTextNode("Show")); |
|
859 |
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){ |
|
860 |
node.style.setAttribute("display", "none"); |
|
861 |
} else { |
|
862 |
node.setAttribute("style", "display:none"); |
|
863 |
} |
|
864 |
return 0; |
|
865 |
} else { |
|
866 |
elem.appendChild(document.createTextNode("Hide")); |
|
867 |
if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all){ |
|
868 |
node.style.removeAttribute("display"); |
|
869 |
} else { |
|
870 |
node.removeAttribute("style"); |
|
871 |
} |
|
872 |
return 1; |
|
873 |
} |
|
874 |
} |
|
875 |
} |
|
876 |
|
|
877 |
|
|
878 |
function handleOther(enable, node){ |
|
879 |
var textBox = document.getElementById(node); |
|
880 |
if(enable){ |
|
881 |
textBox.removeAttribute("disabled"); |
|
882 |
} else { |
|
883 |
textBox.value=""; |
|
884 |
textBox.disabled = "true"; |
|
885 |
} |
|
886 |
} |
|
193 | 887 |
function copyContact(){ |
194 | 888 |
var checkBox = document.getElementById("copyCheckBox"); |
195 | 889 |
if(checkBox.checked == true) |
... | ... | |
310 | 1004 |
[% IF form != 're_entry' %] |
311 | 1005 |
|
312 | 1006 |
|
313 |
<table width="760" cellpadding="3" cellspacing="0">
|
|
1007 |
<table class="intro" cellpadding="3" cellspacing="0">
|
|
314 | 1008 |
|
315 |
<tr><td align="left"><span class="regtext">Use this page to submit a <span class="label">new</span> data set description for |
|
1009 |
<tr><td align="left"><span class="emphasis">Data Registry Form</td></tr> |
|
1010 |
<tr><td align="left"><span class="regtext">Use this form to submit a new data set description for |
|
316 | 1011 |
inclusion in the registry.</span></td></tr> |
317 | 1012 |
<tr><td></td></tr> |
318 | 1013 |
<tr><td align="left"><span class="regtext">Please have a look at the |
319 | 1014 |
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide" target="guide"> |
320 |
<span class="boldlink">Guide on How to Complete Data Registry Entries</span></a>
|
|
321 |
before you start filling in this catalog form. Also, use your browser's
|
|
1015 |
<span class="boldlink">Guide for Completing the Data Registry Form</span></a>
|
|
1016 |
before you start filling in this form. Also, use your browser's |
|
322 | 1017 |
Reload/Refresh function to make sure you see the latest version of this |
323 | 1018 |
page.</span></td></tr> |
324 | 1019 |
<tr><td></td></tr> |
... | ... | |
340 | 1035 |
<a href="mailto:[% recipient %]"><span class="italicized">[% recipient %]</span></a>.</span> |
341 | 1036 |
</td></tr> |
342 | 1037 |
[% END %] |
343 |
<tr><td align="left"><span class="label">* Denotes a required field.</span></td></tr>
|
|
1038 |
<tr><td align="left"><span class="label">*Denotes a required field.</span></td></tr> |
|
344 | 1039 |
<tr><td></td></tr> |
345 | 1040 |
|
346 | 1041 |
<tr><td></td></tr> |
... | ... | |
365 | 1060 |
<input type="hidden" name="temporalRequired" value="[% temporalRequired %]"> |
366 | 1061 |
<input type="hidden" name="spatialRequired" value="[% spatialRequired %]"> |
367 | 1062 |
|
368 |
<table class="tables" cellpadding="8" cellspacing="0"> |
|
369 |
<tr class="sectheader"><td class="borderbottom" colspan="5" align="left"> BASIC INFORMATION - Name of Person completing this form</td> |
|
370 |
<td class="borderbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetOriginator" target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></a></td></tr> |
|
371 |
<tr class="sectbody"><td align="right"><span class="label">*First Name</span><td colspan="5"><input type="TEXT" name="providerGivenName" size="30" value="[%providerGivenName%]"> |
|
1063 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1064 |
<tr class="sectheader"><td colspan="5" align="left"> BASIC INFORMATION - name of person completing this form. |
|
1065 |
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetOriginator" target="guide"> |
|
1066 |
<span class="smalltext">(What's this?)</span></a></td> |
|
1067 |
<td class="rightCol"><span><a onClick="basicInfoBit=swap(event, 'basicInfoTable', basicInfoBit)" style="cursor:pointer">Hide</a></span></td> |
|
1068 |
</tr> |
|
1069 |
</table> |
|
1070 |
|
|
1071 |
<table class="tables" cellpadding="5" cellspacing="0" id="basicInfoTable"> |
|
1072 |
<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%]"> |
|
372 | 1073 |
</td></tr> |
373 |
<tr class="sectbody"><td align="right"><span class="label">*Last Name</span><td colspan="5"><input type="TEXT" name="providerSurName" size="30" value="[%providerSurName%]">
|
|
1074 |
<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%]">
|
|
374 | 1075 |
</td></tr> |
375 | 1076 |
|
376 |
<tr class="sectbody"><td align="right"><span class="label">*Data Set Title</span></td><td colspan="5"><input type="TEXT" name="title" value="[%title%]" size="60">
|
|
1077 |
<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">
|
|
377 | 1078 |
</td></tr> |
378 | 1079 |
|
379 | 1080 |
[% IF showSiteList == 'true' %] |
380 |
<tr class="sectbody"><td align="right"><span class="label">[% usite %] Name</span></td>
|
|
1081 |
<tr class="sectbody" id="sitelist"><td class="rightCol"><span class="label">*[% usite %] Name</span></td>
|
|
381 | 1082 |
<td colspan="5"><select name="site"> |
382 | 1083 |
[% IF form == 're_entry' %] |
383 | 1084 |
<option selected>[%site%]</option> |
... | ... | |
391 | 1092 |
[% END %] |
392 | 1093 |
|
393 | 1094 |
[% IF showWgList == 'true' %] |
394 |
<tr class="sectbody"><td align="right"><span class="label">*NCEAS Project(s):</span></td>
|
|
395 |
<td colspan="5"><select name="wg" multiple="multiple" size="5"> |
|
1095 |
<tr class="sectbody"><td class="rightCol"><span class="label">*NCEAS Project(s):</span></td>
|
|
1096 |
<td colspan="5"><select name="wg" multiple="multiple" size="5" class="longwidth">
|
|
396 | 1097 |
[% FOREACH project = projects %] |
397 | 1098 |
[% SET pname = $project.3 %] |
398 | 1099 |
[% IF pname.length > 50 %] |
... | ... | |
411 | 1112 |
</select></td></tr> |
412 | 1113 |
[% END %] |
413 | 1114 |
[% IF showOrganization == 'true' %] |
414 |
<tr class="sectbody"><td align="right"><span class="label">Organization Name</span></td>
|
|
415 |
<td colspan="5"><input type="TEXT" name="site" size="60" value="[%site%]"></td></tr>
|
|
1115 |
<tr class="sectbody"><td class="rightCol"><span class="label">*Organization Name</span></td>
|
|
1116 |
<td colspan="5"><input type="TEXT" name="site" class="longwidth" value="[%site%]"></td></tr>
|
|
416 | 1117 |
[% END %] |
1118 |
|
|
1119 |
</table> |
|
1120 |
|
|
1121 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1122 |
<tr class="sectheader"><td colspan="5" align="left"><span class="label">PRINCIPAL DATA SET OWNER </span> |
|
1123 |
<a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetOriginator" |
|
1124 |
target="guide"><span class="smalltext">(What's this?)</span></a></td> |
|
1125 |
<td class="rightCol"><span><a onClick="dsoBit=swap(event, 'dsoTable', dsoBit)" style="cursor:pointer">Hide</a></span></td> |
|
1126 |
</tr> |
|
1127 |
</table> |
|
1128 |
|
|
1129 |
<table class="tables" cellpadding="5" cellspacing="0" id="dsoTable"> |
|
1130 |
<tr class="sectbody"><td class="rightCol"><span class="label">*First Name</span></td> |
|
1131 |
<td colspan="5"><input type="TEXT" name="origNamefirst0" class="shortwidth" id="origNameFirst" value="[%origNamefirst0%]"></td></tr> |
|
1132 |
<tr class="sectbody"><td class="rightCol"><span class="label">*Last Name</span></td> |
|
1133 |
<td colspan="5"><input type="TEXT" name="origNamelast0" class="shortwidth" id="origNameLast" value="[%origNamelast0%]"></td></tr> |
|
1134 |
<tr class="sectbody"><td class="rightCol"><span class="label">Organization Name</span></td> |
|
1135 |
<td colspan="5"><input type="TEXT" name="origNameOrg" class="longwidth" id="origNameOrg" value="[%origNameOrg%]"></td></tr> |
|
1136 |
<tr class="sectbody"><td class="rightCol"><span class="label">E-Mail</span></td> |
|
1137 |
<td colspan="5"><input type="TEXT" name="origEmail" class="shortwidth" id="origEmail" value="[%origEmail%]"></td></tr> |
|
1138 |
<tr class="sectbody"><td class="rightCol"><span class="label">Phone</span></td> |
|
1139 |
<td colspan="5"><input type="TEXT" name="origPhone" class="shortwidth" id="origPhone" value="[%origPhone%]"></td></tr> |
|
1140 |
<tr class="sectbody"><td class="rightCol"><span class="label">FAX</span></td> |
|
1141 |
<td colspan="5"><input type="TEXT" name="origFAX" class="shortwidth" id="origFAX" value="[%origFAX%]"></td></tr> |
|
1142 |
|
|
1143 |
<tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td> |
|
1144 |
<td colspan="5"><textarea id="origDelivery" name="origDelivery" class="longwidth">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span> |
|
1145 |
</td></tr> |
|
417 | 1146 |
|
418 |
<tr class="sectheader"><td class="topbottom" colspan="5" align="left">PRINCIPAL DATA SET OWNER </td> |
|
419 |
<td class="topbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetOriginator" target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></a> |
|
420 |
</td></tr> |
|
421 |
<tr class="sectbody"><td align="right"><span class="label">*First Name</span></td> |
|
422 |
<td colspan="5"><input type="TEXT" name="origNamefirst0" size="30" id="origNameFirst" value="[%origNamefirst0%]"></td></tr> |
|
423 |
<tr class="sectbody"><td align="right"><span class="label">*Last Name</span></td> |
|
424 |
<td colspan="5"><input type="TEXT" name="origNamelast0" size="30" id="origNameLast" value="[%origNamelast0%]"></td></tr> |
|
425 |
<tr class="sectbody"><td align="right"><span class="label">Organization Name</span></td> |
|
426 |
<td colspan="5"><input type="TEXT" name="origNameOrg" size="60" id="origNameOrg" value="[%origNameOrg%]"></td></tr> |
|
427 |
<tr class="sectbody"><td align="right"><span class="label">E-Mail</span></td> |
|
428 |
<td colspan="5"><input type="TEXT" name="origEmail" size="30" id="origEmail" value="[%origEmail%]"></td></tr> |
|
429 |
<tr class="sectbody"><td align="right"><span class="label">Phone</span></td> |
|
430 |
<td colspan="5"><input type="TEXT" name="origPhone" size="30" id="origPhone" value="[%origPhone%]"></td></tr> |
|
431 |
<tr class="sectbody"><td align="right"><span class="label">FAX</span></td> |
|
432 |
<td colspan="5"><input type="TEXT" name="origFAX" size="30" id="origFAX" value="[%origFAX%]"></td></tr> |
|
433 |
<tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td> |
|
434 |
<td colspan="5"><textarea rows="3" cols="30" id="origDelivery" name="origDelivery">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span> |
|
435 |
</td></tr> |
|
436 |
<tr class="sectbody"><td align="right"><span class="label">City</span></td> |
|
437 |
<td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" size="30"></td></tr> |
|
438 |
<tr class="sectbody"><td align="right"><span class="label">State</span></td> |
|
439 |
<td colspan="5"><select name="origState" id="origState"> |
|
1147 |
<tr class="sectbody"><td class="rightCol"><span class="label">City</span></td> |
|
1148 |
<td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" class="shortwidth"></td></tr> |
|
1149 |
<tr class="sectbody"><td class="rightCol"><span class="label">State</span></td> |
|
1150 |
<td colspan="5"><select name="origState" id="origState" class="shortwidth"> |
|
440 | 1151 |
[% IF form == 're_entry' %] |
441 | 1152 |
<option selected>[%origState%]</option> |
442 | 1153 |
[% ELSE %] |
... | ... | |
501 | 1212 |
<option>West Virginia</option> |
502 | 1213 |
<option>Wisconsin</option> |
503 | 1214 |
<option>Wyoming</option> |
504 |
</select></td></tr> |
|
505 |
<tr class="sectbody"><td align="right"><span class="label">Other State/Province</span></td> |
|
506 |
<td colspan="5"><input type="TEXT" name="origStateOther" size="30" id="origStateOther" value="[%origStateOther%]"></td></tr> |
|
507 |
<tr class="sectbody"><td align="right"><span class="label">Postal Code</span></td> |
|
508 |
<td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" size="30"></td></tr> |
|
509 |
<tr class="sectbody"><td align="right"><span class="label">Country</span></td> |
|
510 |
<td colspan="5"><input type="TEXT" name="origCountry" size="30" id="origCountry" value="[%origCountry%]"></td></tr> |
|
511 |
|
|
512 |
<tr class="sectheader"><td class="topbottom" colspan="5" align="left"><span class="label">ASSOCIATED PARTIES</span></td> |
|
513 |
<td class="topbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#AdditionalOriginators" |
|
514 |
target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></a></td></tr> |
|
515 |
|
|
516 |
[% numAO = 1 %] |
|
517 |
[% IF aoCount > 0 %] |
|
518 |
[% numAO = aoCount %] |
|
519 |
[% END %] |
|
520 |
<input type="hidden" name="aoCount" value="[%numAO%]" |
|
521 |
id="aoCount"> |
|
522 |
|
|
523 |
[% cnt = 1 %] |
|
524 |
[% WHILE cnt <= numAO%] |
|
525 |
<tr class="sectbody"><td align="right"><span class="label">First Name</span></td> |
|
1215 |
</select></td></tr> |
|
1216 |
|
|
1217 |
<tr class="sectbody"><td class="rightCol"><span class="label">Other State/Province</span></td> |
|
1218 |
<td colspan="5"><input type="TEXT" name="origStateOther" class="shortwidth" id="origStateOther" value="[%origStateOther%]"></td></tr> |
|
1219 |
<tr class="sectbody"><td class="rightCol"><span class="label">Postal Code</span></td> |
|
1220 |
<td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" class="shortwidth"></td></tr> |
|
1221 |
<tr class="sectbody"><td class="rightCol"><span class="label">Country</span></td> |
|
1222 |
<td colspan="5"><input type="TEXT" name="origCountry" class="shortwidth" id="origCountry" value="[%origCountry%]"></td></tr> |
|
1223 |
</table> |
|
1224 |
|
|
1225 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1226 |
<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" |
|
1227 |
target="guide"><span class="smalltext">(What's this?)</span></a></td> |
|
1228 |
<td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td> |
|
1229 |
</tr> |
|
1230 |
</table> |
|
1231 |
|
|
1232 |
<table class="tables" cellpadding="5" cellspacing="0" id="apTable"> |
|
1233 |
<tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td> |
|
526 | 1234 |
<td colspan="5"> |
527 |
[% SET key = "origNamefirst${cnt}" %] |
|
528 |
<input name="origNamefirst[%cnt%]" value="[%$key%]" size="30"></td></tr> |
|
1235 |
<input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr> |
|
529 | 1236 |
|
530 |
<tr class="sectbody"><td align="right"><span class="label">Last Name</span></td> |
|
531 |
<td colspan="5"> |
|
532 |
[% SET key = "origNamelast${cnt}" %] |
|
533 |
<input name="origNamelast[%cnt%]" value="[%$key%]" size="30"></td></tr> |
|
1237 |
<tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td> |
|
1238 |
<td colspan="5"> |
|
1239 |
<input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr> |
|
534 | 1240 |
|
535 |
<tr class="sectbody"><td align="right"><span class="label">Role</span></td> |
|
536 |
<td colspan="5"> |
|
537 |
[% SET origR = "origRole${cnt}" %] |
|
538 |
<select name="origRole[%cnt%]"> |
|
539 |
[% IF form == 're_entry' && $origR != ""%] |
|
540 |
<option selected>[%$origR%]</option> |
|
541 |
[% END %] |
|
542 |
<option>Principal Investigator</option> |
|
1241 |
<tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td> |
|
1242 |
<td colspan="5"> |
|
1243 |
<select id="AORole" name="aoRole" class="shortwidth"> |
|
1244 |
<option>Co-owner</option> |
|
543 | 1245 |
<option>Custodian/Steward</option> |
544 | 1246 |
<option>Metadata Provider</option> |
545 |
<option>Owner</option> |
|
546 |
</select> |
|
547 |
</td> |
|
548 |
</tr> |
|
549 |
[% cnt = cnt + 1 %] |
|
550 |
[% END %] |
|
551 |
|
|
552 |
<tr class="sectbody" id="addaorow"> |
|
1247 |
<option>User</option> |
|
1248 |
</select> |
|
1249 |
</td> |
|
1250 |
</tr> |
|
1251 |
|
|
1252 |
<tr id="addAssociatedParty" class="sectbody"> |
|
553 | 1253 |
<td></td> |
554 | 1254 |
<td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1" |
555 |
onClick="addAdditionalPeople()"></td></tr> |
|
556 |
|
|
557 |
|
|
558 |
<tr class="sectheader"><td class="topbottom" colspan="5" align="left"><span class="label">DATA SET ABSTRACT</span></td> |
|
559 |
<td class="topbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#DataSetAbstract" |
|
560 |
target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></td></tr> |
|
561 |
|
|
562 |
<tr class="sectbody"><td align="right" valign="top"><span class="label">*Data Set Abstract</span></td> |
|
1255 |
onClick="addAssociatedParty()"></td></tr> |
|
1256 |
|
|
1257 |
[% numAO = 0 %] |
|
1258 |
[% IF aoCount > 0 %] |
|
1259 |
[% numAO = aoCount %] |
|
1260 |
<tr class="sectbody" id="aoHRRow"> |
|
1261 |
<td colSpan="6"> |
|
1262 |
<hr width = "85%"/> |
|
1263 |
</td> |
|
1264 |
</tr> |
|
1265 |
[% END %] |
|
1266 |
[% cnt = 1 %] |
|
1267 |
[% WHILE cnt < numAO%] |
|
1268 |
|
|
1269 |
<tr class="sectbody"> |
|
1270 |
[% SET aofn = "origNamefirst${cnt}" %] |
|
1271 |
[% SET aoln = "origNamelast${cnt}" %] |
|
1272 |
[% SET aorole = "origRole${cnt}" %] |
|
1273 |
|
|
1274 |
<td class="rightCol"> |
|
1275 |
<a style="cursor:pointer"> |
|
1276 |
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)" |
|
1277 |
src="@systemidserver@@html-path@/style/images/previous.gif" |
|
1278 |
alt="Move Up" border="0"/> |
|
1279 |
</a> |
|
1280 |
<a style="cursor:pointer"> |
|
1281 |
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')" |
|
1282 |
src="@systemidserver@@html-path@/style/images/next.gif" |
|
1283 |
alt="Move Down" border="0"/> |
|
1284 |
</a> |
|
1285 |
<a style="cursor:pointer"> |
|
1286 |
<img src="@systemidserver@@html-path@/style/images/delete.gif" |
|
1287 |
onClick="delRow(event)" alt="Delete" border="0"/> |
|
1288 |
</a> |
|
1289 |
</td> |
|
1290 |
<td colspan="5" align ="left" style="cursor:pointer" |
|
1291 |
onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')"> |
|
1292 |
[%$aofn%] [%$aoln%] (Role: [%$aorole%]) |
|
1293 |
<input name="aoFirstName" type="hidden" value="[%$aofn%]"/> |
|
1294 |
<input name="aoLastName" type="hidden" value="[%$aoln%]"/> |
|
1295 |
<input name="aoRole" type="hidden" value="[%$aorole%]"/> |
|
1296 |
</td> |
|
1297 |
</tr> |
|
1298 |
[% cnt = cnt + 1 %] |
|
1299 |
[% END %] |
|
1300 |
<input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount"> |
|
1301 |
<tr class="sectbody" id="addaorow"><td colspan=6 /></tr> |
|
1302 |
</table> |
|
1303 |
|
|
1304 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1305 |
<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" |
|
1306 |
target="guide"><span class="smalltext">(What's this?)</span></td> |
|
1307 |
<td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td> |
|
1308 |
</tr> |
|
1309 |
</table> |
|
1310 |
|
|
1311 |
<table class="tables" cellpadding="5" cellspacing="0" id="abstractTable"> |
|
1312 |
<tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span></td> |
|
563 | 1313 |
<td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr> |
564 |
|
|
565 |
|
|
1314 |
</table> |
|
1315 |
|
|
566 | 1316 |
[% IF hasKeyword == 'true' %] |
567 |
<tr class="sectheader"><td class="topbottom" colspan="5" align="left"><span class="label">KEYWORD INFORMATION - for samples, see <a href= |
|
1317 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1318 |
<tr class="sectheader"><td colspan="5" align="left"><span class="label">KEYWORD - for samples, see <a href= |
|
568 | 1319 |
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class= |
569 |
"boldlink">NASA Global Change Master Directory (GCMD).</span></a></span></td> |
|
570 |
<td class="topbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#KeywordInformation" |
|
571 |
target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></a></td></tr> |
|
572 |
|
|
573 |
[% numKey = 1 %] |
|
574 |
[% IF keyCount > 0 %] |
|
575 |
[% numKey = keyCount %] |
|
576 |
[% END %] |
|
577 |
<input type="hidden" name="keyCount" value="[%numKey%]" |
|
578 |
id="keyCount"> |
|
579 |
|
|
580 |
[% cnt = 1 %] |
|
581 |
[% WHILE cnt <= numKey %] |
|
582 |
<tr class="sectbody"><td align="right"><span class="label">Keyword</span></td> |
|
1320 |
"boldlink">NASA Global Change Master Directory (GCMD)</span></a><span class="label">. </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#KeywordInformation" |
|
1321 |
target="guide"><span class="smalltext">(What's this?)</span></a></td> |
|
1322 |
<td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td> |
|
1323 |
</tr> |
|
1324 |
</table> |
|
1325 |
|
|
1326 |
<table class="tables" cellpadding="5" cellspacing="0" id="keywordTable"> |
|
1327 |
<tr class="sectbody"> |
|
1328 |
<td class="rightCol"><span class="label">Keyword</span></td> |
|
583 | 1329 |
<td colspan="5"> |
584 |
[% SET key = "keyword${cnt}" %]
|
|
585 |
<input name="keyword[%cnt%]" value="[%$key%]" size="30"></td></tr> |
|
586 |
|
|
587 |
<tr class="sectbody"><td align="right"><span class="label">Keyword Type</span></td>
|
|
1330 |
<input name="keyword" id="keyword" class="shortwidth"></td></tr>
|
|
1331 |
|
|
1332 |
|
|
1333 |
<tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
|
|
588 | 1334 |
<td colspan="5"> |
589 |
[% SET keyT = "kwType${cnt}" %] |
|
590 |
<select name="kwType[%cnt%]"> |
|
591 |
[% IF form == 're_entry' && $keyT !="" %] |
|
592 |
<option selected>[%$keyT%]</option> |
|
593 |
[% END %] |
|
1335 |
<select name="keywordType" id="keywordType" class="shortwidth"> |
|
594 | 1336 |
<option>None</option> |
595 | 1337 |
<option>Theme</option> |
596 | 1338 |
<option>Place</option> |
597 | 1339 |
<option>Stratum</option> |
598 | 1340 |
<option>Temporal</option> |
599 | 1341 |
<option>Taxonomic</option> |
600 |
</select></td></tr> |
|
1342 |
</select> |
|
1343 |
</td></tr> |
|
601 | 1344 |
|
602 |
<tr id="keyThRow" class="sectbody"><td align="right"><span class="label">Keyword Thesaurus</span></td>
|
|
1345 |
<tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
|
|
603 | 1346 |
<td colspan="5"> |
604 | 1347 |
|
605 |
|
|
606 |
<!--[% SET keyTh = "kwTh${cnt}" %] |
|
607 |
<select name="kwTh[%cnt%]"> |
|
608 |
[% IF form == 're_entry' && $keyTh != "none" && $keyTh != "" %] |
|
609 |
<option selected>[%$keyTh%]</option> |
|
610 |
[% END %] |
|
611 |
<option>None</option> |
|
612 |
<option>GCMD</option> |
|
613 |
</select> --> |
|
1348 |
<select name="keywordTh" id="keywordTh" class="shortwidth"> |
|
1349 |
<option>None</option> |
|
1350 |
<option>GCMD</option> |
|
1351 |
</select> |
|
614 | 1352 |
|
615 |
|
|
616 |
<input type="radio" name="kwTh[%cnt%]" value="none"><span class="regtext">None </span> |
|
617 |
<input type="radio" name="kwTh[%cnt%]" value="GCMD"><span class="regtext">GCMD </span> |
|
1353 |
<!-- <input type="radio" name="kwTh[%cnt%]" value="none"><span class="regtext">None </span> |
|
1354 |
<input type="radio" name="kwTh[%cnt%]" value="GCMD"><span class="regtext">GCMD </span> --> |
|
618 | 1355 |
|
619 | 1356 |
|
620 | 1357 |
</td></tr> |
621 | 1358 |
|
622 |
[% cnt = cnt + 1 %] |
|
623 |
[% END %] |
|
624 |
|
|
625 |
<tr id="addkeyrow" class="sectbody"><td></td><td colspan="5" align="left"> |
|
626 |
<input type="button" value="Add Keyword" id="addkeybutton1" |
|
627 |
onClick="addKeyword()"></td></tr> |
|
628 |
|
|
1359 |
<tr id="addKeyword" class="sectbody"> |
|
1360 |
<td></td> |
|
1361 |
<td colspan="5" align="left"> |
|
1362 |
<input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr> |
|
1363 |
|
|
1364 |
|
|
1365 |
[% numKey = 0 %] |
|
1366 |
[% IF keyCount > 0 %] |
|
1367 |
[% numKey = keyCount %] |
|
1368 |
[% numAO = aoCount %] |
|
1369 |
<tr class="sectbody" id="keywordHRRow"> |
|
1370 |
<td colSpan="6"> |
|
1371 |
<hr width = "85%"/> |
|
1372 |
</td> |
|
1373 |
</tr> |
|
1374 |
[% END %] |
|
1375 |
<input type="hidden" name="keyCount" value="[%numKey%]" |
|
1376 |
id="keyCount"> |
|
1377 |
|
|
1378 |
[% cnt = 1 %] |
|
1379 |
[% WHILE cnt < numKey %] |
|
1380 |
|
|
1381 |
<tr class="sectbody"> |
|
1382 |
<td class="rightCol"> |
|
1383 |
<a style="cursor:pointer"> |
|
1384 |
<img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)" |
|
1385 |
src="@systemidserver@@html-path@/style/images/previous.gif" |
|
1386 |
alt="Move Up" border="0"/> |
|
1387 |
</a> |
|
1388 |
<a style="cursor:pointer"> |
|
1389 |
<img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')" |
|
1390 |
src="@systemidserver@@html-path@/style/images/next.gif" |
|
1391 |
alt="Move Down" border="0"/> |
|
1392 |
</a> |
|
1393 |
<a style="cursor:pointer"> |
|
1394 |
<img src="@systemidserver@@html-path@/style/images/delete.gif" |
|
1395 |
onClick="delRow(event)" alt="Delete" border="0"/> |
|
1396 |
</a> |
|
1397 |
</td> |
|
1398 |
[% SET keyword = "keyword${cnt}" %] |
|
1399 |
[% SET keywordType = "kwType${cnt}" %] |
|
1400 |
[% SET keywordTh = "kwTh${cnt}" %] |
|
1401 |
<td colspan="5" align ="left" style="cursor:pointer" |
|
1402 |
onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')"> |
|
1403 |
[%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%]) |
|
1404 |
<input name="keyword" type="hidden" value="[%$keyword%]"/> |
|
1405 |
<input name="keywordType" type="hidden" value="[%$keywordType%]"/> |
|
1406 |
<input name="keywordTh" type="hidden" value="[%$keywordTh%]"/> |
|
1407 |
</td> |
|
1408 |
</tr> |
|
1409 |
[% cnt = cnt + 1 %] |
|
1410 |
[% END %] |
|
1411 |
<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr> |
|
1412 |
</table> |
|
629 | 1413 |
[% END %] |
630 |
|
|
1414 |
|
|
631 | 1415 |
[% IF hasTemporal == 'true' %] |
632 |
|
|
633 |
<tr class="sectheader"><td class="topbottom" colspan="5" align="left"><span class="label"> |
|
634 |
TEMPORAL COVERAGE OF DATA</span></td> |
|
635 |
<td class="topbottom" align="right"><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TemporalCoverageOfData" |
|
636 |
target="guide"><img src="@systemidserver@@html-path@/style/images/question_mark.gif" alt="What's this?" border="0"></a></td></tr> |
|
637 |
|
|
638 |
<tr class="sectbody"><td> |
|
639 |
<td align="left"><span class="label">Start Date</span></td><td></td> |
|
640 |
<td align="left" colspan="3"><span class="label">Stop Date</span></td></tr> |
|
1416 |
|
|
1417 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
1418 |
<tr class="sectheader"><td colspan="5" align="left"><span class="label"> |
|
1419 |
TEMPORAL COVERAGE OF DATA </span><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TemporalCoverageOfData" |
|
1420 |
target="guide"><span class="smalltext">(What's this?)</span></a></td> |
|
1421 |
<td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td> |
|
1422 |
</tr> |
|
1423 |
</table> |
|
1424 |
|
|
1425 |
<table class="tables" cellpadding="5" cellspacing="0" id="temporalTable"> |
|
1426 |
<tr class="sectbody"> |
|
1427 |
<td/> |
|
1428 |
<td align="left"><span class="label">Start Date</span></td> |
|
1429 |
<td/> |
|
1430 |
<td align="left"><span class="label">Stop Date</span></td> |
|
1431 |
<td colspan="2"></td> |
|
1432 |
</tr> |
|
641 | 1433 |
|
642 | 1434 |
<tr class="sectbody"> |
643 |
<td align="right">
|
|
1435 |
<td class="rightCol">
|
|
644 | 1436 |
[% IF temporalRequired == 'true' %] |
645 | 1437 |
<span class="label">*Year (yyyy)</span> |
646 | 1438 |
[% ELSE %] |
647 | 1439 |
<span class="label">Year (yyyy)</span> |
648 | 1440 |
[% END %]</td> |
649 |
<td align="left"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td> |
|
650 |
<td align="right"><span class="label">Year (yyyy)</span></td> |
|
651 |
<td colspan="3" align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td> |
|
1441 |
<td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td> |
|
1442 |
<td class="rightCol"><span class="label">Year (yyyy)</span></td> |
|
1443 |
<td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td> |
|
1444 |
<td colspan="3"></td> |
|
652 | 1445 |
</tr> |
653 | 1446 |
|
654 | 1447 |
|
655 | 1448 |
<tr class="sectbody"> |
656 |
<td align="right">
|
|
1449 |
<td class="rightCol">
|
|
657 | 1450 |
[% IF temporalRequired == 'true' %] |
658 | 1451 |
<span class="label">*Month</span> |
659 | 1452 |
[% ELSE %] |
... | ... | |
669 | 1462 |
<option>12</option> |
670 | 1463 |
</select></td> |
671 | 1464 |
|
672 |
<td align="right"><span class="label">Month</span></td>
|
|
673 |
<td align="left" colspan="3"> <select name="endingMonth">
|
|
1465 |
<td class="rightCol"><span class="label">Month</span></td>
|
|
1466 |
<td align="left"> <select name="endingMonth"> |
|
674 | 1467 |
[% IF form == 're_entry' && endingMonth != ""%] |
675 | 1468 |
<option selected>[%endingMonth%]</option> |
676 | 1469 |
[% END %] |
... | ... | |
678 | 1471 |
<option>04</option> <option>05</option> <option>06</option> <option>07</option> |
679 | 1472 |
<option>08</option> <option>09</option> <option>10</option> <option>11</option> |
680 | 1473 |
<option>12</option> |
681 |
</select></td></tr> |
|
682 |
|
|
1474 |
</select></td> <td colspan="2"></td></tr> |
|
683 | 1475 |
|
684 | 1476 |
<tr class="sectbody"> |
685 |
<td align="right">
|
|
1477 |
<td class="rightCol">
|
|
686 | 1478 |
[% IF temporalRequired == 'true' %] |
687 | 1479 |
<span class="label">*Day</span> |
688 | 1480 |
[% ELSE %] |
... | ... | |
703 | 1495 |
<option>28</option> <option>29</option> <option>30</option> <option>31</option> |
704 | 1496 |
</select></td> |
705 | 1497 |
|
706 |
<td align="right"><span class="label">Day</span></td> |
|
707 |
<td align="left" colspan="3"><select name="endingDay"> |
|
1498 |
<td class="rightCol"><span class="label">Day</span></td> |
Also available in: Unified diff
Changes made to Data Registry Form by Veronique Connolly and Saurabh Garg