Project

General

Profile

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

1
[% INCLUDE $templates.header %]
2

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

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

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

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

    
1411
[% INCLUDE $templates.footer %]