Project

General

Profile

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

1

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

    
8
	<!-- CONTENT SECTION
9
    ======================================================================= -->
10
	<article id="RegistryEntryForm">
11
	
12
		<!-- Modal area for the guide-->
13
		<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-remote="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide">
14
		  <div class="modal-header">
15
		    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
16
		    <h3 id="myModalLabel"></h3>
17
		  </div>
18
		  <div class="modal-body">
19
		  	<p>Loading...</p>
20
		  </div>
21
		  <div class="modal-footer">
22
		    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
23
		    <!--<button class="btn btn-primary" data-dismiss="modal">Ok</button>-->
24
		  </div>
25
		</div>
26
		<script language="JavaScript" type="text/JavaScript">
27
			// get it out of special containers with 'position: blah' CSS
28
			$('#myModal').appendTo("body");
29
		</script>
30
		
31
		<div class="container">
32
		
33
			<div class="row-fluid">
34
			
35
				[% IF form != 're_entry' %]  
36
				
37
					<h2>Upload your data</h2>
38
					<p class="lead">
39
						Use this form to submit a new data package to the repository.
40
					</p>
41
					
42
				[% ELSE %]
43
				
44
					<h2>Edit your data</h2>
45
					<p class="lead">
46
						Use this form to edit a data package submitted earlier.
47
					</p>
48
					
49
					[%IF docid !=''%]
50
						<p>
51
							The ID of this data set is: <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
52
						</p>	
53
					[%END%]
54
				
55
				[% END %]
56
				
57
				<p>
58
					Please have a look at the 
59
					<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
60
					Guide for Completing the Data Repository Form</a> 
61
	        		before you start filling in this form. Also, use your browser's 
62
	        		Reload/Refresh function to make sure you see the latest version of this 
63
	        		page.
64
				</p>
65
				<p>
66
					If you have any questions, comments or problems 
67
					regarding this form, please contact the repository administrator at 
68
					<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
69
				</p>
70
				<p class="text-info">*Denotes a required field.</p>
71
			</div>
72

    
73
			<!--  the main form -->
74
			<div class="row-fluid">
75
			
76
				<form id="entryForm" action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post" class="form-horizontal">
77
					<input type="hidden" name="cfg" value="[% cfg %]">
78
					<input type="hidden" name="docid" value="[% docid %]">
79
					<input type="hidden" name="stage" value="insert">
80
  
81
  				<div class="accordion" id="entryFormAccordian">
82
					<div class="accordion-group">
83
					
84
						<!-- SUBMITTER -->
85
						<div class="accordion-heading">
86
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSubmitter" href="#none">
87
								Submitter  
88
							</a>
89
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter" ><i class="icon-question-sign"></i></a>
90
							<!--<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter"><i class="icon-question-sign"></i></a>-->
91
						</div>
92
						<div id="collapseSubmitter" class="accordion-body collapse in">
93
							<div class="accordion-inner">
94
								<!--  the INPUT -->
95
								<div class="control-group">
96
									<label class="control-label" for="providerGivenName">*First Name</label>
97
									<div class="controls">
98
										<input type="text" name="providerGivenName" value="[%providerGivenName%]">
99
									</div>
100
								</div>
101
								<div class="control-group">
102
									<label class="control-label" for="providerSurName">*Last Name</label>
103
									<div class="controls">
104
										<input type="text" name="providerSurName" value="[%providerSurName%]">
105
									</div>
106
								</div>
107
								
108
						    </div>
109
						</div>
110
						
111
						<!-- BASIC -->
112
						<div class="accordion-heading">
113
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
114
								Basic Information  
115
							</a>
116
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
117
						</div>
118
						<div id="collapseBasic" class="accordion-body collapse in">
119
							<div class="accordion-inner">
120
								<!--  the INPUT -->
121
								<div class="control-group">
122
									<label class="control-label" for="title">*Data Set Title</label>
123
									<div class="controls">
124
										<input type="text" name="title" value="[%title%]">
125
									</div>
126
								</div>
127
								[% IF show.siteList == 'true' %]
128
									<div class="control-group">
129
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
130
										<div class="controls">
131
											<select name="site">
132
												[% IF form == 're_entry' %]
133
													<option selected>[%site%]</option>
134
												[% ELSE %]
135
													<option>Select your [% config.site %] here.</option>
136
												[% END %]
137
												[% FOREACH site = siteList %]
138
													<option>[% site %]</option>
139
												[% END %]
140
											</select>
141
										</div>
142
									</div>
143
								[% END %]
144
								[% IF show.wgList == 'true' %]
145
									<div class="control-group">
146
										<label class="control-label" for="site">*NCEAS Project(s):</label>
147
										<div class="controls">
148
											<select name="wg" multiple="multiple" size="5">
149
												[% FOREACH project = projects %]
150
													[% SET pname = $project.3 %]
151
													[% IF pname.length > 50 %]
152
														[% SET sname = $project.4 %]
153
													[% END %]
