Project

General

Profile

metacat / lib / style / common / templates / metacatui / entryForm.tmpl @ 7909

1
[% INCLUDE $templates.header %]
2

    
3
  <script language="JavaScript">
4
	    var contextUrl = '[% contextUrl %]';
5
	</script>
6
  <script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/metacatui/entryForm.js">
7
  </script>
8

    
9
	<!-- 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

    
54
			<!--  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
  <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
  				<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
						
160
						<!-- PRINCIPAL DATA SET OWNER -->
161
						<div class="accordion-heading">
162
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseOwner" href="#none">
163
								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
						<div id="collapseOwner" class="accordion-body collapse in">
168
							<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
						
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
							
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
									<label class="control-label" for="addaobutton1">More?</label>
345
									<div class="controls">
346
										<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
347
									</div>
348
								</div>
349
								<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
								    								
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
								
423
						    </div>
424
						</div>
425
						
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
										<select name="keywordTh" id="keywordTh" class="shortwidth">
463
											<option>None</option>
464
											<option>GCMD</option>
465
										</select>
466
									</div>
467
								</div>
468
								<div class="control-group">
469
									<label class="control-label" for="addKeywordButton">More?</label>
470
									<div class="controls">
471
										<input type="button" value="Add Keyword" onClick="addKeyword()">
472
									</div>
473
								</div>
474
								
475
								<div class="control-group">
476
									<label class="control-label" for="keywordTable"></label>
477
									<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
						    </div>
532
						</div>
533
					[% END %]
534
					
535
						<!-- TEMPLATE -->
536
						<div class="accordion-heading">
537
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
538
								Template  
539
							</a>
540
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
541
						</div>
542
						<div id="collapseTemplate" class="accordion-body collapse in">
543
							<div class="accordion-inner">
544
								<!--  the INPUT -->
545
								<div class="control-group">
546
									<label class="control-label" for="template">*template</label>
547
									<div class="controls">
548
										<input type="text" name="template" value="[%template%]">
549
									</div>
550
								</div>
551
								
552
						    </div>
553
						</div>
554
						
555
					[% IF modules.temporal == 'true' %]	
556
						<!-- TEMPORAL COVERAGE -->
557
						<div class="accordion-heading">
558
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal" href="#none">
559
								Temporal Coverage  
560
							</a>
561
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-question-sign"></i></a>
562
						</div>
563
						<div id="collapseTemporal" class="accordion-body collapse in">
564
							<div class="accordion-inner">
565
								<!--  the INPUT -->
566
									<div class="row-fluid">
567
										
568
										<div class="span6">
569
											<p>Start Date</p>									
570
											<div class="control-group">
571
												[% IF required.temporal == 'true' %]
572
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
573
												[% ELSE %]
574
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
575
												[% END %]
576
												<div class="controls">
577
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
578
												</div>
579
											</div>
580
											<div class="control-group">
581
												<label class="control-label" for="beginningMonth">Month</label>
582
												<div class="controls">
583
													<select name="beginningMonth">
584
														[% IF form == 're_entry' && beginningMonth != ""%]
585
															<option selected>[%beginningMonth%]</option>
586
														[% END %]
587
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
588
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
589
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
590
											            <option>12</option>
591
													</select>
592
												</div>
593
											</div>
594
											<div class="control-group">
595
												<label class="control-label" for="beginningDay">Day</label>
596
												<div class="controls">
597
													<select name="beginningDay">
598
														[% IF form == 're_entry' && beginningDay != ""%]
599
															<option selected>[%beginningDay%]</option>
600
														[% END %]
601
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
602
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
603
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
604
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
605
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
606
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
607
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
608
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
609
													</select>
610
												</div>
611
											</div>
612
										</div>
613
										<div class="span6">
614
											<p>
615
												End Date
616
												<span class="text-info">(leave blank if your data set is open-ended)</span>
617
											</p>								
618
											<div class="control-group">
619
												<label class="control-label" for="endingYear">Year (yyyy)</label>
620
												<div class="controls">
621
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
622
												</div>
623
											</div>
624
											<div class="control-group">
