Project

General

Profile

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

1

    
2
  <script language="JavaScript">
3
	    var contextUrl = '[% contextUrl %]';
4
	</script>
5
  <script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/metacatui/entryForm.js">
6
  </script>
7
  <script language="JavaScript" type="text/javascript">
8
    // enable Bootstrap tooltip popovers for licensing choices
9
    $('.popover-target').popover();
10
		$('#party-tooltip').popover('show');
11
  </script>
12

    
13
	<!-- CONTENT SECTION ======================================================================= -->
14
	<article id="RegistryEntryForm">
15
	
16
		<!-- Modal area for the guide-->
17
		<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-remote="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide">
18
		  <div class="modal-header">
19
		    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
20
		    <h3 id="myModalLabel">Registry Guide</h3>
21
		  </div>
22
		  <div class="modal-body">
23
		  	<p>Loading...</p>
24
		  </div>
25
		  <div class="modal-footer">
26
		    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
27
		    <!--<button class="btn btn-primary" data-dismiss="modal">Ok</button>-->
28
		  </div>
29
		</div>
30
		<script language="JavaScript" type="text/JavaScript">
31
			// get it out of special containers with 'position: blah' CSS
32
			$('#myModal').appendTo("body");
33
		</script>
34
		
35
		<div class="container">
36
		
37
			<div class="row-fluid">
38
			
39
				[% IF form != 're_entry' %]  
40
				
41
					<h2>Upload your data</h2>
42
					<p class="lead">
43
						Use this form to submit a new data package to the repository.
44
					</p>
45
					
46
				[% ELSE %]
47
				
48
					<h2>Edit your data</h2>
49
					<p class="lead">
50
						Use this form to edit a data package submitted earlier.
51
					</p>
52
					
53
					[%IF docid !=''  && cfg != 'metacatui' %]
54
						<p>
55
							The ID of this data set is: <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
56
						</p>	
57
					[%END%]
58
				
59
				[% END %]
60
					<p>
61
						<a data-toggle="modal" data-target="#myModal" class="btn" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
62
							<i class="icon-info-sign"></i>
63
							Show Help Guide
64
				  	</a>
65
				  </p> 
66
					
67
					[%IF cfg != 'metacatui' %]
68
						<p>
69
							If you have any questions, comments or problems 
70
							regarding this form, please contact the repository administrator at 
71
							<a href="mailto:[% email.recipient %]">[% email.recipient %]</a>
72
						</p>
73
					[% END %]
74
					
75
				<p class="text-info">* Denotes a required field.</p>
76
			</div>
77

    
78
			<!--  the main form -->
79
			<div class="row-fluid">
80
			
81
				<form id="entryForm" action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post" class="form-horizontal">
82
					<input type="hidden" name="cfg" value="[% cfg %]">
83
					<input type="hidden" name="docid" value="[% docid %]">
84
					<input type="hidden" name="stage" value="insert">
85
  
86
  				<div class="accordion" id="entryFormAccordian">
87
					<div class="accordion-group">
88
											
89
						<!-- BASIC -->
90
						<div class="accordion-heading">
91
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" >
92
								Basic Information  
93
							</a>
94
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-info-sign"></i></a>
95
						</div>
96
						<div id="collapseBasic" class="accordion-body collapse in">
97
							<div class="accordion-inner">
98
								<!--  the INPUT -->
99
								<div class="control-group">
100
									<label class="control-label" for="title">*Data Set Title</label>
101
									<div class="controls">
102
										<input type="text" name="title" value="[%title%]">
103
									</div>
104
								</div>
105

    
106
								[% IF show.siteList == 'true' %]
107
									<div class="control-group">
108
										<label class="control-label" for="site">*[% config.site | ucfirst %] Name</label>
109
										<div class="controls">
110
											<select name="site">
111
												[% IF form == 're_entry' %]
112
													<option selected>[%site%]</option>
113
												[% ELSE %]
114
													<option>Select your [% config.site %] here.</option>
115
												[% END %]
116
												[% FOREACH site = siteList %]
117
													<option>[% site %]</option>
118
												[% END %]
119
											</select>
120
										</div>
121
									</div>
122
								[% END %]
123

    
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

    
149
								[% IF show.organization == 'true' %]
150
									<div class="control-group">
151
										<label class="control-label" for="site">Organization</label>
152
										<div class="controls">
153
											<input type="text" name="site" value="[%site%]">
154
										</div>
155
									</div>
156
								[% END %]
157

    
158
								[% IF show.funding == 'true' %]
159
									<div id="funding-group" class="control-group">
160
										<label class="control-label" for="site">*Award Number</label>
161
										<div class="controls">
162
											<input type="text" id="funding-visible" value="">
163
                                            <input type="hidden" id="funding" name="funding" value="[%funding%]">
164
                                            <div class="input-help-msg subtle"></div>
165
                                            <table class="table table-striped table-bordered" id="funding-list"></table>
166
										</div>
167
									</div>
168
								[% END %]
169
								
170
						    </div>
171
						</div>
172
						
173
						<!-- ASSOCIATED PARTIES -->
174
						<div class="accordion-heading">
175
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseParties" >
176
								People and Organizations  
177
							</a>
178
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators"><i class="icon-info-sign"></i></a>
179
						</div>
180
						<div id="collapseParties" class="accordion-body collapse in">
181
							<div class="accordion-inner">
182
								<div class="control-group">
183
									<label class="control-label" for="assocPartyRole">Role</label>
184
									<div class="controls">
185
										<select name="assocPartyRole" id="assocPartyRole">
186
											<option value="creator">Creator (Author/Owner/Originator)</option>
187
											<option value="principalInvestigator">Principal Investigator</option>
188
											<option value="coPrincipalInvestigator">Co-Principal Investigator</option>
189
											<option value="collaboratingPrincipalInvestigator">Collaborating-Principal Investigator</option>
190
											<option value="contact">Contact</option>
191
											<option value="metadataProvider">Metadata Provider</option>
192
											<option value="custodianSteward">Custodian/Steward</option>
193
											<option value="publisher">Publisher</option>
194
											<option value="user">User</option>
195
										</select>
196
									</div>
197
								</div>
198
								<div class="control-group">
199
									<label class="control-label" for="assocPartyFirstName">First Name</label>
200
									<div class="controls">
201
										<input type="text" name="assocPartyFirstName" id="assocPartyFirstName"/>
202
									</div>
203
								</div>
204
								<div class="control-group">
205
									<label class="control-label" for="assocPartyLastName">Last Name</label>
206
									<div class="controls">
207
										<input type="text" name="assocPartyLastName" id="assocPartyLastName" />
208
									</div>
209
								</div>
210
								<div class="control-group">
211
									<label class="control-label" for="assocPartyOrgName">Organization Name</label>
212
									<div class="controls">
213
										<input type="text" name="assocPartyOrgName" id="assocPartyOrgName" />
214
                    <i class="icon-info-sign popover-target" id="party-tooltip"
215
                        data-original-title="People and Organizations"
216
                        data-toggle="popover"
217
                        data-trigger="click"
218
                        data-placement="right"
219
                        data-html="true"
220
                        data-content="<p>Each person or organization listed as a Creator will be listed in the data citation. At least one person, organization, or position with a 'Creator' role is required.<p><p>Enter a person's first and last name (and optionally their organization) or just an organization name (and optionally a position name).</p><p>If a Contact is not added, the first Creator will be used. Use the 'Add Person or Organization' button below to add your entries.<p>"
