Project

General

Profile

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

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
								Basic Information  
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

    
181
       
182
    <table class="tables" cellpadding="5" cellspacing="0">
183
        <tr class="sectheader">
184
          <td colspan="5" align="left">
185
            <span class="label">PRINCIPAL DATA SET OWNER</span>
186
            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator" 
187
  target="guide" class="smalltext">(What's this?)</a>
188
          </td>
189
          <td class="rightCol"><span><a onClick="dsoBit=swap(event, 'dsoTable', dsoBit)" style="cursor:pointer">Hide</a></span></td>
190
        </tr>
191
    </table>
192

    
193
    <table class="tables" cellpadding="5" cellspacing="0" id="dsoTable">    
194
    <tr class="sectbody"><td class="rightCol"><span class="label">*First Name</span></td>
195
        <td colspan="5"><input type="TEXT" name="origNamefirst0" class="shortwidth" id="origNameFirst" value="[%origNamefirst0%]"></td></tr>
196
    <tr class="sectbody"><td class="rightCol"><span class="label">*Last Name</span></td>
197
        <td colspan="5"><input type="TEXT" name="origNamelast0" class="shortwidth" id="origNameLast" value="[%origNamelast0%]"></td></tr>
198
    <tr class="sectbody"><td class="rightCol"><span class="label">Organization Name</span></td>
199
        <td colspan="5"><input type="TEXT" name="origNameOrg" class="longwidth" id="origNameOrg" value="[%origNameOrg%]"></td></tr>
200
    <tr class="sectbody"><td class="rightCol"><span class="label">E-Mail</span></td>
201
         <td colspan="5"><input type="TEXT" name="origEmail" class="shortwidth" id="origEmail" value="[%origEmail%]"></td></tr>
202
    <tr class="sectbody"><td class="rightCol"><span class="label">Phone</span></td>
203
        <td colspan="5"><input type="TEXT" name="origPhone" class="shortwidth" id="origPhone" value="[%origPhone%]"></td></tr>
204
    <tr class="sectbody"><td class="rightCol"><span class="label">FAX</span></td>
205
        <td colspan="5"><input type="TEXT" name="origFAX" class="shortwidth" id="origFAX" value="[%origFAX%]"></td></tr>
206
  
207
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td> 
208
        <td colspan="5"><textarea id="origDelivery" name="origDelivery" class="longwidth">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span>
209
        </td></tr>
210
    
211
    <tr class="sectbody"><td class="rightCol"><span class="label">City</span></td>
212
        <td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" class="shortwidth"></td></tr>
213
    <tr class="sectbody"><td class="rightCol"><span class="label">U.S. State or Territory</span></td>
214
        <td colspan="5"><select name="origState" id="origState" class="shortwidth">
215
      [% IF form == 're_entry' %]
216
                <option selected>[%origState%]</option>
217
      [% ELSE %]
218
    <option>Select state or territory here.</option>
219
      [% END %]
220
            <option>Alabama</option>
221
            <option>Alaska</option>
222
            <option>American Samoa</option>
223
            <option>Arizona</option>
224
            <option>Arkansas</option>
225
            <option>California</option>
226
            <option>Colorado</option>
227
            <option>Connecticut</option>
228
            <option>Delaware</option>
229
            <option>District of Columbia</option>
230
            <option>Florida</option>
231
            <option>Georgia</option>
232
            <option>Guam</option>
233
            <option>Hawaii</option>
234
            <option>Idaho</option>
235
            <option>Illinois</option>
236
            <option>Indiana</option>
237
            <option>Iowa</option>
238
            <option>Kansas</option>
239
            <option>Kentucky</option>
240
            <option>Louisiana</option>
241
            <option>Maine</option>
242
            <option>Maryland</option>
243
            <option>Massachusetts</option>
244
            <option>Michigan</option>
245
            <option>Minnesota</option>
246
            <option>Mississippi</option>
247
            <option>Missouri</option>
248
            <option>Montana</option>
249
            <option>Nebraska</option>
250
            <option>Nevada</option>
251
            <option>New Hampshire</option>
252
            <option>New Jersey</option>
253
            <option>New Mexico</option>
254
            <option>New York</option>
255
            <option>North Carolina</option>
256
            <option>North Dakota</option>
257
            <option>Northern Mariana Islands</option>
258
            <option>Ohio</option>
259
            <option>Oklahoma</option>
260
            <option>Oregon</option>
261
            <option>Pennsylvania</option>
262
            <option>Puerto Rico</option>
263
            <option>Rhode Island</option>
264
            <option>South Carolina</option>
265
            <option>South Dakota</option>
266
            <option>Tennessee</option>
267
            <option>Texas</option>
268
            <option>Utah</option>
269
            <option>Vermont</option>
270
            <option>Virgin Islands</option>
271
            <option>Virginia</option>
272
            <option>Washington</option>
273
            <option>West Virginia</option>
274
            <option>Wisconsin</option>
275
            <option>Wyoming</option>
276
      </select></td></tr>
277
   
278
    <tr class="sectbody"><td class="rightCol"><span class="label">Other State/Province</span></td>
279
          <td colspan="5"><input type="TEXT" name="origStateOther" class="shortwidth" id="origStateOther" value="[%origStateOther%]"></td></tr>
280
    <tr class="sectbody"><td class="rightCol"><span class="label">Postal Code</span></td>
281
        <td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" class="shortwidth"></td></tr>
282
    <tr class="sectbody"><td class="rightCol"><span class="label">Country</span></td>
283
        <td colspan="5"><input type="TEXT" name="origCountry" class="shortwidth" id="origCountry" value="[%origCountry%]"></td></tr>
284
    </table>
285
   
286
    <table class="tables" cellpadding="5" cellspacing="0">
287
      <tr class="sectheader">
288
      <td colspan="5" align="left">
289
        <span class="label">ASSOCIATED PARTIES</span>
290
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators" target="guide" class="smalltext">(What's this?)</a>
291
      </td>
292
      <td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td>
293
    </tr>
294
    </table>
295

    
296
    <table class="tables" cellpadding="5" cellspacing="0" id="apTable">    
297
    <tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
298
        <td colspan="5">
299
        <input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
300
            
301
    <tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
302
        <td colspan="5">
303
        <input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
304
                   
305
    <tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
306
        <td colspan="5"> 
307
        <select id="AORole" name="aoRole" class="shortwidth">
308
            <option>Co-owner</option>
309
            <option>Custodian/Steward</option>
310
            <option>Metadata Provider</option>
311
      <option>User</option>
312
        </select>
313
        </td>
314
    </tr>
315
  
316
   <tr id="addAssociatedParty" class="sectbody"> 
317
            <td></td>
318
            <td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
319
                    onClick="addAssociatedParty()"></td></tr>
320
       
321
    [% numAO = 0 %]
322
    [% IF aoCount %]
323
        [% numAO = aoCount %]
324
        <tr class="sectbody" id="aoHRRow">
325
            <td colSpan="6">
326
                <hr width = "85%"/>
327
            </td>
328
        </tr>
329
    [% END %]
330
    [% cnt = 1 %]
331
    [% WHILE cnt < numAO%]
332
            
333
        <tr class="sectbody">
334
            [% SET aofn = "origNamefirst${cnt}" %]
335
            [% SET aoln = "origNamelast${cnt}" %]
336
            [% SET aorole = "origRole${cnt}" %]
337
     
338
            <td class="rightCol">
339
                <a style="cursor:pointer">
340
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
341
                    src="[% contextUrl %]/style/images/previous.gif"
342
                    alt="Move Up" border="0"/>
343
                </a>
344
                <a style="cursor:pointer">
345
                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
346
                    src="[% contextUrl %]/style/images/next.gif"
347
                    alt="Move Down" border="0"/>
348
                </a>
349
                <a style="cursor:pointer">
350
                    <img src="[% contextUrl %]/style/images/delete.gif"
351
                    onClick="delRow(event)" alt="Delete" border="0"/>
352
                </a>
353
            </td>
354
            <td colspan="5" align ="left" style="cursor:pointer"
355
                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
356
                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
357
                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
358
                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
359
                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
360
            </td>
361
        </tr>
362
        [% cnt = cnt + 1 %]
363
    [% END %]
364
    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
365
    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
366
    </table>
367
   
368
    <table class="tables" cellpadding="5" cellspacing="0">          
369
      <tr class="sectheader">
370
        <td colspan="5" align="left">
371
          <span class="label">DATA SET ABSTRACT</span>
372
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract" target="guide" class="smalltext">(What's this?)</a>
373
        </td>
374
        <td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>
375
  </tr>  
376
    </table>
377
   
378
    <table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">  
379
    <tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span><br><span class="regtext">(max. 350 words)</span></td>
380
        <td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
381
    </table>
382
  [% IF modules.keyword == 'true' %]
383
    <table class="tables" cellpadding="5" cellspacing="0">
384
      <tr class="sectheader">
385
        <td colspan="5" align="left">
386
          <span class="label">KEYWORD INFORMATION</span>
387
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
388
        </td>
389
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
390
        </tr>
391
    </table>
392
   
393
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
394
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
395
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
396
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
397
     
398
      <tr class="sectbody">
399
        <td class="rightCol"><span class="label">Keyword</span></td>
400
      <td colspan="5">
401
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
402

    
403

    
404
     <tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
405
     <td colspan="5">
406
            <select name="keywordType" id="keywordType" class="shortwidth">
407
      <option>None</option>
408
            <option>Theme</option>
409
            <option>Place</option>
410
            <option>Stratum</option>
411
            <option>Temporal</option>
412
            <option>Taxonomic</option>
413
            </select>
414
        </td></tr>
415
      
416
        <tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
417
          <td colspan="5">
418
            
419
            <select name="keywordTh" id="keywordTh" class="shortwidth">
420
          <option>None</option>
421
             <option>GCMD</option>
422
            </select>
423
      
424
      </td></tr>
425
            
426
    <tr id="addKeyword" class="sectbody">
427
          <td></td>
428
          <td colspan="5" align="left">
429
                   <input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
430
        
431
        
432
 [% numKey = 0 %]
433
 [% IF keyCount %]
434
   [% numKey = keyCount %]
435
        [% numAO = aoCount %]
436
        <tr class="sectbody" id="keywordHRRow">
437
            <td colSpan="6">
438
                <hr width = "85%"/>
439
            </td>
440
        </tr>
441
 [% END %]
442
 <input type="hidden" name="keyCount" value="[%numKey%]" 
443
            id="keyCount">
444
   
445
      [% cnt = 1 %]
446
        [% WHILE cnt < numKey %]
447
        
448
           <tr class="sectbody">
449
            <td class="rightCol">
450
                <a style="cursor:pointer">
451
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
452
                    src="[% contextUrl %]/style/images/previous.gif"
453
                    alt="Move Up" border="0"/>
454
                </a>
455
                <a style="cursor:pointer">
456
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
457
                    src="[% contextUrl %]/style/images/next.gif"
458
                    alt="Move Down" border="0"/>
459
                </a>
460
                <a style="cursor:pointer">
461
                    <img src="[% contextUrl %]/style/images/delete.gif"
462
                    onClick="delRow(event)" alt="Delete" border="0"/>
463
                </a>
464
            </td>
465
            [% SET keyword = "keyword${cnt}" %]
466
            [% SET keywordType = "kwType${cnt}" %]
467
            [% SET keywordTh = "kwTh${cnt}" %]
468
            <td colspan="5" align ="left" style="cursor:pointer"
469
                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
470
                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
471
                <input name="keyword" type="hidden" value="[%$keyword%]"/>
472
                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
473
                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
474
            </td>
475
        </tr>
476
        [% cnt = cnt + 1 %]
477
       [% END %]
478
        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
479
       </table>
480
  [% END %]
481
  
482
  [% IF modules.temporal == 'true' %]
483
   
484
  <table class="tables" cellpadding="5" cellspacing="0">   
485
    <tr class="sectheader">
486
      <td colspan="5" align="left">
487
        <span class="label">TEMPORAL COVERAGE OF DATA</span>
488
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
489
      </td>
490
      <td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
491
   </tr>
492
   </table>
493
   
494
   <table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">  
495
   <tr class="sectbody">
496
      <td/>
497
      <td align="left"><span class="label">Start Date</span></td>
498
      <td/>
499
      <td align="left"><span class="label">Stop Date</span></td>
500
      <td colspan="2"></td>
501
      </tr>
502
     
503
      <tr class="sectbody"> 
504
        <td class="rightCol"> 
505
          [% IF required.temporal == 'true' %]
506
            <span class="label">*Year (yyyy)</span>
507
          [% ELSE %]
508
    <span class="label">Year (yyyy)</span>
509
    [% END %]</td>
510
    <td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
511
          <td class="rightCol"><span class="label">Year (yyyy)</span></td>
512
    <td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
513
          <td colspan="3"></td>
514
      </tr>
515
          
516
    
517
  <tr class="sectbody">
518
    <td class="rightCol">
519
    <span class="label">Month</span>
520
          </td>
521
    <td align="left"><select name="beginningMonth">
522
      [% IF form == 're_entry' && beginningMonth != ""%]
523
        <option selected>[%beginningMonth%]</option>
524
      [% END %]
525
            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
526
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
527
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
528
            <option>12</option>
529
          </select></td>
530
      
531
         <td class="rightCol"><span class="label">Month</span></td>
532
   <td align="left"> <select name="endingMonth">
533
      [% IF form == 're_entry' && endingMonth != ""%]
534
        <option selected>[%endingMonth%]</option>
535
      [% END %]
536
            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
537
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
538
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
539
            <option>12</option>
540
          </select></td>  <td colspan="2"></td></tr>
541
       
542
   <tr class="sectbody">
543
    <td class="rightCol"> 
544
            <span class="label">Day</span>
545
    </td>
546
    
547
    <td align="left"><select name="beginningDay">
548
      [% IF form == 're_entry' && beginningDay != ""%]
549
        <option selected>[%beginningDay%]</option>
550
      [% END %]
551
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
552
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
553
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
554
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
555
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
556
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
557
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
558
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
559
          </select></td>
560
      
561
          <td class="rightCol"><span class="label">Day</span></td>
562
    <td align="left"><select name="endingDay">
563
      [% IF form == 're_entry' && endingDay != ""%]
564
        <option selected>[%endingDay%]</option>
565
      [% END %]
566
            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
567
            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
568
            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
569
            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
570
            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
571
            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
572
            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
573
            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
574
          </select></td>
575
          <td colspan="2"></td></tr>
576
  <tr class="sectbody"> 
577
      <td></td><td align="left" colspan="5"> 
578
       <span class="label">Note: </span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
579
     </td></tr>
580
     </table>
581
  [% END %]  
582
  
583
[% IF modules.spatial == 'true' %]
584

    
585
  <table class="tables" cellpadding="5" cellspacing="0">  
586

    
587
    <tr class="sectheader">
588
      <td colspan="5" align="left">
589
        <span class="label">SPATIAL COVERAGE OF DATA</span>
590
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
591
      </td>
592
      <td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
593
    </tr>
594
  </table>
595
   
596
   <table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">  
597
   
598
    <tr class="sectbody">
599
       [% IF required.spatial == 'true' %]
600
          <td align="right" valign="top"><span class="label">*Geographic Description</span></td>
601
    [% ELSE %]
602
          <td align="right" valign="top"><span class="label">Geographic Description</span></td>
603
    [% END %]    
604
          <td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
605
    <tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected. 
606
    It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
607
    </td></tr>
608
    <tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
609
        
610
     
611
  [% IF show.siteList == 'true' %]
612
    <tr class="sectbody"><td align="left" valign="top" colspan="6">
613
        <input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
614
        <span class="regtext">Use [% config.site %] coordinates. (This indicates that the data were
615
        collected at the [% config.site %]. If you check this box, you don't need
616
        to fill in the lat./long. fields below).</span>
617
        </td>
618
    </tr>
619
  [% END %]
620
    
621
    <tr class="sectbody">
622
      <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
623
      <td width="110" align="left"><span class="label">Minutes</span></td>
624
      <td width="70" align="left"><span class="label">Seconds</span></td>
625
      <td width="200"></td><td width="90"</td>
626
   </tr>
627
      
628
   <tr class="sectbody">
629
     <td class="rightCol">
630
      [% IF required.spatial == 'true' %]
631
        <span class="label">*Latitude</span>
632
      [% ELSE %]
633
        <span class="label">Latitude</span>
634
      [% END %]</td> 
635
     <td> 
636
          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
637
      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
638
      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
639
      
640
      <td Align="left" colspan="2"> 
641
      [% IF form == 're_entry' && hemisphLat1 == "N"%]
642
        <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
643
      [%ELSE%]
644
        <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
645
      [%END%]
646
      [% IF form == 're_entry' && hemisphLat1 == "S"%]
647
        <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
648
      [%ELSE%]
649
        <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
650
      [%END%]
651
      </td>
652
    </tr>
653

    
654
    <tr class="sectbody">
655
      <td class="rightCol"> 
656
      [% IF required.spatial == 'true' %]
657
        <span class="label">*Longitude</span>
658
      [% ELSE %]
659
        <span class="label">Longitude</span>
660
      [% END %]</td>
661
     
662
      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
663
      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
664
      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
665
      
666
      
667
      <td align="left" colspan="2"> 
668
    [% IF form == 're_entry' && hemisphLong1 == "W"%]        
669
      <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
670
    [%ELSE%]
671
      <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
672
    [%END%]
673
    [% IF form == 're_entry' && hemisphLong1 == "E"%]
674
      <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
675
    [%ELSE%]
676
      <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
677
    [%END%]
678
      </td>
679
    </tr>
680
      
681
      
682
    <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>
683
      </td><td></td></tr>
684
      
685
    <tr class="sectbody"> 
686
      <td class="rightCol"><span class="label">Latitude</span></td>
687
  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
688
      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
689
      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
690
        
691
      <td align="left" colspan="2"> 
692
      [% IF form == 're_entry' && hemisphLat2 == "N"%]
693
        <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
694
      [%ELSE%]
695
        <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
696
      [%END%]
697
      [% IF form == 're_entry' && hemisphLat2 == "S"%]
698
        <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
699
      [%ELSE%]
700
        <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
701
      [%END%]
702
      </td>
703
    </tr>
704
    
705
    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
706
       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
707
       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
708
       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
709
       <td align="left" colspan="2">
710
       
711
      [% IF form == 're_entry' && hemisphLong2 == "W"%]
712
        <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
713
      [%ELSE%]
714
        <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
715
      [%END%]
716
      [% IF form == 're_entry' && hemisphLong2 == "E"%]
717
        <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
718
      [%ELSE%]
719
        <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
720
      [%END%]
721
      </td>
722
    </tr>
723
    <tr class="sectbody"><td></td>
724
       <td align="left" colspan="4"><span class="regtext">
725
        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
726
      </td><td></td>
727
    </tr>
728
  </table>    
729
   [% END %]
730

    
731
   [% IF modules.taxonomic == 'true' %]
732
   
733
  <table class="tables" cellpadding="5" cellspacing="0">  
734

    
735
    <tr class="sectheader">
736
      <td colspan="5" align="left">
737
        <span class="label">TAXONOMIC COVERAGE OF DATA</span>
738
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage" target="guide" class="smalltext">(What's this?)</a>
739
      </td>
740
      <td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td>
741
    </tr>
742
  </table>
743
   
744
    <table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable">  
745
        <tr class="sectbody"><td></td>
746
        <td colspan="5" align="left"><span class="regtext">See the <a href=
747
        "http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href=
748
        "http://www.itis.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr>
749
  
750
        <tr class="sectbody"> 
751
            <td class="rightCol"><span class="label">Taxonomic Rank</span></td>
752
            <td align="left" colspan="5">
753
                <input name="taxonRank" id="taxonRank" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., Species)</span>
