Divelogs.de integration update

Adding temp support for divelogs.de import/export.

Adding export of divecomputer model to divelogs.de export

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2024-02-27 21:55:01 +02:00 committed by Dirk Hohndel
parent c3aa505f2b
commit 4642f12e29
2 changed files with 20 additions and 0 deletions

View file

@ -23,6 +23,11 @@
<TIME>
<xsl:value-of select="@time"/>
</TIME>
<xsl:if test="divecomputer/@model != ''">
<COMPUTERMODEL>
<xsl:value-of select="divecomputer/@model"/>
</COMPUTERMODEL>
</xsl:if>
<xsl:variable name="duration">
<xsl:call-template name="time2sec">
@ -385,6 +390,11 @@
<DEPTH>
<xsl:value-of select="substring-before(./@depth, ' ')"/>
</DEPTH>
<xsl:if test="./@temp != ''">
<TEMP>
<xsl:value-of select="substring-before(./@temp, ' ')"/>
</TEMP>
</xsl:if>
</SAMPLE>
</xsl:when>
</xsl:choose>
@ -394,6 +404,11 @@
<DEPTH>
<xsl:value-of select="substring-before(./@depth, ' ')"/>
</DEPTH>
<xsl:if test="./@temp != ''">
<TEMP>
<xsl:value-of select="substring-before(./@temp, ' ')"/>
</TEMP>
</xsl:if>
</SAMPLE>
</xsl:otherwise>
</xsl:choose>

View file

@ -162,6 +162,11 @@
<xsl:attribute name="depth">
<xsl:value-of select="concat(., ' m')"/>
</xsl:attribute>
<xsl:if test="../TEMP != ''">
<xsl:attribute name="temp">
<xsl:value-of select="../TEMP"/>
</xsl:attribute>
</xsl:if>
</sample>
</xsl:for-each>