221
                        title=""></i>
222
									</div>
223
								</div>
224
								<div class="control-group">
225
									<label class="control-label" for="assocPartyPositionName">Position Name</label>
226
									<div class="controls">
227
										<input type="text" name="assocPartyPositionName" id="assocPartyPositionName" />
228
									</div>
229
								</div>
230
								<div class="control-group">
231
									<label class="control-label" for="assocPartyEmail">Email</label>
232
									<div class="controls">
233
										<input type="text" name="assocPartyEmail" id="assocPartyEmail" />
234
									</div>
235
								</div>
236
								<div class="control-group">
237
									<label class="control-label" for="assocPartyEmail">Online Link</label>
238
									<div class="controls">
239
										<input type="text" name="assocPartyURL" id="assocPartyURL" placeholder="URL"/>
240
									</div>
241
								</div>
242
								<div class="control-group">
243
									<label class="control-label" for="assocPartyPhone">Phone</label>
244
									<div class="controls">
245
										<input type="text" name="assocPartyPhone" id="assocPartyPhone"/>
246
									</div>
247
								</div>
248
								<div class="control-group">
249
									<label class="control-label" for="assocPartyFAX">Fax</label>
250
									<div class="controls">
251
										<input type="text" name="assocPartyFAX" id="assocPartyFAX" />
252
									</div>
253
								</div>
254
								<div class="control-group">
255
									<label class="control-label" for="assocPartyDelivery">Street Address</label>
256
									<div class="controls">
257
										<textarea class="span8" name="assocPartyDelivery" id="assocPartyDelivery" placeholder="(number, street, unit, etc.; comma-separated)"></textarea>
258
									</div>
259
								</div>
260
								<div class="control-group">
261
									<label class="control-label" for="assocPartyCity">City</label>
262
									<div class="controls">
263
										<input type="text" name="assocPartyCity" id="assocPartyCity" />
264
									</div>
265
								</div>
266
								<div class="control-group">
267
									<label class="control-label" for="assocPartyState">U.S. State or Territory</label>
268
									<div class="controls">
269
										<select name="assocPartyState" id="assocPartyState">
270
											[% IF form == 're_entry' %]
271
												<option selected>[%assocPartyState%]</option>
272
											[% ELSE %]
273
												<option>Select state or territory here.</option>
274
											[% END %]
275
											<option>Alabama</option>
276
											<option>Alaska</option>
277
											<option>American Samoa</option>
278
											<option>Arizona</option>
279
											<option>Arkansas</option>
280
											<option>California</option>
281
											<option>Colorado</option>
282
											<option>Connecticut</option>
283
											<option>Delaware</option>
284
											<option>District of Columbia</option>
285
											<option>Florida</option>
286
											<option>Georgia</option>
287
											<option>Guam</option>
288
											<option>Hawaii</option>
289
											<option>Idaho</option>
290
											<option>Illinois</option>
291
											<option>Indiana</option>
292
											<option>Iowa</option>
293
											<option>Kansas</option>
294
											<option>Kentucky</option>
295
											<option>Louisiana</option>
296
											<option>Maine</option>
297
											<option>Maryland</option>
298
											<option>Massachusetts</option>
299
											<option>Michigan</option>
300
											<option>Minnesota</option>
301
											<option>Mississippi</option>
302
											<option>Missouri</option>
303
											<option>Montana</option>
304
											<option>Nebraska</option>
305
											<option>Nevada</option>
306
											<option>New Hampshire</option>
307
											<option>New Jersey</option>
308
											<option>New Mexico</option>
309
											<option>New York</option>
310
											<option>North Carolina</option>
311
											<option>North Dakota</option>
312
											<option>Northern Mariana Islands</option>
313
											<option>Ohio</option>
314
											<option>Oklahoma</option>
315
											<option>Oregon</option>
316
											<option>Pennsylvania</option>
317
											<option>Puerto Rico</option>
318
											<option>Rhode Island</option>
319
											<option>South Carolina</option>
320
											<option>South Dakota</option>
321
											<option>Tennessee</option>
322
											<option>Texas</option>
323
											<option>Utah</option>
324
											<option>Vermont</option>
325
											<option>Virgin Islands</option>
326
											<option>Virginia</option>
327
											<option>Washington</option>
328
											<option>West Virginia</option>
329
											<option>Wisconsin</option>
330
											<option>Wyoming</option>
331
										</select>
332
									</div>
333
								</div>
334
								<div class="control-group">
335
									<label class="control-label" for="assocPartyStateOther">Other State/Province</label>
336
									<div class="controls">
337
										<input type="text" name="assocPartyStateOther" id="assocPartyStateOther" />
338
									</div>
339
								</div>
340
								<div class="control-group">
341
									<label class="control-label" for="assocPartyZip">Postal Code</label>
342
									<div class="controls">
343
										<input type="text" name="assocPartyZip" id="assocPartyZip" />
344
									</div>
345
								</div>
346
								<div class="control-group">
347
									<label class="control-label" for="assocPartyCountry">Country</label>
348
									<div class="controls">
349
										<input type="text" name="assocPartyCountry" id="assocPartyCountry" />
350
									</div>
351
								</div>
352
								<div class="control-group">
353
									<div class="controls">
354
										<button type="button" class="btn" id="addPartyButton" onClick="addAssociatedParty()">Add Person or Organization</button>
355
										<button type="button" class="btn" style="visibility: hidden" id="updatePartyButton" onClick="updateAssociatedParty()">Update Person or Organization</button>
356
									</div>
357
								</div>
358
								
359
								<table class="table table-striped table-bordered table-hover" id="partyTable">   
360
									[% cnt = 0 %]
361
									<tbody>
362
									  [% WHILE cnt < partyCount %]
363
											[% SET partyId         = "partyId${cnt}" %]
364
											[% SET partyFirstName  = "partyFirstName${cnt}" %]
365
											[% SET partyLastName   = "partyLastName${cnt}" %]
366
											[% SET partyRole       = "partyRole${cnt}" %]
367
											[% SET partyOrgName    = "partyOrgName${cnt}" %]
368
											[% SET partyPositionName = "partyPositionName${cnt}" %]
369
											[% SET partyEmail      = "partyEmail${cnt}" %]
370
											[% SET partyURL        = "partyURL${cnt}" %]
371
											[% SET partyPhone      = "partyPhone${cnt}" %]
372
											[% SET partyFAX        = "partyFAX${cnt}" %]
373
											[% SET partyDelivery   = "partyDelivery${cnt}" %]
374
											[% SET partyCity       = "partyCity${cnt}" %]
375
											[% SET partyState      = "partyState${cnt}" %]
376
											[% SET partyStateOther = "partyStateOther${cnt}" %] 
377
											[% SET partyZIP        = "partyZIP${cnt}" %]
378
											[% SET partyCountry    = "partyCountry${cnt}" %]
379
											[% SET roles = {
380
												principalInvestigator              = 'Principal Investigator',
381
												coPrincipalInvestigator            = 'Co-Principal Investigator',
382
												collaboratingPrincipalInvestigator = 'Collaborating-Principal Investigator',
383
												creator                            = 'Creator (Author/Owner/Originator)',
384
												contact                            = 'Contact',
385
												metadataProvider                   = 'Metadata Provider',
386
												custodianSteward                   = 'Custodian/Steward',
387
												publisher                          = 'Publisher',
388
												user                               = 'User'} %]
