Project

General

Profile

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

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 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" 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
										    [% numAO = 0 %]
353
										    [% IF aoCount %]
354
										        [% numAO = aoCount %]
355
										        <tr class="sectbody" id="aoHRRow">
356
										            <td colSpan="6">
357
										                <hr width = "85%"/>
358
										            </td>
359
										        </tr>
360
										    [% END %]
361
										    [% cnt = 1 %]
362
										    [% WHILE cnt < numAO%]
363
										            
364
										        <tr class="sectbody">
365
										            [% SET aofn = "origNamefirst${cnt}" %]
366
										            [% SET aoln = "origNamelast${cnt}" %]
367
										            [% SET aorole = "origRole${cnt}" %]
368
										     
369
										            <td class="rightCol">
370
										                <a style="cursor:pointer">
371
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
372
										                    src="[% contextUrl %]/style/images/previous.gif"
373
										                    alt="Move Up" border="0"/>
374
										                </a>
375
										                <a style="cursor:pointer">
376
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
377
										                    src="[% contextUrl %]/style/images/next.gif"
378
										                    alt="Move Down" border="0"/>
379
										                </a>
380
										                <a style="cursor:pointer">
381
										                    <img src="[% contextUrl %]/style/images/delete.gif"
382
										                    onClick="delRow(event)" alt="Delete" border="0"/>
383
										                </a>
384
										            </td>
385
										            <td colspan="5" align ="left" style="cursor:pointer"
386
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
387
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
388
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
389
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
390
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
391
										            </td>
392
										        </tr>
393
										        [% cnt = cnt + 1 %]
394
										    [% END %]
395
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
396
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
397
										</table>
398
									</div>
399
								</div>
400
								    								
401
						    </div>
402
						</div>
403
						
404
						<!-- ABSTRACT -->
405
						<div class="accordion-heading">
406
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" href="#none">
407
								Abstract  
408
							</a>
409
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-question-sign"></i></a>
410
						</div>
411
						<div id="collapseAbstract" class="accordion-body collapse in">
412
							<div class="accordion-inner">
413
								<!--  the INPUT -->
414
								<div class="control-group">
415
									<label class="control-label" for="abstract">*Data Set Abstract</label>
416
									<div class="controls">
417
										<textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea>
418
										<span class="help-block">(~350 words)
419
									</div>
420
								</div>
421
								
422
						    </div>
423
						</div>
424
						
425
					[% IF modules.keyword == 'true' %]
426
						<!-- KEYWORDS -->
427
						<div class="accordion-heading">
428
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
429
								Keywords  
430
							</a>
431
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
432
						</div>
433
						<div id="collapseKeywords" class="accordion-body collapse in">
434
							<div class="accordion-inner">
435
								<!--  the INPUT -->
436
								<div class="control-group">
437
									<label class="control-label" for="keyword">Keyword</label>
438
									<div class="controls">
439
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
440
										<span class="help-block">For samples, see <a href=
441
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
442
										</span>
443
									</div>
444
								</div>
445
								<div class="control-group">
446
									<label class="control-label" for="keywordType">Keyword Type</label>
447
									<div class="controls">
448
										<select name="keywordType" id="keywordType" class="shortwidth">
449
											<option>None</option>
450
								            <option>Theme</option>
451
								            <option>Place</option>
452
								            <option>Stratum</option>
453
								            <option>Temporal</option>
454
								            <option>Taxonomic</option>
455
										</select>
456
									</div>
457
								</div>
458
								<div class="control-group">
459
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
460
									<div class="controls">
461
										<select name="keywordTh" id="keywordTh" class="shortwidth">
462
											<option>None</option>
463
											<option>GCMD</option>
464
										</select>
465
									</div>
466
								</div>
467
								<div class="control-group">
468
									<label class="control-label" for="addKeywordButton"></label>
469
									<div class="controls">
470
										<input type="button" value="Add Keyword" onClick="addKeyword()">
471
									</div>
472
								</div>
473
								
474
								<div class="control-group">
475
									<label class="control-label" for="keywordTable"></label>
476
									<div class="controls">
477
										<!-- the orginal table -->
478
										<table>
479
										 [% numKey = 0 %]
480
										 [% IF keyCount %]
481
										   [% numKey = keyCount %]
482
										        [% numAO = aoCount %]
483
										        <tr class="sectbody" id="keywordHRRow">
