aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/manualcsv2xml.xslt9
1 files changed, 8 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 287524d31..4e95d6fe6 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -183,7 +183,14 @@
<xsl:value-of select="$duration * 60"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="$duration"/>
+ <xsl:choose>
+ <xsl:when test="string-length(translate($duration, translate($duration, ':', ''), '')) = 2">
+ <xsl:value-of select="concat(substring-before($duration, ':') * 60 + substring-before(substring-after($duration, ':'), ':'), ':', substring-after(substring-after($duration, ':'), ':'))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$duration"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>