Project

General

Profile

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

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

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