oia and doi xslt: only show 'givenName', 'familyName' and affilation if 'name_type' == 'Personal'

This commit is contained in:
Arno Kaimbacher 2021-06-14 16:30:10 +02:00
parent 840bdffd2d
commit 27d95ddd70
2 changed files with 24 additions and 14 deletions

View File

@ -342,12 +342,17 @@
<xsl:text>)</xsl:text> <xsl:text>)</xsl:text>
</xsl:if> </xsl:if>
</creatorName> </creatorName>
<xsl:if test="@NameType = 'Personal'">
<givenName> <givenName>
<xsl:value-of select="@FirstName" /> <xsl:value-of select="@FirstName" />
</givenName> </givenName>
<familyName> <familyName>
<xsl:value-of select="@LastName" /> <xsl:value-of select="@LastName" />
</familyName> </familyName>
<affiliation>GBA</affiliation>
</xsl:if>
<xsl:if test="@IdentifierOrcid != ''"> <xsl:if test="@IdentifierOrcid != ''">
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID"> <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">
<xsl:value-of select="@IdentifierOrcid" /> <xsl:value-of select="@IdentifierOrcid" />
@ -356,7 +361,7 @@
<!-- <!--
<nameType><xsl:value-of select="@NameType" /></nameType> <nameType><xsl:value-of select="@NameType" /></nameType>
</xsl:if> --> </xsl:if> -->
<affiliation>GBA</affiliation>
</creator> </creator>
</xsl:template> </xsl:template>

View File

@ -345,12 +345,17 @@
<xsl:text>)</xsl:text> <xsl:text>)</xsl:text>
</xsl:if> </xsl:if>
</creatorName> </creatorName>
<xsl:if test="@NameType = 'Personal'">
<givenName> <givenName>
<xsl:value-of select="@FirstName" /> <xsl:value-of select="@FirstName" />
</givenName> </givenName>
<familyName> <familyName>
<xsl:value-of select="@LastName" /> <xsl:value-of select="@LastName" />
</familyName> </familyName>
<affiliation>GBA</affiliation>
</xsl:if>
<xsl:if test="@IdentifierOrcid != ''"> <xsl:if test="@IdentifierOrcid != ''">
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID"> <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">
<xsl:value-of select="@IdentifierOrcid" /> <xsl:value-of select="@IdentifierOrcid" />
@ -359,7 +364,7 @@
<!-- <!--
<nameType><xsl:value-of select="@NameType" /></nameType> <nameType><xsl:value-of select="@NameType" /></nameType>
</xsl:if> --> </xsl:if> -->
<affiliation>GBA</affiliation>
</creator> </creator>
</xsl:template> </xsl:template>