154
													[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
155
													[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
156
													[% SET sel = '' %]
157
													[% FOREACH group = wg %]
158
														[% IF group == value %]
159
															[% SET sel = 'selected="selected"' %]
160
														[% END %]
161
													[% END %]
162
													<option value="[% value %]" [% sel %]>[% label %]</option>
163
												[% END %]
164
											</select>
165
										</div>
166
									</div>
167
								[% END %]
168
								[% IF show.organization == 'true' %]
169
									<div class="control-group">
170
										<label class="control-label" for="site">*Organization</label>
171
										<div class="controls">
172
											<input type="text" name="site" value="[%site%]">
173
										</div>
174
									</div>
175
								[% END %]
176
								
177
						    </div>
178
						</div>
179
						
180
						<!-- PRINCIPAL DATA SET OWNER -->
181
						<div class="accordion-heading">
182
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseOwner" href="#none">
183
								Data Set Owner  
184
							</a>
185
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator"><i class="icon-question-sign"></i></a>
186
						</div>
187
						<div id="collapseOwner" class="accordion-body collapse in">
188
							<div class="accordion-inner">
189
								<!--  the INPUT -->
190
								<div class="control-group">
191
									<label class="control-label" for="origNamefirst0">*First Name</label>
192
									<div class="controls">
193
										<input type="text" name="origNamefirst0" id="origNameFirst" 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" id="origNameLast" 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" id="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" id="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" id="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" id="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 class="span8" 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" id="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" id="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" id="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" id="origCountry" value="[%origCountry%]">
323
									</div>
324
								</div>
325
								
326
						    </div>
327
						</div>
328
						
329
						<!-- ASSOCIATED PARTIES -->
330
						<div class="accordion-heading">
331
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseParties" href="#none">
332
								Associated Parties  
333
							</a>
334
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"><i class="icon-question-sign"></i></a>
335
						</div>
336
						<div id="collapseParties" class="accordion-body collapse in">
337
							<div class="accordion-inner">
338
							
339
								<div class="control-group">
340
									<label class="control-label" for="aoFirstName">First Name</label>
341
									<div class="controls">
342
										<input type="text" name="aoFirstName" id="AONameFirst"">
343
									</div>
344
								</div>
345
								<div class="control-group">
346
									<label class="control-label" for="aoLastName">Last Name</label>
347
									<div class="controls">
348
										<input type="text" name="aoLastName" id="AONameLast"">
349
									</div>
350
								</div>
351
								<div class="control-group">
352
									<label class="control-label" for="aoRole">Role</label>
353
									<div class="controls">
354
										<select id="AORole" name="aoRole">
355
								            <option>Co-owner</option>
356
								            <option>Custodian/Steward</option>
357
								            <option>Metadata Provider</option>
358
								      		<option>User</option>
359
								        </select>
360
									</div>
361
								</div>
362
								<div class="control-group">
363
									<label class="control-label" for="addaobutton1"></label>
364
									<div class="controls">
365
										<input type="button" class="btn" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
366
									</div>
367
								</div>
368
								<div class="control-group">
369
									<label class="control-label" for="associatePartyTable"></label>
370
									<div class="controls">
371
										<table id="associatePartyTable">   
372
											<tr id="addAssociatedParty"> 
373
								            	<td colspan=6 />
374
								            </tr>    
375
										    [% numAO = 0 %]
376
										    [% IF aoCount %]
377
										        [% numAO = aoCount %]
378
										        <tr class="sectbody" id="aoHRRow">
379
										            <td colSpan="6">
380
										                <hr width = "85%"/>
381
										            </td>
382
										        </tr>
383
										    [% END %]
384
										    [% cnt = 1 %]
385
										    [% WHILE cnt < numAO%]
386
										            
387
										        <tr class="sectbody">
388
										            [% SET aofn = "origNamefirst${cnt}" %]
389
										            [% SET aoln = "origNamelast${cnt}" %]
390
										            [% SET aorole = "origRole${cnt}" %]
391
										     
392
										            <td class="rightCol">
393
										                <a style="cursor:pointer">
394
										                	<i onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
395
										                    class="icon-arrow-up"
396
										                    alt="Move Up"></i>
397
										                </a>
398
										                <a style="cursor:pointer">
399
										                    <i onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
400
										                    class="icon-arrow-down"
401
										                    alt="Move Down"></i>
402
										                </a>
403
										                <a style="cursor:pointer">
404
										                    <i class="icon-remove-sign"
405
										                    onClick="delRow(event)" alt="Delete"></i>
406
										                </a>
407
										            </td>
408
										            <td colspan="5" align ="left" style="cursor:pointer"
409
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
410
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
411
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
412
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
413
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
414
										            </td>
415
										        </tr>
416
										        [% cnt = cnt + 1 %]
417
										    [% END %]
418
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
419
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
420
										</table>
421
									</div>
422
								</div>
423
								    								
424
						    </div>
425
						</div>
426
						
427
						<!-- ABSTRACT -->
428
						<div class="accordion-heading">
429
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" href="#none">
430
								Abstract  
431
							</a>
432
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-question-sign"></i></a>
433
						</div>
434
						<div id="collapseAbstract" class="accordion-body collapse in">
435
							<div class="accordion-inner">
436
								<!--  the INPUT -->
437
								<div class="control-group">
438
									<label class="control-label" for="abstract">*Data Set Abstract</label>
439
									<div class="controls">
440
										<textarea class="span8" rows="6" cols="60" name="abstract">[%abstract%]</textarea>
441
										<span class="help-block">(~350 words)
442
									</div>
443
								</div>
444
								
445
						    </div>
446
						</div>
447
						
448
					[% IF modules.keyword == 'true' %]
449
						<!-- KEYWORDS -->
450
						<div class="accordion-heading">
451
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
452
								Keywords  
453
							</a>
454
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
455
						</div>
456
						<div id="collapseKeywords" class="accordion-body collapse in">
457
							<div class="accordion-inner">
458
								<!--  the INPUT -->
459
								<div class="control-group">
460
									<label class="control-label" for="keyword">Keyword</label>
461
									<div class="controls">
462
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
463
										<span class="help-block">For samples, see <a href=
464
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
465
										</span>
466
									</div>
467
								</div>
468
								<div class="control-group">
469
									<label class="control-label" for="keywordType">Keyword Type</label>
470
									<div class="controls">
471
										<select name="keywordType" id="keywordType" class="shortwidth">
472
											<option>None</option>
473
								            <option>Theme</option>
474
								            <option>Place</option>
475
								            <option>Stratum</option>
476
								            <option>Temporal</option>
477
								            <option>Taxonomic</option>
478
										</select>
479
									</div>
480
								</div>
481
								<div class="control-group">
482
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
483
									<div class="controls">
484
										<select name="keywordTh" id="keywordTh" class="shortwidth">
485
											<option>None</option>
486
											<option>GCMD</option>
487
										</select>
488
									</div>
489
								</div>
490
								<div class="control-group">
491
									<label class="control-label" for="addKeywordButton"></label>
492
									<div class="controls">
493
										<input type="button" class="btn" value="Add Keyword" onClick="addKeyword()">
494
									</div>
495
								</div>
496
								
497
								<div class="control-group">
498
									<label class="control-label" for="keywordTable"></label>
499
									<div class="controls">
500
										<!-- the orginal table -->
501
										<table>
502
											<tr id="addKeyword">
503
          										<td colSpan="6"/>
504
          									</tr>	
505
										 [% numKey = 0 %]
506
										 [% IF keyCount %]
507
										   [% numKey = keyCount %]
508
										        [% numAO = aoCount %]
509
										        <tr class="sectbody" id="keywordHRRow">
510
										            <td colSpan="6">
511
										                <hr width = "85%"/>
512
										            </td>
513
										        </tr>
514
										 [% END %]
515
										 <input type="hidden" name="keyCount" value="[%numKey%]" 
516
										            id="keyCount">
517
										   
518
										      [% cnt = 1 %]
519
										        [% WHILE cnt < numKey %]
520
										        
521
										           <tr class="sectbody">
522
										            <td class="rightCol">
523
										                <a style="cursor:pointer">
524
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
525
										                    class="icon-arrow-up"
526
										                    alt="Move Up"></i>
527
										                </a>
528
										                <a style="cursor:pointer">
529
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
530
										                    class="icon-arrow-down"
531
										                    alt="Move Down"></i>
532
										                </a>
533
										                <a style="cursor:pointer">
534
										                    <i class="icon-remove-sign"
535
										                    onClick="delRow(event)" alt="Delete"></i>
536
										                </a>
537
										            </td>
538
										            [% SET keyword = "keyword${cnt}" %]
539
										            [% SET keywordType = "kwType${cnt}" %]
540
										            [% SET keywordTh = "kwTh${cnt}" %]
541
										            <td colspan="5" align ="left" style="cursor:pointer"
542
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
543
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
544
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
545
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
546
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
547
										            </td>
548
										        </tr>
549
										        [% cnt = cnt + 1 %]
550
										       [% END %]
551
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
552
										</table>
553
									</div>
554
								</div>
555
	
556
						    </div>
557
						</div>
558
					[% END %]
559
						
560
					[% IF modules.temporal == 'true' %]	
561
						<!-- TEMPORAL COVERAGE -->
562
						<div class="accordion-heading">
563
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal" href="#none">
564
								Temporal Coverage  
565
							</a>
566
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-question-sign"></i></a>
567
						</div>
568
						<div id="collapseTemporal" class="accordion-body collapse in">
569
							<div class="accordion-inner">
570
								<!--  the INPUT -->
571
									<div class="row-fluid">
572
										
573
										<div class="span6">
574
											<p>Start Date</p>									
575
											<div class="control-group">
576
												[% IF required.temporal == 'true' %]
577
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
578
												[% ELSE %]
579
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
580
												[% END %]
581
												<div class="controls">
582
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
583
												</div>
584
											</div>
585
											<div class="control-group">
586
												<label class="control-label" for="beginningMonth">Month</label>
587
												<div class="controls">
588
													<select name="beginningMonth">
589
														[% IF form == 're_entry' && beginningMonth != ""%]
590
															<option selected>[%beginningMonth%]</option>
591
														[% END %]
592
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
593
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
594
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
595
											            <option>12</option>
596
													</select>
597
												</div>
598
											</div>
599
											<div class="control-group">
600
												<label class="control-label" for="beginningDay">Day</label>
601
												<div class="controls">
602
													<select name="beginningDay">
603
														[% IF form == 're_entry' && beginningDay != ""%]
604
															<option selected>[%beginningDay%]</option>
605
														[% END %]
606
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
607
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
608
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
609
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
610
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
611
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
612
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
613
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
614
													</select>
615
												</div>
616
											</div>
617
										</div>
618
										<div class="span6">
619
											<p>
620
												End Date
621
												<span class="text-info">(leave blank if your data set is open-ended)</span>
622
											</p>								
623
											<div class="control-group">
624
												<label class="control-label" for="endingYear">Year (yyyy)</label>
625
												<div class="controls">
626
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
627
												</div>
628
											</div>
629
											<div class="control-group">
630
												<label class="control-label" for="endingMonth">Month</label>
631
												<div class="controls">
632
													<select name="endingMonth">
633
														[% IF form == 're_entry' && endingMonth != ""%]
634
															<option selected>[%endingMonth%]</option>
635
														[% END %]
636
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
637
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
638
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
639
											            <option>12</option>
640
													</select>
641
												</div>
642
											</div>
643
											<div class="control-group">
644
												<label class="control-label" for="endingDay">Day</label>
645
												<div class="controls">
646
													<select name="endingDay">
647
														[% IF form == 're_entry' && endingDay != ""%]
648
															<option selected>[%endingDay%]</option>
649
														[% END %]
650
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
651
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
652
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
653
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
654
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
655
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
656
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
657
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
658
													</select>
659
												</div>
660
											</div>
661
										</div	
662
									</div>
663
									
664
								</div>	
665
								
666
						    </div>
667
						</div>
668

    
669
					[% END %]
670
					
671
						
672
					[% IF modules.spatial == 'true' %]
673
						
674
						<!-- SPATIAL -->
675
						<div class="accordion-heading">
676
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSpatial" href="#none">
677
								Spatial Coverage  
678
							</a>
679
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData"><i class="icon-question-sign"></i></a>
680
						</div>
681
						<div id="collapseSpatial" class="accordion-body collapse in">
682
							<div class="accordion-inner">
683
								<!--  the INPUT -->
684
								<div class="control-group">
685
									[% IF required.spatial == 'true' %]
686
										<label class="control-label" for="geogdesc">*Geographic Description</label>
687
									[% ELSE %]
688
										<label class="control-label" for="geogdesc">Geographic Description</label>
689
									[% END %] 	
690
									<div class="controls">
691
										<textarea class="span8" rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea>
692
										<span class="help-block">General description of the geographic area in which the data were collected. 
693
										It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span>
694
									</div>
695
								</div>
696
								
697
								<div class="row-fluid">
698
									<h4>Coordinates</h4>
699
									
700
									[% IF show.siteList == 'true' %]
701
	    								<div class="control-group">
702
											<label class="control-label" for="useSiteCoord">Use Site?</label>
703
											<div class="controls">
704
												<input type="checkbox" name="useSiteCoord" [%useSiteCoord%]>
705
										        <span class="help-block">Use [% config.site %] coordinates. (This indicates that the data were
706
										        collected at the [% config.site %]. If you check this box, you don't need
707
										        to fill in the lat./long. fields below).</span>
708
											</div>
709
										</div>
710
									[% END %]
711
									
712
									<table>
713
									    <tr class="sectbody">
714
									      <td width="190"></td><td width="100" align="left"><span class="text-info">Degrees</span></td>
715
									      <td width="110" align="left"><span class="text-info">Minutes</span></td>
716
									      <td width="70" align="left"><span class="text-info">Seconds</span></td>
717
									      <td width="200"></td><td width="90"></td>
718
									   </tr>
719
									      
720
									   <tr class="sectbody">
721
									     <td class="rightCol">
722
									      [% IF required.spatial == 'true' %]
723
									        <span class="text-info">*Latitude</span>
724
									      [% ELSE %]
725
									        <span class="text-info">Latitude</span>
726
									      [% END %]</td> 
727
									     <td> 
728
									          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
729
									      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
730
									      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
731
									      
732
									      <td Align="left" colspan="2"> 
733
									      [% IF form == 're_entry' && hemisphLat1 == "N"%]
734
									      	<label class="radio inline">
735
									        	<input type="radio"  name="hemisphLat1" value="N" CHECKED>
736
									        	North
737
									        </label>	
738
									      [%ELSE%]
739
									      	<label class="radio inline">
740
									        	<input type="radio"  name="hemisphLat1" value="N">
741
									        	North
742
									        </label>	
743
									      [%END%]
744
									      [% IF form == 're_entry' && hemisphLat1 == "S"%]
745
									      	<label class="radio inline">
746
									        	<input type="radio"  name="hemisphLat1" value="S" CHECKED>
747
									        	South
748
									        </label>	
749
									      [%ELSE%]
750
									      	<label class="radio inline">
751
									        	<input type="radio"  name="hemisphLat1" value="S">
752
									        	South
753
									        </label>	
754
									      [%END%]
755
									      </td>
756
									    </tr>
757
									
758
									    <tr class="sectbody">
759
									      <td class="rightCol"> 
760
									      [% IF required.spatial == 'true' %]
761
									        <span class="text-info">*Longitude</span>
762
									      [% ELSE %]
763
									        <span class="text-info">Longitude</span>
764
									      [% END %]</td>
765
									     
766
									      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
767
									      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
768
									      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
769
									      
770
									      
771
									      <td align="left" colspan="2"> 
772
									    [% IF form == 're_entry' && hemisphLong1 == "W"%]
773
									    	<label class="radio inline">        
774
									      		<input type="radio"  name="hemisphLong1" value="W" CHECKED>
775
									      		West
776
									      	</label>	
777
									    [%ELSE%]
778
									    	<label class="radio inline">
779
									      		<input type="radio"  name="hemisphLong1" value="W">
780
									      		West
781
									      	</label>	
782
									    [%END%]
783
									    [% IF form == 're_entry' && hemisphLong1 == "E"%]
784
									    	<label class="radio inline">
785
									      		<input type="radio"  name="hemisphLong1" value="E" CHECKED>
786
									      		East
787
									      	</label>	
788
									    [%ELSE%]
789
									    	<label class="radio inline">
790
									      		<input type="radio"  name="hemisphLong1" value="E">
791
									      		East
792
									      	</label>	
793
									    [%END%]
794
									      </td>
795
									    </tr>
796
									      
797
									      
798
									    <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>
799
									      </td><td></td></tr>
800
									      
801
									    <tr class="sectbody"> 
802
									      <td class="rightCol"><span class="text-info">Latitude</span></td>
803
									  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
804
									      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
805
									      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
806
									        
807
									      <td align="left" colspan="2"> 
808
									      [% IF form == 're_entry' && hemisphLat2 == "N"%]
809
									      	<label class="radio inline">
810
									        	<input type="radio"  name="hemisphLat2" value="N" CHECKED>
811
									        	North
812
									        </label>	
813
									      [%ELSE%]
814
									      	<label class="radio inline">
815
									        	<input type="radio"  name="hemisphLat2" value="N">
816
									        	North
817
									        </label>	
818
									      [%END%]
819
									      [% IF form == 're_entry' && hemisphLat2 == "S"%]
820
									      	<label class="radio inline">
821
									        	<input type="radio"  name="hemisphLat2" value="S" CHECKED>
822
									        	South
823
									        </label>	
824
									      [%ELSE%]
825
									      	<label class="radio inline">
826
									        	<input type="radio"  name="hemisphLat2" value="S">
827
												South
828
									        </label>
829
									      [%END%]
830
									      </td>
831
									    </tr>
832
									    
833
									    <tr class="sectbody"><td class="rightCol"><span class="text-info">Longitude</span></td>
834
									       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
835
									       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
836
									       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
837
									       <td align="left" colspan="2">
838
									       
839
									      [% IF form == 're_entry' && hemisphLong2 == "W"%]
840
									      	<label class="radio inline">
841
									        	<input type="radio"  name="hemisphLong2" value="W" CHECKED>
842
									        	West
843
									        </label	
844
									      [%ELSE%]
845
									      	<label class="radio inline">
846
									        	<input type="radio"  name="hemisphLong2" value="W">
847
									        	West
848
									        </label>	
849
									      [%END%]
850
									      [% IF form == 're_entry' && hemisphLong2 == "E"%]
851
									      	<label class="radio inline">
852
									        	<input type="radio"  name="hemisphLong2" value="E" CHECKED>
853
									        	East
854
									        </label>	
855
									      [%ELSE%]
856
									      	<label class="radio inline">
857
									        	<input type="radio"  name="hemisphLong2" value="E">
858
									        	East
859
									        </label>	
860
									      [%END%]
861
									      </td>
862
									    </tr>
863
									    <tr class="sectbody"><td></td>
864
									       <td align="left" colspan="4"><span class="regtext">
865
									        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
866
									      </td><td></td>
867
									    </tr>
868
									</table>
869
								
870
								</div>									
871
								
872
						    </div>
873
						</div>						
874
						
875
					[% END %]
876
						
877
						
878
					[% IF modules.taxonomic == 'true' %]
879
						
880
						<!-- TAXONOMIC -->
881
						<div class="accordion-heading">
882
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTaxonomic" href="#none">
883
								Taxonomic Coverage  
884
							</a>
885
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage"><i class="icon-question-sign"></i></a>
886
						</div>
887
						<div id="collapseTaxonomic" class="accordion-body collapse in">
888
							<div class="accordion-inner">
889
								<!--  the INPUT -->
890
								<div class="control-group">
891
									<label class="control-label" for="taxonRank">Taxonomic Rank</label>
892
									<div class="controls">
893
										<input name="taxonRank" id="taxonRank">
894
										<span class="help-block">(e.g., Species)</span>
895
									</div>
896
								</div>
897
								<div class="control-group">
898
									<label class="control-label" for="taxonName">Taxonomic Name</label>
899
									<div class="controls">
900
										<input name="taxonName" id="taxonName">
901
										<span class="help-block">(e.g., <i>Ursus arctos</i>)</span>
902
									</div>
903
								</div>
904
								<div class="control-group">
905
									<label class="control-label" for="addTaxonButton"></label>
906
									<div class="controls">
907
										<input type="button" class="btn" value="Add Taxon" onClick="addTaxon()">
908
									</div>
909
								</div>
910
								
911
								<div class="control-group">
912
									<label class="control-label" for="taxonTable"></label>
913
									<div class="controls">
914
										<table>
915
											<tr id="addTaxon">
916
												<td colspan="6">
917
											</tr>	
918
											[% numTaxa = 0 %]
919
									        [% IF taxaCount %]
920
									            [% numTaxa = taxaCount %]
921
									            <tr class="sectbody" id="taxonHRRow">
922
									                <td colSpan="6">
923
									                    <hr width = "85%"/>
924
									                </td>
925
									            </tr>
926
									        [% END %]
927
									        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
928
									    
929
									        [% cnt = 1 %]
930
									        [% WHILE cnt <= numTaxa%]        
931
									            <tr class="sectbody">
932
									                <td class="rightCol">
933
									                    <a style="cursor:pointer">
934
									                        <i onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
935
									                        class="icon-arrow-up"
936
									                        alt="Move Up"></i>
937
									                    </a>
938
									                    <a style="cursor:pointer">
939
									                        <i onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
940
									                        class="icon-arrow-down"
941
									                        alt="Move Down"></i>
942
									                    </a>
943
									                    <a style="cursor:pointer">
944
									                        <i class="icon-remove-sign"
945
									                        onClick="delRow(event)" alt="Delete"></i>
946
									                    </a>
947
									                </td>
948
									                [% SET rank = "taxonRankName${cnt}" %]
949
									                [% SET name = "taxonRankValue${cnt}" %]
950
									                <td colspan="5" align ="left" style="cursor:pointer"
951
									                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
952
									                    Rank: [%$rank%], Name: [%$name%]
953
									                    <input name="taxonName" type="hidden" value="[%$name%]"/>
954
									                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
955
									            </tr>
956
									            [% cnt = cnt + 1 %]
957
									        [% END %]
958
									
959
									     <tr class="sectbody" id="addtaxarow"> 
960
									        <td class="bordertop" valign="top" align="right"></td>
961
									        <td class="bordertop" align="left" colspan="5"></td>
962
									     </tr>
963
									     
964
									   </table>
965
									</div>
966
								</div>
967
								
968
								<div class="control-group">
969
									<label class="control-label" for="taxaAuth">Taxonomic Reference</label>
970
									<div class="controls">
971
										<textarea class="span8" rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea>
972
										<span class="help-block">List the source(s) used for identifying and naming taxa (e.g., name of a field guide, key, or nomenclature revision).</span>
973
									</div>
974
								</div>
975
								
976
						    </div>
977
						</div>
978
						
979
					[% END %]  
980
						
981
					[% IF modules.method == 'true' %]
982
  
983
						<!-- METHODS -->
984
						<div class="accordion-heading">
985
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseMethods" href="#none">
986
								Data Collection Methods  
987
							</a>
988
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods"><i class="icon-question-sign"></i></a>
989
						</div>
990
						<div id="collapseMethods" class="accordion-body collapse in">
991
							<div class="accordion-inner">
992
								<!--  the INPUT -->
993
								<div class="control-group">
994
									<label class="control-label" for="methodTitle">Method Title</label>
995
									<div class="controls">
996
										<input type="text" name="methodTitle" value="[%methodTitle%]">
997
									</div>
998
								</div>
999
								<div class="control-group">
1000
									<label class="control-label" for="methodPara">Method Description</label>
1001
									<div class="controls">
1002
								        <table width="100%">
1003
										[% IF !methodPara %]
1004
											<tr><td><textarea class="span8" rows="6" cols="60" name="methodPara"></textarea></td></tr>
1005
								        [% END %]
1006
								        [% FOREACH para = methodPara %]
1007
								           <tr><td><textarea class="span8" rows="6" cols="60" name="methodPara">[% para %]</textarea></td></tr>
1008
								        [% END %]
1009
								        	<tr class="sectbody" id="addparabutton1">
1010
									    		<td align="left">
1011
									          		<input type="button" class="btn" value="Add Paragraph to Method Description" onClick="addParagraph()">
1012
									          	</td>
1013
											</tr>
1014
										</table>	
1015
									</div>
1016
								</div>
1017
								
1018
								<div class="control-group">
1019
									<label class="control-label" for="studyExtentDescription">Extent of Study Description</label>
1020
									<div class="controls">
1021
										<textarea class="span8" rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea>
1022
										<span class="help-block">
1023
									        Describe the temporal, spatial and taxonomic extent of the study,
1024
									        supplementing the information on coverage provided above.  
1025
									        For example, if the temporal coverage of the data is 1990-2000, you 
1026
									        might provide details about any years that were missed or the months 
1027
									        in which sampling occurred.</span>
1028
									</div>
1029
								</div>
1030
								
1031
								<div class="control-group">
1032
									<label class="control-label" for="samplingDescription">Sampling Description</label>
1033
									<div class="controls">
1034
										<textarea class="span8" rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea>
1035
										<span class="help-block">
1036
									        Describe the sampling design of the study.  For example, you might 
1037
        									describe the way in which treatments were assigned to sampling units.</span>
1038
									</div>
1039
								</div>
1040
								
1041
								
1042
						    </div>
1043
						</div>
1044
						
1045
					[% END %]
1046
					
1047
						
1048
						<!-- DATA SET CONTACT -->
1049
						<div class="accordion-heading">
1050
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseContact" href="#none">
1051
								Data Set Contact  
1052
							</a>
1053
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress"><i class="icon-question-sign"></i></a>
1054
						</div>
1055
						<div id="collapseContact" class="accordion-body collapse in">
1056
							<div class="accordion-inner">
1057
								<!--  the INPUT -->
1058
								<label class="checkbox inline" for="useOrigAddress">
1059
									<input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
1060
        							Use the same name and address as the <em>PRINCIPAL DATA SET OWNER</em> above.
1061
								</label>
1062
									
1063
								<div class="control-group">
1064
									<label class="control-label" for="origNamefirstContact">*First Name</label>
1065
									<div class="controls">
1066
										<input type="text" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]">
1067
									</div>
1068
								</div>
1069
								<div class="control-group">
1070
									<label class="control-label" for="origNamelastContact">*Last Name</label>
1071
									<div class="controls">
1072
										<input type="text" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]">