484
										            <td colSpan="6">
485
										                <hr width = "85%"/>
486
										            </td>
487
										        </tr>
488
										 [% END %]
489
										 <input type="hidden" name="keyCount" value="[%numKey%]" 
490
										            id="keyCount">
491
										   
492
										      [% cnt = 1 %]
493
										        [% WHILE cnt < numKey %]
494
										        
495
										           <tr class="sectbody">
496
										            <td class="rightCol">
497
										                <a style="cursor:pointer">
498
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
499
										                    src="[% contextUrl %]/style/images/previous.gif"
500
										                    alt="Move Up" border="0"/>
501
										                </a>
502
										                <a style="cursor:pointer">
503
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
504
										                    src="[% contextUrl %]/style/images/next.gif"
505
										                    alt="Move Down" border="0"/>
506
										                </a>
507
										                <a style="cursor:pointer">
508
										                    <img src="[% contextUrl %]/style/images/delete.gif"
509
										                    onClick="delRow(event)" alt="Delete" border="0"/>
510
										                </a>
511
										            </td>
512
										            [% SET keyword = "keyword${cnt}" %]
513
										            [% SET keywordType = "kwType${cnt}" %]
514
										            [% SET keywordTh = "kwTh${cnt}" %]
515
										            <td colspan="5" align ="left" style="cursor:pointer"
516
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
517
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
518
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
519
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
520
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
521
										            </td>
522
										        </tr>
523
										        [% cnt = cnt + 1 %]
524
										       [% END %]
525
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
526
										</table>
527
									</div>
528
								</div>
529
	
530
						    </div>
531
						</div>
532
					[% END %]
533
						
534
					[% IF modules.temporal == 'true' %]	
535
						<!-- TEMPORAL COVERAGE -->
536
						<div class="accordion-heading">
537
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal" href="#none">
538
								Temporal Coverage  
539
							</a>
540
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-question-sign"></i></a>
541
						</div>
542
						<div id="collapseTemporal" class="accordion-body collapse in">
543
							<div class="accordion-inner">
544
								<!--  the INPUT -->
545
									<div class="row-fluid">
546
										
547
										<div class="span6">
548
											<p>Start Date</p>									
549
											<div class="control-group">
550
												[% IF required.temporal == 'true' %]
551
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
552
												[% ELSE %]
553
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
554
												[% END %]
555
												<div class="controls">
556
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
557
												</div>
558
											</div>
559
											<div class="control-group">
560
												<label class="control-label" for="beginningMonth">Month</label>
561
												<div class="controls">
562
													<select name="beginningMonth">
563
														[% IF form == 're_entry' && beginningMonth != ""%]
564
															<option selected>[%beginningMonth%]</option>
565
														[% END %]
566
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
567
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
568
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
569
											            <option>12</option>
570
													</select>
571
												</div>
572
											</div>
573
											<div class="control-group">
574
												<label class="control-label" for="beginningDay">Day</label>
575
												<div class="controls">
576
													<select name="beginningDay">
577
														[% IF form == 're_entry' && beginningDay != ""%]
578
															<option selected>[%beginningDay%]</option>
579
														[% END %]
580
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
581
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
582
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
583
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
584
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
585
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
586
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
587
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
588
													</select>
589
												</div>
590
											</div>
591
										</div>
592
										<div class="span6">
593
											<p>
594
												End Date
595
												<span class="text-info">(leave blank if your data set is open-ended)</span>
596
											</p>								
597
											<div class="control-group">
598
												<label class="control-label" for="endingYear">Year (yyyy)</label>
599
												<div class="controls">
600
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
601
												</div>
602
											</div>
603
											<div class="control-group">
604
												<label class="control-label" for="endingMonth">Month</label>
605
												<div class="controls">
606
													<select name="endingMonth">
607
														[% IF form == 're_entry' && endingMonth != ""%]
608
															<option selected>[%endingMonth%]</option>
609
														[% END %]
610
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
611
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
612
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
613
											            <option>12</option>
614
													</select>
615
												</div>
616
											</div>
617
											<div class="control-group">
618
												<label class="control-label" for="endingDay">Day</label>
619
												<div class="controls">
620
													<select name="endingDay">
621
														[% IF form == 're_entry' && endingDay != ""%]
622
															<option selected>[%endingDay%]</option>
623
														[% END %]
624
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
625
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
626
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
627
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
628
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
629
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
630
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
631
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
632
													</select>
