Project

General

Profile

1 7867 leinfelder
[% INCLUDE $templates.header %]
2
3
  <script language="JavaScript">
4
	    var contextUrl = '[% contextUrl %]';
5
	</script>
6 7868 leinfelder
  <script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/metacatui/entryForm.js">
7 7867 leinfelder
  </script>
8
9 7889 leinfelder
	<!-- CONTENT SECTION
10
    ======================================================================= -->
11
	<article id="EntryForm">
12
		<div class="container">
13
14
			<div class="row-fluid">
15
16
				[% IF form != 're_entry' %]
17
18
					<h2>Upload your data</h2>
19
					<p class="lead">
20
						Use this form to submit a new data package to the repository.
21
					</p>
22
23
				[% ELSE %]
24
25
					<h2>Edit your data</h2>
26
					<p class="lead">
27
						Use this form to edit a data package submitted earlier.
28
					</p>
29
30
					[%IF docid !=''%]
31
						<p>
32
							The ID of this data set is: <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
33
						</p>
34
\					[%END%]
35
36
				[% END %]
37
38
				<p>
39
					Please have a look at the
40
					<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
41
					Guide for Completing the Data Repository Form</a>
42
	        		before you start filling in this form. Also, use your browser's
43
	        		Reload/Refresh function to make sure you see the latest version of this
44
	        		page.
45
				</p>
46
				<p>
47
					If you have any questions, comments or problems
48
					regarding this form, please contact the repository administrator at
49
					<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
50
				</p>
51
				<p class="text-info">*Denotes a required field.</p>
52
			</div>
53 7867 leinfelder
54 7896 leinfelder
			<!--  the main form -->
55
			<div class="row-fluid">
56
57
<form action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post" class="form-horizontal">
58 7867 leinfelder
  <input type="hidden" name="cfg" value="[% cfg %]">
59
  <input type="hidden" name="docid" value="[% docid %]">
60
  <input type="hidden" name="stage" value="insert">
61
62 7896 leinfelder
  				<div class="accordion" id="entryFormAccordian">
63
					<div class="accordion-group">
64
65
						<!-- SUBMITTER -->
66
						<div class="accordion-heading">
67
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSubmitter" href="#none">
68
								Submitter
69
							</a>
70
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter"><i class="icon-question-sign"></i></a>
71
						</div>
72
						<div id="collapseSubmitter" class="accordion-body collapse in">
73
							<div class="accordion-inner">
74
								<!--  the INPUT -->
75
								<div class="control-group">
76
									<label class="control-label" for="providerGivenName">*First Name</label>
77
									<div class="controls">
78
										<input type="text" name="providerGivenName" value="[%providerGivenName%]">
79
									</div>
80
								</div>
81
								<div class="control-group">
82
									<label class="control-label" for="providerSurName">*Last Name</label>
83
									<div class="controls">
84
										<input type="text" name="providerSurName" value="[%providerSurName%]">
85
									</div>
86
								</div>
87
88
						    </div>
89
						</div>
90
91
						<!-- BASIC -->
92
						<div class="accordion-heading">
93
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
94
								Basic Information
95
							</a>
96
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
97
						</div>
98
						<div id="collapseBasic" class="accordion-body collapse in">
99
							<div class="accordion-inner">
100
								<!--  the INPUT -->
101
								<div class="control-group">
102
									<label class="control-label" for="title">*Data Set Title</label>
103
									<div class="controls">
104
										<input type="text" name="title" value="[%title%]">
105
									</div>
106
								</div>
107
								[% IF show.siteList == 'true' %]
108
									<div class="control-group">
109
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
110
										<div class="controls">
111
											<select name="site">
112
												[% IF form == 're_entry' %]
113
													<option selected>[%site%]</option>
114
												[% ELSE %]
115
													<option>Select your [% config.site %] here.</option>
116
												[% END %]
117
												[% FOREACH site = siteList %]
118
													<option>[% site %]</option>
119
												[% END %]
120
											</select>
121
										</div>
122
									</div>
123
								[% END %]
124
								[% IF show.wgList == 'true' %]
125
									<div class="control-group">
126
										<label class="control-label" for="site">*NCEAS Project(s):</label>
127
										<div class="controls">
128
											<select name="wg" multiple="multiple" size="5">
129
												[% FOREACH project = projects %]
130
													[% SET pname = $project.3 %]
131
													[% IF pname.length > 50 %]
132
														[% SET sname = $project.4 %]
133
													[% END %]
