Project

General

Profile

« Previous | Next » 

Revision 1985

Added taxonomic coverage and authority fields, and fixed a bug in reentry
with the methods fields. Now we are collecting information on all of the
additional fields Sandy requested except for a general temporal description,
which doesn't fit neatly in EML. Will need to consider how to accomodate
this need.

View differences:

lib/style/common/templates/entryForm.tmpl
634 634
  <p align="left"><font size="4" color="0000ff"><b><font size="-1">
635 635
       <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract"
636 636
          target="guide">DATA SET ABSTRACT</a>
637
	</font></b></font> 
637
	</font></b></font></p>
638 638

  
639 639
  <table width="760" border="0" cellspacing="0" cellpadding="9"
640 640
bgcolor="#c6d6e7">
......
1006 1006
  <a
1007 1007
   href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData"
1008 1008
   target="guide">TEMPORAL COVERAGE OF DATA</a>
1009
	</font></b></font> 
1009
	</font></b></font></p>
1010 1010
  <table cellspacing="0" border="0" cellpadding="9" width="760"
1011 1011
bgcolor="#c6d6e7">
1012 1012
    <tr> 
......
1064 1064
    <tr>
1065 1065
    <td valign="top" colspan="4">
1066 1066
    <span class="required">*</span><span class="label">Geographic Description</span><br>
1067
    Enter a general description of the geographic area in which the data were collected.
1068
    This can be a simple place name (e.g., Santa Barbara) or a fuller description.<br>
1067 1069
    <textarea rows="3" cols="80" name="geogdesc">[% geogdesc %]</textarea>
1068 1070
    </td>
1069 1071
    </tr>
......
1189 1191
    </tr>
1190 1192
  </table>
1191 1193

  
1192
  [% IF cfg == 'nceas' %]
1193 1194
  <p align="left">
1194 1195
  <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage" target="guide">TAXONOMIC COVERAGE OF DATA</a>
1195 1196
   </p>
......
1245 1246

  
1246 1247
     </td>
1247 1248
     </tr>
1249
     <tr> 
1250
        <td colspan="2">
1251
        <p class="label">Taxonomic Authority</p>
1252
        <p>List the source(s) used for identifying and naming taxa in this
1253
        list.  These sources should provide comprehensive information about
1254
        the taxonomic concepts indicated by the names listed.</p>
1255
        <textarea rows="5" cols="80" name="taxaAuth">[% taxaAuth %]</textarea>
1256
        </td>
1257
     </tr>
1248 1258
     </tbody>
1249 1259
   </table>
1250
  [% END %]
1251 1260

  
1252
  [% IF cfg == 'nceas' %]
1253 1261
  <p align="left">
1254 1262
  <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide">METHODS</a>
1255 1263
   </p>
......
1284 1292
      </td>
1285 1293
     </tbody>
1286 1294
   </table>
1287
  [% END %]
1288 1295

  
1289 1296
  <p align="left">
1290 1297
  <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide">DATA SET CONTACT ADDRESS</a>
......
1411 1418
  <p align="left">
1412 1419
  <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide">DISTRIBUTION INFORMATION</a>
1413 1420
  </p>
1414
  <table cellspacing="0" border="0" cellpadding="9" width="760"
1415
bgcolor="#c6d6e7">
1421
  <table cellspacing="0" border="0" cellpadding="9" width="760" bgcolor="#c6d6e7">
1416 1422
    <tr> 
1417 1423
      <td width="50%" valign="TOP"> 
1418

  
1419

  
1420 1424
        <p align="left"><font size="-1"> 
1421 1425
          <input type="TEXT" name="identifier" value="[%identifier%]" size="40">
1422
  <b><a
1423
   href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Site-specificCode"
1426
  <b><a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Site-specificCode"
1424 1427
   target="guide">Dataset Name or Identifier (important)</a> </b></font></p>
1425 1428

  
1426 1429
        <p><font size="-1"><b><font color="#ff0000">*</font>Data Medium:</b></font></p>
lib/style/common/templates/confirmData.tmpl
490 490
    [% END %]
491 491
    <hr>
