Project

General

Profile

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

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
								<label class="checkbox inline" for="useOrigAddress">
1029
									<input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
1030
        							Use the same name and address as the <em>PRINCIPAL DATA SET OWNER</em> above.
1031
								</label>
1032
									
1033
								<div class="control-group">
1034
									<label class="control-label" for="origNamefirstContact">*First Name</label>
1035
									<div class="controls">
1036
										<input type="text" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]">
1037
									</div>
1038
								</div>
1039
								<div class="control-group">
1040
									<label class="control-label" for="origNamelastContact">*Last Name</label>
1041
									<div class="controls">
1042
										<input type="text" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]">
1043
									</div>
1044
								</div>
1045
								<div class="control-group">
1046
									<label class="control-label" for="origNameOrgContact">Organization Name</label>
1047
									<div class="controls">
1048
										<input type="text" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]">
1049
									</div>
1050
								</div>
1051
								<div class="control-group">
1052
									[% IF required.contactEmailAddress == 'true' %]
1053
										<label class="control-label" for="origEmailContact">*Email</label>
1054
									[% ELSE %]
1055
										<label class="control-label" for="origEmailContact">Email</label>
1056
									[% END %]
1057
									<div class="controls">
1058
										<input type="text" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]">
1059
									</div>
1060
								</div>
1061
								<div class="control-group">
1062
									<label class="control-label" for="origPhoneContact">Phone</label>
1063
									<div class="controls">
1064
										<input type="text" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]">
1065
									</div>
1066
								</div>
1067
								<div class="control-group">
1068
									<label class="control-label" for="origFAXContact">Fax</label>
1069
									<div class="controls">
1070
										<input type="text" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]">
1071
									</div>
1072
								</div>
1073
								<div class="control-group">
1074
									<label class="control-label" for="origDeliveryContact">Street Address</label>
1075
									<div class="controls">
1076
										<textarea id="contactDelivery" name="origDeliveryContact">[%origDeliveryContact%]</textarea>
1077
										<span class="help-block">(number, street, unit, etc.; comma-separated)</span>
1078
									</div>
1079
								</div>
1080
								<div class="control-group">
1081
									<label class="control-label" for="origCityContact">City</label>
1082
									<div class="controls">
1083
										<input type="text" name="origCityContact" id="contactCity" value="[%origCityContact%]">
1084
									</div>
1085
								</div>
1086
								<div class="control-group">
1087
									<label class="control-label" for="origStateContact">U.S. State or Territory</label>
1088
									<div class="controls">
1089
										<select name="origStateContact" id="contactState">
1090
											[% IF form == 're_entry' %]
1091
												<option selected>[%origStateContact%]</option>
1092
											[% ELSE %]
1093
												<option>Select state or territory here.</option>
1094
											[% END %]
1095
											<option>Alabama</option>
1096
											<option>Alaska</option>
1097
											<option>American Samoa</option>
1098
											<option>Arizona</option>
1099
											<option>Arkansas</option>
1100
											<option>California</option>
1101
											<option>Colorado</option>
1102
											<option>Connecticut</option>
1103
											<option>Delaware</option>
1104
											<option>District of Columbia</option>
1105
											<option>Florida</option>
1106
											<option>Georgia</option>
1107
											<option>Guam</option>
1108
											<option>Hawaii</option>
1109
											<option>Idaho</option>
1110
											<option>Illinois</option>
1111
											<option>Indiana</option>
1112
											<option>Iowa</option>
1113
											<option>Kansas</option>
1114
											<option>Kentucky</option>
1115
											<option>Louisiana</option>
1116
											<option>Maine</option>
1117
											<option>Maryland</option>
1118
											<option>Massachusetts</option>
1119
											<option>Michigan</option>
1120
											<option>Minnesota</option>
1121
											<option>Mississippi</option>
1122
											<option>Missouri</option>
1123
											<option>Montana</option>
1124
											<option>Nebraska</option>
1125
											<option>Nevada</option>
1126
											<option>New Hampshire</option>
1127
											<option>New Jersey</option>
1128
											<option>New Mexico</option>
1129
											<option>New York</option>
1130
											<option>North Carolina</option>
1131
											<option>North Dakota</option>
1132
											<option>Northern Mariana Islands</option>
1133
											<option>Ohio</option>
1134
											<option>Oklahoma</option>
1135
											<option>Oregon</option>
1136
											<option>Pennsylvania</option>
1137
											<option>Puerto Rico</option>
1138
											<option>Rhode Island</option>