633
												</div>
634
											</div>
635
										</div	
636
									</div>
637
								
638
						    </div>
639
						</div>
640

    
641
					[% END %]
642
					
643
						
644
					[% IF modules.spatial == 'true' %]
645
						
646
						<!-- SPATIAL -->
647
						<div class="accordion-heading">
648
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSpatial" href="#none">
649
								Spatial Coverage  
650
							</a>
651
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData"><i class="icon-question-sign"></i></a>
652
						</div>
653
						<div id="collapseSpatial" class="accordion-body collapse in">
654
							<div class="accordion-inner">
655
								<!--  the INPUT -->
656
								<div class="control-group">
657
									[% IF required.spatial == 'true' %]
658
										<label class="control-label" for="geogdesc">*Geographic Description</label>
659
									[% ELSE %]
660
										<label class="control-label" for="geogdesc">Geographic Description</label>
661
									[% END %] 	
662
									<div class="controls">
663
										<textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea>
664
										<span class="help-block">General description of the geographic area in which the data were collected. 
665
										It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span>
666
									</div>
667
								</div>
668
								
669
								<div class="row-fluid">
670
									<h4>Coordinates</h4>
671
									
672
									[% IF show.siteList == 'true' %]
673
	    								<div class="control-group">
674
											<label class="control-label" for="useSiteCoord">Use Site?</label>
675
											<div class="controls">
676
												<input type="checkbox" name="useSiteCoord" [%useSiteCoord%]>
677
										        <span class="help-block">Use [% config.site %] coordinates. (This indicates that the data were
678
										        collected at the [% config.site %]. If you check this box, you don't need
679
										        to fill in the lat./long. fields below).</span>
680
											</div>
681
										</div>
682
									[% END %]
683
									
684
									<table>
685
									    <tr class="sectbody">
686
									      <td width="190"></td><td width="100" align="left"><span class="text-info">Degrees</span></td>
687
									      <td width="110" align="left"><span class="text-info">Minutes</span></td>
688
									      <td width="70" align="left"><span class="text-info">Seconds</span></td>
689
									      <td width="200"></td><td width="90"</td>
690
									   </tr>
691
									      
692
									   <tr class="sectbody">
693
									     <td class="rightCol">
694
									      [% IF required.spatial == 'true' %]
695
									        <span class="text-info">*Latitude</span>
696
									      [% ELSE %]
697
									        <span class="text-info">Latitude</span>
698
									      [% END %]</td> 
699
									     <td> 
700
									          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
701
									      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
702
									      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
703
									      
704
									      <td Align="left" colspan="2"> 
705
									      [% IF form == 're_entry' && hemisphLat1 == "N"%]
706
									      	<label class="radio inline">
707
									        	<input type="radio"  name="hemisphLat1" value="N" CHECKED>
708
									        	North
709
									        </label>	
710
									      [%ELSE%]
711
									      	<label class="radio inline">
712
									        	<input type="radio"  name="hemisphLat1" value="N">
713
									        	North
714
									        </label>	
715
									      [%END%]
716
									      [% IF form == 're_entry' && hemisphLat1 == "S"%]
717
									      	<label class="radio inline">
718
									        	<input type="radio"  name="hemisphLat1" value="S" CHECKED>
719
									        	South
720
									        </label>	
721
									      [%ELSE%]
722
									      	<label class="radio inline">
723
									        	<input type="radio"  name="hemisphLat1" value="S">
724
									        	South
725
									        </label>	
726
									      [%END%]
727
									      </td>
728
									    </tr>
729
									
730
									    <tr class="sectbody">
731
									      <td class="rightCol"> 
732
									      [% IF required.spatial == 'true' %]
733
									        <span class="text-info">*Longitude</span>
734
									      [% ELSE %]
735
									        <span class="text-info">Longitude</span>
736
									      [% END %]</td>
737
									     
738
									      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
739
									      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
740
									      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
741
									      
742
									      
743
									      <td align="left" colspan="2"> 
744
									    [% IF form == 're_entry' && hemisphLong1 == "W"%]
745
									    	<label class="radio inline">        
746
									      		<input type="radio"  name="hemisphLong1" value="W" CHECKED>
747
									      		West
748
									      	</label>	
749
									    [%ELSE%]
750
									    	<label class="radio inline">
751
									      		<input type="radio"  name="hemisphLong1" value="W">