1073
									</div>
1074
								</div>
1075
								<div class="control-group">
1076
									<label class="control-label" for="origNameOrgContact">Organization Name</label>
1077
									<div class="controls">
1078
										<input type="text" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]">
1079
									</div>
1080
								</div>
1081
								<div class="control-group">
1082
									[% IF required.contactEmailAddress == 'true' %]
1083
										<label class="control-label" for="origEmailContact">*Email</label>
1084
									[% ELSE %]
1085
										<label class="control-label" for="origEmailContact">Email</label>
1086
									[% END %]
1087
									<div class="controls">
1088
										<input type="text" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]">
1089
									</div>
1090
								</div>
1091
								<div class="control-group">
1092
									<label class="control-label" for="origPhoneContact">Phone</label>
1093
									<div class="controls">
1094
										<input type="text" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]">
1095
									</div>
1096
								</div>
1097
								<div class="control-group">
1098
									<label class="control-label" for="origFAXContact">Fax</label>
1099
									<div class="controls">
1100
										<input type="text" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]">
1101
									</div>
1102
								</div>
1103
								<div class="control-group">
1104
									<label class="control-label" for="origDeliveryContact">Street Address</label>
1105
									<div class="controls">
1106
										<textarea class="span8" id="contactDelivery" name="origDeliveryContact">[%origDeliveryContact%]</textarea>
