Project

General

Profile

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

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 large" 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">Registry Guide</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 data-toggle="modal" data-target="#myModal" role="button" 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.
62
				</p>
63
				<p>
64
					If you have any questions, comments or problems 
65
					regarding this form, please contact the repository administrator at 
66
					<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
67
				</p>
68
				<p class="text-info">*Denotes a required field.</p>
69
			</div>
70

    
71
			<!--  the main form -->
72
			<div class="row-fluid">
73
			
74
				<form id="entryForm" action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post" class="form-horizontal">
75
					<input type="hidden" name="cfg" value="[% cfg %]">
76
					<input type="hidden" name="docid" value="[% docid %]">
77
					<input type="hidden" name="stage" value="insert">
78
  
79
  				<div class="accordion" id="entryFormAccordian">
80
					<div class="accordion-group">
81
					
82
						<!-- SUBMITTER -->
83
						<div class="accordion-heading">
84
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSubmitter" href="#none">
85
								Submitter  
86
							</a>
87
							<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>
88
						</div>
89
						<div id="collapseSubmitter" class="accordion-body collapse in">
90
							<div class="accordion-inner">
91
								<!--  the INPUT -->
92
								<div class="control-group">
93
									<label class="control-label" for="providerGivenName">*First Name</label>
94
									<div class="controls">
95
										<input type="text" name="providerGivenName" value="[%providerGivenName%]">
96
									</div>
97
								</div>
98
								<div class="control-group">
99
									<label class="control-label" for="providerSurName">*Last Name</label>
100
									<div class="controls">
101
										<input type="text" name="providerSurName" value="[%providerSurName%]">
102
									</div>
103
								</div>
104
								
105
						    </div>
106
						</div>
107
						
108
						<!-- BASIC -->
109
						<div class="accordion-heading">
110
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
111
								Basic Information  
112
							</a>
113
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
114
						</div>
115
						<div id="collapseBasic" class="accordion-body collapse in">
116
							<div class="accordion-inner">
117
								<!--  the INPUT -->
118
								<div class="control-group">
119
									<label class="control-label" for="title">*Data Set Title</label>
120
									<div class="controls">
121
										<input type="text" name="title" value="[%title%]">
122
									</div>
123
								</div>
124
								[% IF show.siteList == 'true' %]
125
									<div class="control-group">
126
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
127
										<div class="controls">
128
											<select name="site">
129
												[% IF form == 're_entry' %]
130
													<option selected>[%site%]</option>
131
												[% ELSE %]
132
													<option>Select your [% config.site %] here.</option>
133
												[% END %]
134
												[% FOREACH site = siteList %]
135
													<option>[% site %]</option>
136
												[% END %]
137
											</select>
138
										</div>
139
									</div>
140
								[% END %]
141
								[% IF show.wgList == 'true' %]
142
									<div class="control-group">
143
										<label class="control-label" for="site">*NCEAS Project(s):</label>
144
										<div class="controls">
145
											<select name="wg" multiple="multiple" size="5">
146
												[% FOREACH project = projects %]
147
													[% SET pname = $project.3 %]
148
													[% IF pname.length > 50 %]
149
														[% SET sname = $project.4 %]
150
													[% END %]