752
									      		West
753
									      	</label>	
754
									    [%END%]
755
									    [% IF form == 're_entry' && hemisphLong1 == "E"%]
756
									    	<label class="radio inline">
757
									      		<input type="radio"  name="hemisphLong1" value="E" CHECKED>
758
									      		East
759
									      	</label>	
760
									    [%ELSE%]
761
									    	<label class="radio inline">
762
									      		<input type="radio"  name="hemisphLong1" value="E">
763
									      		East
764
									      	</label>	
765
									    [%END%]
766
									      </td>
767
									    </tr>
768
									      
769
									      
770
									    <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>
771
									      </td><td></td></tr>
772
									      
773
									    <tr class="sectbody"> 
774
									      <td class="rightCol"><span class="text-info">Latitude</span></td>
775
									  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
776
									      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
777
									      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
778
									        
779
									      <td align="left" colspan="2"> 
780
									      [% IF form == 're_entry' && hemisphLat2 == "N"%]
781
									      	<label class="radio inline">
782
									        	<input type="radio"  name="hemisphLat2" value="N" CHECKED>
783
									        	North
784
									        </label>	
785
									      [%ELSE%]
786
									      	<label class="radio inline">
787
									        	<input type="radio"  name="hemisphLat2" value="N">
788
									        	North
789
									        </label>	
790
									      [%END%]
791
									      [% IF form == 're_entry' && hemisphLat2 == "S"%]
792
									      	<label class="radio inline">
793
									        	<input type="radio"  name="hemisphLat2" value="S" CHECKED>
794
									        	South
795
									        </label>	
796
									      [%ELSE%]
797
									      	<label class="radio inline">
798
									        	<input type="radio"  name="hemisphLat2" value="S">
799
												South
800
									        </label>
801
									      [%END%]
802
									      </td>
803
									    </tr>
804
									    
805
									    <tr class="sectbody"><td class="rightCol"><span class="text-info">Longitude</span></td>
806
									       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
807
									       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
808
									       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
809
									       <td align="left" colspan="2">
810
									       
811
									      [% IF form == 're_entry' && hemisphLong2 == "W"%]
812
									      	<label class="radio inline">
813
									        	<input type="radio"  name="hemisphLong2" value="W" CHECKED>
814
									        	West
815
									        </label	
816
									      [%ELSE%]
817
									      	<label class="radio inline">
818
									        	<input type="radio"  name="hemisphLong2" value="W">
819
									        	West
820
									        </label>	
821
									      [%END%]
822
									      [% IF form == 're_entry' && hemisphLong2 == "E"%]
823
									      	<label class="radio inline">
824
									        	<input type="radio"  name="hemisphLong2" value="E" CHECKED>
825
									        	East
826
									        </label>	
827
									      [%ELSE%]
828
									      	<label class="radio inline">
829
									        	<input type="radio"  name="hemisphLong2" value="E">
830
									        	East
831
									        </label>	
832
									      [%END%]
833
									      </td>
834
									    </tr>
835
									    <tr class="sectbody"><td></td>
836
									       <td align="left" colspan="4"><span class="regtext">
837
									        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
838
									      </td><td></td>
839
									    </tr>
840
									</table>
841
								
842
								</div>									
843
								
844
						    </div>
845
						</div>						
846
						
847
					[% END %]
848
						
849
						
850
					[% IF modules.taxonomic == 'true' %]
851
						
852
						<!-- TAXONOMIC -->
853
						<div class="accordion-heading">
854
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTaxonomic" href="#none">
855
								Taxonomic Coverage  
856
							</a>
857
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage"><i class="icon-question-sign"></i></a>
858
						</div>
859
						<div id="collapseTaxonomic" class="accordion-body collapse in">
860
							<div class="accordion-inner">
861
								<!--  the INPUT -->
862
								<div class="control-group">
863
									<label class="control-label" for="taxonRank">Taxonomic Rank</label>
864
									<div class="controls">
865
										<input name="taxonRank" id="taxonRank">
866
										<span class="help-block">(e.g., Species)</span>
867
									</div>
868
								</div>
869
								<div class="control-group">
870
									<label class="control-label" for="taxonName">Taxonomic Name</label>
871
									<div class="controls">
872
										<input name="taxonName" id="taxonName">
873
										<span class="help-block">(e.g., <i>Ursus arctos</i>)</span>
874
									</div>