754
            </td>
755
        </tr>
756

    
757
        <tr class="sectbody"> 
758
            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
759
            <td align="left" colspan="5">
760
                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
761
            </td>
762
        </tr>
763

    
764
        <tr id="addTaxon" class="sectbody"> 
765
            <td></td>
766
            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
767
                    onClick="addTaxon()">
768
            </td>
769
        </tr>
770

    
771
        [% numTaxa = 0 %]
772
        [% IF taxaCount %]
773
            [% numTaxa = taxaCount %]
774
            <tr class="sectbody" id="taxonHRRow">
775
                <td colSpan="6">
776
                    <hr width = "85%"/>
777
                </td>
778
            </tr>
779
        [% END %]
780
        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
781
    
782
        [% cnt = 1 %]
783
        [% WHILE cnt <= numTaxa%]        
784
            <tr class="sectbody">
785
                <td class="rightCol">
786
                    <a style="cursor:pointer">
787
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
788
                        src="[% contextUrl %]/style/images/previous.gif"
789
                        alt="Move Up" border="0"/>
790
                    </a>
791
                    <a style="cursor:pointer">
792
                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
793
                        src="[% contextUrl %]/style/images/next.gif"
794
                        alt="Move Down" border="0"/>
795
                    </a>
796
                    <a style="cursor:pointer">