389
											<tr id="[% $partyId %]">
390
												<input type="hidden" name="partyId"         value="[% $partyId %]" />
391
												<input type="hidden" name="partyFirstName"  value="[% $partyFirstName %]" />
392
												<input type="hidden" name="partyLastName"   value="[% $partyLastName %]" />
393
												<input type="hidden" name="partyRole"       value="[% $partyRole %]" />
394
												<input type="hidden" name="partyOrgName"    value="[% $partyOrgName %]" />
395
												<input type="hidden" name="partyPositionName" value="[% $partyPositionName %]" />
396
												<input type="hidden" name="partyEmail" 			value="[% $partyEmail %]" />
397
												<input type="hidden" name="partyURL" 			  value="[% $partyURL %]" />
398
												<input type="hidden" name="partyPhone"      value="[% $partyPhone %]" />
399
												<input type="hidden" name="partyFAX" 				value="[% $partyFAX %]" />
400
												<input type="hidden" name="partyDelivery"   value="[% $partyDelivery %]" />
401
												<input type="hidden" name="partyCity"       value="[% $partyCity %]" />
402
												<input type="hidden" name="partyState"      value="[% $partyState %]" />
403
												<input type="hidden" name="partyStateOther" value="[% $partyStateOther %]" />
404
												<input type="hidden" name="partyZIP"        value="[% $partyZIP %]" />
405
												<input type="hidden" name="partyCountry"    value="[% $partyCountry %]" />
406
												[% IF $partyFirstName != '' && $partyLastName != '' %]
407
													<td>[% $partyFirstName %]</td>
408
													<td>[% $partyLastName %]</td>
409
												  [%- pRole = $partyRole -%]
410
													<td>[% roles.$pRole %]</td>
411
													
412
												[% ELSE %]
413
													[% IF $partyOrgName != '' %]
414
														<td colspan="2">[% $partyOrgName %]</td>
415
												  	[%- pRole = $partyRole -%]
416
														<td>[% roles.$pRole %]</td>
417
													[% ELSE %]
418
														<td colspan="2">[% $partyPositionName %]</td>
419
												  	[%- pRole = $partyRole -%]
420
														<td>[% roles.$pRole %]</td>
421
													[% END %]
422
												[% END %]
423
												<td style="text-align: center">
424
													<a style="cursor:pointer">
425
														<i onClick="moveUpRow(event)" class="icon-arrow-up" alt="Move Up"></i>
426
													</a>
427
												</td>
428
												<td style="text-align: center">
429
													<a style="cursor:pointer">
430
														<i onClick="moveDownRow(event, 'partyRowMarker')" class="icon-arrow-down" alt="Move Down"></i>
431
													</a>
432
												</td>
433
												<td style="text-align: center">
434
													<a style="cursor:pointer">
435
														<i class="icon-pencil" alt="Edit" onclick="editParty(event)"></i>
436
													</a>
437
												</td>
438
												<td style="text-align: center">
439
													<a style="cursor:pointer">
440
														<i class="icon-remove-sign" onClick="delRow(event)" alt="Delete"></i>
441
													</a>
442
												</td>
443
											</tr>
444
											[% cnt = cnt + 1 %]
445
									  [% END %]
446
										<tr id="partyRowMarker">
447
											<td colspan="7">
448
												<input type="hidden" name="partyCount" value="[% partyCount %]" id="partyCount" />
449
											</td>
450
										</tr>
451
									</tbody>
452
								</table>
453
							</div>
454
						</div>
455
						
456
						<!-- ABSTRACT -->
457
						<div class="accordion-heading">
458
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseAbstract" >
459
								Abstract  
460
							</a>
461
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"><i class="icon-info-sign"></i></a>
462
						</div>
463
						<div id="collapseAbstract" class="accordion-body collapse in">
464
							<div class="accordion-inner">
465
								<!--  the INPUT -->
466
								<div class="control-group">
467
									<label class="control-label" for="abstract">*Data Set Abstract</label>
468
									<div class="controls">
469
										<textarea class="span8" rows="6" cols="60" name="abstract">[%abstract%]</textarea>
470
										<span class="help-block">(~350 words)</span>
471
									</div>
472
								</div>
473
								
474
						    </div>
475
						</div>
476
						
477
					[% IF modules.keyword == 'true' %]
478
						<!-- KEYWORDS -->
479
						<div class="accordion-heading">
480
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords">
481
								Keywords  
482
							</a>
483
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-info-sign"></i></a>
484
						</div>
485
						<div id="collapseKeywords" class="accordion-body collapse in">
486
							<div class="accordion-inner">
487
								<!--  the INPUT -->
488
								<div class="control-group">
489
									<label class="control-label" for="keyword">Keyword</label>
490
									<div class="controls">
491
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
492
										<span class="help-block">For samples, see <a href=
493
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
494
										</span>
495
									</div>
496
								</div>
497
								<div class="control-group">
498
									<label class="control-label" for="keywordType">Keyword Type</label>
499
									<div class="controls">
500
										<select name="keywordType" id="keywordType" class="shortwidth">
501
											<option>None</option>
502
								            <option>Theme</option>
503
								            <option>Place</option>
504
								            <option>Stratum</option>
505
								            <option>Temporal</option>
506
								            <option>Taxonomic</option>
507
										</select>
508
									</div>
509
								</div>
510
								<div class="control-group">
511
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
512
									<div class="controls">
513
										<select name="keywordTh" id="keywordTh" class="shortwidth">
514
											<option>None</option>
515
											<option>GCMD</option>
516
										</select>
517
									</div>
518
								</div>
519
								<div class="control-group">
520
									<label class="control-label" for="addKeywordButton"></label>
521
									<div class="controls">
522
										<input type="button" class="btn" value="Add Keyword" onClick="addKeyword()">
523
									</div>
524
								</div>
525
								
526
								<div class="control-group">
527
									<label class="control-label" for="keywordTable"></label>
528
									<div class="controls">
529
										<!-- the orginal table -->
530
										<table>
531
											<tr id="addKeyword">
532
          										<td colSpan="6"/>
533
          									</tr>	
534
										 [% numKey = 0 %]
535
										 [% IF keyCount %]
536
										   [% numKey = keyCount %]
537
										        <tr class="sectbody" id="keywordHRRow">
538
										            <td colSpan="6">
539
										                <hr width = "85%"/>
540
										            </td>
541
										        </tr>
542
										 [% END %]
543
										 <input type="hidden" name="keyCount" value="[%numKey%]" 
544
										            id="keyCount">
545
										   
546
										      [% cnt = 1 %]
547
										        [% WHILE cnt < numKey %]
548
										        
549
										           <tr class="sectbody">
550
										            <td class="rightCol">
551
										                <a style="cursor:pointer">
552
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
553
										                    class="icon-arrow-up"
554
										                    alt="Move Up"></i>
555
										                </a>
556
										                <a style="cursor:pointer">
557
										                    <i onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
558
										                    class="icon-arrow-down"
559
										                    alt="Move Down"></i>
560
										                </a>
561
										                <a style="cursor:pointer">
562
										                    <i class="icon-remove-sign"
563
										                    onClick="delRow(event)" alt="Delete"></i>
564
										                </a>
565
										            </td>
