Project

General

Profile

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

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
								<!--  For now, just include the table-based editor until .js is ammended to work with new DOM -->
340
								    <table class="tables" cellpadding="5" cellspacing="0" id="apTable">    
341
									    <tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
342
									        <td colspan="5">
343
									        <input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
344
									            
345
									    <tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
346
									        <td colspan="5">
347
									        <input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
348
									                   
349
									    <tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
350
									        <td colspan="5"> 
351
									        <select id="AORole" name="aoRole" class="shortwidth">
352
									            <option>Co-owner</option>
353
									            <option>Custodian/Steward</option>
354
									            <option>Metadata Provider</option>
355
									      <option>User</option>
356
									        </select>
357
									        </td>
358
									    </tr>
359
									  
360
									   <tr id="addAssociatedParty" class="sectbody"> 
361
									            <td></td>
362
									            <td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
363
									                    onClick="addAssociatedParty()"></td></tr>
364
									       
365
									    [% numAO = 0 %]
366
									    [% IF aoCount %]
367
									        [% numAO = aoCount %]
368
									        <tr class="sectbody" id="aoHRRow">
369
									            <td colSpan="6">
370
									                <hr width = "85%"/>
371
									            </td>
372
									        </tr>
373
									    [% END %]
374
									    [% cnt = 1 %]
375
									    [% WHILE cnt < numAO%]
376
									            
377
									        <tr class="sectbody">
378
									            [% SET aofn = "origNamefirst${cnt}" %]
379
									            [% SET aoln = "origNamelast${cnt}" %]
380
									            [% SET aorole = "origRole${cnt}" %]
381
									     
382
									            <td class="rightCol">
383
									                <a style="cursor:pointer">
384
									                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
385
									                    src="[% contextUrl %]/style/images/previous.gif"
386
									                    alt="Move Up" border="0"/>
387
									                </a>
388
									                <a style="cursor:pointer">
389
									                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
390
									                    src="[% contextUrl %]/style/images/next.gif"
391
									                    alt="Move Down" border="0"/>
392
									                </a>
393
									                <a style="cursor:pointer">
394
									                    <img src="[% contextUrl %]/style/images/delete.gif"
395
									                    onClick="delRow(event)" alt="Delete" border="0"/>
396
									                </a>
397
									            </td>
398
									            <td colspan="5" align ="left" style="cursor:pointer"
399
									                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
400
									                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
401
									                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
402
									                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
403
									                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
404
									            </td>
405
									        </tr>
406
									        [% cnt = cnt + 1 %]
407
									    [% END %]
408
									    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
409
									    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
410
									    </table>
411
								
412
						    </div>
413
						</div>
414
       
415

    
416

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

    
453

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

    
635
  <table class="tables" cellpadding="5" cellspacing="0">  
636

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

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

    
781
   [% IF modules.taxonomic == 'true' %]
782
   
783
  <table class="tables" cellpadding="5" cellspacing="0">  
784

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

    
807
        <tr class="sectbody"> 
808
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
809
            <td align="left" colspan="5">
810
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
811
            </td>
812
        </tr>
813

    
814
        <tr id="addTaxon" class="sectbody"> 
815
            <td></td>
816
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
817
                    onClick="addTaxon()">
818
            </td>
819
        </tr>
820

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

    
862
     <tr class="sectbody" id="addtaxarow"> 
863
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
864
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
865
        </tr>
866
     <tr class="sectbody">
867
     <td></td>
868
     <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
869
     nomenclature revision).</span></td>
870
     </tr>   
871
   </table>
872
    [% END %]  
873

    
874
  [% IF modules.method == 'true' %]
875
  <table class="tables" cellpadding="5" cellspacing="0">  
876
    <tr class="sectheader">
877
      <td colspan="5" align="left">
878
        <span class="label">DATA COLLECTION METHODS</span>
879
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
880
      </td>
881
      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
882
    </tr>
883
  </table>
884
 
885
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
886

    
887
    <tr class="sectbody"> 
888
      <td class="rightCol"><span class="label">Method Title</span></td>
