mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Parse the MacDive gaschange values
Fixes #869 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9cd79776f2
commit
973713e9db
1 changed files with 18 additions and 0 deletions
|
@ -428,6 +428,24 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
<xsl:if test="alarm = 'gas_change'">
|
||||||
|
<xsl:attribute name="value">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains(extra, 'EAN')">
|
||||||
|
<xsl:value-of select="translate(extra, translate(extra, '1234567890', ''), '')"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="contains(extra, 'Trimix')">
|
||||||
|
<xsl:variable name="trimix">
|
||||||
|
<xsl:value-of select="translate(extra, translate(extra, '1234567890/', ''), '')"/>
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:value-of select="substring-after($trimix, '/') * 65536 + substring-before($trimix, '/')"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="extra"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
</event>
|
</event>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
Loading…
Reference in a new issue