566
										            [% SET keyword = "keyword${cnt}" %]
567
										            [% SET keywordType = "kwType${cnt}" %]
568
										            [% SET keywordTh = "kwTh${cnt}" %]
569
										            <td colspan="5" align ="left" style="cursor:pointer"
570
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
571
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
572
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
573
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
574
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
575
										            </td>
576
										        </tr>
577
										        [% cnt = cnt + 1 %]
578
										       [% END %]
579
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
580
										</table>
581
									</div>
582
								</div>
583
	
584
						    </div>
585
						</div>
586
					[% END %]
587
						
588
					[% IF modules.temporal == 'true' %]	
589
						<!-- TEMPORAL COVERAGE -->
590
						<div class="accordion-heading">
591
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemporal">
592
								Temporal Coverage  
593
							</a>
594
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"><i class="icon-info-sign"></i></a>
595
						</div>
596
						<div id="collapseTemporal" class="accordion-body collapse in">
597
							<div class="accordion-inner">
598
								<!--  the INPUT -->
599
									<div class="row-fluid">
600
										
601
										<div class="span6">
602
											<p>Start Date</p>									
603
											<div class="control-group">
604
												[% IF required.temporal == 'true' %]
605
													<label class="control-label" for="beginningYear">*Year (yyyy)</label>
606
												[% ELSE %]
607
													<label class="control-label" for="beginningYear">Year (yyyy)</label>
608
												[% END %]
609
												<div class="controls">
610
													<input type="text" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4">
611
												</div>
612
											</div>
613
											<div class="control-group">
614
												<label class="control-label" for="beginningMonth">Month</label>
615
												<div class="controls">
616
													<select name="beginningMonth">
617
														[% IF form == 're_entry' && beginningMonth != ""%]
618
															<option selected>[%beginningMonth%]</option>
619
														[% END %]
620
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
621
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
622
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
623
											            <option>12</option>
624
													</select>
625
												</div>
626
											</div>
627
											<div class="control-group">
628
												<label class="control-label" for="beginningDay">Day</label>
629
												<div class="controls">
630
													<select name="beginningDay">
631
														[% IF form == 're_entry' && beginningDay != ""%]
632
															<option selected>[%beginningDay%]</option>
633
														[% END %]
634
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
635
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
636
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
637
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
638
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
639
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
640
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
641
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
642
													</select>
643
												</div>
644
											</div>
645
										</div>
646
										<div class="span6">
647
											<p>
648
												End Date
649
												<span class="text-info">(leave blank if your data set is open-ended)</span>
650
											</p>								
651
											<div class="control-group">
652
												<label class="control-label" for="endingYear">Year (yyyy)</label>
653
												<div class="controls">
654
													<input type="text" name="endingYear" value="[%endingYear%]" size="8" maxlength="4">
655
												</div>
656
											</div>
657
											<div class="control-group">
658
												<label class="control-label" for="endingMonth">Month</label>
659
												<div class="controls">
660
													<select name="endingMonth">
661
														[% IF form == 're_entry' && endingMonth != ""%]
662
															<option selected>[%endingMonth%]</option>
663
														[% END %]
664
											            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
665
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
666
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
667
											            <option>12</option>
668
													</select>
669
												</div>
670
											</div>
671
											<div class="control-group">
672
												<label class="control-label" for="endingDay">Day</label>
673
												<div class="controls">
674
													<select name="endingDay">
675
														[% IF form == 're_entry' && endingDay != ""%]
676
															<option selected>[%endingDay%]</option>
677
														[% END %]
678
											            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
679
											            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
680
											            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
681
											            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
682
											            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
683
											            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
684
											            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
685
											            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
686
													</select>
687
												</div>
688
											</div>
689
										</div	
690
									</div>
691
									
692
								</div>	
693
								
694
						    </div>
695
						</div>
696

    
697
					[% END %]
698
					
699
						
700
					[% IF modules.spatial == 'true' %]
701
						
702
						<!-- SPATIAL -->
703
						<div class="accordion-heading">
704
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSpatial">
705
								Spatial Coverage  
706
							</a>
707
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData"><i class="icon-info-sign"></i></a>
708
						</div>
709
						<div id="collapseSpatial" class="accordion-body collapse in">
710
							<div class="accordion-inner">
711
								<!--  the INPUT -->
712
								<div class="control-group">
713
									[% IF required.spatial == 'true' %]
714
										<label class="control-label" for="geogdesc">*Geographic Description</label>
715
									[% ELSE %]
716
										<label class="control-label" for="geogdesc">Geographic Description</label>
717
									[% END %] 	
718
									<div class="controls">
719
										<textarea class="span8" rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea>
720
										<span class="help-block">General description of the geographic area in which the data were collected. 
721
										It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span>
722
									</div>
723
								</div>
724
								
725
								<div class="row-fluid">
726
									<h4>Coordinates</h4>
727
									
728
									[% IF show.siteList == 'true' %]
729
	    								<div class="control-group">
730
											<label class="control-label" for="useSiteCoord">Use Site?</label>
731
											<div class="controls">
732
												<input type="checkbox" name="useSiteCoord" [%useSiteCoord%]>
733
										        <span class="help-block">Use [% config.site %] coordinates. (This indicates that the data were
734
										        collected at the [% config.site %]. If you check this box, you don't need
735
										        to fill in the lat./long. fields below).</span>
736
											</div>
737
										</div>
738
									[% END %]
739
									
740
									<table>
741
									    <tr class="sectbody">
742
									      <td width="190"></td><td width="100" align="left"><span class="text-info">Degrees</span></td>
743
									      <td width="110" align="left"><span class="text-info">Minutes</span></td>
744
									      <td width="70" align="left"><span class="text-info">Seconds</span></td>
745
									      <td width="200"></td><td width="90"></td>
746
									   </tr>
747
									      
748
									   <tr class="sectbody">
749
									     <td class="rightCol">
750
									      [% IF required.spatial == 'true' %]
751
									        <span class="text-info">*Latitude</span>
752
									      [% ELSE %]
753
									        <span class="text-info">Latitude</span>
754
									      [% END %]</td> 
755
									     <td> 
756
									          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
757
									      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
758
									      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
759
									      
760
									      <td Align="left" colspan="2"> 
761
									      [% IF form == 're_entry' && hemisphLat1 == "N"%]
762
									      	<label class="radio">
763
									        	<input type="radio"  name="hemisphLat1" value="N" CHECKED>
764
									        	North
765
									        </label>	
766
									      [%ELSE%]
767
									      	<label class="radio">
768
									        	<input type="radio"  name="hemisphLat1" value="N">
769
									        	North
770
									        </label>	
771
									      [%END%]
772
									      [% IF form == 're_entry' && hemisphLat1 == "S"%]
773
									      	<label class="radio">
774
									        	<input type="radio"  name="hemisphLat1" value="S" CHECKED>
775
									        	South
776
									        </label>	
777
									      [%ELSE%]
778
									      	<label class="radio">
779
									        	<input type="radio"  name="hemisphLat1" value="S">
780
									        	South
781
									        </label>	
782
									      [%END%]
783
									      </td>
784
									    </tr>
785
									
786
									    <tr class="sectbody">
787
									      <td class="rightCol"> 
788
									      [% IF required.spatial == 'true' %]
789
									        <span class="text-info">*Longitude</span>
790
									      [% ELSE %]
