Project

General

Profile

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

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
		<div class="container">
13
		
14
			<div class="row-fluid">
15
			
16
				[% IF form != 're_entry' %]  
17
				
18
					<h2>Upload your data</h2>
19
					<p class="lead">
20
						Use this form to submit a new data package to the repository.
21
					</p>
22
					
23
				[% ELSE %]
24
				
25
					<h2>Edit your data</h2>
26
					<p class="lead">
27
						Use this form to edit a data package submitted earlier.
28
					</p>
29
					
30
					[%IF docid !=''%]
31
						<p>
32
							The ID of this data set is: <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
33
						</p>	
34
					[%END%]
35
				
36
				[% END %]
37
				
38
				<p>
39
					Please have a look at the 
40
					<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
41
					Guide for Completing the Data Repository Form</a> 
42
	        		before you start filling in this form. Also, use your browser's 
43
	        		Reload/Refresh function to make sure you see the latest version of this 
44
	        		page.
45
				</p>
46
				<p>
47
					If you have any questions, comments or problems 
48
					regarding this form, please contact the repository administrator at 
49
					<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
50
				</p>
51
				<p class="text-info">*Denotes a required field.</p>
52
			</div>
53

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

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