875
								</div>
876
								<div class="control-group">
877
									<label class="control-label" for="addTaxonButton"></label>
878
									<div class="controls">
879
										<input type="button" value="Add Taxon" onClick="addTaxon()">
880
									</div>
881
								</div>
882
								
883
								<div class="control-group">
884
									<label class="control-label" for="taxonTable"></label>
885
									<div class="controls">
886
										<table>
887
											[% numTaxa = 0 %]
888
									        [% IF taxaCount %]
889
									            [% numTaxa = taxaCount %]
890
									            <tr class="sectbody" id="taxonHRRow">
891
									                <td colSpan="6">
892
									                    <hr width = "85%"/>
893
									                </td>
894
									            </tr>
895
									        [% END %]
896
									        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
897
									    
898
									        [% cnt = 1 %]
899
									        [% WHILE cnt <= numTaxa%]        
900
									            <tr class="sectbody">
901
									                <td class="rightCol">
902
									                    <a style="cursor:pointer">
903
									                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
904
									                        src="[% contextUrl %]/style/images/previous.gif"
905
									                        alt="Move Up" border="0"/>
906
									                    </a>
907
									                    <a style="cursor:pointer">
908
									                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
909
									                        src="[% contextUrl %]/style/images/next.gif"
910
									                        alt="Move Down" border="0"/>
911
									                    </a>
912
									                    <a style="cursor:pointer">
913
									                        <img src="[% contextUrl %]/style/images/delete.gif"
914
									                        onClick="delRow(event)" alt="Delete" border="0"/>
915
									                    </a>
916
									                </td>
917
									                [% SET rank = "taxonRankName${cnt}" %]
918
									                [% SET name = "taxonRankValue${cnt}" %]
919
									                <td colspan="5" align ="left" style="cursor:pointer"
920
									                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
921
									                    Rank: [%$rank%], Name: [%$name%]
922
									                    <input name="taxonName" type="hidden" value="[%$name%]"/>
923
									                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
924
									            </tr>
925
									            [% cnt = cnt + 1 %]
926
									        [% END %]
927
									
928
										<!-- placeholder for list code -->
929
									     <tr class="sectbody" id="addtaxarow"> 
930
									        <td class="bordertop" valign="top" align="right"></td>
931
									        <td class="bordertop" align="left" colspan="5"></td>
932
									     </tr>
933
									     
934
									   </table>
935
									</div>
936
								</div>
937
								
938
								<div class="control-group">
939
									<label class="control-label" for="taxaAuth">Taxonomic Reference</label>
940
									<div class="controls">
941
										<textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea>
942
										<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>
943
									</div>
944
								</div>
945
								
946
						    </div>
947
						</div>
948
						
949
					[% END %]  
950
						
951
					[% IF modules.method == 'true' %]
952
  
953
						<!-- METHODS -->
954
						<div class="accordion-heading">
955
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseMethods" href="#none">
956
								Data Collection Methods  
957
							</a>
958
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods"><i class="icon-question-sign"></i></a>
959
						</div>
960
						<div id="collapseMethods" class="accordion-body collapse in">
961
							<div class="accordion-inner">
962
								<!--  the INPUT -->
963
								<div class="control-group">
964
									<label class="control-label" for="methodTitle">Method Title</label>
965
									<div class="controls">
966
										<input type="text" name="methodTitle" value="[%methodTitle%]">
967
									</div>
968
								</div>
969
								<div class="control-group">
970
									<label class="control-label" for="methodPara">Method Description</label>
971
									<div class="controls">
972
								        <table>
973
										[% IF !methodPara %]
974
											<tr><td><textarea rows="6" cols="60" name="methodPara"></textarea></td></tr>
975
								        [% END %]
976
								        [% FOREACH para = methodPara %]
977
								           <tr><td><textarea rows="6" cols="60" name="methodPara">[% para %]</textarea></td></tr>
978
								        [% END %]
979
								        	<tr class="sectbody" id="addparabutton1">
980
									    		<td align="left">
981
									          		<input type="button" value="Add Paragraph to Method Description" onClick="addParagraph()">
982
									          	</td>
983
											</tr>
984
										</table>	
985
									</div>
986
								</div>
987
								
988
								<div class="control-group">
989
									<label class="control-label" for="studyExtentDescription">Extent of Study Description</label>
990
									<div class="controls">
991
										<textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea>