1139
											<option>South Carolina</option>
1140
											<option>South Dakota</option>
1141
											<option>Tennessee</option>
1142
											<option>Texas</option>
1143
											<option>Utah</option>
1144
											<option>Vermont</option>
1145
											<option>Virgin Islands</option>
1146
											<option>Virginia</option>
1147
											<option>Washington</option>
1148
											<option>West Virginia</option>
1149
											<option>Wisconsin</option>
1150
											<option>Wyoming</option>
1151
										</select>
1152
									</div>
1153
								</div>
1154
								<div class="control-group">
1155
									<label class="control-label" for="origStateOtherContact">Other State/Province</label>
1156
									<div class="controls">
1157
										<input type="text" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]">
1158
									</div>
1159
								</div>
1160
								<div class="control-group">
1161
									<label class="control-label" for="origZIPContact">Postal Code</label>
1162
									<div class="controls">
1163
										<input type="text" name="origZIPContact" id="contactZip" value="[%origZIPContact%]">
1164
									</div>
1165
								</div>
1166
								<div class="control-group">
1167
									<label class="control-label" for="origCountryContact">Country</label>
1168
									<div class="controls">
1169
										<input type="text" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]">
1170
									</div>
1171
								</div>
1172
								
1173
						    </div>
1174
						</div>
1175
						
1176
						<!-- DISTRIBUTION INFO -->
1177
						<div class="accordion-heading">
1178
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseDistribution" href="#none">
1179
								Distribution Information  
1180
							</a>
1181
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation"><i class="icon-question-sign"></i></a>
1182
						</div>
1183
						<div id="collapseDistribution" class="accordion-body collapse in">
1184
							<div class="accordion-inner">
1185
								<!--  the INPUT -->
1186
								<div class="control-group">
1187
									<label class="control-label" for="identifier">Data Set Identifier</label>
1188
									<div class="controls">
1189
										<input type="text" name="identifier" value="[%identifier%]">
1190
										<span class="help-block">
1191
									     If available, please enter a name or number that uniquely identifies and
1192
									     describes concisely the data set. Alternatively, provide other pertinent
1193
									     information that can identify and locate the data set within your site's
1194
									     data management system.</span>
1195
									</div>
1196
								</div>
1197
								<div class="control-group">
1198
									<label class="control-label" for="dataMedium">*Data Medium</label>
1199
									<div class="controls">