889
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
890

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

    
937
  <table class="tables" cellpadding="5" cellspacing="0">    
938
    <tr class="sectheader">
939
      <td colspan="5" align="left">
940
        <span class="label">DATA SET CONTACT</span>
941
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
942
      </td>
943
      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
944
    </tr>
945
  </table>
946

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

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

    
1100
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1101
        </td>
1102
    </tr>  
1103
  
1104
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1105
      <td colspan="5" align="left">
1106
      
1107
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
1108
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1109
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1110
          [%ELSE%]
1111
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1112
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1113
          [%END%]
1114
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
1115
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1116
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1117
          [%ELSE%]
1118
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1119
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1120
          [%END%]
1121
          </td></tr>
1122
    
1123

    
1124
   
1125
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1126
 
1127
    [% IF form == 're_entry' && useConstraints == "other" %]      
1128
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1129
      <span class="regtext">Other&nbsp;</span>
1130
    [%ELSE%]
1131
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1132
      <span class="regtext">Other&nbsp;</span>
1133
    [%END%]
1134
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1135
   
1136
   
1137
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1138
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1139
   
1140
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1141
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1142
   
1143
   </table>
1144
   
1145
  [% IF modules.upload == 'true' %]
1146

    
1147
  <!-- Associated Data -->
1148
  <table class="tables" cellpadding="5" cellspacing="0">
1149
  <tr class="sectheader">
1150
    <td colspan="5" align="left">
1151
      <span class="label">UPLOAD DATA</span>
1152
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1153
    </td>
1154
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1155
  </tr>
1156
   </table>
1157
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1158
  <tr class="sectbody">
1159
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1160
    <td colspan="5">
1161
        <input type="file" id="file_element" name="file_1" class="longwidth">
1162

    
1163
        [% IF form == 're_entry' && upCount %]
1164
           [% cnt = 0 %]
1165
           [% WHILE cnt < upCount %]
1166
                [% SET fileSum = "upload_${cnt}" %]
1167
                [% SET fileName = "uploadname_${cnt}" %]
1168
                [% SET fileType = "uploadtype_${cnt}" %] 
1169
                [% SET filePerm = "uploadperm_${cnt}" %]
1170
                [% IF fileSum %]
1171
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1172
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1173
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1174
                [% END %]
1175
                [% cnt = cnt + 1 %]
1176
            [% END %]
1177
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1178
        [% END %]
1179

    
1180
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1181
  </tr>
1182
  <tr class="sectbody">
1183
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1184
    <td colspan="5" class="regtext">
1185
    [% IF !upCount %]
1186
        <div id="file_comment">
1187
            (<i>None currently attached</i>)
1188
        </div>
1189
    [% END %]
1190
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1191
    [% cnt = 0 %]
1192

    
1193
    [% WHILE cnt < upCount %]
1194
        [% SET fileName = "uploadname_${cnt}" %]
1195
        [% SET filePerm = "uploadperm_${cnt}" %]
1196
        [% IF $filePerm == 'public' %]
1197
          [% SET perm_a = "checked" %]
1198
          [% SET perm_b = "" %]
1199
        [% ELSE %]
1200
          [% SET perm_a = "" %]
1201
          [% SET perm_b = "checked" %]
1202
        [% END %]
1203
        [% IF fileName %]<div>
1204
          [% $fileName %]
1205
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1206
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1207

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

    
1210
        [% cnt = cnt + 1 %]
1211
    [% END %]
1212
    [% END %]</div></td>
1213
  </tr>
1214
  </table>
1215
  
1216
  <script language="JavaScript" type="text/JavaScript">
1217
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1218
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1219
  </script>
1220
  [% END %]
1221
   <table class="tables" cellpadding="5" cellspacing="0">    
1222
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1223
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1224
              
1225
    </table>
1226
    <p></p>
1227
    
1228
    					</div>
1229
					</div> <!-- end the accordinan -->
1230
   
1231
</form>
1232
			</div> <!-- end the row -->
1233
			
1234
		</div>
1235
	</article>
1236

    
1237
[% INCLUDE $templates.footer %]