134
													[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
135
													[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
136
													[% SET sel = '' %]
137
													[% FOREACH group = wg %]
138
														[% IF group == value %]
139
															[% SET sel = 'selected="selected"' %]
140
														[% END %]
141
													[% END %]
142
													<option value="[% value %]" [% sel %]>[% label %]</option>
143
												[% END %]
144
											</select>
145
										</div>
146
									</div>
147
								[% END %]
148
								[% IF show.organization == 'true' %]
149
									<div class="control-group">
150
										<label class="control-label" for="site">*Organization</label>
151
										<div class="controls">
152
											<input type="text" name="site" value="[%site%]">
153
										</div>
154
									</div>
155
								[% END %]
156
157
						    </div>
158
						</div>
159 7898 leinfelder
160
						<!-- PRINCIPAL DATA SET OWNER -->
161
						<div class="accordion-heading">
162 7902 leinfelder
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseOwner" href="#none">
163 7898 leinfelder
								Data Set Owner
164
							</a>
165
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator"><i class="icon-question-sign"></i></a>
166
						</div>
167 7902 leinfelder
						<div id="collapseOwner" class="accordion-body collapse in">
168 7898 leinfelder
							<div class="accordion-inner">
169
								<!--  the INPUT -->
170
								<div class="control-group">
171
									<label class="control-label" for="origNamefirst0">*First Name</label>
172
									<div class="controls">
173
										<input type="text" name="origNamefirst0" value="[%origNamefirst0%]">
174
									</div>
175
								</div>
176
								<div class="control-group">
177
									<label class="control-label" for="origNamelast0">*Last Name</label>
178
									<div class="controls">
179
										<input type="text" name="origNamelast0" value="[%origNamelast0%]">
180
									</div>
181
								</div>
182
								<div class="control-group">
183
									<label class="control-label" for="origNameOrg">Organization Name</label>
184
									<div class="controls">
185
										<input type="text" name="origNameOrg" value="[%origNameOrg%]">
186
									</div>
187
								</div>
188
								<div class="control-group">
189
									<label class="control-label" for="origEmail">Email</label>
190
									<div class="controls">
191
										<input type="text" name="origEmail" value="[%origEmail%]">
192
									</div>
193
								</div>
194
								<div class="control-group">
195
									<label class="control-label" for="origPhone">Phone</label>
196
									<div class="controls">
197
										<input type="text" name="origPhone" value="[%origPhone%]">
198
									</div>
199
								</div>
200
								<div class="control-group">
201
									<label class="control-label" for="origFAX">Fax</label>
202
									<div class="controls">
203
										<input type="text" name="origFAX" value="[%origFAX%]">
204
									</div>
205
								</div>
206
								<div class="control-group">
207
									<label class="control-label" for="origDelivery">Street Address</label>
208
									<div class="controls">
209
										<textarea id="origDelivery" name="origDelivery">[%origDelivery%]</textarea>
210
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
211
									</div>
212
								</div>
213
								<div class="control-group">
214
									<label class="control-label" for="origCity">City</label>
215
									<div class="controls">
216
										<input type="text" name="origCity" value="[%origCity%]">
217
									</div>
218
								</div>
219
								<div class="control-group">
220
									<label class="control-label" for="origState">U.S. State or Territory</label>
221
									<div class="controls">
222
										<select name="origState" id="origState">
223
											[% IF form == 're_entry' %]
224
												<option selected>[%origState%]</option>
225
											[% ELSE %]
226
												<option>Select state or territory here.</option>
227
											[% END %]
228
											<option>Alabama</option>
229
											<option>Alaska</option>
230
											<option>American Samoa</option>
231
											<option>Arizona</option>
232
											<option>Arkansas</option>
233
											<option>California</option>
234
											<option>Colorado</option>
235
											<option>Connecticut</option>
236
											<option>Delaware</option>
237
											<option>District of Columbia</option>
238
											<option>Florida</option>
239
											<option>Georgia</option>
240
											<option>Guam</option>
241
											<option>Hawaii</option>
242
											<option>Idaho</option>
243
											<option>Illinois</option>
244
											<option>Indiana</option>
245
											<option>Iowa</option>
246
											<option>Kansas</option>
247
											<option>Kentucky</option>
248
											<option>Louisiana</option>
249
											<option>Maine</option>
250
											<option>Maryland</option>
251
											<option>Massachusetts</option>
252
											<option>Michigan</option>
253
											<option>Minnesota</option>
254
											<option>Mississippi</option>
255
											<option>Missouri</option>
256
											<option>Montana</option>
257
											<option>Nebraska</option>
258
											<option>Nevada</option>
259
											<option>New Hampshire</option>
260
											<option>New Jersey</option>
261
											<option>New Mexico</option>
262
											<option>New York</option>
263
											<option>North Carolina</option>
264
											<option>North Dakota</option>
265
											<option>Northern Mariana Islands</option>
266
											<option>Ohio</option>
267
											<option>Oklahoma</option>
268
											<option>Oregon</option>
269
											<option>Pennsylvania</option>
270
											<option>Puerto Rico</option>
271
											<option>Rhode Island</option>
272
											<option>South Carolina</option>
273
											<option>South Dakota</option>
274
											<option>Tennessee</option>
275
											<option>Texas</option>
276
											<option>Utah</option>
277
											<option>Vermont</option>
278
											<option>Virgin Islands</option>
279
											<option>Virginia</option>
280
											<option>Washington</option>
281
											<option>West Virginia</option>
282
											<option>Wisconsin</option>
283
											<option>Wyoming</option>
284
										</select>
285
									</div>
286
								</div>
287
								<div class="control-group">
288
									<label class="control-label" for="origStateOther">Other State/Province</label>
289
									<div class="controls">
290
										<input type="text" name="origStateOther" value="[%origStateOther%]">
291
									</div>
292
								</div>
293
								<div class="control-group">
294
									<label class="control-label" for="origZip">Postal Code</label>
295
									<div class="controls">
296
										<input type="text" name="origZip" value="[%origZip%]">
297
									</div>
298
								</div>
299
								<div class="control-group">
300
									<label class="control-label" for="origCountry">Country</label>
301
									<div class="controls">
302
										<input type="text" name="origCountry" value="[%origCountry%]">
303
									</div>
304
								</div>
305
306
307
						    </div>
308
						</div>
309 7899 leinfelder
310
						<!-- ASSOCIATED PARTIES -->
311
						<div class="accordion-heading">
312
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseParties" href="#none">
313
								Associated Parties
314
							</a>
315
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"><i class="icon-question-sign"></i></a>
316
						</div>
317
						<div id="collapseParties" class="accordion-body collapse in">
318
							<div class="accordion-inner">
319 7900 leinfelder
320
								<div class="control-group">
321
									<label class="control-label" for="aoFirstName">First Name</label>
322
									<div class="controls">
323
										<input type="text" name="aoFirstName" id="AONameFirst"">
324
									</div>
325
								</div>
326
								<div class="control-group">
327
									<label class="control-label" for="aoLastName">Last Name</label>
328
									<div class="controls">
329
										<input type="text" name="aoLastName" id="AONameLast"">
330
									</div>
331
								</div>
332
								<div class="control-group">
333
									<label class="control-label" for="aoRole">Role</label>
334
									<div class="controls">
335
										<select id="AORole" name="aoRole">
336
								            <option>Co-owner</option>
337
								            <option>Custodian/Steward</option>
338
								            <option>Metadata Provider</option>
339
								      		<option>User</option>
340
								        </select>
341
									</div>
342
								</div>
343
								<div class="control-group">
344 7916 leinfelder
									<label class="control-label" for="addaobutton1"></label>
345 7900 leinfelder
									<div class="controls">
346
										<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
347
									</div>
348
								</div>
349 7901 leinfelder
								<div class="control-group">
350
									<label class="control-label" for="associatePartyTable"></label>
351
									<div class="controls">
352
										<table id="associatePartyTable">
353
										    [% numAO = 0 %]
354
										    [% IF aoCount %]
355
										        [% numAO = aoCount %]
356
										        <tr class="sectbody" id="aoHRRow">
357
										            <td colSpan="6">
358
										                <hr width = "85%"/>
359
										            </td>
360
										        </tr>
361
										    [% END %]
362
										    [% cnt = 1 %]
363
										    [% WHILE cnt < numAO%]
364
365
										        <tr class="sectbody">
366
										            [% SET aofn = "origNamefirst${cnt}" %]
367
										            [% SET aoln = "origNamelast${cnt}" %]
368
										            [% SET aorole = "origRole${cnt}" %]
369
370
										            <td class="rightCol">
371
										                <a style="cursor:pointer">
372
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
373
										                    src="[% contextUrl %]/style/images/previous.gif"
374
										                    alt="Move Up" border="0"/>
375
										                </a>
376
										                <a style="cursor:pointer">
377
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
378
										                    src="[% contextUrl %]/style/images/next.gif"
379
										                    alt="Move Down" border="0"/>
380
										                </a>
381
										                <a style="cursor:pointer">
382
										                    <img src="[% contextUrl %]/style/images/delete.gif"
383
										                    onClick="delRow(event)" alt="Delete" border="0"/>
384
										                </a>
385
										            </td>
386
										            <td colspan="5" align ="left" style="cursor:pointer"
387
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
388
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
389
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
390
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
391
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
392
										            </td>
393
										        </tr>
394
										        [% cnt = cnt + 1 %]
395
										    [% END %]
396
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
397
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
398
										</table>
399
									</div>
400
								</div>
401 7902 leinfelder
402
						    </div>
403
						</div>
404
405
						<!-- ABSTRACT -->
406
						<div class="accordion-heading">
407
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" href="#none">
408
								Abstract
409
							</a>
410
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-question-sign"></i></a>
411
						</div>
412
						<div id="collapseAbstract" class="accordion-body collapse in">
413
							<div class="accordion-inner">
414
								<!--  the INPUT -->
415
								<div class="control-group">
416
									<label class="control-label" for="abstract">*Data Set Abstract</label>
417
									<div class="controls">
418
										<textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea>
419
										<span class="help-block">(~350 words)
420
									</div>
421
								</div>
422 7899 leinfelder
423
						    </div>
424
						</div>
425 7903 leinfelder
426
					[% IF modules.keyword == 'true' %]
427
						<!-- KEYWORDS -->
428
						<div class="accordion-heading">
429
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
430
								Keywords
431
							</a>
432
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
433
						</div>
434
						<div id="collapseKeywords" class="accordion-body collapse in">
435
							<div class="accordion-inner">
436
								<!--  the INPUT -->
437
								<div class="control-group">
438
									<label class="control-label" for="keyword">Keyword</label>
439
									<div class="controls">
440
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
441
										<span class="help-block">For samples, see <a href=
442
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
443
										</span>
444
									</div>
445
								</div>
446
								<div class="control-group">
447
									<label class="control-label" for="keywordType">Keyword Type</label>
448
									<div class="controls">
449
										<select name="keywordType" id="keywordType" class="shortwidth">
450
											<option>None</option>
451
								            <option>Theme</option>
452
								            <option>Place</option>
453
								            <option>Stratum</option>
454
								            <option>Temporal</option>
455
								            <option>Taxonomic</option>
456
										</select>
457
									</div>
458
								</div>
459
								<div class="control-group">
460
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
461
									<div class="controls">
462 7904 leinfelder
										<select name="keywordTh" id="keywordTh" class="shortwidth">
463
											<option>None</option>
464
											<option>GCMD</option>
465
										</select>
466 7903 leinfelder
									</div>
467
								</div>
468
								<div class="control-group">
469 7916 leinfelder
									<label class="control-label" for="addKeywordButton"></label>
470 7903 leinfelder
									<div class="controls">
471
										<input type="button" value="Add Keyword" onClick="addKeyword()">
472
									</div>
473
								</div>
474
475 7905 leinfelder
								<div class="control-group">
476 7906 leinfelder
									<label class="control-label" for="keywordTable"></label>
477 7905 leinfelder
									<div class="controls">
478
										<!-- the orginal table -->
479
										<table>
480
										 [% numKey = 0 %]
481
										 [% IF keyCount %]
482
										   [% numKey = keyCount %]
483
										        [% numAO = aoCount %]
484
										        <tr class="sectbody" id="keywordHRRow">
485
										            <td colSpan="6">
486
										                <hr width = "85%"/>
487
										            </td>
488
										        </tr>
489
										 [% END %]
490
										 <input type="hidden" name="keyCount" value="[%numKey%]"
491
										            id="keyCount">
492
493
										      [% cnt = 1 %]
494
										        [% WHILE cnt < numKey %]
495
496
										           <tr class="sectbody">
497
										            <td class="rightCol">
498
										                <a style="cursor:pointer">
499
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
500
										                    src="[% contextUrl %]/style/images/previous.gif"
501
										                    alt="Move Up" border="0"/>
502
										                </a>
503
										                <a style="cursor:pointer">
504
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
505
										                    src="[% contextUrl %]/style/images/next.gif"
506
										                    alt="Move Down" border="0"/>
507
										                </a>
508
										                <a style="cursor:pointer">
509
										                    <img src="[% contextUrl %]/style/images/delete.gif"
510
										                    onClick="delRow(event)" alt="Delete" border="0"/>
511
										                </a>
512
										            </td>
513
										            [% SET keyword = "keyword${cnt}" %]
514
										            [% SET keywordType = "kwType${cnt}" %]
515
										            [% SET keywordTh = "kwTh${cnt}" %]
516
										            <td colspan="5" align ="left" style="cursor:pointer"
517
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
518
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
519
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
520
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
521
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
522
										            </td>
523
										        </tr>
524
										        [% cnt = cnt + 1 %]
525
										       [% END %]
526
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
527
										</table>
528
									</div>
529
								</div>
530
531 7903 leinfelder
						    </div>
532
						</div>
533 7907 leinfelder
					[% END %]
534
535
					[% IF modules.temporal == 'true' %]
536
						<!-- TEMPORAL COVERAGE -->
537
						<div class="accordion-heading">
538
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal" href="#none">
539 7908 leinfelder
								Temporal Coverage
540 7907 leinfelder
							</a>
541
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-question-sign"></i></a>
542
						</div>
543
						<div id="collapseTemporal" class="accordion-body collapse in">
544
							<div class="accordion-inner">
545
								<!--  the INPUT -->
546
									<div class="row-fluid">
547
548
										<div class="span6">
549 7909 leinfelder
											<p>Start Date</p>
550 7907 leinfelder
											<div class="control-group">
551
												[% IF required.temporal == 'true' %]
552
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
553
												[% ELSE %]
554
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
555
												[% END %]
556
												<div class="controls">
557
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
558
												</div>
559
											</div>
560
											<div class="control-group">
561
												<label class="control-label" for="beginningMonth">Month</label>
562
												<div class="controls">
563
													<select name="beginningMonth">
564
														[% IF form == 're_entry' && beginningMonth != ""%]
565
															<option selected>[%beginningMonth%]</option>
566
														[% END %]
567
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
568
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
569
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
570
											            <option>12</option>
571
													</select>
572
												</div>
573
											</div>
574
											<div class="control-group">
575
												<label class="control-label" for="beginningDay">Day</label>
576
												<div class="controls">
577
													<select name="beginningDay">
578
														[% IF form == 're_entry' && beginningDay != ""%]
579
															<option selected>[%beginningDay%]</option>
580
														[% END %]
581
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
582
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
583
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
584
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
585
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
586
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
587
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
588
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
589
													</select>
590
												</div>
591
											</div>
592
										</div>
593
										<div class="span6">
594 7908 leinfelder
											<p>
595 7909 leinfelder
												End Date
596
												<span class="text-info">(leave blank if your data set is open-ended)</span>
597 7908 leinfelder
											</p>
598 7907 leinfelder
											<div class="control-group">
599
												<label class="control-label" for="endingYear">Year (yyyy)</label>
600
												<div class="controls">
601
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
602
												</div>
603
											</div>
604
											<div class="control-group">
605
												<label class="control-label" for="endingMonth">Month</label>
606
												<div class="controls">
607
													<select name="endingMonth">
608
														[% IF form == 're_entry' && endingMonth != ""%]
609
															<option selected>[%endingMonth%]</option>
610
														[% END %]
611
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
612
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
613
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
614
											            <option>12</option>
615
													</select>
616
												</div>
617
											</div>
618
											<div class="control-group">
619
												<label class="control-label" for="endingDay">Day</label>
620
												<div class="controls">
621
													<select name="endingDay">
622
														[% IF form == 're_entry' && endingDay != ""%]
623
															<option selected>[%endingDay%]</option>
624
														[% END %]
625
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
626
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
627
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
628
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
629
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
630
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
631
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
632
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
633
													</select>
634
												</div>
635
											</div>
636
										</div
637
									</div>
638
639
						    </div>
640
						</div>
641 7867 leinfelder
642 7907 leinfelder
					[% END %]
643 7910 leinfelder
644
645
					[% IF modules.spatial == 'true' %]
646
647
						<!-- SPATIAL -->
648
						<div class="accordion-heading">
649
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSpatial" href="#none">
650
								Spatial Coverage
651
							</a>
652
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData"><i class="icon-question-sign"></i></a>
653
						</div>
654
						<div id="collapseSpatial" class="accordion-body collapse in">
655
							<div class="accordion-inner">
656
								<!--  the INPUT -->
657
								<div class="control-group">
658
									[% IF required.spatial == 'true' %]
659
										<label class="control-label" for="geogdesc">*Geographic Description</label>
660
									[% ELSE %]
661
										<label class="control-label" for="geogdesc">Geographic Description</label>
662
									[% END %]
663
									<div class="controls">
664
										<textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea>
665
										<span class="help-block">General description of the geographic area in which the data were collected.
666
										It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span>
667
									</div>
668
								</div>
669
670
								<div class="row-fluid">
671
									<h4>Coordinates</h4>
672
673
									[% IF show.siteList == 'true' %]
674
	    								<div class="control-group">
675
											<label class="control-label" for="useSiteCoord">Use Site?</label>
676
											<div class="controls">
677
												<input type="checkbox" name="useSiteCoord" [%useSiteCoord%]>
678
										        <span class="help-block">Use [% config.site %] coordinates. (This indicates that the data were
679
										        collected at the [% config.site %]. If you check this box, you don't need
680
										        to fill in the lat./long. fields below).</span>
681
											</div>
682
										</div>
683
									[% END %]
684
685
									<table>
686
									    <tr class="sectbody">
687 7912 leinfelder
									      <td width="190"></td><td width="100" align="left"><span class="text-info">Degrees</span></td>
688
									      <td width="110" align="left"><span class="text-info">Minutes</span></td>
689
									      <td width="70" align="left"><span class="text-info">Seconds</span></td>
690 7910 leinfelder
									      <td width="200"></td><td width="90"</td>
691
									   </tr>
692
693
									   <tr class="sectbody">
694
									     <td class="rightCol">
695
									      [% IF required.spatial == 'true' %]
696 7912 leinfelder
									        <span class="text-info">*Latitude</span>
697 7910 leinfelder
									      [% ELSE %]
698 7912 leinfelder
									        <span class="text-info">Latitude</span>
699 7910 leinfelder
									      [% END %]</td>
700
									     <td>
701
									          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
702
									      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
703
									      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
704
705
									      <td Align="left" colspan="2">
706
									      [% IF form == 're_entry' && hemisphLat1 == "N"%]
707 7913 leinfelder
									      	<label class="radio inline">
708
									        	<input type="radio"  name="hemisphLat1" value="N" CHECKED>
709
									        	North
710
									        </label>
711 7910 leinfelder
									      [%ELSE%]
712 7913 leinfelder
									      	<label class="radio inline">
713
									        	<input type="radio"  name="hemisphLat1" value="N">
714
									        	North
715
									        </label>
716 7910 leinfelder
									      [%END%]
717
									      [% IF form == 're_entry' && hemisphLat1 == "S"%]
718 7913 leinfelder
									      	<label class="radio inline">
719
									        	<input type="radio"  name="hemisphLat1" value="S" CHECKED>
720
									        	South
721
									        </label>
722 7910 leinfelder
									      [%ELSE%]
723 7913 leinfelder
									      	<label class="radio inline">
724
									        	<input type="radio"  name="hemisphLat1" value="S">
725
									        	South
726
									        </label>
727 7910 leinfelder
									      [%END%]
728
									      </td>
729
									    </tr>
730
731
									    <tr class="sectbody">
732
									      <td class="rightCol">
733
									      [% IF required.spatial == 'true' %]
734 7912 leinfelder
									        <span class="text-info">*Longitude</span>
735 7910 leinfelder
									      [% ELSE %]
736 7912 leinfelder
									        <span class="text-info">Longitude</span>
737 7910 leinfelder
									      [% END %]</td>
738
739
									      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
740
									      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
741
									      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
742
743
744
									      <td align="left" colspan="2">
745 7913 leinfelder
									    [% IF form == 're_entry' && hemisphLong1 == "W"%]
746
									    	<label class="radio inline">
747
									      		<input type="radio"  name="hemisphLong1" value="W" CHECKED>
748
									      		West
749
									      	</label>
750 7910 leinfelder
									    [%ELSE%]
751 7913 leinfelder
									    	<label class="radio inline">
752
									      		<input type="radio"  name="hemisphLong1" value="W">
753
									      		West
754
									      	</label>
755 7910 leinfelder
									    [%END%]
756
									    [% IF form == 're_entry' && hemisphLong1 == "E"%]
757 7913 leinfelder
									    	<label class="radio inline">
758
									      		<input type="radio"  name="hemisphLong1" value="E" CHECKED>
759
									      		East
760
									      	</label>
761 7910 leinfelder
									    [%ELSE%]
762 7913 leinfelder
									    	<label class="radio inline">
763
									      		<input type="radio"  name="hemisphLong1" value="E">
764
									      		East
765
									      	</label>
766 7910 leinfelder
									    [%END%]
767
									      </td>
768
									    </tr>
769
770
771
									    <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>
772
									      </td><td></td></tr>
773
774
									    <tr class="sectbody">
775 7912 leinfelder
									      <td class="rightCol"><span class="text-info">Latitude</span></td>
776 7910 leinfelder
									  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
777
									      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
778
									      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
779
780
									      <td align="left" colspan="2">
781
									      [% IF form == 're_entry' && hemisphLat2 == "N"%]
782 7913 leinfelder
									      	<label class="radio inline">
783
									        	<input type="radio"  name="hemisphLat2" value="N" CHECKED>
784
									        	North
785
									        </label>
786 7910 leinfelder
									      [%ELSE%]
787 7913 leinfelder
									      	<label class="radio inline">
788
									        	<input type="radio"  name="hemisphLat2" value="N">
789
									        	North
790
									        </label>
791 7910 leinfelder
									      [%END%]
792
									      [% IF form == 're_entry' && hemisphLat2 == "S"%]
793 7913 leinfelder
									      	<label class="radio inline">
794
									        	<input type="radio"  name="hemisphLat2" value="S" CHECKED>
795
									        	South
796
									        </label>
797 7910 leinfelder
									      [%ELSE%]
798 7913 leinfelder
									      	<label class="radio inline">
799
									        	<input type="radio"  name="hemisphLat2" value="S">
800
												South
801
									        </label>
802 7910 leinfelder
									      [%END%]
803
									      </td>
804
									    </tr>
805
806 7912 leinfelder
									    <tr class="sectbody"><td class="rightCol"><span class="text-info">Longitude</span></td>
807 7910 leinfelder
									       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
808
									       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
809
									       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
810
									       <td align="left" colspan="2">
811
812
									      [% IF form == 're_entry' && hemisphLong2 == "W"%]
813 7913 leinfelder
									      	<label class="radio inline">
814
									        	<input type="radio"  name="hemisphLong2" value="W" CHECKED>
815
									        	West
816
									        </label
817 7910 leinfelder
									      [%ELSE%]
818 7913 leinfelder
									      	<label class="radio inline">
819
									        	<input type="radio"  name="hemisphLong2" value="W">
820
									        	West
821
									        </label>
822 7910 leinfelder
									      [%END%]
823
									      [% IF form == 're_entry' && hemisphLong2 == "E"%]
824 7913 leinfelder
									      	<label class="radio inline">
825
									        	<input type="radio"  name="hemisphLong2" value="E" CHECKED>
826
									        	East
827
									        </label>
828 7910 leinfelder
									      [%ELSE%]
829 7913 leinfelder
									      	<label class="radio inline">
830
									        	<input type="radio"  name="hemisphLong2" value="E">
831
									        	East
832
									        </label>
833 7910 leinfelder
									      [%END%]
834
									      </td>
835
									    </tr>
836
									    <tr class="sectbody"><td></td>
837
									       <td align="left" colspan="4"><span class="regtext">
838
									        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
839
									      </td><td></td>
840
									    </tr>
841
									</table>
842
843 7912 leinfelder
								</div>
844 7910 leinfelder
845
						    </div>
846 7911 leinfelder
						</div>
847 7910 leinfelder
848
					[% END %]
849 7914 leinfelder
850
						<!-- TEMPLATE -->
851
						<div class="accordion-heading">
852
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
853
								Template
854
							</a>
855
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
856
						</div>
857
						<div id="collapseTemplate" class="accordion-body collapse in">
858
							<div class="accordion-inner">
859
								<!--  the INPUT -->
860
								<div class="control-group">
861
									<label class="control-label" for="template">*template</label>
862
									<div class="controls">
863
										<input type="text" name="template" value="[%template%]">
864
									</div>
865
								</div>
866
867
						    </div>
868
						</div>
869
870
871
					[% IF modules.taxonomic == 'true' %]
872
873
						<!-- TAXONOMIC -->
874
						<div class="accordion-heading">
875
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTaxonomic" href="#none">
876
								Taxonomic Coverage
877
							</a>
878
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage"><i class="icon-question-sign"></i></a>
879
						</div>
880
						<div id="collapseTaxonomic" class="accordion-body collapse in">
881
							<div class="accordion-inner">
882
								<!--  the INPUT -->
883
								<div class="control-group">
884
									<label class="control-label" for="taxonRank">Taxonomic Rank</label>
885
									<div class="controls">
886
										<input name="taxonRank" id="taxonRank">
887
										<span class="help-block">(e.g., Species)</span>
888
									</div>
889
								</div>
890
								<div class="control-group">
891
									<label class="control-label" for="taxonName">Taxonomic Name</label>
892
									<div class="controls">
893
										<input name="taxonName" id="taxonName">
894
										<span class="help-block">(e.g., <i>Ursus arctos</i>)</span>
895
									</div>
896
								</div>
897
								<div class="control-group">
898 7915 leinfelder
									<label class="control-label" for="addTaxonButton"></label>
899 7914 leinfelder
									<div class="controls">
900
										<input type="button" value="Add Taxon" onClick="addTaxon()">
901
									</div>
902
								</div>
903
904
								<div class="control-group">
905
									<label class="control-label" for="taxonTable"></label>
906
									<div class="controls">
907
										<table>
908
											[% numTaxa = 0 %]
909
									        [% IF taxaCount %]
910
									            [% numTaxa = taxaCount %]
911
									            <tr class="sectbody" id="taxonHRRow">
912
									                <td colSpan="6">
913
									                    <hr width = "85%"/>
914
									                </td>
915
									            </tr>
916
									        [% END %]
917
									        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
918
919
									        [% cnt = 1 %]
920
									        [% WHILE cnt <= numTaxa%]
921
									            <tr class="sectbody">
922
									                <td class="rightCol">
923
									                    <a style="cursor:pointer">
924
									                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
925
									                        src="[% contextUrl %]/style/images/previous.gif"
926
									                        alt="Move Up" border="0"/>
927
									                    </a>
928
									                    <a style="cursor:pointer">
929
									                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
930
									                        src="[% contextUrl %]/style/images/next.gif"
931
									                        alt="Move Down" border="0"/>
932
									                    </a>
933
									                    <a style="cursor:pointer">
934
									                        <img src="[% contextUrl %]/style/images/delete.gif"
935
									                        onClick="delRow(event)" alt="Delete" border="0"/>
936
									                    </a>
937
									                </td>
938
									                [% SET rank = "taxonRankName${cnt}" %]
939
									                [% SET name = "taxonRankValue${cnt}" %]
940
									                <td colspan="5" align ="left" style="cursor:pointer"
941
									                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
942
									                    Rank: [%$rank%], Name: [%$name%]
943
									                    <input name="taxonName" type="hidden" value="[%$name%]"/>
944
									                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
945
									            </tr>
946
									            [% cnt = cnt + 1 %]
947
									        [% END %]
948
949
										<!-- placeholder for list code -->
950
									     <tr class="sectbody" id="addtaxarow">
951
									        <td class="bordertop" valign="top" align="right"></td>
952
									        <td class="bordertop" align="left" colspan="5"></td>
953
									     </tr>
954
955
									   </table>
956
									</div>
957
								</div>
958
959
								<div class="control-group">
960
									<label class="control-label" for="taxaAuth">Taxonomic Reference</label>
961
									<div class="controls">
962
										<textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea>
963 7915 leinfelder
										<span class="help-block">List the source(s) used for identifying and naming taxa (e.g., name of a field guide, key, or nomenclature revision).</span>
964 7914 leinfelder
									</div>
965
								</div>
966
967
						    </div>
968
						</div>
969
970
					[% END %]
971 7867 leinfelder
972
973
974
  [% IF modules.method == 'true' %]
975
  <table class="tables" cellpadding="5" cellspacing="0">
976
    <tr class="sectheader">
977
      <td colspan="5" align="left">
978
        <span class="label">DATA COLLECTION METHODS</span>
979
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
980
      </td>
981
      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
982
    </tr>
983
  </table>
984
985
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">
986
987
    <tr class="sectbody">
988
      <td class="rightCol"><span class="label">Method Title</span></td>
989
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
990
991
       <tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>
992
        <td colspan="5" align="left">
993
        [% IF !methodPara %]
994
          <textarea rows="6" cols="60" name="methodPara"></textarea>
995
        [% END %]
996
        [% FOREACH para = methodPara %]
997
           <textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
998
        [% END %]
999
        </td></tr>
1000
1001
    <tr class="sectbody" id="addparabutton1">
1002
    <td ></td>
1003
    <td colspan="5" align="left">
1004
          <input type="button" value="Add Paragraph to Method Description"
1005
                 onClick="addParagraph()"></td></tr>
1006
1007
1008
    <tr class="sectbody">
1009
      <td valign="top" align="right" class="bordertop">
1010
       <span class="label">Extent of Study Description</span>
1011
       </td>
1012
        <td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
1013
    </tr>
1014
1015
   <tr class="sectbody">
1016
    <td>
1017
    </td>
1018
    <td colspan="5"><span class="regtext">
1019
        Describe the temporal, spatial and taxonomic extent of the study,<br>
1020
        supplementing the information on coverage provided above.  <br>
1021
        For example, if the temporal coverage of the data is 1990-2000, you<br>
1022
        might provide details about any years that were missed or the months<br>
1023
        in which sampling occurred.</span>
1024
    </td>
1025
    </tr>
1026
1027
    <tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
1028
        <td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
1029
1030
   <tr class="sectbody"><td><td colspan="5"><span class="regtext">
1031
        Describe the sampling design of the study.  For example, you might <br>
1032
        describe the way in which treatments were assigned to sampling units.</span></td></tr>
1033
1034
    </table>
1035
   [% END %]
1036
1037
  <table class="tables" cellpadding="5" cellspacing="0">
1038
    <tr class="sectheader">
1039
      <td colspan="5" align="left">
1040
        <span class="label">DATA SET CONTACT</span>
1041
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
1042
      </td>
1043
      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
1044
    </tr>
1045
  </table>
1046
1047
   <table class="tables" cellpadding="5" cellspacing="0" id="dscTable">
1048
  <tr class="sectbody"><td valign="top" align="left" colspan="6">
1049
        <input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
1050
        <span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr>
1051
   <tr class="sectbody">
1052
      <td class="rightCol"><span class="label">*First Name</span></td>
1053
      <td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
1054
    <tr class="sectbody">
1055
      <td class="rightCol"><span class="label">*Last Name</span>
1056
      <td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
1057
    <tr class="sectbody">
1058
      <td class="rightCol"><span class="label">Organization Name</span>
1059
      <td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
1060
    <tr class="sectbody">
1061
      [% IF required.contactEmailAddress == 'true' %]
1062
        <td class="rightCol"><span class="label">*E-Mail</span>
1063
      [% ELSE %]
1064
        <td class="rightCol"><span class="label">E-Mail</span>
1065
      [% END %]
1066
      <td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
1067
    <tr class="sectbody">
1068
      <td class="rightCol"><span class="label">Phone</span>
1069
      <td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
1070
    <tr class="sectbody">
1071
      <td class="rightCol"><span class="label">FAX</span>
1072
      <td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
1073
    <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
1074
      <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>
1075
    <tr class="sectbody">
1076
      <td class="rightCol"><span class="label">City</span>
1077
      <td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
1078
    <tr class="sectbody">
1079
      <td class="rightCol"><span class="label">U.S. State or Territory</span>
1080
      <td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
1081
      [% IF form == 're_entry' %]
1082
              <option>[%origStateContact%]</option>
1083
      [% ELSE %]
1084
                <option>Select state or territory here.</option>
1085
            [% END %]
1086
          <option>Alabama</option>
1087
            <option>Alaska</option>
1088
            <option>American Samoa</option>
1089
            <option>Arizona</option>
1090
            <option>Arkansas</option>
1091
            <option>California</option>
1092
            <option>Colorado</option>
1093
            <option>Connecticut</option>
1094
            <option>Delaware</option>
1095
            <option>District of Columbia</option>
1096
            <option>Florida</option>
1097
            <option>Georgia</option>
1098
            <option>Guam</option>
1099
            <option>Hawaii</option>
1100
            <option>Idaho</option>
1101
            <option>Illinois</option>
1102
            <option>Indiana</option>
1103
            <option>Iowa</option>
1104
            <option>Kansas</option>
1105
            <option>Kentucky</option>
1106
            <option>Louisiana</option>
1107
            <option>Maine</option>
1108
            <option>Maryland</option>
1109
            <option>Massachusetts</option>
1110
            <option>Michigan</option>
1111
            <option>Minnesota</option>
1112
            <option>Mississippi</option>
1113
            <option>Missouri</option>
1114
            <option>Montana</option>
1115
            <option>Nebraska</option>
1116
            <option>Nevada</option>
1117
            <option>New Hampshire</option>
1118
            <option>New Jersey</option>
1119
            <option>New Mexico</option>
1120
            <option>New York</option>
1121
            <option>North Carolina</option>
1122
            <option>North Dakota</option>
1123
            <option>Northern Mariana Islands</option>
1124
            <option>Ohio</option>
1125
            <option>Oklahoma</option>
1126
            <option>Oregon</option>
1127
            <option>Pennsylvania</option>
1128
            <option>Puerto Rico</option>
1129
            <option>Rhode Island</option>
1130
            <option>South Carolina</option>
1131
            <option>South Dakota</option>
1132
            <option>Tennessee</option>
1133
            <option>Texas</option>
1134
            <option>Utah</option>
1135
            <option>Vermont</option>
1136
            <option>Virgin Islands</option>
1137
            <option>Virginia</option>
1138
            <option>Washington</option>
1139
            <option>West Virginia</option>
1140
            <option>Wisconsin</option>
1141
            <option>Wyoming</option>
1142
          </select></td></tr>
1143
     <tr class="sectbody">
1144
        <td class="rightCol"><span class="label">Other State/Province</span>
1145
  <td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
1146
     <tr class="sectbody">
1147
        <td class="rightCol"><span class="label">Postal Code</span>
1148
  <td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
1149
     <tr class="sectbody">
1150
        <td class="rightCol"><span class="label">Country</span>
1151
        <td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
1152
     </table>
1153
1154
  <table class="tables" cellpadding="5" cellspacing="0">
1155
    <tr class="sectheader">
1156
      <td colspan="5" align="left">
1157
        <span class="label">DISTRIBUTION INFORMATION</span>
1158
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide" class="smalltext">(What's this?)</a>
1159
      </td>
1160
      <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
1161
    </tr>
1162
  </table>
1163
1164
   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">
1165
  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
1166
  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
1167
  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
1168
     <td colspan="4" align="left"><span class="regtext">
1169
     If available, please enter a name or number that uniquely identifies and<br>
1170
     describes concisely the data set. Alternatively, provide other pertinent<br>
1171
     information that can identify and locate the data set within your site's<br>
1172
     data management system.</span></td><td></td></tr>
1173
1174
    <tr class="sectbody">
1175
        <td class="rightCol"><span class="label">*Data Medium</span></td>
1176
1177
        <td colspan="5" align="left">
1178
        [% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]
1179
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1180
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1181
        [%ELSE%]
1182
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1183
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1184
        [% END %]
1185
        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]
1186
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1187
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1188
        [%ELSE%]
1189
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1190
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1191
        [% END %]
1192
        [% IF form == 're_entry' && dataMedium == "other" %]
1193
           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1194
           <span class="regtext">Other&nbsp;</span></input>
1195
        [%ELSE%]
1196
           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1197
           <span class="regtext">Other&nbsp;</span></input>
1198
        [% END %]
1199
1200
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1201
        </td>
1202
    </tr>
1203
1204
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1205
      <td colspan="5" align="left">
1206
1207
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]
1208
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1209
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1210
          [%ELSE%]