1107
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
1108
									</div>
1109
								</div>
1110
								<div class="control-group">
1111
									<label class="control-label" for="origCityContact">City</label>
1112
									<div class="controls">
1113
										<input type="text" name="origCityContact" id="contactCity" value="[%origCityContact%]">
1114
									</div>
1115
								</div>
1116
								<div class="control-group">
1117
									<label class="control-label" for="origStateContact">U.S. State or Territory</label>
1118
									<div class="controls">
1119
										<select name="origStateContact" id="contactState">
1120
											[% IF form == 're_entry' %]
1121
												<option selected>[%origStateContact%]</option>
1122
											[% ELSE %]
1123
												<option>Select state or territory here.</option>
1124
											[% END %]
1125
											<option>Alabama</option>
1126
											<option>Alaska</option>
1127
											<option>American Samoa</option>
1128
											<option>Arizona</option>
1129
											<option>Arkansas</option>
1130
											<option>California</option>
1131
											<option>Colorado</option>
1132
											<option>Connecticut</option>
1133
											<option>Delaware</option>
1134
											<option>District of Columbia</option>
1135
											<option>Florida</option>
1136
											<option>Georgia</option>
1137
											<option>Guam</option>
1138
											<option>Hawaii</option>
1139
											<option>Idaho</option>