797
                        <img src="[% contextUrl %]/style/images/delete.gif"
798
                        onClick="delRow(event)" alt="Delete" border="0"/>
799
                    </a>
800
                </td>
801
                [% SET rank = "taxonRankName${cnt}" %]
802
                [% SET name = "taxonRankValue${cnt}" %]
803
                <td colspan="5" align ="left" style="cursor:pointer"
804
                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
805
                    Rank: [%$rank%], Name: [%$name%]
806
                    <input name="taxonName" type="hidden" value="[%$name%]"/>
807
                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
808
            </tr>
809
            [% cnt = cnt + 1 %]
810
        [% END %]
811

    
812
     <tr class="sectbody" id="addtaxarow"> 
813
        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
814
        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
815
        </tr>
816
     <tr class="sectbody">
817
     <td></td>
818
     <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
819
     nomenclature revision).</span></td>
820
     </tr>   
821
   </table>
822
    [% END %]  
823

    
824
  [% IF modules.method == 'true' %]
825
  <table class="tables" cellpadding="5" cellspacing="0">  
826
    <tr class="sectheader">
827
      <td colspan="5" align="left">
828
        <span class="label">DATA COLLECTION METHODS</span>
829
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
830
      </td>
831
      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
832
    </tr>
833
  </table>
834
 
