Project

General

Profile

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

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
						<!-- TEMPLATE -->
427
						<div class="accordion-heading">
428
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
429
								Template  
430
							</a>
431
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
432
						</div>
433
						<div id="collapseTemplate" class="accordion-body collapse in">
434
							<div class="accordion-inner">
435
								<!--  the INPUT -->
436
								<div class="control-group">
437
									<label class="control-label" for="template">*template</label>
438
									<div class="controls">
439
										<input type="text" name="template" value="[%template%]">
440
									</div>
441
								</div>
442
								
443
						    </div>
444
						</div>
445
						
446
					[% IF modules.keyword == 'true' %]
447
						<!-- KEYWORDS -->
448
						<div class="accordion-heading">
449
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
450
								Keywords  
451
							</a>
452
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
453
						</div>
454
						<div id="collapseKeywords" class="accordion-body collapse in">
455
							<div class="accordion-inner">
456
								<!--  the INPUT -->
457
								<div class="control-group">
458
									<label class="control-label" for="keyword">Keyword</label>
459
									<div class="controls">
460
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
461
										<span class="help-block">For samples, see <a href=
462
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
463
										</span>
464
									</div>
465
								</div>
466
								<div class="control-group">
467
									<label class="control-label" for="keywordType">Keyword Type</label>
468
									<div class="controls">
469
										<select name="keywordType" id="keywordType" class="shortwidth">
470
											<option>None</option>
471
								            <option>Theme</option>
472
								            <option>Place</option>
473
								            <option>Stratum</option>
474
								            <option>Temporal</option>
475
								            <option>Taxonomic</option>
476
										</select>
477
									</div>
478
								</div>
479
								<div class="control-group">
480
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
481
									<div class="controls">
482
										<select name="keywordTh" id="keywordTh" class="shortwidth">
483
											<option>None</option>
484
											<option>GCMD</option>
485
										</select>
486
									</div>
487
								</div>
488
								<div class="control-group">
489
									<label class="control-label" for="addKeywordButton">More?</label>
490
									<div class="controls">
491
										<input type="button" value="Add Keyword" onClick="addKeyword()">
492
									</div>
493
								</div>
494
								
495
								<!-- the orginal table -->
496
								<table>
497
								 [% numKey = 0 %]
498
								 [% IF keyCount %]
499
								   [% numKey = keyCount %]
500
								        [% numAO = aoCount %]
501
								        <tr class="sectbody" id="keywordHRRow">
502
								            <td colSpan="6">
503
								                <hr width = "85%"/>
504
								            </td>
505
								        </tr>
506
								 [% END %]
507
								 <input type="hidden" name="keyCount" value="[%numKey%]" 
508
								            id="keyCount">
509
								   
510
								      [% cnt = 1 %]
511
								        [% WHILE cnt < numKey %]
512
								        
513
								           <tr class="sectbody">
514
								            <td class="rightCol">
515
								                <a style="cursor:pointer">
516
								                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
517
								                    src="[% contextUrl %]/style/images/previous.gif"
518
								                    alt="Move Up" border="0"/>
519
								                </a>
520
								                <a style="cursor:pointer">
521
								                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
522
								                    src="[% contextUrl %]/style/images/next.gif"
523
								                    alt="Move Down" border="0"/>
524
								                </a>
525
								                <a style="cursor:pointer">
526
								                    <img src="[% contextUrl %]/style/images/delete.gif"
527
								                    onClick="delRow(event)" alt="Delete" border="0"/>
528
								                </a>
529
								            </td>
530
								            [% SET keyword = "keyword${cnt}" %]
531
								            [% SET keywordType = "kwType${cnt}" %]
532
								            [% SET keywordTh = "kwTh${cnt}" %]
533
								            <td colspan="5" align ="left" style="cursor:pointer"
534
								                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
535
								                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
536
								                <input name="keyword" type="hidden" value="[%$keyword%]"/>
537
								                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
538
								                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
539
								            </td>
540
								        </tr>
541
								        [% cnt = cnt + 1 %]
542
								       [% END %]
543
								        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
544
								       </table>
545
								
546
						    </div>
547
						</div>
548
					[% END %]	
549

    
550
  
551
  [% IF modules.temporal == 'true' %]
552
   
