CSV export: include SAC when exporting dive details

Simply adds SAC field to CSV export of dive details.

Fixes #2829

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2020-05-16 12:17:01 +03:00 committed by Dirk Hohndel
parent 3e2a410f93
commit 0525f31510

View file

@ -22,6 +22,8 @@
$fs,
'&quot;duration (min)&quot;',
$fs,
'&quot;sac (cuft/min)&quot;',
$fs,
'&quot;maxdepth (ft)&quot;',
$fs,
'&quot;avgdepth (ft)&quot;',
@ -72,6 +74,8 @@
$fs,
'&quot;duration (min)&quot;',
$fs,
'&quot;sac (l/min)&quot;',
$fs,
'&quot;maxdepth (m)&quot;',
$fs,
'&quot;avgdepth (m)&quot;',
@ -136,6 +140,17 @@
<xsl:text>&quot;</xsl:text>
<xsl:value-of select="substring-before(@duration, ' ')"/>
<xsl:text>&quot;</xsl:text>
<xsl:value-of select="$fs"/>
<xsl:text>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="$units = 1">
<xsl:value-of select="format-number(substring-before(@sac, ' ') * 0.035315, '#.##')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-before(@sac, ' ')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''">
<xsl:apply-templates select="divecomputer[1]/depth"/>