1140
											<option>Illinois</option>
1141
											<option>Indiana</option>
1142
											<option>Iowa</option>
1143
											<option>Kansas</option>
1144
											<option>Kentucky</option>
1145
											<option>Louisiana</option>
1146
											<option>Maine</option>
1147
											<option>Maryland</option>
1148
											<option>Massachusetts</option>
1149
											<option>Michigan</option>
1150
											<option>Minnesota</option>
1151
											<option>Mississippi</option>
1152
											<option>Missouri</option>
1153
											<option>Montana</option>
1154
											<option>Nebraska</option>
1155
											<option>Nevada</option>
1156
											<option>New Hampshire</option>
1157
											<option>New Jersey</option>
1158
											<option>New Mexico</option>
1159
											<option>New York</option>
1160
											<option>North Carolina</option>
1161
											<option>North Dakota</option>
1162
											<option>Northern Mariana Islands</option>
1163
											<option>Ohio</option>
1164
											<option>Oklahoma</option>
1165
											<option>Oregon</option>
1166
											<option>Pennsylvania</option>
1167
											<option>Puerto Rico</option>
1168
											<option>Rhode Island</option>
1169
											<option>South Carolina</option>
1170
											<option>South Dakota</option>
1171
											<option>Tennessee</option>
1172
											<option>Texas</option>