625
												<label class="control-label" for="endingMonth">Month</label>
626
												<div class="controls">
627
													<select name="endingMonth">
628
														[% IF form == 're_entry' && endingMonth != ""%]
629
															<option selected>[%endingMonth%]</option>
630
														[% END %]
631
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
632
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
633
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
634
											            <option>12</option>
635
													</select>
636
												</div>
637
											</div>
638
											<div class="control-group">
639
												<label class="control-label" for="endingDay">Day</label>
640
												<div class="controls">
641
													<select name="endingDay">
642
														[% IF form == 're_entry' && endingDay != ""%]
643
															<option selected>[%endingDay%]</option>
644
														[% END %]
645
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
646
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
647
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
648
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
649
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
650
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
651
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
652
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
653
													</select>
654
												</div>
655
											</div>
656
										</div	
657
									</div>
658
								
659
						    </div>
660
						</div>
661

    
662
					[% END %]
663

    
664
  
665
[% IF modules.spatial == 'true' %]
666

    
667
  <table class="tables" cellpadding="5" cellspacing="0">  
668

    
669
    <tr class="sectheader">
670
      <td colspan="5" align="left">
671
        <span class="label">SPATIAL COVERAGE OF DATA</span>
672
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
673
      </td>
674
      <td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
675
    </tr>
676
  </table>
677
   
678
   <table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">  
679
   
680
    <tr class="sectbody">
681
       [% IF required.spatial == 'true' %]
682
          <td align="right" valign="top"><span class="label">*Geographic Description</span></td>
683
    [% ELSE %]
684
          <td align="right" valign="top"><span class="label">Geographic Description</span></td>
685
    [% END %]    
686
          <td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
687
    <tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected. 
688
    It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
689
    </td></tr>
690
    <tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
691
        
692
     
693
  [% IF show.siteList == 'true' %]
694
    <tr class="sectbody"><td align="left" valign="top" colspan="6">
695
        <input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
696
        <span class="regtext">Use [% config.site %] coordinates. (This indicates that the data were
697
        collected at the [% config.site %]. If you check this box, you don't need
698
        to fill in the lat./long. fields below).</span>
699
        </td>
700
    </tr>
701
  [% END %]
702
    
703
    <tr class="sectbody">
704
      <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
705
      <td width="110" align="left"><span class="label">Minutes</span></td>
706
      <td width="70" align="left"><span class="label">Seconds</span></td>
707
      <td width="200"></td><td width="90"</td>
708
   </tr>
709
      
710
   <tr class="sectbody">
711
     <td class="rightCol">
712
      [% IF required.spatial == 'true' %]
713
        <span class="label">*Latitude</span>
714
      [% ELSE %]
715
        <span class="label">Latitude</span>
716
      [% END %]</td> 
717
     <td> 
718
          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
719
      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
720
      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
721
      
722
      <td Align="left" colspan="2"> 
723
      [% IF form == 're_entry' && hemisphLat1 == "N"%]
724
        <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
725
      [%ELSE%]
726
        <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
727
      [%END%]
728
      [% IF form == 're_entry' && hemisphLat1 == "S"%]
729
        <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
730
      [%ELSE%]
731
        <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
732
      [%END%]
733
      </td>
734
    </tr>
735

    
736
    <tr class="sectbody">
737
      <td class="rightCol"> 
738
      [% IF required.spatial == 'true' %]
739
        <span class="label">*Longitude</span>
740
      [% ELSE %]
741
        <span class="label">Longitude</span>
742
      [% END %]</td>
743
     
744
      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
745
      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
746
      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
747
      
748
      
749
      <td align="left" colspan="2"> 
750
    [% IF form == 're_entry' && hemisphLong1 == "W"%]        
751
      <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
752
    [%ELSE%]
753
      <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
754
    [%END%]
755
    [% IF form == 're_entry' && hemisphLong1 == "E"%]
756
      <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
757
    [%ELSE%]
758
      <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
759
    [%END%]
760
      </td>
761
    </tr>
762
      
763
      
764
    <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>
765
      </td><td></td></tr>
766
      
767
    <tr class="sectbody"> 
