summaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-05-11 20:00:01 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-16 11:02:22 -0700
commit6392bf83ab35054d52e14e9282f3879b07a1e77e (patch)
treee16e5b2b27c598fa5833ed43cfb07793596b88b4 /xslt/manualcsv2xml.xslt
parent2936b63a04dc2d8ce176937ddec857ffae2a1768 (diff)
downloadsubsurface-6392bf83ab35054d52e14e9282f3879b07a1e77e.tar.gz
Use manual temperatures in CSV details import
When importing dive details from a CSV file, it is better to treat the values as manually imported instead of imported from a dive computer. The original way discarded the temperature values from the details import if a dive profile was imported and merged to the dive details. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r--xslt/manualcsv2xml.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index adad84250..287524d31 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -220,7 +220,7 @@
</xsl:if>
<xsl:if test="$airtempField &gt;= 0 or $watertempField &gt;= 0">
- <temperature>
+ <divetemperature>
<xsl:if test="$airtempField &gt;= 0">
<xsl:attribute name="air">
<xsl:variable name="air">
@@ -257,7 +257,7 @@
</xsl:choose>
</xsl:attribute>
</xsl:if>
- </temperature>
+ </divetemperature>
</xsl:if>
<xsl:if test="$cylindersizeField &gt; 0 or $startpressureField &gt; 0 or $endpressureField &gt; 0 or $o2Field &gt; 0 or $heField &gt; 0">