mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
c3aa505f2b
commit
4642f12e29
2 changed files with 20 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue