Project

General

Profile

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

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
   
331
    <table class="tables" cellpadding="5" cellspacing="0">
332
      <tr class="sectheader">
333
      <td colspan="5" align="left">
334
        <span class="label">ASSOCIATED PARTIES</span>
335
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators" target="guide" class="smalltext">(What's this?)</a>
336
      </td>
337
      <td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td>
338
    </tr>
339
    </table>
340

    
341
    <table class="tables" cellpadding="5" cellspacing="0" id="apTable">    
342
    <tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
343
        <td colspan="5">
344
        <input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
345
            
346
    <tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
347
        <td colspan="5">
348
        <input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
349
                   
350
    <tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
351
        <td colspan="5"> 
352
        <select id="AORole" name="aoRole" class="shortwidth">
353
            <option>Co-owner</option>
354
            <option>Custodian/Steward</option>
355
            <option>Metadata Provider</option>
356
      <option>User</option>
357
        </select>
358
        </td>
359
    </tr>
360
  
361
   <tr id="addAssociatedParty" class="sectbody"> 
362
            <td></td>
363
            <td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
364
                    onClick="addAssociatedParty()"></td></tr>
365
       
366
    [% numAO = 0 %]
367
    [% IF aoCount %]
368
        [% numAO = aoCount %]
369
        <tr class="sectbody" id="aoHRRow">
370
            <td colSpan="6">
371
                <hr width = "85%"/>
372
            </td>
373
        </tr>
374
    [% END %]
375
    [% cnt = 1 %]
376
    [% WHILE cnt < numAO%]
377
            
378
        <tr class="sectbody">
379
            [% SET aofn = "origNamefirst${cnt}" %]
380
            [% SET aoln = "origNamelast${cnt}" %]
381
            [% SET aorole = "origRole${cnt}" %]
382
     
383
            <td class="rightCol">
384
                <a style="cursor:pointer">
385
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
386
                    src="[% contextUrl %]/style/images/previous.gif"
387
                    alt="Move Up" border="0"/>
388
                </a>
389
                <a style="cursor:pointer">
390
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
391
                    src="[% contextUrl %]/style/images/next.gif"
392
                    alt="Move Down" border="0"/>
393
                </a>
394
                <a style="cursor:pointer">
395
                    <img src="[% contextUrl %]/style/images/delete.gif"
396
                    onClick="delRow(event)" alt="Delete" border="0"/>
397
                </a>
398
            </td>
399
            <td colspan="5" align ="left" style="cursor:pointer"
400
                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
401
                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
402
                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
403
                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
404
                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
405
            </td>
406
        </tr>
407
        [% cnt = cnt + 1 %]
408
    [% END %]
409
    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
410
    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
411
    </table>
412
   
413
    <table class="tables" cellpadding="5" cellspacing="0">          
414
      <tr class="sectheader">
415
        <td colspan="5" align="left">
416
          <span class="label">DATA SET ABSTRACT</span>
417
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract" target="guide" class="smalltext">(What's this?)</a>
418
        </td>
419
        <td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>
420
  </tr>  
421
    </table>
422
   
423
    <table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">  
424
    <tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span><br><span class="regtext">(max. 350 words)</span></td>
425
        <td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
426
    </table>
427
  [% IF modules.keyword == 'true' %]
428
    <table class="tables" cellpadding="5" cellspacing="0">
429
      <tr class="sectheader">
430
        <td colspan="5" align="left">
431
          <span class="label">KEYWORD INFORMATION</span>
432
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
433
        </td>
434
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
435
        </tr>
436
    </table>
437
   
438
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
439
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
440
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
441
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
442
     
443
      <tr class="sectbody">
444
        <td class="rightCol"><span class="label">Keyword</span></td>
445
      <td colspan="5">
446
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
447

    
448

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

    
630
  <table class="tables" cellpadding="5" cellspacing="0">  
631

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

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

    
776
   [% IF modules.taxonomic == 'true' %]
777
   
778
  <table class="tables" cellpadding="5" cellspacing="0">  
779

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

    
802
        <tr class="sectbody"> 
803
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
804
            <td align="left" colspan="5">
805
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
806
            </td>
807
        </tr>
808

    
809
        <tr id="addTaxon" class="sectbody"> 
810
            <td></td>
811
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
812
                    onClick="addTaxon()">
813
            </td>
814
        </tr>
815

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

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

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

    
882
    <tr class="sectbody"> 
883
      <td class="rightCol"><span class="label">Method Title</span></td>
884
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
885

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

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

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

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

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

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

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

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

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

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

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

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

    
1232
[% INCLUDE $templates.footer %]