835
   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
836

    
837
    <tr class="sectbody"> 
838
      <td class="rightCol"><span class="label">Method Title</span></td>
839
      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
840

    
841
       <tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>      
842
        <td colspan="5" align="left">
843
        [% IF !methodPara %]
844
          <textarea rows="6" cols="60" name="methodPara"></textarea>
845
        [% END %]
846
        [% FOREACH para = methodPara %]
847
           <textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
848
        [% END %]
849
        </td></tr>
850
        
851
    <tr class="sectbody" id="addparabutton1">
852
    <td ></td>
853
    <td colspan="5" align="left">
854
          <input type="button" value="Add Paragraph to Method Description" 
855
                 onClick="addParagraph()"></td></tr>
856
   
857
     
858
    <tr class="sectbody">
859
      <td valign="top" align="right" class="bordertop">
860
       <span class="label">Extent of Study Description</span>
861
       </td>
862
        <td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
863
    </tr>
864
  
865
   <tr class="sectbody">
866
    <td>
867
    </td>
868
    <td colspan="5"><span class="regtext">
869
        Describe the temporal, spatial and taxonomic extent of the study,<br>
870
        supplementing the information on coverage provided above.  <br>
871
        For example, if the temporal coverage of the data is 1990-2000, you<br>
872
        might provide details about any years that were missed or the months<br>
