diff options
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt index 55968b512..d74944398 100644 --- a/xslt/manualcsv2xml.xslt +++ b/xslt/manualcsv2xml.xslt @@ -156,11 +156,21 @@ </xsl:if> <xsl:if test="$durationField >= 0"> - <xsl:attribute name="duration"> + <xsl:variable name="duration"> <xsl:call-template name="getFieldByIndex"> <xsl:with-param name="index" select="$durationField"/> <xsl:with-param name="line" select="$line"/> </xsl:call-template> + </xsl:variable> + <xsl:attribute name="duration"> + <xsl:choose> + <xsl:when test="substring-before($duration, ':') = '' and $duration < 600"> + <xsl:value-of select="$duration * 60"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$duration"/> + </xsl:otherwise> + </xsl:choose> </xsl:attribute> </xsl:if> |