1173
											<option>Utah</option>
1174
											<option>Vermont</option>
1175
											<option>Virgin Islands</option>
1176
											<option>Virginia</option>
1177
											<option>Washington</option>
1178
											<option>West Virginia</option>
1179
											<option>Wisconsin</option>
1180
											<option>Wyoming</option>
1181
										</select>
1182
									</div>
1183
								</div>
1184
								<div class="control-group">
1185
									<label class="control-label" for="origStateOtherContact">Other State/Province</label>
1186
									<div class="controls">
1187
										<input type="text" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]">
1188
									</div>
1189
								</div>
1190
								<div class="control-group">
1191
									<label class="control-label" for="origZIPContact">Postal Code</label>
1192
									<div class="controls">
1193
										<input type="text" name="origZIPContact" id="contactZip" value="[%origZIPContact%]">
1194
									</div>
1195
								</div>
1196
								<div class="control-group">
1197
									<label class="control-label" for="origCountryContact">Country</label>
1198
									<div class="controls">
1199
										<input type="text" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]">
1200
									</div>
1201
								</div>
1202
								
1203
						    </div>
1204
						</div>
1205
						
1206
						<!-- DISTRIBUTION INFO -->
1207
						<div class="accordion-heading">
1208
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseDistribution" href="#none">
1209
								Distribution Information  