873
        in which sampling occurred.</span>
874
    </td>
875
    </tr>
876
          
877
    <tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
878
        <td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
879
  
880
   <tr class="sectbody"><td><td colspan="5"><span class="regtext">
881
        Describe the sampling design of the study.  For example, you might <br> 
882
        describe the way in which treatments were assigned to sampling units.</span></td></tr>
883
      
884
    </table>     
885
   [% END %]
886

    
887
  <table class="tables" cellpadding="5" cellspacing="0">    
888
    <tr class="sectheader">
889
      <td colspan="5" align="left">
890
        <span class="label">DATA SET CONTACT</span>
891
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
892
      </td>
893
      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
894
    </tr>
895
  </table>
896

    
897
   <table class="tables" cellpadding="5" cellspacing="0" id="dscTable">  
898
  <tr class="sectbody"><td valign="top" align="left" colspan="6">
899
        <input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
900
        <span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr> 
901
   <tr class="sectbody">
902
      <td class="rightCol"><span class="label">*First Name</span></td>
903
      <td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
904
    <tr class="sectbody">
905
      <td class="rightCol"><span class="label">*Last Name</span>
906
      <td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
907
    <tr class="sectbody">
908
      <td class="rightCol"><span class="label">Organization Name</span>
909
      <td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
910
    <tr class="sectbody">      