791
									        <span class="text-info">Longitude</span>
792
									      [% END %]</td>
793
									     
794
									      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
795
									      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
796
									      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
797
									      
798
									      
799
									      <td align="left" colspan="2"> 
800
									    [% IF form == 're_entry' && hemisphLong1 == "W"%]
801
									    	<label class="radio">        
802
									      		<input type="radio"  name="hemisphLong1" value="W" CHECKED>
803
									      		West
804
									      	</label>	
805
									    [%ELSE%]
806
									    	<label class="radio">
807
									      		<input type="radio"  name="hemisphLong1" value="W">
808
									      		West
809
									      	</label>	
810
									    [%END%]
811
									    [% IF form == 're_entry' && hemisphLong1 == "E"%]
812
									    	<label class="radio">
813
									      		<input type="radio"  name="hemisphLong1" value="E" CHECKED>
814
									      		East
815
									      	</label>	
816
									    [%ELSE%]
817
									    	<label class="radio">
818
									      		<input type="radio"  name="hemisphLong1" value="E">
819
									      		East
820
									      	</label>	
821
									    [%END%]
822
									      </td>
823
									    </tr>
824
									      
825
									      
826
									    <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>
827
									      </td><td></td></tr>
828
									      
829
									    <tr class="sectbody"> 
830
									      <td class="rightCol"><span class="text-info">Latitude</span></td>
831
									  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
832
									      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
833
									      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
834
									        
835
									      <td align="left" colspan="2"> 
836
									      [% IF form == 're_entry' && hemisphLat2 == "N"%]
837
									      	<label class="radio">
838
									        	<input type="radio"  name="hemisphLat2" value="N" CHECKED>
839
									        	North
840
									        </label>	
841
									      [%ELSE%]
842
									      	<label class="radio">
843
									        	<input type="radio"  name="hemisphLat2" value="N">
844
									        	North
845
									        </label>	
846
									      [%END%]
847
									      [% IF form == 're_entry' && hemisphLat2 == "S"%]
848
									      	<label class="radio">
849
									        	<input type="radio"  name="hemisphLat2" value="S" CHECKED>
850
									        	South
851
									        </label>	
852
									      [%ELSE%]
853
									      	<label class="radio">
854
									        	<input type="radio"  name="hemisphLat2" value="S">
855
												South
856
									        </label>
857
									      [%END%]
858
									      </td>
859
									    </tr>
860
									    
861
									    <tr class="sectbody"><td class="rightCol"><span class="text-info">Longitude</span></td>
862
									       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
863
									       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
864
									       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
865
									       <td align="left" colspan="2">
866
									       
867
									      [% IF form == 're_entry' && hemisphLong2 == "W"%]
868
									      	<label class="radio">
869
									        	<input type="radio"  name="hemisphLong2" value="W" CHECKED>
870
									        	West
871
									        </label	
872
									      [%ELSE%]
873
									      	<label class="radio">
874
									        	<input type="radio"  name="hemisphLong2" value="W">
875
									        	West
876
									        </label>	
877
									      [%END%]
878
									      [% IF form == 're_entry' && hemisphLong2 == "E"%]
879
									      	<label class="radio">
880
									        	<input type="radio"  name="hemisphLong2" value="E" CHECKED>
881
									        	East
882
									        </label>	
883
									      [%ELSE%]
884
									      	<label class="radio">
885
									        	<input type="radio"  name="hemisphLong2" value="E">
886
									        	East
887
									        </label>	
888
									      [%END%]
889
									      </td>
890
									    </tr>
891
									    <tr class="sectbody"><td></td>
892
									       <td align="left" colspan="4"><span class="regtext">
893
									        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
894
									      </td><td></td>
895
									    </tr>
896
									</table>
897
								
898
								</div>									
899
								
900
						    </div>
901
						</div>						
902
						
903
					[% END %]
904
						
905
						
906
					[% IF modules.taxonomic == 'true' %]
907
						
908
						<!-- TAXONOMIC -->
909
						<div class="accordion-heading">
910
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTaxonomic">
911
								Taxonomic Coverage  
912
							</a>
913
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage"><i class="icon-info-sign"></i></a>
914
						</div>
915
						<div id="collapseTaxonomic" class="accordion-body collapse in">
916
							<div class="accordion-inner">
917
								<!--  the INPUT -->
918
								<div class="control-group">
919
									<label class="control-label" for="taxonRank">Taxonomic Rank</label>
920
									<div class="controls">
921
										<input name="taxonRank" id="taxonRank">
922
										<span class="help-block">(e.g., Species)</span>
923
									</div>
924
								</div>
925
								<div class="control-group">
926
									<label class="control-label" for="taxonName">Taxonomic Name</label>
927
									<div class="controls">
928
										<input name="taxonName" id="taxonName">
929
										<span class="help-block">(e.g., <i>Ursus arctos</i>)</span>
930
									</div>
931
								</div>
932
								<div class="control-group">
933
									<label class="control-label" for="addTaxonButton"></label>
934
									<div class="controls">
935
										<input type="button" class="btn" value="Add Taxon" onClick="addTaxon()">
936
									</div>
937
								</div>
938
								
939
								<div class="control-group">
940
									<label class="control-label" for="taxonTable"></label>
941
									<div class="controls">
942
										<table>
943
											<tr id="addTaxon">
944
												<td colspan="6">
945
											</tr>	
946
											[% numTaxa = 0 %]
947
									        [% IF taxaCount %]
948
									            [% numTaxa = taxaCount %]
949
									            <tr class="sectbody" id="taxonHRRow">
950
									                <td colSpan="6">
951
									                    <hr width = "85%"/>
952
									                </td>
953
									            </tr>
954
									        [% END %]
955
									        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
956
									    
957
									        [% cnt = 1 %]
958
									        [% WHILE cnt <= numTaxa%]        
959
									            <tr class="sectbody">
960
									                <td class="rightCol">
961
									                    <a style="cursor:pointer">
962
									                        <i onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
963
									                        class="icon-arrow-up"
964
									                        alt="Move Up"></i>
965
									                    </a>
966
									                    <a style="cursor:pointer">
967
									                        <i onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
968
									                        class="icon-arrow-down"
969
									                        alt="Move Down"></i>
970
									                    </a>
971
									                    <a style="cursor:pointer">
972
									                        <i class="icon-remove-sign"
973
									                        onClick="delRow(event)" alt="Delete"></i>
974
									                    </a>
975
									                </td>
976
									                [% SET rank = "taxonRankName${cnt}" %]
977
									                [% SET name = "taxonRankValue${cnt}" %]
978
									                <td colspan="5" align ="left" style="cursor:pointer"
979
									                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
980
									                    Rank: [%$rank%], Name: [%$name%]
981
									                    <input name="taxonName" type="hidden" value="[%$name%]"/>
982
									                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
983
									            </tr>
984
									            [% cnt = cnt + 1 %]
985
									        [% END %]
986
									
987
									     <tr class="sectbody" id="addtaxarow"> 
988
									        <td class="bordertop" valign="top" align="right"></td>
989
									        <td class="bordertop" align="left" colspan="5"></td>
990
									     </tr>
991
									     
992
									   </table>
993
									</div>
994
								</div>
995
								
996
								<div class="control-group">
997
									<label class="control-label" for="taxaAuth">Taxonomic Reference</label>
998
									<div class="controls">
