Skip to content

Commit

Permalink
only show organization when the individual is omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
leinfelder committed Nov 1, 2011
1 parent 0cd8126 commit 5e3d939
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions style/eml/eml-identifier.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@
</xsl:for-each>
</xsl:for-each>

<xsl:if test="string(individualName/surName) != ''">
<xsl:if test="string(organizationName) != ''"> of </xsl:if>
<!-- only show organization if the person is omitted -->
<xsl:if test="string(individualName/surName) = ''">
<xsl:for-each select="organizationName">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:if>

<xsl:for-each select="organizationName">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 5e3d939

Please sign in to comment.