911
      [% IF required.contactEmailAddress == 'true' %]
912
        <td class="rightCol"><span class="label">*E-Mail</span>
913
      [% ELSE %]
914
        <td class="rightCol"><span class="label">E-Mail</span>
915
      [% END %]
916
      <td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
917
    <tr class="sectbody">
918
      <td class="rightCol"><span class="label">Phone</span>
919
      <td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
920
    <tr class="sectbody"> 
921
      <td class="rightCol"><span class="label">FAX</span>
922
      <td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
923
    <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
924
      <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>
925
    <tr class="sectbody">    
926
      <td class="rightCol"><span class="label">City</span>
927
      <td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
928
    <tr class="sectbody">
929
      <td class="rightCol"><span class="label">U.S. State or Territory</span>
930
      <td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
931
      [% IF form == 're_entry' %]  
932
              <option>[%origStateContact%]</option>
933
      [% ELSE %]
934
                <option>Select state or territory here.</option>
935
            [% END %]
936
          <option>Alabama</option>
937
            <option>Alaska</option>
938
            <option>American Samoa</option>
939
            <option>Arizona</option>
940
            <option>Arkansas</option>
941
            <option>California</option>
942
            <option>Colorado</option>
943
            <option>Connecticut</option>
944
            <option>Delaware</option>