768
      <td class="rightCol"><span class="label">Latitude</span></td>
769
  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
770
      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
771
      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
772
        
773
      <td align="left" colspan="2"> 
774
      [% IF form == 're_entry' && hemisphLat2 == "N"%]
775
        <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
776
      [%ELSE%]
777
        <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
778
      [%END%]
779
      [% IF form == 're_entry' && hemisphLat2 == "S"%]
780
        <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
781
      [%ELSE%]
782
        <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
783
      [%END%]
784
      </td>
785
    </tr>
786
    
787
    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
788
       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
789
       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
790
       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
791
       <td align="left" colspan="2">
792
       
793
      [% IF form == 're_entry' && hemisphLong2 == "W"%]
794
        <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
795
      [%ELSE%]
796
        <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
797
      [%END%]
798
      [% IF form == 're_entry' && hemisphLong2 == "E"%]
799
        <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
800
      [%ELSE%]
801
        <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
802
      [%END%]
803
      </td>
804
    </tr>
805
    <tr class="sectbody"><td></td>
806
       <td align="left" colspan="4"><span class="regtext">
807
        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
808
      </td><td></td>
809
    </tr>
810
  </table>    
811
   [% END %]
812

    
813
   [% IF modules.taxonomic == 'true' %]
814
   
815
  <table class="tables" cellpadding="5" cellspacing="0">  
816

    
817
    <tr class="sectheader">
818
      <td colspan="5" align="left">
819
        <span class="label">TAXONOMIC COVERAGE OF DATA</span>
820
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage" target="guide" class="smalltext">(What's this?)</a>
821
      </td>
822
      <td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td>
823
    </tr>
824
  </table>
825
   
826
    <table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable">  
827
        <tr class="sectbody"><td></td>
828
        <td colspan="5" align="left"><span class="regtext">See the <a href=
829
        "http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href=
830
        "http://www.itis.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr>
831
  
832
        <tr class="sectbody"> 
833
            <td class="rightCol"><span class="label">Taxonomic Rank</span></td>
834
            <td align="left" colspan="5">
835
                <input name="taxonRank" id="taxonRank" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., Species)</span>
836
            </td>
837
        </tr>
838

    
839
        <tr class="sectbody"> 
840
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
841
            <td align="left" colspan="5">
842
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
843
            </td>
844
        </tr>
845

    
846
        <tr id="addTaxon" class="sectbody"> 
847
            <td></td>
848
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
849
                    onClick="addTaxon()">
850
            </td>
851
        </tr>
852

    
853
        [% numTaxa = 0 %]
854
        [% IF taxaCount %]
855
            [% numTaxa = taxaCount %]
856
            <tr class="sectbody" id="taxonHRRow">
857
                <td colSpan="6">
858
                    <hr width = "85%"/>
859
                </td>
860
            </tr>
861
        [% END %]
862
        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
863
    
864
        [% cnt = 1 %]
865
        [% WHILE cnt <= numTaxa%]        
866
            <tr class="sectbody">
867
                <td class="rightCol">
868
                    <a style="cursor:pointer">
869
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
870
                        src="[% contextUrl %]/style/images/previous.gif"
871
                        alt="Move Up" border="0"/>
872
                    </a>
873
                    <a style="cursor:pointer">
874
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
875
                        src="[% contextUrl %]/style/images/next.gif"
876
                        alt="Move Down" border="0"/>
877
                    </a>
878
                    <a style="cursor:pointer">
879
                        <img src="[% contextUrl %]/style/images/delete.gif"
880
                        onClick="delRow(event)" alt="Delete" border="0"/>
881
                    </a>
882
                </td>
883
                [% SET rank = "taxonRankName${cnt}" %]
884
                [% SET name = "taxonRankValue${cnt}" %]
885
                <td colspan="5" align ="left" style="cursor:pointer"
886
                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
887
                    Rank: [%$rank%], Name: [%$name%]
888
                    <input name="taxonName" type="hidden" value="[%$name%]"/>
889
                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
890
            </tr>
891
            [% cnt = cnt + 1 %]
892
        [% END %]
