Commit 40a7e658 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Starting by adding personal names to respparty info

parent 5c277992
...@@ -960,10 +960,8 @@ ...@@ -960,10 +960,8 @@
Some records contains more than one CI_ResponsibleParty which is Some records contains more than one CI_ResponsibleParty which is
not valid and they will be ignored. not valid and they will be ignored.
Same for organisationName eg. de:b86a8604-bf78-480f-a5a8-8edff5586679 --> Same for organisationName eg. de:b86a8604-bf78-480f-a5a8-8edff5586679 -->
<xsl:variable name="organisationName" <xsl:variable name="organisationName" select="*[1]/gmd:organisationName[1]/(gco:CharacterString|gmx:Anchor)" as="xs:string*"/>
select="*[1]/gmd:organisationName[1]/(gco:CharacterString|gmx:Anchor)" <xsl:variable name="individualName" select="*[1]/gmd:individualName[1]/(gco:CharacterString|gmx:Anchor)" as="xs:string*"/>
as="xs:string*"/>
<xsl:variable name="role" <xsl:variable name="role"
select="replace(*[1]/gmd:role/*/@codeListValue, '\s', '')" select="replace(*[1]/gmd:role/*/@codeListValue, '\s', '')"
as="xs:string?"/> as="xs:string?"/>
...@@ -974,6 +972,14 @@ ...@@ -974,6 +972,14 @@
<xsl:element name="{$role}Org{$fieldSuffix}"> <xsl:element name="{$role}Org{$fieldSuffix}">
<xsl:value-of select="$organisationName"/> <xsl:value-of select="$organisationName"/>
</xsl:element> </xsl:element>
</xsl:if>
<xsl:if test="normalize-space($individualName) != ''">
<xsl:element name="Person{$fieldSuffix}">
<xsl:value-of select="$individualName"/>
</xsl:element>
<xsl:element name="{$role}Person{$fieldSuffix}">
<xsl:value-of select="$individualName"/>
</xsl:element>
</xsl:if> </xsl:if>
<xsl:element name="contact{$fieldSuffix}">{ <xsl:element name="contact{$fieldSuffix}">{
org:"<xsl:value-of org:"<xsl:value-of
......
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