999
										<textarea class="span8" rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea>
1000
										<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>
1001
									</div>
1002
								</div>
1003
								
1004
						    </div>
1005
						</div>
1006
						
1007
					[% END %]  
1008
						
1009
					[% IF modules.method == 'true' %]
1010
  
1011
						<!-- METHODS -->
1012
						<div class="accordion-heading">
1013
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseMethods">
1014
								Data Collection Methods  
1015
							</a>
1016
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods"><i class="icon-info-sign"></i></a>
1017
						</div>
1018
						<div id="collapseMethods" class="accordion-body collapse in">
1019
							<div class="accordion-inner">
1020
								<!--  the INPUT -->
1021
								<div class="control-group">
1022
									<label class="control-label" for="methodTitle">Method Title</label>
1023
									<div class="controls">
1024
										<input type="text" name="methodTitle" value="[%methodTitle%]">
1025
									</div>
1026
								</div>
1027
								<div class="control-group">
1028
									<label class="control-label" for="methodPara">Method Description</label>
1029
									<div class="controls">
1030
								        <table width="100%">
1031
										[% IF !methodPara %]
1032
											<tr><td><textarea class="span8" rows="6" cols="60" name="methodPara"></textarea></td></tr>
1033
								        [% END %]
1034
								        [% FOREACH para = methodPara %]
1035
								           <tr><td><textarea class="span8" rows="6" cols="60" name="methodPara">[% para %]</textarea></td></tr>
1036
								        [% END %]
1037
								        	<tr class="sectbody" id="addparabutton1">
1038
									    		<td align="left">
1039
									          		<input type="button" class="btn" value="Add Paragraph to Method Description" onClick="addParagraph()">
1040
									          	</td>
1041
											</tr>
1042
										</table>	
1043
									</div>
1044
								</div>
1045
								
1046
								<div class="control-group">
1047
									<label class="control-label" for="studyExtentDescription">Extent of Study Description</label>
1048
									<div class="controls">
1049
										<textarea class="span8" rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea>
1050
										<span class="help-block">
1051
									        Describe the temporal, spatial and taxonomic extent of the study,
1052
									        supplementing the information on coverage provided above.  
1053
									        For example, if the temporal coverage of the data is 1990-2000, you 
1054
									        might provide details about any years that were missed or the months 
1055
									        in which sampling occurred.</span>
1056
									</div>
1057
								</div>
1058
								
1059
								<div class="control-group">
1060
									<label class="control-label" for="samplingDescription">Sampling Description</label>
1061
									<div class="controls">
1062
										<textarea class="span8" rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea>
1063
										<span class="help-block">
1064
									        Describe the sampling design of the study.  For example, you might 
1065
        									describe the way in which treatments were assigned to sampling units.</span>
1066
									</div>
1067
								</div>
1068
								
1069
								
1070
						    </div>
1071
						</div>
1072
						
1073
					[% END %]
1074
											
1075
						<!-- DISTRIBUTION INFO -->
1076
						<div class="accordion-heading">
1077
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseDistribution">
1078
								Distribution Information  
1079
							</a>
1080
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation"><i class="icon-info-sign"></i></a>
1081
						</div>
1082
						<div id="collapseDistribution" class="accordion-body collapse in">
1083
							<div class="accordion-inner">
1084
								<!--  the INPUT -->
1085
								<!--
1086
								<div class="control-group">
1087
									<label class="control-label" for="identifier">Data Set Identifier</label>
1088
									<div class="controls">
1089
										<input type="text" name="identifier" value="[%identifier%]">
1090
										<span class="help-block">
1091
									     If available, please enter a name or number that uniquely identifies and
1092
									     describes concisely the data set. Alternatively, provide other pertinent
1093
									     information that can identify and locate the data set within your site's
1094
									     data management system.</span>
1095
									</div>
1096
								</div>
1097
								-->
1098
								
1099
								<!-- BEGIN BRL MULTIPLE ALTERNATE IDENTIFIERS -->							
1100
								<div class="control-group">
1101
									<label class="control-label" for="identifier">Alternate Identifier</label>
1102
									<div class="controls">
1103
										<input name="identifier" id="identifier">
1104
										<span class="help-block">
1105
									     If available, please enter a name or number that uniquely identifies and
1106
									     describes concisely the data set. Alternatively, provide other pertinent
1107
									     information that can identify and locate the data set within your site's
1108
									     data management system.</span>
1109
									</div>
1110
								</div>
1111
								<div class="control-group">
1112
									<label class="control-label" for="addIdentifierButton"></label>
1113
									<div class="controls">
1114
										<input type="button" class="btn" value="Add Identifier" onClick="addIdentifier()">
1115
									</div>
1116
								</div>
1117
								
1118
								<div class="control-group">
1119
									<label class="control-label" for="identifierTable"></label>
1120
									<div class="controls">
1121
										<table>
1122
											<tr id="addIdentifier">
1123
												<td colspan="6">
1124
											</tr>	
1125
											[% numIdentifier = 0 %]
1126
									        [% IF identifierCount %]
1127
									            [% numIdentifier = identifierCount %]
1128
									            <tr class="sectbody" id="identifierHRRow">
1129
									                <td colSpan="6">
1130
									                    <hr width = "85%"/>
1131
									                </td>
1132
									            </tr>
1133
									        [% END %]
1134
									        <input type="hidden" name="identifierCount" value="[%numIdentifier%]" id="identifierCount">
1135
									    
1136
									        [% cnt = 1 %]
1137
									        [% WHILE cnt <= numIdentifier%]        
1138
									            <tr class="sectbody">
1139
									                <td class="rightCol">
1140
									                    <a style="cursor:pointer">
1141
									                        <i onClick="cleanTextNodes('identifierHRRow', 'addidentifierrow');moveUpRow(event)"
1142
									                        class="icon-arrow-up"
1143
									                        alt="Move Up"></i>
1144
									                    </a>
1145
									                    <a style="cursor:pointer">
1146
									                        <i onClick="cleanTextNodes('identifierHRRow', 'addidentifierrow');moveDownRow(event, 'addidentifierrow')"
1147
									                        class="icon-arrow-down"
1148
									                        alt="Move Down"></i>
1149
									                    </a>
1150
									                    <a style="cursor:pointer">
1151
									                        <i class="icon-remove-sign"
1152
									                        onClick="delRow(event)" alt="Delete"></i>
1153
									                    </a>
1154
									                </td>
1155
									                [% SET id = "identifierValue${cnt}" %]
1156
									                <td colspan="5" align ="left" style="cursor:pointer"
1157
									                    onClick="identifierEditRow(event, 0, '[%$id%]')">
1158
									                    Identifier: [%$id%]
1159
									                    <input name="identifier" type="hidden" value="[%$id%]"/>
1160
									            </tr>
1161
									            [% cnt = cnt + 1 %]
1162
									        [% END %]
1163
									
1164
									     <tr class="sectbody" id="addidentifierrow"> 
1165
									        <td class="bordertop" valign="top" align="right"></td>
1166
									        <td class="bordertop" align="left" colspan="5"></td>
1167
									     </tr>
1168
									     
1169
									   </table>
1170
									</div>
1171
								</div>
1172
								
1173
								<!-- END BRL ALTERNATE IDENTIFIERS -->
1174
								
1175
								
1176
								<!--
1177
								<div class="control-group">