553
  <table class="tables" cellpadding="5" cellspacing="0">   
554
    <tr class="sectheader">
555
      <td colspan="5" align="left">
556
        <span class="label">TEMPORAL COVERAGE OF DATA</span>
557
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
558
      </td>
559
      <td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
560
   </tr>
561
   </table>
562
   
563
   <table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">  
564
   <tr class="sectbody">
565
      <td/>
566
      <td align="left"><span class="label">Start Date</span></td>
567
      <td/>
568
      <td align="left"><span class="label">Stop Date</span></td>
569
      <td colspan="2"></td>
570
      </tr>
571
     
572
      <tr class="sectbody"> 
573
        <td class="rightCol"> 
574
          [% IF required.temporal == 'true' %]
575
            <span class="label">*Year (yyyy)</span>
576
          [% ELSE %]
577
    <span class="label">Year (yyyy)</span>
578
    [% END %]</td>
579
    <td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
580
          <td class="rightCol"><span class="label">Year (yyyy)</span></td>
581
    <td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
582
          <td colspan="3"></td>
583
      </tr>
584
          
585
    
586
  <tr class="sectbody">
587
    <td class="rightCol">
588
    <span class="label">Month</span>
589
          </td>
590
    <td align="left"><select name="beginningMonth">
591
      [% IF form == 're_entry' && beginningMonth != ""%]
592
        <option selected>[%beginningMonth%]</option>
593
      [% END %]
594
            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
595
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
596
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
597
            <option>12</option>
598
          </select></td>
599
      
600
         <td class="rightCol"><span class="label">Month</span></td>
601
   <td align="left"> <select name="endingMonth">
602
      [% IF form == 're_entry' && endingMonth != ""%]
603
        <option selected>[%endingMonth%]</option>
604
      [% END %]
605
            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
606
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
607
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
608
            <option>12</option>
609
          </select></td>  <td colspan="2"></td></tr>
610
       
611
   <tr class="sectbody">
612
    <td class="rightCol"> 
613
            <span class="label">Day</span>
614
    </td>
615
    
616
    <td align="left"><select name="beginningDay">
617
      [% IF form == 're_entry' && beginningDay != ""%]
618
        <option selected>[%beginningDay%]</option>
619
      [% END %]
620
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
621
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
622
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
623
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
624
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
625
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
626
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
627
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
628
          </select></td>
629
      
630
          <td class="rightCol"><span class="label">Day</span></td>
631
    <td align="left"><select name="endingDay">
632
      [% IF form == 're_entry' && endingDay != ""%]
633
        <option selected>[%endingDay%]</option>
634
      [% END %]
635
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
636
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
637
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
638
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
639
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
640
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
641
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
642
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
643
          </select></td>
644
          <td colspan="2"></td></tr>
645
  <tr class="sectbody"> 
646
      <td></td><td align="left" colspan="5"> 
647
       <span class="label">Note: </span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
648
     </td></tr>
649
     </table>
650
  [% END %]  
651
  
652
[% IF modules.spatial == 'true' %]
653

    
654
  <table class="tables" cellpadding="5" cellspacing="0">  
655

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

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

    
800
   [% IF modules.taxonomic == 'true' %]
801
   
802
  <table class="tables" cellpadding="5" cellspacing="0">  
803

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

    
826
        <tr class="sectbody"> 
827
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
828
            <td align="left" colspan="5">
829
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
830
            </td>
831
        </tr>
832

    
833
        <tr id="addTaxon" class="sectbody"> 
834
            <td></td>
835
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
836
                    onClick="addTaxon()">
837
            </td>
838
        </tr>
839

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

    
881
     <tr class="sectbody" id="addtaxarow"> 
882
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
883
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
884
        </tr>
885
     <tr class="sectbody">
886
     <td></td>
887
     <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
888
     nomenclature revision).</span></td>
889
     </tr>   
890
   </table>
891
    [% END %]  
892

    
893
  [% IF modules.method == 'true' %]
894
  <table class="tables" cellpadding="5" cellspacing="0">  
895
    <tr class="sectheader">
896
      <td colspan="5" align="left">
897
        <span class="label">DATA COLLECTION METHODS</span>
898
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
899
      </td>
900
      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
901
    </tr>