1210
							</a>
1211
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation"><i class="icon-question-sign"></i></a>
1212
						</div>
1213
						<div id="collapseDistribution" class="accordion-body collapse in">
1214
							<div class="accordion-inner">
1215
								<!--  the INPUT -->
1216
								<div class="control-group">
1217
									<label class="control-label" for="identifier">Data Set Identifier</label>
1218
									<div class="controls">
1219
										<input type="text" name="identifier" value="[%identifier%]">
1220
										<span class="help-block">
1221
									     If available, please enter a name or number that uniquely identifies and
1222
									     describes concisely the data set. Alternatively, provide other pertinent
1223
									     information that can identify and locate the data set within your site's
1224
									     data management system.</span>
1225
									</div>
1226
								</div>
1227
								<div class="control-group">
1228
									<label class="control-label" for="dataMedium">*Data Medium</label>
1229
									<div class="controls">
1230
										[% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1231
											<label class"radio inline">
1232
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1233
									            Digital
1234
									        </label>
1235
								        [%ELSE%]
1236
								        	<label class"radio inline">
1237
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1238
									            Digital
1239
									        </label> 
1240
								        [% END %]
1241
								        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1242
								        	<label class"radio inline">
1243
								           		<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1244
								           		Hardcopy
1245
								           	</label>
1246
								        [%ELSE%]
1247
								        	<label class"radio inline">
1248
												<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1249
								           		Hardcopy
1250
								           	</label>
1251
								        [% END %]
1252
								        [% IF form == 're_entry' && dataMedium == "other" %]
1253
								        	<label class"radio inline">
1254
									           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1255
									           Other
1256
									        </label>    
1257
								        [%ELSE%]
1258
								        	<label class"radio inline">
1259
								           		<input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1260
								           		Other
1261
								           	</label>									           		
1262
								        [% END %]
1263
								  		<input type="text" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM"></input>
1264
									</div>
1265
								</div>
1266
								
1267
								<div class="control-group">
1268
									<label class="control-label" for="useConstraints">*Usage Rights</label>
1269
									<div class="controls">
1270
										[% IF form == 're_entry' && useConstraints == "no restrictions" %]
1271
											<label class"radio inline">      
1272
												<input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1273
												No restrictions
1274
											</label>	
1275
										[%ELSE%]
1276
											<label class"radio inline">
1277
									            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1278
									            No restrictions
1279
									        </label>
1280
										[%END%]
1281
										[% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]   
1282
											<label class"radio inline">   
1283
										        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1284
										        Obtain permission from data set owner(s)
1285
										    </label> 
1286
										[%ELSE%]
1287
											<label class"radio inline">
1288
									            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1289
									            Obtain permission from data set owner(s)
1290
									        </label>
1291
										[%END%]
1292
										
1293
										[% IF form == 're_entry' && useConstraints == "other" %] 
1294
											<label class"radio inline">     
1295
												<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1296
											    Other
1297
											</label>    
1298
									    [%ELSE%]
1299
									    	<label class"radio inline">
1300
												<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1301
												Other
1302
											</label>	
1303
									    [%END%]
1304
										<input type="text" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49">
1305
									</div>
1306
								</div>
1307
								
1308
								<div class="control-group">
1309
									<label class="control-label" for="url">URL</label>
1310
									<div class="controls">
1311
										<input type="text" name="url" value="[%url%]">
1312
									</div>
1313
								</div>
1314
								<div class="control-group">
1315
									<label class="control-label" for="addComments">Additional Information</label>
1316
									<div class="controls">
1317
										<textarea class="span8" rows="6" cols="60" name="addComments">[%addComments%]</textarea>
1318
									</div>
1319
								</div>
1320
								
1321
						    </div>
1322
						</div>
1323
						
1324
						
1325
					[% IF modules.upload == 'true' %]	
1326
						
1327
						<!-- DATA UPLOAD -->
1328
						<div class="accordion-heading">
1329
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseUploadData" href="#none">
1330
								Upload Data  
1331
							</a>
1332
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#UploadData"><i class="icon-question-sign"></i></a>
1333
						</div>
1334
						<div id="collapseUploadData" class="accordion-body collapse in">
1335
							<div class="accordion-inner">
1336
								
1337
								<!--  the INPUT -->
1338
								<table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1339
									<tr class="sectbody">
1340
									    <td class="rightCol"><span class="text-info">Upload Data File</span></td>
1341
									    <td colspan="5">
1342
								        	<input type="file" id="file_element" name="file_1" class="longwidth">
1343
								
1344
									        [% IF form == 're_entry' && upCount %]
1345
									           [% cnt = 0 %]
1346
									           [% WHILE cnt < upCount %]
1347
									                [% SET fileSum = "upload_${cnt}" %]
1348
									                [% SET fileName = "uploadname_${cnt}" %]
1349
									                [% SET fileType = "uploadtype_${cnt}" %] 
1350
									                [% SET filePerm = "uploadperm_${cnt}" %]
1351
									                [% IF fileSum %]
1352
									                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1353
									                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1354
									                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1355
									                [% END %]
1356
									                [% cnt = cnt + 1 %]
1357
									            [% END %]
1358
									        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1359
									        [% END %]
1360
									
1361
									        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]">
