Project

General

Profile

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

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

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