[PATCH 2/2] Use manual temperatures in CSV details import
Miika Turkia
miika.turkia at gmail.com
Wed May 11 10:00:01 PDT 2016
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 at gmail.com>
---
xslt/manualcsv2xml.xslt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index adad842..287524d 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -220,7 +220,7 @@
</xsl:if>
<xsl:if test="$airtempField >= 0 or $watertempField >= 0">
- <temperature>
+ <divetemperature>
<xsl:if test="$airtempField >= 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 > 0 or $startpressureField > 0 or $endpressureField > 0 or $o2Field > 0 or $heField > 0">
--
2.5.0
More information about the subsurface
mailing list