add check for empty element (literatur_isbn, literatur_gnd) to avoid creation of empty LIDO element

This commit is contained in:
2026-02-20 18:15:15 +01:00
parent 6f17a9c81d
commit 06edc8ac8c

View File

@@ -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>