diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2020-05-04 07:40:46 +0300 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2020-05-04 10:43:40 +0200 |
commit | e1c3f29b889456977d8cd73596f7395c93268e3c (patch) | |
tree | 88c8adbe5da14caa79fa9c863a56d72f31966e28 /xslt | |
parent | 4d0a200cfd20d97f668250e46d5af745d53f6a41 (diff) | |
download | subsurface-e1c3f29b889456977d8cd73596f7395c93268e3c.tar.gz |
CSV export: Add dive mode
Include dive mode to exported dive detail CSV
Closes #1588
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index e4e26746b..4059af226 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -13,10 +13,10 @@ <xsl:template match="/divelog/dives"> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (ft)"', $fs, '"avgdepth (ft)"', $fs, '"airtemp (F)"', $fs, '"watertemp (F)"', $fs, '"cylinder size (cuft)"', $fs, '"startpressure (psi)"', $fs, '"endpressure (psi)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (lbs)"', $fs, '"tags"')"/> + <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (ft)"', $fs, '"avgdepth (ft)"', $fs, '"mode"', $fs, '"airtemp (F)"', $fs, '"watertemp (F)"', $fs, '"cylinder size (cuft)"', $fs, '"startpressure (psi)"', $fs, '"endpressure (psi)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (lbs)"', $fs, '"tags"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (m)"', $fs, '"avgdepth (m)"', $fs, '"airtemp (C)"', $fs, '"watertemp (C)"', $fs, '"cylinder size (l)"', $fs, '"startpressure (bar)"', $fs, '"endpressure (bar)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (kg)"', $fs, '"tags"')"/> + <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (m)"', $fs, '"avgdepth (m)"', $fs, '"mode"', $fs, '"airtemp (C)"', $fs, '"watertemp (C)"', $fs, '"cylinder size (l)"', $fs, '"startpressure (bar)"', $fs, '"endpressure (bar)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (kg)"', $fs, '"tags"')"/> </xsl:otherwise> </xsl:choose> <xsl:text> @@ -54,6 +54,14 @@ </xsl:otherwise> </xsl:choose> + <!-- Dive mode --> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:if test="divecomputer[1]/@dctype != ''"> + <xsl:value-of select="divecomputer[1]/@dctype"/> + </xsl:if> + <xsl:text>"</xsl:text> + <!-- Air temperature --> <xsl:choose> <xsl:when test="divetemperature/@air != ''"> |