992
										<span class="help-block">
993
									        Describe the temporal, spatial and taxonomic extent of the study,
994
									        supplementing the information on coverage provided above.  
995
									        For example, if the temporal coverage of the data is 1990-2000, you 
996
									        might provide details about any years that were missed or the months 
997
									        in which sampling occurred.</span>
998
									</div>
999
								</div>
1000
								
1001
								<div class="control-group">
1002
									<label class="control-label" for="samplingDescription">Sampling Description</label>
1003
									<div class="controls">
1004
										<textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea>
1005
										<span class="help-block">
1006
									        Describe the sampling design of the study.  For example, you might 
1007
        									describe the way in which treatments were assigned to sampling units.</span>
1008
									</div>
1009
								</div>
1010
								
1011
								
1012
						    </div>
1013
						</div>
1014
						
1015
					[% END %]
1016
					
1017
						
1018
						<!-- DATA SET CONTACT -->
1019
						<div class="accordion-heading">
1020
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseContact" href="#none">
1021
								Data Set Contact  
1022
							</a>
1023
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress"><i class="icon-question-sign"></i></a>
1024
						</div>
1025
						<div id="collapseContact" class="accordion-body collapse in">
1026
							<div class="accordion-inner">
1027
								<!--  the INPUT -->
1028
        						<div class="control-group">
1029
									<label class="control-label" for="useOrigAddress"></label>
1030
									<div class="controls">
1031
										<input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
1032
        								<span class="help-block">Use the same name and address as the <em>PRINCIPAL DATA SET OWNER</em> above.</span>
1033
									</div>
1034
								</div>
1035
								<div class="control-group">
1036
									<label class="control-label" for="origNamefirstContact">*First Name</label>
1037
									<div class="controls">
1038
										<input type="text" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]">
1039
									</div>
1040
								</div>
1041
								<div class="control-group">
1042
									<label class="control-label" for="origNamelastContact">*Last Name</label>
1043
									<div class="controls">
1044
										<input type="text" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]">
1045
									</div>
1046
								</div>
1047
								<div class="control-group">
1048
									<label class="control-label" for="origNameOrgContact">Organization Name</label>
1049
									<div class="controls">
1050
										<input type="text" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]">
1051
									</div>
1052
								</div>
1053
								<div class="control-group">
1054
									[% IF required.contactEmailAddress == 'true' %]
1055
										<label class="control-label" for="origEmailContact">*Email</label>
1056
									[% ELSE %]
1057
										<label class="control-label" for="origEmailContact">Email</label>
1058
									[% END %]
1059
									<div class="controls">
1060
										<input type="text" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]">
1061
									</div>
1062
								</div>
1063
								<div class="control-group">
1064
									<label class="control-label" for="origPhoneContact">Phone</label>
1065
									<div class="controls">
1066
										<input type="text" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]">
1067
									</div>
1068
								</div>
1069
								<div class="control-group">
1070
									<label class="control-label" for="origFAXContact">Fax</label>
1071
									<div class="controls">
1072
										<input type="text" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]">
1073
									</div>
1074
								</div>
1075
								<div class="control-group">
1076
									<label class="control-label" for="origDeliveryContact">Street Address</label>
1077
									<div class="controls">
1078
										<textarea id="contactDelivery" name="origDeliveryContact">[%origDeliveryContact%]</textarea>
1079
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
1080
									</div>
1081
								</div>
1082
								<div class="control-group">
1083
									<label class="control-label" for="origCityContact">City</label>
1084
									<div class="controls">
1085
										<input type="text" name="origCityContact" id="origCity" value="[%origCityContact%]">
1086
									</div>
1087
								</div>
1088
								<div class="control-group">
1089
									<label class="control-label" for="origStateContact">U.S. State or Territory</label>
1090
									<div class="controls">
1091
										<select name="origStateContact" id="contactState">
1092
											[% IF form == 're_entry' %]
1093
												<option selected>[%origStateContact%]</option>
1094
											[% ELSE %]
1095
												<option>Select state or territory here.</option>
1096
											[% END %]
1097
											<option>Alabama</option>
1098
											<option>Alaska</option>
1099
											<option>American Samoa</option>
1100
											<option>Arizona</option>
1101
											<option>Arkansas</option>
1102
											<option>California</option>
1103
											<option>Colorado</option>
1104
											<option>Connecticut</option>
1105
											<option>Delaware</option>
