xsl/title: add case when title contains no : or /
Fixes issues with manual metadata
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl
index e94809e..50eb806 100644
--- a/xslt/epub2i5.xsl
+++ b/xslt/epub2i5.xsl
@@ -87,8 +87,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="contains(($dnbBookdata//dc:title)[1],'/')">
<xsl:value-of select="normalize-space(substring-before(($dnbBookdata//dc:title)[1], '/'))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="normalize-space(($dnbBookdata//dc:title)[1])"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>