1211
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1212
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1213
          [%END%]
1214
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]
1215
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1216
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1217
          [%ELSE%]
1218
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1219
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1220
          [%END%]
1221
          </td></tr>
1222
1223
1224
1225
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1226
1227
    [% IF form == 're_entry' && useConstraints == "other" %]
1228
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1229
      <span class="regtext">Other&nbsp;</span>
1230
    [%ELSE%]
1231
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1232
      <span class="regtext">Other&nbsp;</span>
1233
    [%END%]
1234
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1235
1236
1237
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1238
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1239
1240
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1241
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1242
1243
   </table>
1244
1245
  [% IF modules.upload == 'true' %]
1246
1247
  <!-- Associated Data -->
1248
  <table class="tables" cellpadding="5" cellspacing="0">
1249
  <tr class="sectheader">
1250
    <td colspan="5" align="left">
1251
      <span class="label">UPLOAD DATA</span>
1252
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1253
    </td>
1254
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1255
  </tr>
1256
   </table>
1257
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1258
  <tr class="sectbody">
1259
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1260
    <td colspan="5">
1261
        <input type="file" id="file_element" name="file_1" class="longwidth">
1262
1263
        [% IF form == 're_entry' && upCount %]
1264
           [% cnt = 0 %]
1265
           [% WHILE cnt < upCount %]