945
            <option>District of Columbia</option>
946
            <option>Florida</option>
947
            <option>Georgia</option>
948
            <option>Guam</option>
949
            <option>Hawaii</option>
950
            <option>Idaho</option>
951
            <option>Illinois</option>
952
            <option>Indiana</option>
953
            <option>Iowa</option>
954
            <option>Kansas</option>
955
            <option>Kentucky</option>
956
            <option>Louisiana</option>
957
            <option>Maine</option>
958
            <option>Maryland</option>
959
            <option>Massachusetts</option>
960
            <option>Michigan</option>
961
            <option>Minnesota</option>
962
            <option>Mississippi</option>
963
            <option>Missouri</option>
964
            <option>Montana</option>
965
            <option>Nebraska</option>
966
            <option>Nevada</option>
967
            <option>New Hampshire</option>
968
            <option>New Jersey</option>
969
            <option>New Mexico</option>
970
            <option>New York</option>
971
            <option>North Carolina</option>
972
            <option>North Dakota</option>
973
            <option>Northern Mariana Islands</option>
974
            <option>Ohio</option>
975
            <option>Oklahoma</option>
976
            <option>Oregon</option>
977
            <option>Pennsylvania</option>
978
            <option>Puerto Rico</option>
979
            <option>Rhode Island</option>
980
            <option>South Carolina</option>
981
            <option>South Dakota</option>
982
            <option>Tennessee</option>
983
            <option>Texas</option>
984
            <option>Utah</option>
985
            <option>Vermont</option>
986
            <option>Virgin Islands</option>
987
            <option>Virginia</option>
988
            <option>Washington</option>
989
            <option>West Virginia</option>
990
            <option>Wisconsin</option>
991
            <option>Wyoming</option>
992
          </select></td></tr>
993
     <tr class="sectbody">
994
        <td class="rightCol"><span class="label">Other State/Province</span>
995
  <td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
996
     <tr class="sectbody">     
997
        <td class="rightCol"><span class="label">Postal Code</span>
998
  <td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
999
     <tr class="sectbody">
1000
        <td class="rightCol"><span class="label">Country</span>
1001
        <td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
1002
     </table>
1003
   
1004
  <table class="tables" cellpadding="5" cellspacing="0">  
1005
    <tr class="sectheader">
1006
      <td colspan="5" align="left">
1007
        <span class="label">DISTRIBUTION INFORMATION</span>
1008
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide" class="smalltext">(What's this?)</a>
1009
      </td>
1010
      <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
1011
    </tr>
1012
  </table>
1013

    
1014
   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">  
1015
  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
1016
  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
1017
  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
1018
     <td colspan="4" align="left"><span class="regtext">
1019
     If available, please enter a name or number that uniquely identifies and<br>
1020
     describes concisely the data set. Alternatively, provide other pertinent<br>
1021
     information that can identify and locate the data set within your site's<br>
1022
     data management system.</span></td><td></td></tr>
1023
  
1024
    <tr class="sectbody">
1025
        <td class="rightCol"><span class="label">*Data Medium</span></td>
1026
  
1027
        <td colspan="5" align="left">