893

    
894
     <tr class="sectbody" id="addtaxarow"> 
895
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
896
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
897
        </tr>
898
     <tr class="sectbody">
899
     <td></td>
900
     <td colspan="5"><span class="regtext">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or
901
     nomenclature revision).</span></td>
902
     </tr>   
903
   </table>
904
    [% END %]  
905

    
906
  [% IF modules.method == 'true' %]
907
  <table class="tables" cellpadding="5" cellspacing="0">  
908
    <tr class="sectheader">
909
      <td colspan="5" align="left">
910
        <span class="label">DATA COLLECTION METHODS</span>
911
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
912
      </td>
913
      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
914
    </tr>
915
  </table>
916
 
917
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
918

    
919
    <tr class="sectbody"> 
920
      <td class="rightCol"><span class="label">Method Title</span></td>
921
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
922

    
923
       <tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>      
924
        <td colspan="5" align="left">
925
        [% IF !methodPara %]
926
          <textarea rows="6" cols="60" name="methodPara"></textarea>
927
        [% END %]
928
        [% FOREACH para = methodPara %]
929
           <textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
930
        [% END %]
931
        </td></tr>
932
        
933
    <tr class="sectbody" id="addparabutton1">
934
    <td ></td>
935
    <td colspan="5" align="left">
936
          <input type="button" value="Add Paragraph to Method Description" 
937
                 onClick="addParagraph()"></td></tr>
938
   
939
     
940
    <tr class="sectbody">
941
      <td valign="top" align="right" class="bordertop">
942
       <span class="label">Extent of Study Description</span>
943
       </td>
944
        <td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
945
    </tr>
946
  
947
   <tr class="sectbody">
948
    <td>
949
    </td>
950
    <td colspan="5"><span class="regtext">
951
        Describe the temporal, spatial and taxonomic extent of the study,<br>
952
        supplementing the information on coverage provided above.  <br>
953
        For example, if the temporal coverage of the data is 1990-2000, you<br>
954
        might provide details about any years that were missed or the months<br>
955
        in which sampling occurred.</span>
956
    </td>
957
    </tr>
958
          
959
    <tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
960
        <td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
961
  
962
   <tr class="sectbody"><td><td colspan="5"><span class="regtext">
963
        Describe the sampling design of the study.  For example, you might <br> 
964
        describe the way in which treatments were assigned to sampling units.</span></td></tr>
965
      
966
    </table>     
967
   [% END %]
968

    
969
  <table class="tables" cellpadding="5" cellspacing="0">    
970
    <tr class="sectheader">
971
      <td colspan="5" align="left">
972
        <span class="label">DATA SET CONTACT</span>
973
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
974
      </td>
975
      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
976
    </tr>
977
  </table>
978

    
979
   <table class="tables" cellpadding="5" cellspacing="0" id="dscTable">  
980
  <tr class="sectbody"><td valign="top" align="left" colspan="6">
981
        <input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
982
        <span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr> 
983
   <tr class="sectbody">
984
      <td class="rightCol"><span class="label">*First Name</span></td>
985
      <td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
986
    <tr class="sectbody">
987
      <td class="rightCol"><span class="label">*Last Name</span>
988
      <td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
989
    <tr class="sectbody">
990
      <td class="rightCol"><span class="label">Organization Name</span>
991
      <td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
992
    <tr class="sectbody">      
993
      [% IF required.contactEmailAddress == 'true' %]
994
        <td class="rightCol"><span class="label">*E-Mail</span>
995
      [% ELSE %]
996
        <td class="rightCol"><span class="label">E-Mail</span>
997
      [% END %]
998
      <td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
999
    <tr class="sectbody">
1000
      <td class="rightCol"><span class="label">Phone</span>
1001
      <td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
1002
    <tr class="sectbody"> 
1003
      <td class="rightCol"><span class="label">FAX</span>
1004
      <td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
1005
    <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
1006
      <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>
1007
    <tr class="sectbody">    
1008
      <td class="rightCol"><span class="label">City</span>
1009
      <td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
1010
    <tr class="sectbody">
1011
      <td class="rightCol"><span class="label">U.S. State or Territory</span>
