Skip to content

Commit

Permalink
adopt to current MIR version
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Sep 21, 2023
1 parent b49898c commit 3c14612
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/resources/xsl/editor/xeditor2mods.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<mods:nameIdentifier type="{$type}" typeURI="{$uri}">
<mods:nameIdentifier type="{$type}">
<xsl:if test="string-length($uri) &gt; 0">
<xsl:attribute name="typeURI">
<xsl:value-of select="$uri" />
</xsl:attribute>
</xsl:if>

<xsl:value-of select="." />
</mods:nameIdentifier>
</xsl:template>
Expand Down Expand Up @@ -214,10 +220,10 @@
</xsl:if>
<xsl:choose>
<xsl:when test="@simpleEditor">
<xsl:copy-of select="node()[name()!='mods:namePart']" />
<xsl:apply-templates select="node()[name()!='mods:namePart']" />
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="node()" />
<xsl:apply-templates />
</xsl:otherwise>
</xsl:choose>
<xsl:if test="(not(mods:namePart[@type='family']) or @simpleEditor) and mods:displayForm and @type='personal'">
Expand Down

0 comments on commit 3c14612

Please sign in to comment.