Revision 3422
Added by walbridge over 16 years ago
confirmData.tmpl | ||
---|---|---|
267 | 267 |
</font></p> |
268 | 268 |
</td> |
269 | 269 |
</tr> |
270 |
[% IF latDeg2 %] |
|
270 | 271 |
<tr> |
271 | 272 |
<td valign="TOP" colspan="4"> |
272 | 273 |
<p><span class="label">The second lat/long pair:</span></p> |
... | ... | |
308 | 309 |
</font></p> |
309 | 310 |
</td> |
310 | 311 |
</tr> |
312 |
[% END %] |
|
311 | 313 |
</table> |
312 | 314 |
[% END %] |
313 | 315 |
|
... | ... | |
341 | 343 |
<p><span class="label">Sampling Description:</span> [%samplingDescription%]</p> |
342 | 344 |
[% END %] |
343 | 345 |
|
346 |
[% IF hasUpload == 'true' && upCount %] |
|
347 |
<hr> |
|
348 |
<a name="Upload Data"></a> |
|
349 |
<p><span class="sectionnames">UPLOAD DATA</span></p> |
|
350 |
|
|
351 |
[% cnt = 0 %] |
|
352 |
[% WHILE cnt < upCount %] |
|
353 |
[% SET fileName = "uploadname_${cnt}" %] |
|
354 |
[% cnt = cnt + 1 %] |
|
355 |
|
|
356 |
<p><span class="label">File #[% cnt %]:</span> [% $fileName %] </p> |
|
357 |
[% END %] |
|
358 |
[% END %] |
|
344 | 359 |
<hr> |
345 | 360 |
<a name="DataSetContactAddress"></a> |
346 | 361 |
<p><span class="sectionnames">DATA SET CONTACT</span> |
... | ... | |
419 | 434 |
<input type="hidden" name="hasTemporal" value="[% hasTemporal %]"> |
420 | 435 |
<input type="hidden" name="hasTaxonomic" value="[% hasTaxonomic %]"> |
421 | 436 |
<input type="hidden" name="hasMethod" value="[% hasMethod %]"> |
437 |
<input type="hidden" name="hasUpload" value="[% hasUpload %]"> |
|
422 | 438 |
<input type="hidden" name="temporalRequired" value="[% temporalRequired %]"> |
423 | 439 |
<input type="hidden" name="spatialRequired" value="[% spatialRequired %]"> |
424 | 440 |
<input type="hidden" name="contactEmailAddressRequired" value="[% contactEmailAddressRequired %]"> |
... | ... | |
529 | 545 |
[% END %] |
530 | 546 |
<input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]"> |
531 | 547 |
<input type="hidden" name="samplingDescription" value="[%samplingDescription%]"> |
548 |
<input type="hidden" name="fileCount" value="[%fileCount%]"> |
|
549 |
<input type="hidden" name="upCount" value="[%upCount%]"> |
|
550 |
[% fCount = 0 %] |
|
551 |
[% IF upCount > 0 %] |
|
552 |
[% fCount = upCount %] |
|
553 |
[% END %] |
|
532 | 554 |
|
555 |
[% cnt = 0 %] |
|
556 |
[% WHILE cnt < fCount %] |
|
557 |
[% SET fileSum = "upload_${cnt}" %] |
|
558 |
[% SET fileName = "uploadname_${cnt}" %] |
|
559 |
[% SET fileType = "uploadtype_${cnt}" %] |
|
560 |
|
|
561 |
[% IF fileSum %] |
|
562 |
<input type="hidden" name="[% fileSum %]" value="[% $fileSum %]"> |
|
563 |
<input type="hidden" name="[% fileName %]" value="[% $fileName %]"> |
|
564 |
<input type="hidden" name="[% fileType %]" value="[% $fileType %]"> |
|
565 |
[% END %] |
|
566 |
[% cnt = cnt + 1 %] |
|
567 |
[% END %] |
|
533 | 568 |
</td><tr></table> |
534 | 569 |
|
535 | 570 |
[% IF userLoggedIn != 'true' %] |
Also available in: Unified diff
Added submission of data files to the registry. New parameter 'hasUpload' can be set on a per-skin basis to enable the uploading of data objects to be associated with a metadata document. NCEAS skin is using this by default, to be changed in the future for other skins.
Refactored XML creation in register-dataset.cgi to use function stubs, to allow us flexibility in document creation.