1012
      <td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
1013
      [% IF form == 're_entry' %]  
1014
              <option>[%origStateContact%]</option>
1015
      [% ELSE %]
1016
                <option>Select state or territory here.</option>
1017
            [% END %]
1018
          <option>Alabama</option>
1019
            <option>Alaska</option>
1020
            <option>American Samoa</option>
1021
            <option>Arizona</option>
1022
            <option>Arkansas</option>
1023
            <option>California</option>
1024
            <option>Colorado</option>
1025
            <option>Connecticut</option>
1026
            <option>Delaware</option>
1027
            <option>District of Columbia</option>
1028
            <option>Florida</option>
1029
            <option>Georgia</option>
1030
            <option>Guam</option>
1031
            <option>Hawaii</option>
1032
            <option>Idaho</option>
1033
            <option>Illinois</option>
1034
            <option>Indiana</option>
1035
            <option>Iowa</option>
1036
            <option>Kansas</option>
1037
            <option>Kentucky</option>
1038
            <option>Louisiana</option>
1039
            <option>Maine</option>
1040
            <option>Maryland</option>
1041
            <option>Massachusetts</option>
1042
            <option>Michigan</option>
1043
            <option>Minnesota</option>
1044
            <option>Mississippi</option>
1045
            <option>Missouri</option>
1046
            <option>Montana</option>
1047
            <option>Nebraska</option>
1048
            <option>Nevada</option>
1049
            <option>New Hampshire</option>
1050
            <option>New Jersey</option>
1051
            <option>New Mexico</option>
1052
            <option>New York</option>
1053
            <option>North Carolina</option>
1054
            <option>North Dakota</option>
1055
            <option>Northern Mariana Islands</option>
1056
            <option>Ohio</option>
1057
            <option>Oklahoma</option>
1058
            <option>Oregon</option>
1059
            <option>Pennsylvania</option>
1060
            <option>Puerto Rico</option>
1061
            <option>Rhode Island</option>
1062
            <option>South Carolina</option>
1063
            <option>South Dakota</option>
1064
            <option>Tennessee</option>
1065
            <option>Texas</option>
1066
            <option>Utah</option>
1067
            <option>Vermont</option>
1068
            <option>Virgin Islands</option>
1069
            <option>Virginia</option>
1070
            <option>Washington</option>
1071
            <option>West Virginia</option>
1072
            <option>Wisconsin</option>
1073
            <option>Wyoming</option>
1074
          </select></td></tr>
1075
     <tr class="sectbody">
1076
        <td class="rightCol"><span class="label">Other State/Province</span>
1077
  <td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
1078
     <tr class="sectbody">     
1079
        <td class="rightCol"><span class="label">Postal Code</span>
1080
  <td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
1081
     <tr class="sectbody">
1082
        <td class="rightCol"><span class="label">Country</span>
1083
        <td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
1084
     </table>
1085
   
1086
  <table class="tables" cellpadding="5" cellspacing="0">  
1087
    <tr class="sectheader">
1088
      <td colspan="5" align="left">
1089
        <span class="label">DISTRIBUTION INFORMATION</span>
1090
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide" class="smalltext">(What's this?)</a>
1091
      </td>
1092
      <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
1093
    </tr>
1094
  </table>
1095

    
1096
   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">  
1097
  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
1098
  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
1099
  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
1100
     <td colspan="4" align="left"><span class="regtext">
1101
     If available, please enter a name or number that uniquely identifies and<br>
1102
     describes concisely the data set. Alternatively, provide other pertinent<br>
1103
     information that can identify and locate the data set within your site's<br>
1104
     data management system.</span></td><td></td></tr>
1105
  
1106
    <tr class="sectbody">
1107
        <td class="rightCol"><span class="label">*Data Medium</span></td>
1108
  
1109
        <td colspan="5" align="left">