1106
											<option>District of Columbia</option>
1107
											<option>Florida</option>
1108
											<option>Georgia</option>
1109
											<option>Guam</option>
1110
											<option>Hawaii</option>
1111
											<option>Idaho</option>
1112
											<option>Illinois</option>
1113
											<option>Indiana</option>
1114
											<option>Iowa</option>
1115
											<option>Kansas</option>
1116
											<option>Kentucky</option>
1117
											<option>Louisiana</option>
1118
											<option>Maine</option>
1119
											<option>Maryland</option>
1120
											<option>Massachusetts</option>
1121
											<option>Michigan</option>
1122
											<option>Minnesota</option>
1123
											<option>Mississippi</option>
1124
											<option>Missouri</option>
1125
											<option>Montana</option>
1126
											<option>Nebraska</option>
1127
											<option>Nevada</option>
1128
											<option>New Hampshire</option>
1129
											<option>New Jersey</option>
1130
											<option>New Mexico</option>
1131
											<option>New York</option>
1132
											<option>North Carolina</option>
1133
											<option>North Dakota</option>
1134
											<option>Northern Mariana Islands</option>
1135
											<option>Ohio</option>
1136
											<option>Oklahoma</option>
1137
											<option>Oregon</option>
1138
											<option>Pennsylvania</option>
1139
											<option>Puerto Rico</option>
1140
											<option>Rhode Island</option>
1141
											<option>South Carolina</option>
1142
											<option>South Dakota</option>
1143
											<option>Tennessee</option>
1144
											<option>Texas</option>
1145
											<option>Utah</option>
1146
											<option>Vermont</option>
1147
											<option>Virgin Islands</option>
1148
											<option>Virginia</option>
1149
											<option>Washington</option>
1150
											<option>West Virginia</option>
1151
											<option>Wisconsin</option>
1152
											<option>Wyoming</option>
1153
										</select>
1154
									</div>
1155
								</div>
1156
								<div class="control-group">
1157
									<label class="control-label" for="origStateOtherContact">Other State/Province</label>
1158
									<div class="controls">
1159
										<input type="text" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]">
1160
									</div>
1161
								</div>
1162
								<div class="control-group">
1163
									<label class="control-label" for="origZIPContact">Postal Code</label>
1164
									<div class="controls">
1165
										<input type="text" name="origZIPContact" id="contactZip" value="[%origZIPContact%]">
1166
									</div>
1167
								</div>
1168
								<div class="control-group">
1169
									<label class="control-label" for="origCountryContact">Country</label>
1170
									<div class="controls">
1171
										<input type="text" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]">
1172
									</div>
1173
								</div>
1174
								
1175
						    </div>
1176
						</div>
1177
						
1178
						<!-- TEMPLATE -->
1179
						<div class="accordion-heading">
1180
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
1181
								Template  
1182
							</a>
1183
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
1184
						</div>
1185
						<div id="collapseTemplate" class="accordion-body collapse in">
1186
							<div class="accordion-inner">
1187
								<!--  the INPUT -->
1188
								<div class="control-group">
1189
									<label class="control-label" for="template">*template</label>
1190
									<div class="controls">
1191
										<input type="text" name="template" value="[%template%]">
1192
									</div>
1193
								</div>
1194
								
1195
						    </div>
1196
						</div>
1197
						
1198
   
1199
  <table class="tables" cellpadding="5" cellspacing="0">  
1200
    <tr class="sectheader">
1201
      <td colspan="5" align="left">
1202
        <span class="label">DISTRIBUTION INFORMATION</span>
1203
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide" class="smalltext">(What's this?)</a>
1204
      </td>
1205
      <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
1206
    </tr>
1207
  </table>
1208

    
1209
   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">  
1210
  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
1211
  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
1212
  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
1213
     <td colspan="4" align="left"><span class="regtext">
1214
     If available, please enter a name or number that uniquely identifies and<br>
1215
     describes concisely the data set. Alternatively, provide other pertinent<br>
1216
     information that can identify and locate the data set within your site's<br>
1217
     data management system.</span></td><td></td></tr>
1218
  
1219
    <tr class="sectbody">
1220
        <td class="rightCol"><span class="label">*Data Medium</span></td>
1221
  
1222
        <td colspan="5" align="left">