1266
                [% SET fileSum = "upload_${cnt}" %]
1267
                [% SET fileName = "uploadname_${cnt}" %]
1268
                [% SET fileType = "uploadtype_${cnt}" %]
1269
                [% SET filePerm = "uploadperm_${cnt}" %]
1270
                [% IF fileSum %]
1271
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]">
1272
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]">
1273
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]">
1274
                [% END %]
1275
                [% cnt = cnt + 1 %]
1276
            [% END %]
1277
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1278
        [% END %]
1279
1280
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1281
  </tr>
1282
  <tr class="sectbody">
1283
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1284
    <td colspan="5" class="regtext">
1285
    [% IF !upCount %]
1286
        <div id="file_comment">
1287
            (<i>None currently attached</i>)
1288
        </div>
1289
    [% END %]
1290
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1291
    [% cnt = 0 %]
1292
1293
    [% WHILE cnt < upCount %]
1294
        [% SET fileName = "uploadname_${cnt}" %]
1295
        [% SET filePerm = "uploadperm_${cnt}" %]
1296
        [% IF $filePerm == 'public' %]
1297
          [% SET perm_a = "checked" %]
1298
          [% SET perm_b = "" %]
1299
        [% ELSE %]
1300
          [% SET perm_a = "" %]
1301
          [% SET perm_b = "checked" %]
1302
        [% END %]
1303
        [% IF fileName %]<div>
1304
          [% $fileName %]
1305
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1306
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1307
1308
          <input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"/></div>[% END %]
1309
1310
        [% cnt = cnt + 1 %]
1311
    [% END %]
1312
    [% END %]</div></td>
1313
  </tr>
1314
  </table>
1315
1316
  <script language="JavaScript" type="text/JavaScript">
1317
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1318
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1319
  </script>
1320
  [% END %]
1321
   <table class="tables" cellpadding="5" cellspacing="0">
1322
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1323
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1324
1325
    </table>
1326
    <p></p>
1327 7896 leinfelder
1328
    					</div>
1329
					</div> <!-- end the accordinan -->
1330 7867 leinfelder
1331
</form>
1332 7896 leinfelder
			</div> <!-- end the row -->
1333
1334 7889 leinfelder
		</div>
1335
	</article>
1336
1337 7867 leinfelder
[% INCLUDE $templates.footer %]