1362
										</td>
1363
									</tr>
1364
									<tr class="sectbody">
1365
										<td class="rightCol" valign="top"><span class="text-info">Attached Files</span></td>
1366
										<td colspan="5" class="regtext">
1367
										    [% IF !upCount %]
1368
										        <div id="file_comment">
1369
										            (<i>None currently attached</i>)
1370
										        </div>
1371
										    [% END %]
1372
										    <div id="files_list">
1373
											    [% IF form == 're_entry' && upCount %]
1374
											    	[% cnt = 0 %]
1375
											
1376
												    [% WHILE cnt < upCount %]
1377
												        [% SET fileName = "uploadname_${cnt}" %]
1378
												        [% SET filePerm = "uploadperm_${cnt}" %]
1379
												        [% IF $filePerm == 'public' %]
1380
												          [% SET perm_a = "checked" %]
1381
												          [% SET perm_b = "" %]
1382
												        [% ELSE %]
1383
												          [% SET perm_a = "" %]
1384
												          [% SET perm_b = "checked" %]
1385
												        [% END %]
1386
												        [% IF fileName %]
1387
													        <div>
1388
													          [% $fileName %]
1389
													          <label class="radio inline">
1390
																<input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1391
													          </label>
1392
													          <label class="radio inline">	
1393
													          	<input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1394
													          </label>
1395
													          <label class="text inline">	
1396
																<input type="button" class="btn" value="Delete" onclick="deleteFile(event, [%fileName%]);"/>
1397
															</div>
1398
														[% END %]
1399
												
1400
												        [% cnt = cnt + 1 %]
1401
												    [% END %]
1402
										    	[% END %]
1403
										    </div>
1404
										</td>
1405
									</tr>
1406
								</table>
1407
								  
1408
								<script language="JavaScript" type="text/JavaScript">
1409
									var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1410
								    multi_selector.addElement( document.getElementById( 'file_element' ) );
1411
								</script>
1412
							
1413
								
1414
						    </div>
1415
						</div>
1416
						
1417
					[% END %]
1418
						  
1419
              
1420
    					</div>
1421
					</div> <!-- end the accordinan -->
1422
					
1423
					<input id="entryFormSubmit" name="submit" type="button" class="btn" onClick="sortInputTags();" value="Submit Data Set Description">
1424
				</form>
1425
				
1426
			</div> <!-- end the row -->
1427
			
1428
		</div>
1429
		
1430
	</article>