492 492
    <a name="Taxonomic Coverage"></a>
493
    <p><b><font size="4" color="#0000ff">TAXONOMIC COVERAGE</font></b></p>
493 494
    [% cnt = 1 %]
494 495
    [% WHILE cnt <= numTaxa %]
495 496
        [% SET trn = "taxonRankName${cnt}" %]
......
497 498
        <p><b><font size="-1">Taxon:</font></b>  [% $trn %]: [% $trv %]</p>
498 499
        [% cnt = cnt + 1 %]
499 500
     [% END %]
501
     <p><b><font size="-1">Authority:</font></b>  [% taxaAuth %]</p>
500 502

  
501
[% IF cfg == 'nceas' %]
502 503
    <hr>
503 504
    <a name="Methods"></a>
505
    <p><b><font size="4" color="#0000ff">METHODS</font></b></p>
504 506
    <p><b><font size="-1">Method Title:</font></b>  [%methodTitle%]</p>
505 507
    [% FOREACH para = methodPara %]
506 508
        <p><b><font size="-1">Paragraph:</font></b>  [%para%] </p>
507 509
    [% END %]
508
[% END %]
509 510

  
510 511
<hr>
511 512
<a name="DataSetContactAddress"></a>
......
718 719
      <input type="hidden" name="[% trv %]" value="[% $trv %]">
719 720
      [% cnt = cnt + 1 %]
720 721
  [% END %]
722
  <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
721 723

  
722
  [% IF cfg == 'nceas' %]
723
      <input type="hidden" name="methodTitle" value="[%methodTitle%]">
724
      [% FOREACH para = methodPara %]
725
          <input type="hidden" name="methodPara" value="[%para%]">
726
      [% END %]
724
  <input type="hidden" name="methodTitle" value="[%methodTitle%]">
725
  [% FOREACH para = methodPara %]
726
      <input type="hidden" name="methodPara" value="[%para%]">
727 727
  [% END %]
728

  
728 729
<table cellspacing="0" border="0" cellpadding="9" width="800" bgcolor="#C6d6e7">
729 730
  <tr> 
730 731
    <td> 
src/perl/register-dataset.cgi
1139 1139
                    if (! $foundFirstTaxon) {
1140 1140
                        $doc .= "<taxonomicCoverage>\n";
1141 1141
                        $foundFirstTaxon = 1;
1142
                        if (hasContent($FORM::taxaAuth)) {
1143
                            $doc .= "<generalTaxonomicCoverage>".$FORM::taxaAuth."</generalTaxonomicCoverage>\n";
1144
                        }
1142 1145
                    }
1143 1146
                    $doc .= "<taxonomicClassification>\n";
1144 1147
                    $doc .= "  <taxonRankName>".param($trn)."</taxonRankName>\n";
......
1707 1710
        errMoreThanOne("coverage");