1200
										[% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1201
											<label class"radio inline">
1202
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
1203
									            Digital
1204
									        </label>
1205
								        [%ELSE%]
1206
								        	<label class"radio inline">
1207
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
1208
									            Digital
1209
									        </label> 
1210
								        [% END %]
1211
								        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1212
								        	<label class"radio inline">
1213
								           		<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
1214
								           		Hardcopy
1215
								           	</label>
1216
								        [%ELSE%]
1217
								        	<label class"radio inline">
1218
												<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
1219
								           		Hardcopy
1220
								           	</label>
1221
								        [% END %]
1222
								        [% IF form == 're_entry' && dataMedium == "other" %]
1223
								        	<label class"radio inline">
1224
									           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
1225
									           Other
1226
									        </label>    
1227
								        [%ELSE%]
1228
								        	<label class"radio inline">
1229
								           		<input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
1230
								           		Other
1231
								           	</label>									           		
1232
								        [% END %]
1233
								  		<input type="text" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM"></input>
1234
									</div>
1235
								</div>
1236
								
1237
								<div class="control-group">
1238
									<label class="control-label" for="useConstraints">*Usage Rights</label>
1239
									<div class="controls">
1240
										[% IF form == 're_entry' && useConstraints == "no restrictions" %]
1241
											<label class"radio inline">      
1242
												<input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
1243
												No restrictions
1244
											</label>	
1245
										[%ELSE%]
1246
											<label class"radio inline">
1247
									            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1248
									            No restrictions
1249
									        </label>
1250
										[%END%]
1251
										[% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]   
1252
											<label class"radio inline">   
1253
										        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
1254
										        Obtain permission from data set owner(s)
1255
										    </label> 
1256
										[%ELSE%]
1257
											<label class"radio inline">
1258
									            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
1259
									            Obtain permission from data set owner(s)
1260
									        </label>
1261
										[%END%]
1262
										
1263
										[% IF form == 're_entry' && useConstraints == "other" %] 
1264
											<label class"radio inline">     
1265
												<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
1266
											    Other
1267
											</label>    
1268
									    [%ELSE%]
1269
									    	<label class"radio inline">
1270
												<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
1271
												Other
1272
											</label>	
1273
									    [%END%]
1274
										<input type="text" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49">
1275
									</div>
1276
								</div>
1277
								
1278
								<div class="control-group">
1279
									<label class="control-label" for="url">URL</label>
1280
									<div class="controls">
1281
										<input type="text" name="url" value="[%url%]">
1282
									</div>
1283
								</div>
1284
								<div class="control-group">
1285
									<label class="control-label" for="addComments">Additional Information</label>
1286
									<div class="controls">
1287
										<textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea>
1288
									</div>
1289
								</div>
1290
								
1291
						    </div>
1292
						</div>
1293
						
1294
						
1295
						<!-- TEMPLATE -->
1296
						<div class="accordion-heading">
1297
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
1298
								Template  
1299
							</a>
1300
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
1301
						</div>
1302
						<div id="collapseTemplate" class="accordion-body collapse in">
1303
							<div class="accordion-inner">
1304
								<!--  the INPUT -->
1305
								<div class="control-group">
1306
									<label class="control-label" for="template">*template</label>
1307
									<div class="controls">
1308
										<input type="text" name="template" value="[%template%]">
1309
									</div>
1310
								</div>
1311
								
1312
						    </div>
1313
						</div>
1314
   
1315
  [% IF modules.upload == 'true' %]
1316

    
1317
  <!-- Associated Data -->
1318
  <table class="tables" cellpadding="5" cellspacing="0">
1319
  <tr class="sectheader">
1320
    <td colspan="5" align="left">
1321
      <span class="label">UPLOAD DATA</span>
1322
      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
1323
    </td>
1324
    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
1325
  </tr>
1326
   </table>
1327
  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
1328
  <tr class="sectbody">
1329
    <td class="rightCol"><span class="label">Upload Data File:</span></td>
1330
    <td colspan="5">
1331
        <input type="file" id="file_element" name="file_1" class="longwidth">
1332

    
1333
        [% IF form == 're_entry' && upCount %]
1334
           [% cnt = 0 %]
1335
           [% WHILE cnt < upCount %]
1336
                [% SET fileSum = "upload_${cnt}" %]
1337
                [% SET fileName = "uploadname_${cnt}" %]
1338
                [% SET fileType = "uploadtype_${cnt}" %] 
1339
                [% SET filePerm = "uploadperm_${cnt}" %]
1340
                [% IF fileSum %]
1341
                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
1342
                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
1343
                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
1344
                [% END %]
1345
                [% cnt = cnt + 1 %]
1346
            [% END %]
1347
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1348
        [% END %]
1349

    
1350
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1351
  </tr>
1352
  <tr class="sectbody">
1353
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
1354
    <td colspan="5" class="regtext">
1355
    [% IF !upCount %]
1356
        <div id="file_comment">
1357
            (<i>None currently attached</i>)
1358
        </div>
1359
    [% END %]
1360
    <div id="files_list">[% IF form == 're_entry' && upCount %]
1361
    [% cnt = 0 %]
1362

    
1363
    [% WHILE cnt < upCount %]
1364
        [% SET fileName = "uploadname_${cnt}" %]
1365
        [% SET filePerm = "uploadperm_${cnt}" %]
1366
        [% IF $filePerm == 'public' %]
1367
          [% SET perm_a = "checked" %]
1368
          [% SET perm_b = "" %]
1369
        [% ELSE %]
1370
          [% SET perm_a = "" %]
1371
          [% SET perm_b = "checked" %]
1372
        [% END %]
1373
        [% IF fileName %]<div>
1374
          [% $fileName %]
1375
          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
1376
          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
1377

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

    
1380
        [% cnt = cnt + 1 %]
1381
    [% END %]
1382
    [% END %]</div></td>
1383
  </tr>
1384
  </table>
1385
  
1386
  <script language="JavaScript" type="text/JavaScript">
1387
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1388
    multi_selector.addElement( document.getElementById( 'file_element' ) );
1389
  </script>
1390
  [% END %]
1391
   <table class="tables" cellpadding="5" cellspacing="0">    
1392
   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
1393
   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
1394
              
1395
    </table>
1396
    <p></p>
1397
    
1398
    					</div>
1399
					</div> <!-- end the accordinan -->
1400
   
1401
</form>
1402
			</div> <!-- end the row -->
1403
			
1404
		</div>
1405
	</article>
1406

    
1407
[% INCLUDE $templates.footer %]