1110
        [% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1111
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1112
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1113
        [%ELSE%]
1114
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1115
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1116
        [% END %]
1117
        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1118
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1119
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1120
        [%ELSE%]
1121
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1122
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1123
        [% END %]
1124
        [% IF form == 're_entry' && dataMedium == "other" %]
1125
           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1126
           <span class="regtext">Other&nbsp;</span></input>
1127
        [%ELSE%]
1128
           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1129
           <span class="regtext">Other&nbsp;</span></input>
1130
        [% END %]
1131

    
1132
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1133
        </td>
1134
    </tr>  
1135
  
1136
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1137
      <td colspan="5" align="left">
1138
      
1139
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
1140
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1141
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1142
          [%ELSE%]
1143
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1144
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1145
          [%END%]
1146
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
1147
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1148
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1149
          [%ELSE%]
1150
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1151
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1152
          [%END%]
1153
          </td></tr>
1154
    
1155

    
1156
   
1157
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1158
 
1159
    [% IF form == 're_entry' && useConstraints == "other" %]      
1160
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1161
      <span class="regtext">Other&nbsp;</span>
1162
    [%ELSE%]
1163
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1164
      <span class="regtext">Other&nbsp;</span>
1165
    [%END%]
1166
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1167
   
1168
   
1169
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1170
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1171
   
1172
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1173
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1174
   
1175
   </table>
1176
   
1177
  [% IF modules.upload == 'true' %]
1178

    
1179
  <!-- Associated Data -->
1180
  <table class="tables" cellpadding="5" cellspacing="0">
1181
  <tr class="sectheader">
1182
    <td colspan="5" align="left">
1183
      <span class="label">UPLOAD DATA</span>
1184
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1185
    </td>
1186
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1187
  </tr>
1188
   </table>
1189
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1190
  <tr class="sectbody">
1191
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1192
    <td colspan="5">
1193
        <input type="file" id="file_element" name="file_1" class="longwidth">
1194

    
1195
        [% IF form == 're_entry' && upCount %]
1196
           [% cnt = 0 %]
1197
           [% WHILE cnt < upCount %]
1198
                [% SET fileSum = "upload_${cnt}" %]
1199
                [% SET fileName = "uploadname_${cnt}" %]
1200
                [% SET fileType = "uploadtype_${cnt}" %] 
1201
                [% SET filePerm = "uploadperm_${cnt}" %]
1202
                [% IF fileSum %]
1203
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1204
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1205
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1206
                [% END %]
1207
                [% cnt = cnt + 1 %]
1208
            [% END %]
1209
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1210
        [% END %]
1211

    
1212
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1213
  </tr>
1214
  <tr class="sectbody">
1215
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1216
    <td colspan="5" class="regtext">
1217
    [% IF !upCount %]
1218
        <div id="file_comment">
1219
            (<i>None currently attached</i>)
1220
        </div>
1221
    [% END %]
1222
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1223
    [% cnt = 0 %]
1224

    
1225
    [% WHILE cnt < upCount %]
1226
        [% SET fileName = "uploadname_${cnt}" %]
1227
        [% SET filePerm = "uploadperm_${cnt}" %]
1228
        [% IF $filePerm == 'public' %]
1229
          [% SET perm_a = "checked" %]
1230
          [% SET perm_b = "" %]
1231
        [% ELSE %]
1232
          [% SET perm_a = "" %]
1233
          [% SET perm_b = "checked" %]
1234
        [% END %]
1235
        [% IF fileName %]<div>
1236
          [% $fileName %]
1237
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1238
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1239

    
1240
          <input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"/></div>[% END %]
1241

    
1242
        [% cnt = cnt + 1 %]
1243
    [% END %]
1244
    [% END %]</div></td>
1245
  </tr>
1246
  </table>
1247
  
1248
  <script language="JavaScript" type="text/JavaScript">
1249
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1250
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1251
  </script>
1252
  [% END %]
1253
   <table class="tables" cellpadding="5" cellspacing="0">    
1254
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1255
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1256
              
1257
    </table>
1258
    <p></p>
1259
    
1260
    					</div>
1261
					</div> <!-- end the accordinan -->
1262
   
1263
</form>
1264
			</div> <!-- end the row -->
1265
			
1266
		</div>
1267
	</article>
1268

    
1269
[% INCLUDE $templates.footer %]