1178
									<label class="control-label" for="identifier">Data Set Identifier</label>
1179
									<div class="controls">
1180
										<input type="text" name="identifier" value="[%identifier%]">
1181
										<span class="help-block">
1182
									     If available, please enter a name or number that uniquely identifies and
1183
									     describes concisely the data set. Alternatively, provide other pertinent
1184
									     information that can identify and locate the data set within your site's
1185
									     data management system.</span>
1186
									</div>
1187
								</div>
1188
								-->
1189
								
1190
								<!-- BEGIN BRL MULTIPLE ALTERNATE IDENTIFIERS -->							
1191
								<div class="control-group">
1192
									<label class="control-label" for="identifier">Alternate Identifier</label>
1193
									<div class="controls">
1194
										<input name="identifier" id="identifier">
1195
										<span class="help-block">
1196
									     If available, please enter a name or number that uniquely identifies and
1197
									     describes concisely the data set. Alternatively, provide other pertinent
1198
									     information that can identify and locate the data set within your site's
1199
									     data management system.</span>
1200
									</div>
1201
								</div>
1202
								<div class="control-group">
1203
									<label class="control-label" for="addIdentifierButton"></label>
1204
									<div class="controls">
1205
										<input type="button" class="btn" value="Add Identifier" onClick="addIdentifier()">
1206
									</div>
1207
								</div>
1208
								
1209
								<div class="control-group">
1210
									<label class="control-label" for="identifierTable"></label>
1211
									<div class="controls">
1212
										<table>
1213
											<tr id="addIdentifier">
1214
												<td colspan="6">
1215
											</tr>	
1216
											[% numIdentifier = 0 %]
1217
									        [% IF identifierCount %]
1218
									            [% numIdentifier = identifierCount %]
1219
									            <tr class="sectbody" id="identifierHRRow">
1220
									                <td colSpan="6">
1221
									                    <hr width = "85%"/>
1222
									                </td>
1223
									            </tr>
1224
									        [% END %]
1225
									        <input type="hidden" name="identifierCount" value="[%numIdentifier%]" id="identifierCount">
1226
									    
1227
									        [% cnt = 1 %]
1228
									        [% WHILE cnt <= numIdentifier%]        
1229
									            <tr class="sectbody">
1230
									                <td class="rightCol">
1231
									                    <a style="cursor:pointer">
1232
									                        <i onClick="cleanTextNodes('identifierHRRow', 'addidentifierrow');moveUpRow(event)"
1233
									                        class="icon-arrow-up"
1234
									                        alt="Move Up"></i>
1235
									                    </a>
1236
									                    <a style="cursor:pointer">
1237
									                        <i onClick="cleanTextNodes('identifierHRRow', 'addidentifierrow');moveDownRow(event, 'addidentifierrow')"
1238
									                        class="icon-arrow-down"
1239
									                        alt="Move Down"></i>
1240
									                    </a>
1241
									                    <a style="cursor:pointer">
1242
									                        <i class="icon-remove-sign"
1243
									                        onClick="delRow(event)" alt="Delete"></i>
1244
									                    </a>
1245
									                </td>
1246
									                [% SET id = "identifierValue${cnt}" %]
1247
									                <td colspan="5" align ="left" style="cursor:pointer"
1248
									                    onClick="identifierEditRow(event, 0, '[%$id%]')">
1249
									                    Identifier: [%$id%]
1250
									                    <input name="identifier" type="hidden" value="[%$id%]"/>
1251
									            </tr>
1252
									            [% cnt = cnt + 1 %]
1253
									        [% END %]
1254
									
1255
									     <tr class="sectbody" id="addidentifierrow"> 
1256
									        <td class="bordertop" valign="top" align="right"></td>
1257
									        <td class="bordertop" align="left" colspan="5"></td>
1258
									     </tr>
1259
									     
1260
									   </table>
1261
									</div>
1262
								</div>
1263
								
1264
								<!-- END BRL ALTERNATE IDENTIFIERS --->
1265
								
1266
								
1267
								<div class="control-group">
1268
									<label class="control-label" for="dataMedium">*Data Medium</label>
1269
									<div class="controls">