151
													[% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
152
													[% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
153
													[% SET sel = '' %]
154
													[% FOREACH group = wg %]
155
														[% IF group == value %]
156
															[% SET sel = 'selected="selected"' %]
157
														[% END %]
158
													[% END %]
159
													<option value="[% value %]" [% sel %]>[% label %]</option>
160
												[% END %]
161
											</select>
162
										</div>
163
									</div>
164
								[% END %]
165
								[% IF show.organization == 'true' %]
166
									<div class="control-group">
167
										<label class="control-label" for="site">*Organization</label>
168
										<div class="controls">
169
											<input type="text" name="site" value="[%site%]">
170
										</div>
171
									</div>
172
								[% END %]
173
								
174
						    </div>
175
						</div>
176
						
177
						<!-- PRINCIPAL DATA SET OWNER -->
178
						<div class="accordion-heading">
179
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseOwner" href="#none">
180
								Data Set Owner  
181
							</a>
182
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator"><i class="icon-question-sign"></i></a>
183
						</div>
184
						<div id="collapseOwner" class="accordion-body collapse in">
185
							<div class="accordion-inner">
186
								<!--  the INPUT -->
187
								<div class="control-group">
188
									<label class="control-label" for="origNamefirst0">*First Name</label>
189
									<div class="controls">
190
										<input type="text" name="origNamefirst0" id="origNameFirst" value="[%origNamefirst0%]">
191
									</div>
192
								</div>
193
								<div class="control-group">
194
									<label class="control-label" for="origNamelast0">*Last Name</label>
195
									<div class="controls">
196
										<input type="text" name="origNamelast0" id="origNameLast" value="[%origNamelast0%]">
197
									</div>
198
								</div>
199
								<div class="control-group">
200
									<label class="control-label" for="origNameOrg">Organization Name</label>
201
									<div class="controls">
202
										<input type="text" name="origNameOrg" id="origNameOrg" value="[%origNameOrg%]">
203
									</div>
204
								</div>
205
								<div class="control-group">
206
									<label class="control-label" for="origEmail">Email</label>
207
									<div class="controls">
208
										<input type="text" name="origEmail" id="origEmail" value="[%origEmail%]">
209
									</div>
210
								</div>
211
								<div class="control-group">
212
									<label class="control-label" for="origPhone">Phone</label>
213
									<div class="controls">
214
										<input type="text" name="origPhone" id="origPhone" value="[%origPhone%]">
215
									</div>
216
								</div>
217
								<div class="control-group">
218
									<label class="control-label" for="origFAX">Fax</label>
219
									<div class="controls">
220
										<input type="text" name="origFAX" id="origFAX" value="[%origFAX%]">
221
									</div>
222
								</div>
223
								<div class="control-group">
224
									<label class="control-label" for="origDelivery">Street Address</label>
225
									<div class="controls">
226
										<textarea class="span8" id="origDelivery" name="origDelivery">[%origDelivery%]</textarea>
227
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
228
									</div>
229
								</div>
230
								<div class="control-group">
231
									<label class="control-label" for="origCity">City</label>
232
									<div class="controls">
233
										<input type="text" name="origCity" id="origCity" value="[%origCity%]">
234
									</div>
235
								</div>
236
								<div class="control-group">
237
									<label class="control-label" for="origState">U.S. State or Territory</label>
238
									<div class="controls">
239
										<select name="origState" id="origState">
240
											[% IF form == 're_entry' %]
241
												<option selected>[%origState%]</option>
242
											[% ELSE %]
243
												<option>Select state or territory here.</option>
244
											[% END %]
245
											<option>Alabama</option>
246
											<option>Alaska</option>
247
											<option>American Samoa</option>
248
											<option>Arizona</option>
249
											<option>Arkansas</option>
250
											<option>California</option>
251
											<option>Colorado</option>
252
											<option>Connecticut</option>
253
											<option>Delaware</option>
254
											<option>District of Columbia</option>
255
											<option>Florida</option>
256
											<option>Georgia</option>
257
											<option>Guam</option>
258
											<option>Hawaii</option>
259
											<option>Idaho</option>
260
											<option>Illinois</option>
261
											<option>Indiana</option>
262
											<option>Iowa</option>
263
											<option>Kansas</option>
264
											<option>Kentucky</option>
265
											<option>Louisiana</option>
266
											<option>Maine</option>
267
											<option>Maryland</option>
268
											<option>Massachusetts</option>
269
											<option>Michigan</option>
270
											<option>Minnesota</option>
271
											<option>Mississippi</option>
272
											<option>Missouri</option>
273
											<option>Montana</option>
274
											<option>Nebraska</option>
275
											<option>Nevada</option>
276
											<option>New Hampshire</option>
277
											<option>New Jersey</option>
278
											<option>New Mexico</option>
279
											<option>New York</option>
280
											<option>North Carolina</option>
281
											<option>North Dakota</option>
282
											<option>Northern Mariana Islands</option>
283
											<option>Ohio</option>
284
											<option>Oklahoma</option>
285
											<option>Oregon</option>
286
											<option>Pennsylvania</option>
287
											<option>Puerto Rico</option>
288
											<option>Rhode Island</option>
289
											<option>South Carolina</option>
290
											<option>South Dakota</option>
291
											<option>Tennessee</option>
292
											<option>Texas</option>
293
											<option>Utah</option>
294
											<option>Vermont</option>
295
											<option>Virgin Islands</option>
296
											<option>Virginia</option>
297
											<option>Washington</option>
298
											<option>West Virginia</option>
299
											<option>Wisconsin</option>
300
											<option>Wyoming</option>
301
										</select>
302
									</div>
303
								</div>
304
								<div class="control-group">
305
									<label class="control-label" for="origStateOther">Other State/Province</label>
306
									<div class="controls">
307
										<input type="text" name="origStateOther" id="origStateOther" value="[%origStateOther%]">
308
									</div>
309
								</div>
310
								<div class="control-group">
311
									<label class="control-label" for="origZip">Postal Code</label>
312
									<div class="controls">
313
										<input type="text" name="origZIP" id="origZip" value="[%origZIP%]">
314
									</div>
315
								</div>
316
								<div class="control-group">
317
									<label class="control-label" for="origCountry">Country</label>
318
									<div class="controls">
319
										<input type="text" name="origCountry" id="origCountry" value="[%origCountry%]">
320
									</div>
321
								</div>
322
								
323
						    </div>
324
						</div>
325
						
326
						<!-- ASSOCIATED PARTIES -->
327
						<div class="accordion-heading">
328
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseParties" href="#none">
329
								Associated Parties  
330
							</a>
331
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"><i class="icon-question-sign"></i></a>
332
						</div>
333
						<div id="collapseParties" class="accordion-body collapse in">
334
							<div class="accordion-inner">
335
							
336
								<div class="control-group">
337
									<label class="control-label" for="aoFirstName">First Name</label>
338
									<div class="controls">
339
										<input type="text" name="aoFirstName" id="AONameFirst"">
340
									</div>
341
								</div>
342
								<div class="control-group">
343
									<label class="control-label" for="aoLastName">Last Name</label>
344
									<div class="controls">
345
										<input type="text" name="aoLastName" id="AONameLast"">
346
									</div>
347
								</div>
348
								<div class="control-group">
349
									<label class="control-label" for="aoRole">Role</label>
350
									<div class="controls">
351
										<select id="AORole" name="aoRole">
352
								            <option>Co-owner</option>
353
								            <option>Custodian/Steward</option>
354
								            <option>Metadata Provider</option>
355
								      		<option>User</option>
356
								        </select>
357
									</div>
358
								</div>
359
								<div class="control-group">
360
									<label class="control-label" for="addaobutton1"></label>
361
									<div class="controls">
362
										<input type="button" class="btn" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
363
									</div>
364
								</div>
365
								<div class="control-group">
366
									<label class="control-label" for="associatePartyTable"></label>
367
									<div class="controls">
368
										<table id="associatePartyTable">   
369
											<tr id="addAssociatedParty"> 
370
								            	<td colspan=6 />
371
								            </tr>    
372
										    [% numAO = 0 %]
373
										    [% IF aoCount %]
374
										        [% numAO = aoCount %]
375
										        <tr class="sectbody" id="aoHRRow">
376
										            <td colSpan="6">
377
										                <hr width = "85%"/>
378
										            </td>
379
										        </tr>
380
										    [% END %]
381
										    [% cnt = 1 %]
382
										    [% WHILE cnt < numAO%]
383
										            
384
										        <tr class="sectbody">
385
										            [% SET aofn = "origNamefirst${cnt}" %]
386
										            [% SET aoln = "origNamelast${cnt}" %]
387
										            [% SET aorole = "origRole${cnt}" %]
388
										     
389
										            <td class="rightCol">
390
										                <a style="cursor:pointer">
391
										                	<i onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
392
										                    class="icon-arrow-up"
393
										                    alt="Move Up"></i>
394
										                </a>
395
										                <a style="cursor:pointer">
396
										                    <i onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
397
										                    class="icon-arrow-down"
398
										                    alt="Move Down"></i>
399
										                </a>
400
										                <a style="cursor:pointer">
401
										                    <i class="icon-remove-sign"
402
										                    onClick="delRow(event)" alt="Delete"></i>
403
										                </a>
404
										            </td>
405
										            <td colspan="5" align ="left" style="cursor:pointer"
406
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
407
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
408
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
409
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
410
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
411
										            </td>
412
										        </tr>
413
										        [% cnt = cnt + 1 %]
414
										    [% END %]
415
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
416
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
417
										</table>
418
									</div>
419
								</div>
420
								    								
421
						    </div>
422
						</div>
423
						
424
						<!-- ABSTRACT -->
425
						<div class="accordion-heading">
426
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" href="#none">
427
								Abstract  
428
							</a>
429
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-question-sign"></i></a>
430
						</div>
431
						<div id="collapseAbstract" class="accordion-body collapse in">
432
							<div class="accordion-inner">
433
								<!--  the INPUT -->
434
								<div class="control-group">
435
									<label class="control-label" for="abstract">*Data Set Abstract</label>
436
									<div class="controls">
437
										<textarea class="span8" rows="6" cols="60" name="abstract">[%abstract%]</textarea>
438
										<span class="help-block">(~350 words)
439
									</div>
440
								</div>
441
								
442
						    </div>
443
						</div>
444
						
445
					[% IF modules.keyword == 'true' %]
446
						<!-- KEYWORDS -->
447
						<div class="accordion-heading">
448
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
449
								Keywords  
450
							</a>
451
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
452
						</div>
453
						<div id="collapseKeywords" class="accordion-body collapse in">
454
							<div class="accordion-inner">
455
								<!--  the INPUT -->
456
								<div class="control-group">
457
									<label class="control-label" for="keyword">Keyword</label>
458
									<div class="controls">
459
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
460
										<span class="help-block">For samples, see <a href=
461
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
462
										</span>
463
									</div>
464
								</div>
465
								<div class="control-group">
466
									<label class="control-label" for="keywordType">Keyword Type</label>
467
									<div class="controls">
468
										<select name="keywordType" id="keywordType" class="shortwidth">
469
											<option>None</option>
470
								            <option>Theme</option>
471
								            <option>Place</option>
472
								            <option>Stratum</option>
473
								            <option>Temporal</option>
474
								            <option>Taxonomic</option>
475
										</select>
476
									</div>
477
								</div>
478
								<div class="control-group">
479
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
480
									<div class="controls">
481
										<select name="keywordTh" id="keywordTh" class="shortwidth">
482
											<option>None</option>
483
											<option>GCMD</option>
484
										</select>
485
									</div>
486
								</div>
487
								<div class="control-group">
488
									<label class="control-label" for="addKeywordButton"></label>
489
									<div class="controls">
490
										<input type="button" class="btn" value="Add Keyword" onClick="addKeyword()">
491
									</div>
492
								</div>
493
								
494
								<div class="control-group">
495
									<label class="control-label" for="keywordTable"></label>
496
									<div class="controls">
497
										<!-- the orginal table -->
498
										<table>
499
											<tr id="addKeyword">
500
          										<td colSpan="6"/>
501
          									</tr>	
502
										 [% numKey = 0 %]
503
										 [% IF keyCount %]
504
										   [% numKey = keyCount %]
505
										        [% numAO = aoCount %]
506
										        <tr class="sectbody" id="keywordHRRow">
507
										            <td colSpan="6">
508
										                <hr width = "85%"/>
509
										            </td>
510
										        </tr>
511
										 [% END %]
512
										 <input type="hidden" name="keyCount" value="[%numKey%]" 
513
										            id="keyCount">
514
										   
515
										      [% cnt = 1 %]
516
										        [% WHILE cnt < numKey %]
517
										        
518
										           <tr class="sectbody">
519
										            <td class="rightCol">
520
										                <a style="cursor:pointer">
521
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
522
										                    class="icon-arrow-up"
523
										                    alt="Move Up"></i>
524
										                </a>
525
										                <a style="cursor:pointer">
526
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
527
										                    class="icon-arrow-down"
528
										                    alt="Move Down"></i>
529
										                </a>
530
										                <a style="cursor:pointer">
531
										                    <i class="icon-remove-sign"
532
										                    onClick="delRow(event)" alt="Delete"></i>
533
										                </a>
534
										            </td>
535
										            [% SET keyword = "keyword${cnt}" %]
536
										            [% SET keywordType = "kwType${cnt}" %]
537
										            [% SET keywordTh = "kwTh${cnt}" %]
538
										            <td colspan="5" align ="left" style="cursor:pointer"
539
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
540
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
541
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
542
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
543
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
544
										            </td>
545
										        </tr>
546
										        [% cnt = cnt + 1 %]
547
										       [% END %]
548
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
549
										</table>
550
									</div>
551
								</div>
552
	
553
						    </div>
554
						</div>
555
					[% END %]
556
						
557
					[% IF modules.temporal == 'true' %]	
558
						<!-- TEMPORAL COVERAGE -->
559
						<div class="accordion-heading">
560
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal" href="#none">
561
								Temporal Coverage  
562
							</a>
563
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-question-sign"></i></a>
564
						</div>
565
						<div id="collapseTemporal" class="accordion-body collapse in">
566
							<div class="accordion-inner">
567
								<!--  the INPUT -->
568
									<div class="row-fluid">
569
										
570
										<div class="span6">
571
											<p>Start Date</p>									
572
											<div class="control-group">
573
												[% IF required.temporal == 'true' %]
574
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
575
												[% ELSE %]
576
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
577
												[% END %]
578
												<div class="controls">
579
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
580
												</div>
581
											</div>
582
											<div class="control-group">
583
												<label class="control-label" for="beginningMonth">Month</label>
584
												<div class="controls">
585
													<select name="beginningMonth">
586
														[% IF form == 're_entry' && beginningMonth != ""%]
587
															<option selected>[%beginningMonth%]</option>
588
														[% END %]
589
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
590
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
591
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
592
											            <option>12</option>
593
													</select>
594
												</div>
595
											</div>
596
											<div class="control-group">
597
												<label class="control-label" for="beginningDay">Day</label>
598
												<div class="controls">
599
													<select name="beginningDay">
600
														[% IF form == 're_entry' && beginningDay != ""%]
601
															<option selected>[%beginningDay%]</option>
602
														[% END %]
603
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
604
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
605
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
606
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
607
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
608
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
609
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
610
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
611
													</select>
612
												</div>
613
											</div>
614
										</div>
615
										<div class="span6">
616
											<p>
617
												End Date
618
												<span class="text-info">(leave blank if your data set is open-ended)</span>
619
											</p>								
620
											<div class="control-group">
621
												<label class="control-label" for="endingYear">Year (yyyy)</label>
622
												<div class="controls">
623
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
624
												</div>
625
											</div>
626
											<div class="control-group">
627
												<label class="control-label" for="endingMonth">Month</label>
628
												<div class="controls">
629
													<select name="endingMonth">
630
														[% IF form == 're_entry' && endingMonth != ""%]
631
															<option selected>[%endingMonth%]</option>
632
														[% END %]
633
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
634
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
635
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
636
											            <option>12</option>
637
													</select>
638
												</div>
639
											</div>
640
											<div class="control-group">
641
												<label class="control-label" for="endingDay">Day</label>
642
												<div class="controls">
643
													<select name="endingDay">
644
														[% IF form == 're_entry' && endingDay != ""%]
645
															<option selected>[%endingDay%]</option>
646
														[% END %]
647
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
648
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
649
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
650
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
651
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
652
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
653
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
654
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
655
													</select>
656
												</div>
657
											</div>
658
										</div	
659
									</div>
660
									
661
								</div>	
662
								
663
						    </div>
664
						</div>
665

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