902
  </table>
903
 
904
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
905

    
906
    <tr class="sectbody"> 
907
      <td class="rightCol"><span class="label">Method Title</span></td>
908
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
909

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

    
956
  <table class="tables" cellpadding="5" cellspacing="0">    
957
    <tr class="sectheader">
958
      <td colspan="5" align="left">
959
        <span class="label">DATA SET CONTACT</span>
960
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
961
      </td>
962
      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
963
    </tr>
964
  </table>
965

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

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

    
1119
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1120
        </td>
1121
    </tr>  
1122
  
1123
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1124
      <td colspan="5" align="left">
1125
      
1126
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
1127
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1128
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1129
          [%ELSE%]
1130
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1131
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1132
          [%END%]
1133
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
1134
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1135
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1136
          [%ELSE%]
1137
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1138
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1139
          [%END%]
1140
          </td></tr>
1141
    
1142

    
1143
   
1144
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1145
 
1146
    [% IF form == 're_entry' && useConstraints == "other" %]      
1147
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1148
      <span class="regtext">Other&nbsp;</span>
1149
    [%ELSE%]
1150
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1151
      <span class="regtext">Other&nbsp;</span>
1152
    [%END%]
1153
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1154
   
1155
   
1156
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1157
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1158
   
1159
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1160
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1161
   
1162
   </table>
1163
   
1164
  [% IF modules.upload == 'true' %]
1165

    
1166
  <!-- Associated Data -->
1167
  <table class="tables" cellpadding="5" cellspacing="0">
1168
  <tr class="sectheader">
1169
    <td colspan="5" align="left">
1170
      <span class="label">UPLOAD DATA</span>
1171
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1172
    </td>
1173
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1174
  </tr>
1175
   </table>
1176
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1177
  <tr class="sectbody">
1178
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1179
    <td colspan="5">
1180
        <input type="file" id="file_element" name="file_1" class="longwidth">
1181

    
1182
        [% IF form == 're_entry' && upCount %]
1183
           [% cnt = 0 %]
1184
           [% WHILE cnt < upCount %]
1185
                [% SET fileSum = "upload_${cnt}" %]
1186
                [% SET fileName = "uploadname_${cnt}" %]
1187
                [% SET fileType = "uploadtype_${cnt}" %] 
1188
                [% SET filePerm = "uploadperm_${cnt}" %]
1189
                [% IF fileSum %]
1190
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1191
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1192
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1193
                [% END %]
1194
                [% cnt = cnt + 1 %]
1195
            [% END %]
1196
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1197
        [% END %]
1198

    
1199
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1200
  </tr>
1201
  <tr class="sectbody">
1202
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1203
    <td colspan="5" class="regtext">
1204
    [% IF !upCount %]
1205
        <div id="file_comment">
1206
            (<i>None currently attached</i>)
1207
        </div>
1208
    [% END %]
1209
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1210
    [% cnt = 0 %]
1211

    
1212
    [% WHILE cnt < upCount %]
1213
        [% SET fileName = "uploadname_${cnt}" %]
1214
        [% SET filePerm = "uploadperm_${cnt}" %]
1215
        [% IF $filePerm == 'public' %]
1216
          [% SET perm_a = "checked" %]
1217
          [% SET perm_b = "" %]
1218
        [% ELSE %]
1219
          [% SET perm_a = "" %]
1220
          [% SET perm_b = "checked" %]
1221
        [% END %]
1222
        [% IF fileName %]<div>
1223
          [% $fileName %]
1224
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1225
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1226

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

    
1229
        [% cnt = cnt + 1 %]
1230
    [% END %]
1231
    [% END %]</div></td>
1232
  </tr>
1233
  </table>
1234
  
1235
  <script language="JavaScript" type="text/JavaScript">
1236
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1237
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1238
  </script>
1239
  [% END %]
1240
   <table class="tables" cellpadding="5" cellspacing="0">    
1241
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1242
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1243
              
1244
    </table>
1245
    <p></p>
1246
    
1247
    					</div>
1248
					</div> <!-- end the accordinan -->
1249
   
1250
</form>
1251
			</div> <!-- end the row -->
1252
			
1253
		</div>
1254
	</article>
1255

    
1256
[% INCLUDE $templates.footer %]