Project

General

Profile

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

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="#collapseOwner" 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="collapseOwner" 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
						    </div>
423
						</div>
424
						
425
						<!-- ABSTRACT -->
426
						<div class="accordion-heading">
427
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" href="#none">
428
								Abstract  
429
							</a>
430
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-question-sign"></i></a>
431
						</div>
432
						<div id="collapseAbstract" class="accordion-body collapse in">
433
							<div class="accordion-inner">
434
								<!--  the INPUT -->
435
								<div class="control-group">
436
									<label class="control-label" for="abstract">*Data Set Abstract</label>
437
									<div class="controls">
438
										<textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea>
439
										<span class="help-block">(~350 words)
440
									</div>
441
								</div>
442
								
443
						    </div>
444
						</div>
445

    
446

    
447
  [% IF modules.keyword == 'true' %]
448
    <table class="tables" cellpadding="5" cellspacing="0">
449
      <tr class="sectheader">
450
        <td colspan="5" align="left">
451
          <span class="label">KEYWORD INFORMATION</span>
452
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
453
        </td>
454
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
455
        </tr>
456
    </table>
457
   
458
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
459
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
460
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
461
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
462
     
463
      <tr class="sectbody">
464
        <td class="rightCol"><span class="label">Keyword</span></td>
465
      <td colspan="5">
466
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
467

    
468

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

    
650
  <table class="tables" cellpadding="5" cellspacing="0">  
651

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

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

    
796
   [% IF modules.taxonomic == 'true' %]
797
   
798
  <table class="tables" cellpadding="5" cellspacing="0">  
799

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
1252
[% INCLUDE $templates.footer %]