Commit c741de5d authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Add version info, structure Darwin Core

parent e38cc98a
......@@ -579,9 +579,72 @@
</xsl:for-each>
<xsl:for-each select="dwr:DarwinRecordSet">
<darwinCore>
<xsl:value-of select="."/>
</darwinCore>
<xsl:for-each select="./dwc:Occurrence">
<xsl:variable name="occID" select="./dwc:occurrenceID"/>
<occurrenceRecordedBy>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:recordedBy" as="xs:string?"/>
</occurrenceRecordedBy>
<occurrenceBasis>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:basisOfRecord" as="xs:string?"/>
</occurrenceBasis>
<occurrenceCount>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:organismQuantity" as="xs:string?"/><xsl:text> </xsl:text><xsl:value-of select="./dwc:organismQuantityType" as="xs:string?"/>
</occurrenceCount>
<occurrenceRemarks>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:occurrenceRemarks" as="xs:string?"/>
</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" as="xs:string?"/>
</occurrenceSamplingProtocol>
<occurrenceSamplingEffort>
<xsl:value-of select="$occID"/>|<xsl:value-of select="./dwc:samplingEffort" as="xs:string?"/>
</occurrenceSamplingEffort>
</xsl:for-each>
<xsl:for-each select="./dwc:Organism">
<xsl:variable name="orgID" select="./dwc:organismID"/>
<xsl:variable name="taxonID" select="./dwc:taxonID"/>
<organismBelongsToTaxon>
<xsl:value-of select="$organismID"/>|<xsl:value-of select="$taxonID"/>
</organismBelongsToTaxon>
<organismRemarks>
<xsl:value-of select="$organismID"/>|<xsl:value-of select="./dwc:organismRemarks" as="xs:string?"/>
</organismRemarks>
</xsl:for-each>
<xsl:for-each select="./dwc:Identification">
<xsl:variable name="occID" select="./dwc:occurrenceID"/>
<xsl:variable name="identID" select="./dwc:identificationID"/>
<identificationBelongsToOccurrence>
<xsl:value-of select="$identID"/>|<xsl:value-of select="$occID"/>
</identificationBelongsToOccurrence>
<identificationBy>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identifiedBy" as="xs:string?"/>
</identificationBy>
<identificationRemarks>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identificationRemarks" as="xs:string?"/>
</identificationRemarks>
<identificationReferences>
<xsl:value-of select="$identID"/>|<xsl:value-of select="./dwc:identificationReferences" as="xs:string?"/>
</identificationReferences>
</xsl:for-each>
<xsl:for-each select="./dwc:Taxon">
<xsl:variable name="identID" select="./dwc:identificationID"/>
<xsl:variable name="taxonID" select="./dwc:taxonID"/>
<taxonBelongsToIdentification>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="$identID"/>
</taxonBelongsToIdentification>
<taxonVernacularName>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:vernacularName" as="xs:string?"/>
</taxonVernacularName>
<taxonScientificName>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:scientificName" as="xs:string?"/>
</taxonScientificName>
<taxonRemarks>
<xsl:value-of select="$taxonID"/>|<xsl:value-of select="./dwc:taxonRemarks" as="xs:string?"/>
</taxonRemarks>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="*/gmd:EX_Extent">
......@@ -985,6 +1048,11 @@
</xsl:if>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="gmd:metadataMaintenance/gmd:MD_MaintenanceInformation/gmd:maintenanceNote">
<versionInfo>
<xsl:value-of select="./gco:CharacterString"/>
</versionInfo>
</xsl:for-each>
<xsl:for-each select="gmi:acquisitionInformation/*">
<xsl:for-each select=".//gmi:MI_Operation">
<operationStatus><xsl:value-of select="./gmi:status/gmd:MD_ProgressCode[text()]"/></operationStatus>
......
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