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

Merge branch 'Acquisition-indexing' into 'master'

First beta plugin version

See merge request Infrastructure/iso19115.MERIDIAN!13
parents 3ce2f597 829ef6e0
......@@ -150,18 +150,18 @@
<xsl:if test="./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString[starts-with(text(),'MERIDIAN-CITE-AS|')]">
<citationItalics>
<xsl:value-of select="substring-before(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|')"/>
<xsl:value-of select="substring-before(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|')"/>
</citationItalics>
<citationAuthor>
<xsl:value-of select="substring-before(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|')"/>
<citationAuthor>
<xsl:value-of select="substring-before(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|')"/>
</citationAuthor>
<citationTitle>
<xsl:value-of select="substring-before(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|')"/>
<citationTitle>
<xsl:value-of select="substring-before(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|')"/>
</citationTitle>
<citationRemainder>
<xsl:value-of select="substring-after(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|')"/>
<citationRemainder>
<xsl:value-of select="substring-after(substring-after(substring-after(substring-after(./gmd:identificationInfo/MER:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:otherCitationDetails/gco:CharacterString, '|'), '|'), '|'), '|')"/>
</citationRemainder>
</xsl:if>
</xsl:if>
<uuid>
<xsl:value-of select="$identifier"/>
......@@ -519,8 +519,16 @@
</xsl:for-each>
</xsl:if>
</xsl:for-each>
<!-- Environment description -->
<xsl:for-each select="gmd:environmentDescription/gco:CharacterString">
<envDesc>
<xsl:value-of select="."/>
</envDesc>
</xsl:for-each>
<!-- ISO 19115 topics -->
<xsl:for-each select="gmd:topicCategory/gmd:MD_TopicCategoryCode">
<topic>
<xsl:value-of select="."/>
......@@ -1079,13 +1087,47 @@
<xsl:for-each select="gmd:dataQualityInfo/*">
<xsl:for-each select="gmd:lineage/gmd:LI_Lineage/
gmd:statement/gco:CharacterString[. != '']">
<lineage>
<xsl:value-of select="."/>
</lineage>
<xsl:for-each select="gmd:lineage/gmd:LI_Lineage">
<xsl:for-each select="gmd:statement/gco:CharacterString[. != '']">
<lineage>
<xsl:value-of select="."/>
</lineage>
</xsl:for-each>
<xsl:for-each select="gmd:source/gmd:LI_Source">
<xsl:variable name="sourceTitle" select="gmd:sourceCitation/gmd:CI_Citation/gmd:title/gco:CharacterString"/>
<sourceTitle>
<xsl:value-of select="$sourceTitle"/>
</sourceTitle>
<sourceDescription>
<xsl:value-of select="gmd:description/gco:CharacterString"/>
</sourceDescription>
<xsl:for-each select="gmd:date/gmd:CI_Date">
<sourceDateBelongsTo>
<xsl:value-of select="$sourceTitle"/>
</sourceDateBelongsTo>
<sourceDate>
<xsl:value-of select="gmd:date/gco:Date"/>
</sourceDate>
<sourceDateType>
<xsl:value-of select="gmd:dateType/gmd:CI_DateTypeCode"/>
</sourceDateType>
</xsl:for-each>
<xsl:for-each select="gmd:citedResponsibleParty/gmd:CI_ResponsibleParty">
<sourceAuthorBelongsTo>
<xsl:value-of select="$sourceTitle"/>
</sourceAuthorBelongsTo>
<sourceAuthorName>
<xsl:value-of select="gmd:individualName/gco:CharacterString"/>
</sourceAuthorName>
<sourceAuthorOrg>
<xsl:value-of select="gmd:organisationName/gco:CharacterString"/>
</sourceAuthorOrg>
<sourceAuthorEmail>
<xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>
</sourceAuthorEmail>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<!-- Indexing measure value -->
<xsl:for-each select="gmd:report/*[
normalize-space(gmd:nameOfMeasure[0]/gco:CharacterString) != '']">
......@@ -1102,7 +1144,19 @@
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="gmd:contentInfo/*">
<variableCoverageDesc>
<xsl:value-of select="gmd:attributeDescription/gco:RecordType"/>
</variableCoverageDesc>
<xsl:for-each select="gmd:dimension/*">
<variableName>
<xsl:value-of select="gmd:sequenceIdentifier/gco:MemberName/gco:aName/gco:CharacterString"/>
</variableName>
<variableDesc>
<xsl:value-of select="gmd:descriptor/gco:CharacterString"/>
</variableDesc>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="gmd:distributionInfo/*">
<xsl:for-each
select="gmd:distributionFormat/*/gmd:name/gco:CharacterString">
......
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