forked from museum-digital/musdb-md-xm-xsls
add check for empty element (literatur_isbn, literatur_gnd) to avoid creation of empty LIDO element
This commit is contained in:
@@ -1446,17 +1446,21 @@
|
||||
</lido:objectWebResource>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="../literatur_isbn">
|
||||
<xsl:if test="string-length(.) != 0">
|
||||
<lido:objectID>
|
||||
<xsl:attribute name="lido:type">ISBN</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</lido:objectID>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="../literatur_gnd">
|
||||
<xsl:if test="string-length(.) != 0">
|
||||
<lido:objectID>
|
||||
<xsl:attribute name="lido:source">dnb</xsl:attribute>
|
||||
<xsl:attribute name="lido:type">uri</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</lido:objectID>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</lido:object>
|
||||
</xsl:if>
|
||||
|
||||
Reference in New Issue
Block a user