mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 13:26:16 +00:00
Suunto SDE updates, take 178: add weight and visibility info
This converts the weight information into subsurface weights, and also adds visibility info (if it exists) into the notes for the dive. More fall-out from me looking at the nasty suunto xml files, now that I have a few that actually have some info that isn't just from the computer download. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8a58dae3ae
commit
36e4abf8c0
1 changed files with 11 additions and 0 deletions
|
@ -62,6 +62,14 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
|
<xsl:if test="WEIGTH != ''">
|
||||||
|
<weightsystem>
|
||||||
|
<xsl:attribute name="weight">
|
||||||
|
<xsl:value-of select="concat(WEIGTH, ' kg')"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</weightsystem>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<notes>
|
<notes>
|
||||||
<xsl:if test="LOGNOTES != ''">
|
<xsl:if test="LOGNOTES != ''">
|
||||||
<xsl:value-of select="LOGNOTES" />
|
<xsl:value-of select="LOGNOTES" />
|
||||||
|
@ -69,6 +77,9 @@
|
||||||
<xsl:if test="WEATHER != ''">
|
<xsl:if test="WEATHER != ''">
|
||||||
Weather: <xsl:value-of select="WEATHER" />
|
Weather: <xsl:value-of select="WEATHER" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:if test="WATERVISIBILITYDESC != ''">
|
||||||
|
Visibility: <xsl:value-of select="WATERVISIBILITYDESC" />
|
||||||
|
</xsl:if>
|
||||||
</notes>
|
</notes>
|
||||||
|
|
||||||
<!-- FIXME: add support for multiple cylinders, need sample data -->
|
<!-- FIXME: add support for multiple cylinders, need sample data -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue