Project

General

Profile

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

1
[% INCLUDE $templates.header %]
2

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

    
9
	<!-- CONTENT SECTION
10
    ======================================================================= -->
11
	<article id="EntryForm">
12
		<div class="container">
13
		
14
			<div class="row-fluid">
15
			
16
				[% IF form != 're_entry' %]  
17
				
18
					<h2>Upload your data</h2>
19
					<p class="lead">
20
						Use this form to submit a new data package to the repository.
21
					</p>
22
					
23
				[% ELSE %]
24
				
25
					<h2>Edit your data</h2>
26
					<p class="lead">
27
						Use this form to edit a data package submitted earlier.
28
					</p>
29
					
30
					[%IF docid !=''%]
31
						<p>
32
							The ID of this data set is: <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
33
						</p>	
34
\					[%END%]
35
				
36
				[% END %]
37
				
38
				<p>
39
					Please have a look at the 
40
					<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
41
					Guide for Completing the Data Repository Form</a> 
42
	        		before you start filling in this form. Also, use your browser's 
43
	        		Reload/Refresh function to make sure you see the latest version of this 
44
	        		page.
45
				</p>
46
				<p>
47
					If you have any questions, comments or problems 
48
					regarding this form, please contact the repository administrator at 
49
					<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
50
				</p>
51
				<p class="text-info">*Denotes a required field.</p>
52
			</div>
53

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

    
422

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

    
459

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

    
641
  <table class="tables" cellpadding="5" cellspacing="0">  
642

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

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

    
787
   [% IF modules.taxonomic == 'true' %]
788
   
789
  <table class="tables" cellpadding="5" cellspacing="0">  
790

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

    
813
        <tr class="sectbody"> 
814
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
815
            <td align="left" colspan="5">
816
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
817
            </td>
818
        </tr>
819

    
820
        <tr id="addTaxon" class="sectbody"> 
821
            <td></td>
822
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
823
                    onClick="addTaxon()">
824
            </td>
825
        </tr>
826

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

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

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

    
893
    <tr class="sectbody"> 
894
      <td class="rightCol"><span class="label">Method Title</span></td>
895
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
896

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

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

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

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

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

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

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

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

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

    
1199
    [% WHILE cnt < upCount %]
1200
        [% SET fileName = "uploadname_${cnt}" %]
1201
        [% SET filePerm = "uploadperm_${cnt}" %]
1202
        [% IF $filePerm == 'public' %]
1203
          [% SET perm_a = "checked" %]
1204
          [% SET perm_b = "" %]
1205
        [% ELSE %]
1206
          [% SET perm_a = "" %]
1207
          [% SET perm_b = "checked" %]
1208
        [% END %]
1209
        [% IF fileName %]<div>
1210
          [% $fileName %]
1211
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1212
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1213

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

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

    
1243
[% INCLUDE $templates.footer %]