Commit 327240f0 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

simplify darwincore

parent ef357f54
......@@ -581,68 +581,79 @@
<xsl:for-each select="dwr:DarwinRecordSet">
<xsl:for-each select="./dwc:Occurrence">
<xsl:variable name="occID" select="./dwc:occurrenceID"/>
<occurrenceHasID>
<xsl:value-of select="$occID"/>
</occurrenceHasID>
<occurrenceRecordedBy>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:recordedBy"/>
<xsl:value-of select="./dwc:recordedBy"/>
</occurrenceRecordedBy>
<occurrenceBasis>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:basisOfRecord"/>
<xsl:value-of select="./dwc:basisOfRecord"/>
</occurrenceBasis>
<occurrenceCount>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:organismQuantity"/><xsl:text> </xsl:text><xsl:value-of select="./dwc:organismQuantityType"/>
<xsl:value-of select="./dwc:organismQuantity"/><xsl:text> </xsl:text><xsl:value-of select="./dwc:organismQuantityType"/>
</occurrenceCount>
<occurrenceRemarks>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:occurrenceRemarks"/>
<xsl:value-of select="./dwc:occurrenceRemarks"/>
</occurrenceRemarks>
</xsl:for-each>
<xsl:for-each select="./dwc:Event">
<xsl:variable name="occID" select="./dwc:occurrenceID"/>
<occurrenceSamplingProtocol>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:samplingProtocol"/>
<xsl:value-of select="./dwc:samplingProtocol"/>
</occurrenceSamplingProtocol>
<occurrenceSamplingEffort>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:samplingEffort"/>
<xsl:value-of select="./dwc:samplingEffort"/>
</occurrenceSamplingEffort>
</xsl:for-each>
<xsl:for-each select="./dwc:Organism">
<xsl:variable name="orgID" select="./dwc:organismID"/>
<xsl:variable name="taxonID" select="./dwc:taxonID"/>
<organismHasID>
<xsl:value-of select="$orgID"/>
</organismHasID>
<organismBelongsToTaxon>
<xsl:value-of select="$orgID"/>|<xsl:value-of select="$taxonID"/>
<xsl:value-of select="$taxonID"/>
</organismBelongsToTaxon>
<organismRemarks>
<xsl:value-of select="$orgID"/>|<xsl:value-of select="./dwc:organismRemarks"/>
<xsl:value-of select="./dwc:organismRemarks"/>
</organismRemarks>
</xsl:for-each>
<xsl:for-each select="./dwc:Identification">
<xsl:variable name="occID" select="./dwc:occurrenceID"/>
<xsl:variable name="identID" select="./dwc:identificationID"/>
<identificationHasID>
<xsl:value-of select="$identID"/>
</identificationHasID>
<identificationBelongsToOccurrence>
<xsl:value-of select="$identID"/>|<xsl:value-of select="$occID"/>
<xsl:value-of select="$occID"/>
</identificationBelongsToOccurrence>
<identificationBy>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identifiedBy"/>
<xsl:value-of select="./dwc:identifiedBy"/>
</identificationBy>
<identificationRemarks>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identificationRemarks"/>
<xsl:value-of select="./dwc:identificationRemarks"/>
</identificationRemarks>
<identificationReferences>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identificationReferences"/>
<xsl:value-of select="./dwc:identificationReferences"/>
</identificationReferences>
</xsl:for-each>
<xsl:for-each select="./dwc:Taxon">
<xsl:variable name="identID" select="./dwc:identificationID"/>
<xsl:variable name="taxonID" select="./dwc:taxonID"/>
<taxonHasID>
<xsl:value-of select="$taxonID"/>
</taxonHasID>
<taxonBelongsToIdentification>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="$identID"/>
<xsl:value-of select="$identID"/>
</taxonBelongsToIdentification>
<taxonVernacularName>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:vernacularName"/>
<xsl:value-of select="./dwc:vernacularName"/>
</taxonVernacularName>
<taxonScientificName>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:scientificName"/>
<xsl:value-of select="./dwc:scientificName"/>
</taxonScientificName>
<taxonRemarks>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:taxonRemarks"/>
<xsl:value-of select="./dwc:taxonRemarks"/>
</taxonRemarks>
</xsl:for-each>
</xsl:for-each>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment