Project

General

Profile

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
						<!-- TEMPLATE -->
92
						<div class="accordion-heading">
93
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
94
								Template  
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="collapseTemplate" class="accordion-body collapse in">
99
							<div class="accordion-inner">
100
								<!--  the INPUT -->
101
								<div class="control-group">
102
									<label class="control-label" for="template">*template</label>
103
									<div class="controls">
104
										<input type="text" name="template" value="[%template%]">
105
									</div>
106
								</div>
107
								
108
						    </div>
109
						</div>
110
						
111
						<!-- BASIC -->
112
						<div class="accordion-heading">
113
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
114
								Basic Information  
115
							</a>
116
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
117
						</div>
118
						<div id="collapseBasic" class="accordion-body collapse in">
119
							<div class="accordion-inner">
120
								<!--  the INPUT -->
121
								<div class="control-group">
122
									<label class="control-label" for="title">*Data Set Title</label>
123
									<div class="controls">
124
										<input type="text" name="title" value="[%title%]">
125
									</div>
126
								</div>
127
								[% IF show.siteList == 'true' %]
128
									<div class="control-group">
129
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
130
										<div class="controls">
131
											<select name="site">
132
												[% IF form == 're_entry' %]
133
													<option selected>[%site%]</option>
134
												[% ELSE %]
135
													<option>Select your [% config.site %] here.</option>
136
												[% END %]
137
												[% FOREACH site = siteList %]
138
													<option>[% site %]</option>
139
												[% END %]
140
											</select>
141
										</div>
142
									</div>
143
								[% END %]
144
								[% IF show.wgList == 'true' %]
145
									<div class="control-group">
146
										<label class="control-label" for="site">*NCEAS Project(s):</label>
147
										<div class="controls">
148
											<select name="wg" multiple="multiple" size="5">
149
												[% FOREACH project = projects %]
150
													[% SET pname = $project.3 %]
151
													[% IF pname.length > 50 %]
152
														[% SET sname = $project.4 %]
153
													[% END %]
