diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-06-27 23:38:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-27 14:43:19 -0700 |
commit | d3d5f88384e35ac2865df32c04c682a2b64e7e8b (patch) | |
tree | 35688b030c190c7dfd97f7cf2c84937ffd489ecb /xslt | |
parent | 4867363ec573f15326110f9affea1e7c046efed7 (diff) | |
download | subsurface-d3d5f88384e35ac2865df32c04c682a2b64e7e8b.tar.gz |
Correctly tag a CSV imported CCR dive as CCR
This looks if we're importing any o2 values form the csv file, then its
probably a CCR dive.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index b3dbc7a8d..e13d0a984 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -43,6 +43,9 @@ <xsl:value-of select="concat(substring($time, 2, 2), ':', substring($time, 4, 2))"/> </xsl:attribute> <divecomputer model="Imported from CSV" deviceid="ffffffff"> + <xsl:if test="$po2Field >= 0 or $o2sensor1Field >= 0 or $o2sensor2Field >= 0 or $o2sensor3Field >= 0"> + <xsl:attribute name="dctype">CCR</xsl:attribute> + </xsl:if> <xsl:call-template name="printLine"> <xsl:with-param name="line" select="substring-before(//csv, $lf)"/> <xsl:with-param name="lineno" select="'1'"/> |