Include dive duration on uddf import

Adjust to UDDF 3.2 specification

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-13 22:00:28 +02:00 committed by Dirk Hohndel
parent 872ee7efab
commit cb576e49d3

View file

@ -90,11 +90,11 @@
<xsl:value-of select="dive_number|u:informationbeforedive/u:divenumber"/> <xsl:value-of select="dive_number|u:informationbeforedive/u:divenumber"/>
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="dive_duration != '' and dive_duration != 0"> <xsl:if test="(dive_duration != '' and dive_duration != 0) or (u:informationafterdive/u:diveduration != '' and u:informationafterdive/u:diveduration != 0)">
<xsl:attribute name="duration"> <xsl:attribute name="duration">
<xsl:call-template name="timeConvert"> <xsl:call-template name="timeConvert">
<xsl:with-param name="timeSec"> <xsl:with-param name="timeSec">
<xsl:value-of select="dive_duration"/> <xsl:value-of select="dive_duration|u:informationafterdive/u:diveduration"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>