1028
        [% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1029
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1030
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1031
        [%ELSE%]
1032
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1033
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1034
        [% END %]
1035
        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1036
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1037
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1038
        [%ELSE%]
1039
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1040
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1041
        [% END %]
1042
        [% IF form == 're_entry' && dataMedium == "other" %]
1043
           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1044
           <span class="regtext">Other&nbsp;</span></input>
1045
        [%ELSE%]
1046
           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1047
           <span class="regtext">Other&nbsp;</span></input>
1048
        [% END %]
1049

    
1050
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1051
        </td>
1052
    </tr>  
1053
  
1054
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1055
      <td colspan="5" align="left">
1056
      
1057
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
1058
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1059
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1060
          [%ELSE%]
1061
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1062
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1063
          [%END%]
1064
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
1065
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1066
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1067
          [%ELSE%]
1068
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1069
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1070
          [%END%]
1071
          </td></tr>
1072
    
1073

    
1074
   
1075
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1076
 
1077
    [% IF form == 're_entry' && useConstraints == "other" %]      
1078
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1079
      <span class="regtext">Other&nbsp;</span>
1080
    [%ELSE%]
1081
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1082
      <span class="regtext">Other&nbsp;</span>
1083
    [%END%]
1084
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1085
   
1086
   
1087
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1088
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1089
   
1090
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1091
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1092
   
1093
   </table>
1094
   
1095
  [% IF modules.upload == 'true' %]
1096

    
1097
  <!-- Associated Data -->
1098
  <table class="tables" cellpadding="5" cellspacing="0">
1099
  <tr class="sectheader">
1100
    <td colspan="5" align="left">
1101
      <span class="label">UPLOAD DATA</span>
1102
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1103
    </td>
1104
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1105
  </tr>
1106
   </table>
1107
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1108
  <tr class="sectbody">
1109
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1110
    <td colspan="5">
1111
        <input type="file" id="file_element" name="file_1" class="longwidth">
1112

    
1113
        [% IF form == 're_entry' && upCount %]
1114
           [% cnt = 0 %]
1115
           [% WHILE cnt < upCount %]
1116
                [% SET fileSum = "upload_${cnt}" %]
1117
                [% SET fileName = "uploadname_${cnt}" %]
1118
                [% SET fileType = "uploadtype_${cnt}" %] 
1119
                [% SET filePerm = "uploadperm_${cnt}" %]
1120
                [% IF fileSum %]
1121
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1122
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1123
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1124
                [% END %]
1125
                [% cnt = cnt + 1 %]
1126
            [% END %]
1127
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1128
        [% END %]
1129

    
1130
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1131
  </tr>
1132
  <tr class="sectbody">
1133
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1134
    <td colspan="5" class="regtext">
1135
    [% IF !upCount %]
1136
        <div id="file_comment">
1137
            (<i>None currently attached</i>)
1138
        </div>
1139
    [% END %]
1140
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1141
    [% cnt = 0 %]
1142

    
1143
    [% WHILE cnt < upCount %]
1144
        [% SET fileName = "uploadname_${cnt}" %]
1145
        [% SET filePerm = "uploadperm_${cnt}" %]
1146
        [% IF $filePerm == 'public' %]
1147
          [% SET perm_a = "checked" %]
1148
          [% SET perm_b = "" %]
1149
        [% ELSE %]
1150
          [% SET perm_a = "" %]
1151
          [% SET perm_b = "checked" %]
1152
        [% END %]
1153
        [% IF fileName %]<div>
1154
          [% $fileName %]
1155
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1156
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1157

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

    
1160
        [% cnt = cnt + 1 %]
1161
    [% END %]
1162
    [% END %]</div></td>
1163
  </tr>
1164
  </table>
1165
  
1166
  <script language="JavaScript" type="text/JavaScript">
1167
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1168
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1169
  </script>
1170
  [% END %]
1171
   <table class="tables" cellpadding="5" cellspacing="0">    
1172
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1173
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1174
              
1175
    </table>
1176
    <p></p>
1177
    
1178
    					</div>
1179
					</div> <!-- end the accordinan -->
1180
   
1181
</form>
1182
			</div> <!-- end the row -->
1183
			
1184
		</div>
1185
	</article>
1186

    
1187
[% INCLUDE $templates.footer %]