1708 1711
    } else {
1709 1712
        foreach $node ($results->get_nodelist) {
1710
            dontOccur($node, "./temporalCoverage/rangeOfDates/beginDate/time|./temporalCoverage/rangeOfDates/beginDate/alternativeTimeScale|./temporalCoverage/rangeOfDates/endDate/time|./temporalCoverage/rangeOfDates/endDate/alternativeTimeScale|./taxonomicCoverage/taxonomicSystem|./taxonomicCoverage/generalTaxonomicCoverage|./taxonomicCoverage/taxonomicClassification/commonName|./taxonomicCoverage/taxonomicClassification/taxonomicClassification|./geographicCoverage/datasetGPolygon|./geographicCoverage/boundingCoordinates/boundingAltitudes", "temporalCoverage/rangeOfDates/beginDate/time, /temporalCoverage/rangeOfDates/beginDate/alternativeTimeScale, /temporalCoverage/rangeOfDates/endDate/time, /temporalCoverage/rangeOfDates/endDate/alternativeTimeScale, /taxonomicCoverage/taxonomicSystem, /taxonomicCoverage/generalTaxonomicCoverage, /taxonomicCoverage/taxonomicClassification/commonName, /taxonomicCoverage/taxonomicClassification/taxonomicClassification, /geographicCoverage/datasetGPolygon, /geographicCoverage/boundingCoordinates/boundingAltitudes");
1713
            dontOccur($node, "./temporalCoverage/rangeOfDates/beginDate/time|./temporalCoverage/rangeOfDates/beginDate/alternativeTimeScale|./temporalCoverage/rangeOfDates/endDate/time|./temporalCoverage/rangeOfDates/endDate/alternativeTimeScale|./taxonomicCoverage/taxonomicSystem|./taxonomicCoverage/taxonomicClassification/commonName|./taxonomicCoverage/taxonomicClassification/taxonomicClassification|./geographicCoverage/datasetGPolygon|./geographicCoverage/boundingCoordinates/boundingAltitudes", "temporalCoverage/rangeOfDates/beginDate/time, /temporalCoverage/rangeOfDates/beginDate/alternativeTimeScale, /temporalCoverage/rangeOfDates/endDate/time, /temporalCoverage/rangeOfDates/endDate/alternativeTimeScale, /taxonomicCoverage/taxonomicSystem, /taxonomicCoverage/taxonomicClassification/commonName, /taxonomicCoverage/taxonomicClassification/taxonomicClassification, /geographicCoverage/datasetGPolygon, /geographicCoverage/boundingCoordinates/boundingAltitudes");
1711 1714

  
1712 1715
            $tempResult = $node->findnodes('./temporalCoverage');
1713 1716
            if ($tempResult->size > 1) {
......
1820 1823
                $$templateVars{"taxonRankValue".$taxonIndex} = $taxonRankValue;
1821 1824
            }
1822 1825
            $$templateVars{'taxaCount'} = $taxonIndex;
1826
            my $taxaAuth = findValue($node, "./taxonomicCoverage/generalTaxonomicCoverage");
1827
            $$templateVars{'taxaAuth'} = $taxaAuth;
1823 1828
        }
1824 1829
    }
1825 1830
    dontOccur($doc, "./purpose", "purpose");
......
2294 2299
            }
2295 2300
        }
2296 2301
    }
2302
    $$templateVars{'taxaAuth'} = $FORM::taxaAuth;
2297 2303

  
2298 2304
    $$templateVars{'methodTitle'} = $FORM::methodTitle;
2299 2305
    $$templateVars{'methodPara'} = \@FORM::methodPara;
......
2466 2472
    $$templateVars{'longMin2'} = $FORM::longMin2;
2467 2473
    $$templateVars{'longSec2'} = $FORM::longSec2;
2468 2474
    $$templateVars{'hemisphLong2'} = $FORM::hemisphLong2;
2469
    if ($FORM::cfg eq "nceas") {
2470
        $$templateVars{'methodsTitle'} = $FORM::methodsTitle;
2471
        $$templateVars{'methodsPara'} = \@FORM::methodsPara;
2475
    $$templateVars{'taxaCount'} = $FORM::taxaCount;
2476
    foreach my $trn (param()) {
2477
        if ($trn =~ /taxonRankName/) {
2478
            my $taxIndex = $trn;
2479
            $taxIndex =~ s/taxonRankName//; # get the index of the parameter 0, ..., 10
2480
            my $trv = "taxonRankValue".$taxIndex;
2481
            if ( $taxIndex =~ /[0-9]/ ){
2482
                if (hasContent(param($trn)) && hasContent(param($trv))) {
2483
                    debug("Registry processing taxon: $trn = ".param($trn)." $trv = ".param($trv));
2484
                    $$templateVars{$trn} = param($trn);
2485
                    $$templateVars{$trv} = param($trv);
2486
                }
2487
            }
2488
        }
2472 2489
    }
2490
    $$templateVars{'taxaAuth'} = $FORM::taxaAuth;
2491
    $$templateVars{'methodTitle'} = $FORM::methodTitle;
2492
    $$templateVars{'methodPara'} = \@FORM::methodPara;
2473 2493
    $$templateVars{'docid'} = $FORM::docid;
2474 2494

  
2475 2495
    $$templateVars{'form'} = 're_entry';

Also available in: Unified diff