Commit 26ec559b authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Wasn't capturing responsible parties, so being explicit

parent c96a6c58
......@@ -940,10 +940,23 @@
["dateType":"<xsl:value-of select="gmd:dateType[1]/gmd:CI_DateTypeCode/@codeListValue"/>",
"date":"<xsl:value-of select="string(gmd:date[1]/gco:Date|gmd:date[1]/gco:DateTime)"/>",]
</xsl:for-each>
}},
<xsl:apply-templates mode="index-contact" select="./gmi:citation/gmd:CI_Citation/gmd:citedResponsibleParty">
<xsl:with-param name="fieldSuffix" select="'ForOperation'"/>
</xsl:apply-templates>
},
"respParties": [
<xsl:for-each select="./gmi;citation/gmd:CI_Citation/gmd:citedResponsibleParty">
<xsl:if select="./gmd:CI_ResponsibleParty/gmd:individualName">
"person":"<xsl:value-of select="./gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString"/>",
</xsl:if>
<xsl:if select="./gmd:CI_ResponsibleParty/gmd:organisationName">
"organisation":"<xsl:value-of select="./gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/>",
</xsl:if>
<xsl:if select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress">
"email":"<xsl:value-of select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress[1]/gco:CharacterString"/>",
</xsl:if>
"role":"<xsl:value-of select="./gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue]"/>"
</xsl:for-each>
],
},
<xsl:for-each select="./*[name() != 'gmi:platform' and name() != 'gmi:status' and name() != 'gmi:identifier' and name() != 'gmi:citation']">
"<xsl:value-of select="name()"/>":"<xsl:value-of select="."/>",
</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