Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Infrastructure
iso19139.MERIDIAN
Commits
2d670f57
Commit
2d670f57
authored
Sep 19, 2019
by
Kim Mortimer
Browse files
Extending personal names into new field
parent
40a7e658
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/plugin/iso19139.MERIDIAN/index-fields/index.xsl
View file @
2d670f57
...
...
@@ -980,12 +980,27 @@
<xsl:element
name=
"{$role}Person{$fieldSuffix}"
>
<xsl:value-of
select=
"$individualName"
/>
</xsl:element>
</xsl:if>
<xsl:element
name=
"contact{$fieldSuffix}"
>
{
org:"
<xsl:value-of
select=
"replace($organisationName, '"', '\\"')"
/>
",
role:"
<xsl:value-of
select=
"$role"
/>
"
}
</xsl:element>
</xsl:if>
<xsl:choose>
<xsl:when
test=
"normalize-space($organisationName) != '' and normalize-space($individualName) != ''"
>
<xsl:element
name=
"contact{$fieldSuffix}"
>
{
person:"
<xsl:value-of
select=
"replace($individualName, '"', '\\"')"
/>
",
org:"
<xsl:value-of
select=
"replace($organisationName, '"', '\\"')"
/>
",
role:"
<xsl:value-of
select=
"$role"
/>
"
}
</xsl:element>
</xsl:when>
<xsl:when
test=
"normalize-space($organisationName) != '' and normalize-space($individualName) = ''"
>
<xsl:element
name=
"contact{$fieldSuffix}"
>
{
org:"
<xsl:value-of
select=
"replace($organisationName, '"', '\\"')"
/>
",
role:"
<xsl:value-of
select=
"$role"
/>
"
}
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element
name=
"contact{$fieldSuffix}"
>
{
person:"
<xsl:value-of
select=
"replace($individualName, '"', '\\"')"
/>
",
role:"
<xsl:value-of
select=
"$role"
/>
"
}
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment