mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Support for importing additional tanks
This patch adds support for importing additional cylinders from divelogs.de. This also adds support for He on the import. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
613402f6c9
commit
6d65e45787
1 changed files with 37 additions and 1 deletions
|
@ -75,11 +75,15 @@
|
|||
<xsl:value-of select="PARTNER"/>
|
||||
</buddy>
|
||||
|
||||
<!-- Helium? -->
|
||||
<cylinder>
|
||||
<xsl:attribute name="o2">
|
||||
<xsl:value-of select="O2PCT"/>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="HEPCT != ''">
|
||||
<xsl:attribute name="he">
|
||||
<xsl:value-of select="HEPCT"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="start">
|
||||
<xsl:value-of select="CYLINDERSTARTPRESSURE"/>
|
||||
</xsl:attribute>
|
||||
|
@ -101,6 +105,38 @@
|
|||
</xsl:attribute>
|
||||
</cylinder>
|
||||
|
||||
<xsl:for-each select="ADDITIONALTANKS/TANK">
|
||||
<cylinder>
|
||||
<xsl:attribute name="o2">
|
||||
<xsl:value-of select="O2PCT"/>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="HEPCT != ''">
|
||||
<xsl:attribute name="he">
|
||||
<xsl:value-of select="HEPCT"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="start">
|
||||
<xsl:value-of select="CYLINDERSTARTPRESSURE"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="end">
|
||||
<xsl:value-of select="CYLINDERENDPRESSURE"/>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="CYLINDERSIZE != ''">
|
||||
<xsl:attribute name="size">
|
||||
<xsl:value-of select="format-number(CYLINDERSIZE + CYLINDERSIZE * DBLTANK, '#.##')"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="WORKINGPRESSURE > 0">
|
||||
<xsl:attribute name="workpressure">
|
||||
<xsl:value-of select="WORKINGPRESSURE"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="CYLINDERDESCRIPTION"/>
|
||||
</xsl:attribute>
|
||||
</cylinder>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:if test="WEIGHT != ''">
|
||||
<weightsystem>
|
||||
<xsl:attribute name="description">
|
||||
|
|
Loading…
Reference in a new issue