1270
										[% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
1271
											<label class="radio">
1272
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED />
1273
									            Digital
1274
									        </label>
1275
								        [%ELSE%]
1276
								        	<label class="radio">
1277
									            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" />
1278
									            Digital
1279
									        </label> 
1280
								        [% END %]
1281
								        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
1282
								        	<label class="radio">
1283
								           		<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED />
1284
								           		Hardcopy
1285
								           	</label>
1286
								        [%ELSE%]
1287
								        	<label class="radio">
1288
												<input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" />
1289
								           		Hardcopy
1290
								           	</label>
1291
								        [% END %]
1292
								        [% IF form == 're_entry' && dataMedium == "other" %]
1293
								        	<label class="radio">
1294
									           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED />
1295
									           Other
1296
									        </label>    
1297
								        [%ELSE%]
1298
								        	<label class="radio">
1299
								           		<input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other" />
1300
								           		Other
1301
								           	</label>									           		
1302
								        [% END %]
1303
								  		<input type="text" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM"></input>
1304
									</div>
1305
								</div>
1306
								
1307
								<div class="control-group">
1308
									<label class="control-label" for="useConstraints">*Usage Rights</label>
1309
									<div class="controls">
1310
                    <!-- Use Creative Commons license options -->
1311
                    [% IF show.cclicenses == 'true' %]
1312
                      <!-- Add CC-0 option -->
1313
                      [% IF form == 're_entry' && useConstraints == 'Public Domain (CC-0)' %]
1314
                        <label class="radio">
1315
                          <input type="radio" name="useConstraints" value="Public Domain (CC-0)" CHECKED />
1316
                          Creative Commons Public Domain
1317
                          <div class="btn btn-mini popover-target"
1318
                              data-original-title="Public Domain (CC-0)"
1319
                              data-toggle="popover"
1320
                              data-trigger="click"
1321
                              data-placement="top"
1322
                              data-html="true"
1323
                              data-content="By dedicating this work to the public domain, you waive your interest in your work and place the work as completely as possible in the public domain so others may freely use the work without restriction under copyright or database law. Attribution for your work is still expected according to norms in your research field. For details, see the <a href='https://creativecommons.org/publicdomain/zero/1.0/'>Creative Commons Public Domain Dedication</a>."
1324
                              title="">CC-0 1.0</div>
1325
                        </label>
1326
                        
1327
                      [% ELSE %]
1328
                        <label class="radio">
1329
                          <input type="radio" name="useConstraints" value="Public Domain (CC-0)" />
1330
                          Creative Commons Public Domain
1331
                          <div class="btn btn-mini popover-target"
1332
                              data-original-title="Public Domain (CC-0)"
1333
                              data-toggle="popover"
1334
                              data-trigger="click"
1335
                              data-placement="top"
1336
                              data-html="true"
1337
                              data-content="By dedicating this work to the public domain, you waive your interest in your work and place the work as completely as possible in the public domain so others may freely use the work without restriction under copyright or database law. Attribution for your work is still expected according to norms in your research field. For details, see the <a href='https://creativecommons.org/publicdomain/zero/1.0/'>Creative Commons Public Domain Dedication</a>."
1338
                              title="">CC-0 1.0</div>
1339
                        </label>
1340
                        
1341
                      [% END %]
1342
                      
1343
                      <!-- Add CC-BY option -->
1344
                      [% IF form == 're_entry' && useConstraints == 'Attribution (CC-BY)' %]
1345
                        <label class="radio">
1346
                          <input type="radio" name="useConstraints" value="Attribution (CC-BY)" CHECKED />
1347
                          Creative Commons Attribution
1348
                          <div class="btn btn-mini popover-target"
1349
                              data-original-title="Attribution (CC-BY)"
1350
                              data-toggle="popover"
1351
                              data-trigger="click"
1352
                              data-placement="top"
1353
                              data-html="true"
1354
                              data-content="By licensing this work, you let others copy, distribute, display, and perform your copyrighted work, and derivative works based upon it, but only if they give you appropriate credit. For details, see the <a href='https://creativecommons.org/licenses/by/4.0/'>Creative Commons Attribution 4.0 License</a>."
1355
                              title="">CC-BY 4.0</div>
1356
                        </label>
1357
                        
1358
                      [% ELSE %]
1359
                        <label class="radio">
1360
                          <input type="radio" name="useConstraints" value="Attribution (CC-BY)" />
1361
                          Creative Commons Attribution
1362
                          <div class="btn btn-mini popover-target"
1363
                              data-original-title="Attribution (CC-BY)"
1364
                              data-toggle="popover"
1365
                              data-trigger="click"
1366
                              data-placement="top"
1367
                              data-html="true"
1368
                              data-content="By licensing this work, you let others copy, distribute, display, and perform your copyrighted work, and derivative works based upon it, but only if they give you appropriate credit. For details, see the <a href='https://creativecommons.org/publicdomain/zero/1.0/'>Creative Commons Attribution 4.0 License</a>."
1369
                              title="">CC-BY 4.0</div>
1370
                        </label>
1371
                                              
1372
                      [% END %]
1373
                      
1374
                    <!-- Or use custom license options -->
1375
                    [% ELSE %]
1376
                      [% IF form == 're_entry' && useConstraints == "no restrictions" %]
1377
                      	<label class="radio">      
1378
                      		<input type="radio" name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED />
1379
                      		No restrictions
1380
                      	</label>	
1381
                      [%ELSE%]
1382
                      	<label class="radio">
1383
                                <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
1384
                                No restrictions
1385
                            </label>
1386
                      [%END%]
1387
                      
1388
                      [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]   
1389
                      	<label class="radio">   
1390
                              <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED />
1391
                              Obtain permission from data set owner(s)
1392
                          </label> 
1393
                      [%ELSE%]
1394
                      	<label class="radio">
1395
                                <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" />
1396
                                Obtain permission from data set owner(s)
1397
                            </label>
1398
                      [%END%]
1399
                      
1400
                      [% IF form == 're_entry' && useConstraints == "other" %] 
1401
                      	<label class="radio">     
1402
                      		<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED />
1403
                      	    Other
1404
                      	</label>    
1405
                        [%ELSE%]
1406
                        	<label class="radio">
1407
                      		<input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" />
1408
                      		Other
1409
                      	</label>	
1410
                        [%END%]
1411
                      <input type="text" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49" />
1412
                    [% END %]
1413
                  </div>
1414
								</div>
1415
								
1416
								<div class="control-group">
1417
									<label class="control-label" for="addComments">Additional Information</label>
1418
									<div class="controls">
1419
										<textarea class="span8" rows="6" cols="60" name="addComments">[%addComments%]</textarea>
1420
									</div>
1421
								</div>
1422
								
1423
						    </div>
1424
						</div>
1425
						
1426
						
1427
					[% IF modules.upload == 'true' %]	
1428
						
1429
						<!-- DATA UPLOAD -->
1430
						<div class="accordion-heading">
1431
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseUploadData">
1432
								Upload Data  
1433
							</a>
1434
							<a data-toggle="modal" data-target="#myModal" role="button" href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#UploadData"><i class="icon-info-sign"></i></a>
1435
						</div>
1436
						<div id="collapseUploadData" class="accordion-body collapse in">
1437
							<div class="accordion-inner">
1438
								
1439
								<!--  the INPUT -->
1440
								<div class="control-group">
1441
									<label class="control-label">Upload Data File</label>
1442
									<div class="controls">
1443
										<input type="file" id="file_element" name="file_1" />
1444
										[% IF form == 're_entry' && upCount %]
1445
											[% cnt = 0 %]
1446
											[% WHILE cnt < upCount %]
1447
												[% SET fileSum = "upload_${cnt}" %]
1448
												[% SET fileName = "uploadname_${cnt}" %]
1449
												[% SET fileType = "uploadtype_${cnt}" %] 
1450
												[% SET filePerm = "uploadperm_${cnt}" %]
1451
												[% IF fileSum %]
1452
													<input type="hidden" name="[%fileSum%]" value="[% $fileSum %]" /> 
1453
													<input type="hidden" name="[%fileName%]" value="[% $fileName %]" /> 
1454
													<input type="hidden" name="[%fileType%]" value="[% $fileType %]" /> 
1455
												[% END %]
1456
												[% cnt = cnt + 1 %]
1457
											[% END %]
1458
										<input type="hidden" id="upCount" name="upCount" value="[%upCount%]" />
1459
										[% END %]
1460
						
1461
										<input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]" />
1462
									</div>
1463
								</div>
1464
								<table class="table table-striped table-bordered" id="files_list">
1465
									[% IF form == 're_entry' && upCount %]
1466
										[% cnt = 0 %]
1467
									
1468
										[% WHILE cnt < upCount %]
1469
											[% SET fileName = "uploadname_${cnt}" %]
1470
											[% SET filePerm = "uploadperm_${cnt}" %]
1471
											[% IF $filePerm == 'public' %]
1472
												[% SET perm_a = "checked" %]
1473
												[% SET perm_b = "" %]
1474
											[% ELSE %]
1475
												[% SET perm_a = "" %]
1476
												[% SET perm_b = "checked" %]
1477
											[% END %]
1478
											[% IF fileName %]
1479
													<tr>
1480
														<td>[% $fileName %]</td>
1481
														<td>
1482
															<input type="radio" name="[% filePerm %]" value="public" [% perm_a %] />&nbsp;Public
1483
														</td>
1484
														<td>	
1485
															<input type="radio" name="[% filePerm %]" value="private" [% perm_b %] />&nbsp;Private
1486
														</td>
1487
														<td>	
1488
															<input type="button" class="btn" value="Delete" onclick="deleteFile(event, [% fileName %]);"/>
1489
														</td>
1490
													</tr>
1491
										[% END %]
1492
									
1493
											[% cnt = cnt + 1 %]
1494
									  [% END %]
1495
									[% END %]
1496
								</table>
1497
								  
1498
								<script language="JavaScript" type="text/JavaScript">
1499
									var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
1500
								    multi_selector.addElement( document.getElementById( 'file_element' ) );
1501
								</script>
1502
							
1503
								
1504
						    </div>
1505
						</div>
1506
						
1507
					[% END %]
1508
						  
1509
              
1510
    					</div>
1511
					</div> <!-- end the accordinan -->
1512
					
1513
					<input id="entryFormSubmit" name="submit" type="button" class="btn" onClick="sortInputTags();" value="Submit Data Set Description">
1514
				</form>
1515
				
1516
			</div> <!-- end the row -->
1517
			
1518
		</div>
1519
		
1520
	</article>