154
													[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
155
													[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
156
													[% SET sel = '' %]
157
													[% FOREACH group = wg %]
158
														[% IF group == value %]
159
															[% SET sel = 'selected="selected"' %]
160
														[% END %]
161
													[% END %]
162
													<option value="[% value %]" [% sel %]>[% label %]</option>
163
												[% END %]
164
											</select>
165
										</div>
166
									</div>
167
								[% END %]
168
								[% IF show.organization == 'true' %]
169
									<div class="control-group">
170
										<label class="control-label" for="site">*Organization</label>
171
										<div class="controls">
172
											<input type="text" name="site" value="[%site%]">
173
										</div>
174
									</div>
175
								[% END %]
176
								
177
						    </div>
178
						</div>
179
						
180
						<!-- PRINCIPAL DATA SET OWNER -->
181
						<div class="accordion-heading">
182
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
183
								Data Set Owner  
184
							</a>
185
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator"><i class="icon-question-sign"></i></a>
186
						</div>
187
						<div id="collapseTemplate" class="accordion-body collapse in">
188
							<div class="accordion-inner">
189
								<!--  the INPUT -->
190
								<div class="control-group">
191
									<label class="control-label" for="origNamefirst0">*First Name</label>
192
									<div class="controls">
193
										<input type="text" name="origNamefirst0" value="[%origNamefirst0%]">
194
									</div>
195
								</div>
196
								<div class="control-group">
197
									<label class="control-label" for="origNamelast0">*Last Name</label>
198
									<div class="controls">
199
										<input type="text" name="origNamelast0" value="[%origNamelast0%]">
200
									</div>
201
								</div>
202
								<div class="control-group">
203
									<label class="control-label" for="origNameOrg">Organization Name</label>
204
									<div class="controls">
205
										<input type="text" name="origNameOrg" value="[%origNameOrg%]">
206
									</div>
207
								</div>
208
								<div class="control-group">
209
									<label class="control-label" for="origEmail">Email</label>
210
									<div class="controls">
211
										<input type="text" name="origEmail" value="[%origEmail%]">
212
									</div>
213
								</div>
214
								<div class="control-group">
215
									<label class="control-label" for="origPhone">Phone</label>
216
									<div class="controls">
217
										<input type="text" name="origPhone" value="[%origPhone%]">
218
									</div>
219
								</div>
220
								<div class="control-group">
221
									<label class="control-label" for="origFAX">Fax</label>
222
									<div class="controls">
223
										<input type="text" name="origFAX" value="[%origFAX%]">
224
									</div>
225
								</div>
226
								<div class="control-group">
227
									<label class="control-label" for="origDelivery">Street Address</label>
228
									<div class="controls">
229
										<textarea id="origDelivery" name="origDelivery">[%origDelivery%]</textarea>
230
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
231
									</div>
232
								</div>
233
								<div class="control-group">
234
									<label class="control-label" for="origCity">City</label>
235
									<div class="controls">
236
										<input type="text" name="origCity" value="[%origCity%]">
237
									</div>
238
								</div>
239
								<div class="control-group">
240
									<label class="control-label" for="origState">U.S. State or Territory</label>
241
									<div class="controls">
242
										<select name="origState" id="origState">
243
											[% IF form == 're_entry' %]
244
												<option selected>[%origState%]</option>
245
											[% ELSE %]
246
												<option>Select state or territory here.</option>
247
											[% END %]
248
											<option>Alabama</option>
249
											<option>Alaska</option>
250
											<option>American Samoa</option>
251
											<option>Arizona</option>
252
											<option>Arkansas</option>
253
											<option>California</option>
254
											<option>Colorado</option>
255
											<option>Connecticut</option>
256
											<option>Delaware</option>
257
											<option>District of Columbia</option>
258
											<option>Florida</option>
259
											<option>Georgia</option>
260
											<option>Guam</option>
261
											<option>Hawaii</option>
262
											<option>Idaho</option>
263
											<option>Illinois</option>
264
											<option>Indiana</option>
265
											<option>Iowa</option>
266
											<option>Kansas</option>
267
											<option>Kentucky</option>
268
											<option>Louisiana</option>
269
											<option>Maine</option>
270
											<option>Maryland</option>
271
											<option>Massachusetts</option>
272
											<option>Michigan</option>
273
											<option>Minnesota</option>
274
											<option>Mississippi</option>
275
											<option>Missouri</option>
276
											<option>Montana</option>
277
											<option>Nebraska</option>
278
											<option>Nevada</option>
279
											<option>New Hampshire</option>
280
											<option>New Jersey</option>
281
											<option>New Mexico</option>
282
											<option>New York</option>
283
											<option>North Carolina</option>
284
											<option>North Dakota</option>
285
											<option>Northern Mariana Islands</option>
286
											<option>Ohio</option>
287
											<option>Oklahoma</option>
288
											<option>Oregon</option>
289
											<option>Pennsylvania</option>
290
											<option>Puerto Rico</option>
291
											<option>Rhode Island</option>
292
											<option>South Carolina</option>
293
											<option>South Dakota</option>
294
											<option>Tennessee</option>
295
											<option>Texas</option>
296
											<option>Utah</option>
297
											<option>Vermont</option>
298
											<option>Virgin Islands</option>
299
											<option>Virginia</option>
300
											<option>Washington</option>
301
											<option>West Virginia</option>
302
											<option>Wisconsin</option>
303
											<option>Wyoming</option>
304
										</select>
305
									</div>
306
								</div>
307
								<div class="control-group">
308
									<label class="control-label" for="origStateOther">Other State/Province</label>
309
									<div class="controls">
310
										<input type="text" name="origStateOther" value="[%origStateOther%]">
311
									</div>
312
								</div>
313
								<div class="control-group">
314
									<label class="control-label" for="origZip">Postal Code</label>
315
									<div class="controls">
316
										<input type="text" name="origZip" value="[%origZip%]">
317
									</div>
318
								</div>
319
								<div class="control-group">
320
									<label class="control-label" for="origCountry">Country</label>
321
									<div class="controls">
322
										<input type="text" name="origCountry" value="[%origCountry%]">
323
									</div>
324
								</div>
325
								
326
								
327
						    </div>
328
						</div>
329
						
330
						<!-- ASSOCIATED PARTIES -->
331
						<div class="accordion-heading">
332
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseParties" href="#none">
333
								Associated Parties  
334
							</a>
335
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"><i class="icon-question-sign"></i></a>
336
						</div>
337
						<div id="collapseParties" class="accordion-body collapse in">
338
							<div class="accordion-inner">
339
							
340
								<div class="control-group">
341
									<label class="control-label" for="aoFirstName">First Name</label>
342
									<div class="controls">
343
										<input type="text" name="aoFirstName" id="AONameFirst"">
344
									</div>
345
								</div>
346
								<div class="control-group">
347
									<label class="control-label" for="aoLastName">Last Name</label>
348
									<div class="controls">
349
										<input type="text" name="aoLastName" id="AONameLast"">
350
									</div>
351
								</div>
352
								<div class="control-group">
353
									<label class="control-label" for="aoRole">Role</label>
354
									<div class="controls">
355
										<select id="AORole" name="aoRole">
356
								            <option>Co-owner</option>
357
								            <option>Custodian/Steward</option>
358
								            <option>Metadata Provider</option>
359
								      		<option>User</option>
360
								        </select>
361
									</div>
362
								</div>
363
								<div class="control-group">
364
									<label class="control-label" for="addaobutton1">More?</label>
365
									<div class="controls">
366
										<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
367
									</div>
368
								</div>
369
								<div class="control-group">
370
									<label class="control-label" for="associatePartyTable"></label>
371
									<div class="controls">
372
										<table id="associatePartyTable">       
373
										    [% numAO = 0 %]
374
										    [% IF aoCount %]
375
										        [% numAO = aoCount %]
376
										        <tr class="sectbody" id="aoHRRow">
377
										            <td colSpan="6">
378
										                <hr width = "85%"/>
379
										            </td>
380
										        </tr>
381
										    [% END %]
382
										    [% cnt = 1 %]
383
										    [% WHILE cnt < numAO%]
384
										            
385
										        <tr class="sectbody">
386
										            [% SET aofn = "origNamefirst${cnt}" %]
387
										            [% SET aoln = "origNamelast${cnt}" %]
388
										            [% SET aorole = "origRole${cnt}" %]
389
										     
390
										            <td class="rightCol">
391
										                <a style="cursor:pointer">
392
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
393
										                    src="[% contextUrl %]/style/images/previous.gif"
394
										                    alt="Move Up" border="0"/>
395
										                </a>
396
										                <a style="cursor:pointer">
397
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
398
										                    src="[% contextUrl %]/style/images/next.gif"
399
										                    alt="Move Down" border="0"/>
400
										                </a>
401
										                <a style="cursor:pointer">
402
										                    <img src="[% contextUrl %]/style/images/delete.gif"
403
										                    onClick="delRow(event)" alt="Delete" border="0"/>
404
										                </a>
405
										            </td>
406
										            <td colspan="5" align ="left" style="cursor:pointer"
407
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
408
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
409
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
410
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
411
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
412
										            </td>
413
										        </tr>
414
										        [% cnt = cnt + 1 %]
415
										    [% END %]
416
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
417
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
418
										</table>
419
									</div>
420
								</div>
421
								    
422
								
423
								
424
						    </div>
425
						</div>
426
       
427

    
428

    
429
   
430
    <table class="tables" cellpadding="5" cellspacing="0">          
431
      <tr class="sectheader">
432
        <td colspan="5" align="left">
433
          <span class="label">DATA SET ABSTRACT</span>
434
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract" target="guide" class="smalltext">(What's this?)</a>
435
        </td>
436
        <td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>
437
  </tr>  
438
    </table>
439
   
440
    <table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">  
441
    <tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span><br><span class="regtext">(max. 350 words)</span></td>
442
        <td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
443
    </table>
444
  [% IF modules.keyword == 'true' %]
445
    <table class="tables" cellpadding="5" cellspacing="0">
446
      <tr class="sectheader">
447
        <td colspan="5" align="left">
448
          <span class="label">KEYWORD INFORMATION</span>
449
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
450
        </td>
451
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
452
        </tr>
453
    </table>
454
   
455
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
456
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
457
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
458
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
459
     
460
      <tr class="sectbody">
461
        <td class="rightCol"><span class="label">Keyword</span></td>
462
      <td colspan="5">
463
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
464

    
465

    
466
     <tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
467
     <td colspan="5">
468
            <select name="keywordType" id="keywordType" class="shortwidth">
469
      <option>None</option>
470
            <option>Theme</option>
471
            <option>Place</option>
472
            <option>Stratum</option>
473
            <option>Temporal</option>
474
            <option>Taxonomic</option>
475
            </select>
476
        </td></tr>
477
      
478
        <tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
479
          <td colspan="5">
480
            
481
            <select name="keywordTh" id="keywordTh" class="shortwidth">
482
          <option>None</option>
483
             <option>GCMD</option>
484
            </select>
485
      
486
      </td></tr>
487
            
488
    <tr id="addKeyword" class="sectbody">
489
          <td></td>
490
          <td colspan="5" align="left">
491
                   <input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
492
        
493
        
494
 [% numKey = 0 %]
495
 [% IF keyCount %]
496
   [% numKey = keyCount %]
497
        [% numAO = aoCount %]
498
        <tr class="sectbody" id="keywordHRRow">
499
            <td colSpan="6">
500
                <hr width = "85%"/>
501
            </td>
502
        </tr>
503
 [% END %]
504
 <input type="hidden" name="keyCount" value="[%numKey%]" 
505
            id="keyCount">
506
   
507
      [% cnt = 1 %]
508
        [% WHILE cnt < numKey %]
509
        
510
           <tr class="sectbody">
511
            <td class="rightCol">
512
                <a style="cursor:pointer">
513
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
514
                    src="[% contextUrl %]/style/images/previous.gif"
515
                    alt="Move Up" border="0"/>
516
                </a>
517
                <a style="cursor:pointer">
518
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
519
                    src="[% contextUrl %]/style/images/next.gif"
520
                    alt="Move Down" border="0"/>
521
                </a>
522
                <a style="cursor:pointer">
523
                    <img src="[% contextUrl %]/style/images/delete.gif"
524
                    onClick="delRow(event)" alt="Delete" border="0"/>
525
                </a>
526
            </td>
527
            [% SET keyword = "keyword${cnt}" %]
528
            [% SET keywordType = "kwType${cnt}" %]
529
            [% SET keywordTh = "kwTh${cnt}" %]
530
            <td colspan="5" align ="left" style="cursor:pointer"
531
                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
532
                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
533
                <input name="keyword" type="hidden" value="[%$keyword%]"/>
534
                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
535
                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
536
            </td>
537
        </tr>
538
        [% cnt = cnt + 1 %]
539
       [% END %]
540
        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
541
       </table>
542
  [% END %]
543
  
544
  [% IF modules.temporal == 'true' %]
545
   
546
  <table class="tables" cellpadding="5" cellspacing="0">   
547
    <tr class="sectheader">
548
      <td colspan="5" align="left">
549
        <span class="label">TEMPORAL COVERAGE OF DATA</span>
550
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
551
      </td>
552
      <td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
553
   </tr>
554
   </table>
555
   
556
   <table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">  
557
   <tr class="sectbody">
558
      <td/>
559
      <td align="left"><span class="label">Start Date</span></td>
560
      <td/>
561
      <td align="left"><span class="label">Stop Date</span></td>
562
      <td colspan="2"></td>
563
      </tr>
564
     
565
      <tr class="sectbody"> 
566
        <td class="rightCol"> 
567
          [% IF required.temporal == 'true' %]
568
            <span class="label">*Year (yyyy)</span>
569
          [% ELSE %]
570
    <span class="label">Year (yyyy)</span>
571
    [% END %]</td>
572
    <td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
573
          <td class="rightCol"><span class="label">Year (yyyy)</span></td>
574
    <td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
575
          <td colspan="3"></td>
576
      </tr>
577
          
578
    
579
  <tr class="sectbody">
580
    <td class="rightCol">
581
    <span class="label">Month</span>
582
          </td>
583
    <td align="left"><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></td>
592
      
593
         <td class="rightCol"><span class="label">Month</span></td>
594
   <td align="left"> <select name="endingMonth">
595
      [% IF form == 're_entry' && endingMonth != ""%]
596
        <option selected>[%endingMonth%]</option>
597
      [% END %]
598
            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
599
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
600
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
601
            <option>12</option>
602
          </select></td>  <td colspan="2"></td></tr>
603
       
604
   <tr class="sectbody">
605
    <td class="rightCol"> 
606
            <span class="label">Day</span>
607
    </td>
608
    
609
    <td align="left"><select name="beginningDay">
610
      [% IF form == 're_entry' && beginningDay != ""%]
611
        <option selected>[%beginningDay%]</option>
612
      [% END %]
613
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
614
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
615
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
616
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
617
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
618
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
619
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
620
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
621
          </select></td>
622
      
623
          <td class="rightCol"><span class="label">Day</span></td>
624
    <td align="left"><select name="endingDay">
625
      [% IF form == 're_entry' && endingDay != ""%]
626
        <option selected>[%endingDay%]</option>
627
      [% END %]
628
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
629
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
630
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
631
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
632
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
633
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
634
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
635
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
636
          </select></td>
637
          <td colspan="2"></td></tr>
638
  <tr class="sectbody"> 
639
      <td></td><td align="left" colspan="5"> 
640
       <span class="label">Note: </span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
641
     </td></tr>
642
     </table>
643
  [% END %]  
644
  
645
[% IF modules.spatial == 'true' %]
646

    
647
  <table class="tables" cellpadding="5" cellspacing="0">  
648

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

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

    
793
   [% IF modules.taxonomic == 'true' %]
794
   
795
  <table class="tables" cellpadding="5" cellspacing="0">  
796

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

    
819
        <tr class="sectbody"> 
820
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
821
            <td align="left" colspan="5">
822
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
823
            </td>
824
        </tr>
825

    
826
        <tr id="addTaxon" class="sectbody"> 
827
            <td></td>
828
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
829
                    onClick="addTaxon()">
830
            </td>
831
        </tr>
832

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

    
874
     <tr class="sectbody" id="addtaxarow"> 
875
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
876
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
877
        </tr>
878
     <tr class="sectbody">
879
     <td></td>
880
     <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
881
     nomenclature revision).</span></td>
882
     </tr>   
883
   </table>
884
    [% END %]  
885

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

    
899
    <tr class="sectbody"> 
900
      <td class="rightCol"><span class="label">Method Title</span></td>
901
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
902

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

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

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

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

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

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

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

    
1175
        [% IF form == 're_entry' && upCount %]
1176
           [% cnt = 0 %]
1177
           [% WHILE cnt < upCount %]
1178
                [% SET fileSum = "upload_${cnt}" %]
1179
                [% SET fileName = "uploadname_${cnt}" %]
1180
                [% SET fileType = "uploadtype_${cnt}" %] 
1181
                [% SET filePerm = "uploadperm_${cnt}" %]
1182
                [% IF fileSum %]
1183
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1184
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1185
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1186
                [% END %]
1187
                [% cnt = cnt + 1 %]
1188
            [% END %]
1189
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1190
        [% END %]
1191

    
1192
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1193
  </tr>
1194
  <tr class="sectbody">
1195
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1196
    <td colspan="5" class="regtext">
1197
    [% IF !upCount %]
1198
        <div id="file_comment">
1199
            (<i>None currently attached</i>)
1200
        </div>
1201
    [% END %]
1202
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1203
    [% cnt = 0 %]
1204

    
1205
    [% WHILE cnt < upCount %]
1206
        [% SET fileName = "uploadname_${cnt}" %]
1207
        [% SET filePerm = "uploadperm_${cnt}" %]
1208
        [% IF $filePerm == 'public' %]
1209
          [% SET perm_a = "checked" %]
1210
          [% SET perm_b = "" %]
1211
        [% ELSE %]
1212
          [% SET perm_a = "" %]
1213
          [% SET perm_b = "checked" %]
1214
        [% END %]
1215
        [% IF fileName %]<div>
1216
          [% $fileName %]
1217
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1218
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1219

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

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

    
1249
[% INCLUDE $templates.footer %]
(4-4/10)