1223
        [% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1224
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1225
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1226
        [%ELSE%]
1227
            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1228
            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
1229
        [% END %]
1230
        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1231
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1232
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1233
        [%ELSE%]
1234
           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1235
           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
1236
        [% END %]
1237
        [% IF form == 're_entry' && dataMedium == "other" %]
1238
           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1239
           <span class="regtext">Other&nbsp;</span></input>
1240
        [%ELSE%]
1241
           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1242
           <span class="regtext">Other&nbsp;</span></input>
1243
        [% END %]
1244

    
1245
  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
1246
        </td>
1247
    </tr>  
1248
  
1249
  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
1250
      <td colspan="5" align="left">
1251
      
1252
          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
1253
      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1254
      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1255
          [%ELSE%]
1256
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1257
            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
1258
          [%END%]
1259
          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
1260
        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1261
        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1262
          [%ELSE%]
1263
            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1264
            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
1265
          [%END%]
1266
          </td></tr>
1267
    
1268

    
1269
   
1270
   <tr class="sectbody"><td></td><td colspan="5" align="left">
1271
 
1272
    [% IF form == 're_entry' && useConstraints == "other" %]      
1273
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1274
      <span class="regtext">Other&nbsp;</span>
1275
    [%ELSE%]
1276
      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1277
      <span class="regtext">Other&nbsp;</span>
1278
    [%END%]
1279
   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
1280
   
1281
   
1282
   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
1283
   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
1284
   
1285
   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
1286
   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
1287
   
1288
   </table>
1289
   
1290
  [% IF modules.upload == 'true' %]
1291

    
1292
  <!-- Associated Data -->
1293
  <table class="tables" cellpadding="5" cellspacing="0">
1294
  <tr class="sectheader">
1295
    <td colspan="5" align="left">
1296
      <span class="label">UPLOAD DATA</span>
1297
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1298
    </td>
1299
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1300
  </tr>
1301
   </table>
1302
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1303
  <tr class="sectbody">
1304
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1305
    <td colspan="5">
1306
        <input type="file" id="file_element" name="file_1" class="longwidth">
1307

    
1308
        [% IF form == 're_entry' && upCount %]
1309
           [% cnt = 0 %]
1310
           [% WHILE cnt < upCount %]
1311
                [% SET fileSum = "upload_${cnt}" %]
1312
                [% SET fileName = "uploadname_${cnt}" %]
1313
                [% SET fileType = "uploadtype_${cnt}" %] 
1314
                [% SET filePerm = "uploadperm_${cnt}" %]
1315
                [% IF fileSum %]
1316
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1317
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1318
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1319
                [% END %]
1320
                [% cnt = cnt + 1 %]
1321
            [% END %]
1322
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1323
        [% END %]
1324

    
1325
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1326
  </tr>
1327
  <tr class="sectbody">
1328
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1329
    <td colspan="5" class="regtext">
1330
    [% IF !upCount %]
1331
        <div id="file_comment">
1332
            (<i>None currently attached</i>)
1333
        </div>
1334
    [% END %]
1335
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1336
    [% cnt = 0 %]
1337

    
1338
    [% WHILE cnt < upCount %]
1339
        [% SET fileName = "uploadname_${cnt}" %]
1340
        [% SET filePerm = "uploadperm_${cnt}" %]
1341
        [% IF $filePerm == 'public' %]
1342
          [% SET perm_a = "checked" %]
1343
          [% SET perm_b = "" %]
1344
        [% ELSE %]
1345
          [% SET perm_a = "" %]
1346
          [% SET perm_b = "checked" %]
1347
        [% END %]
1348
        [% IF fileName %]<div>
1349
          [% $fileName %]
1350
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1351
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1352

    
1353
          <input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"/></div>[% END %]
1354

    
1355
        [% cnt = cnt + 1 %]
1356
    [% END %]
1357
    [% END %]</div></td>
1358
  </tr>
1359
  </table>
1360
  
1361
  <script language="JavaScript" type="text/JavaScript">
1362
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1363
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1364
  </script>
1365
  [% END %]
1366
   <table class="tables" cellpadding="5" cellspacing="0">    
1367
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1368
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1369
              
1370
    </table>
1371
    <p></p>
1372
    
1373
    					</div>
1374
					</div> <!-- end the accordinan -->
1375
   
1376
</form>
1377
			</div> <!-- end the row -->
1378
			
1379
		</div>
1380
	</article>
1381

    
1382
[% INCLUDE $templates.footer %]