mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Divelogs.de import: set default working pressure
Let's use the same assumption for working pressure (where not defined) as the origin uses. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
24471cfd0d
commit
f5b17f2d29
1 changed files with 20 additions and 10 deletions
|
@ -114,11 +114,16 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</CYLINDERENDPRESSURE>
|
||||
<xsl:if test="cylinder[position() = $cylinder]/@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="cylinder[position() = $cylinder]/@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<WORKINGPRESSURE>198</WORKINGPRESSURE>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<ADDITIONALTANKS>
|
||||
<xsl:for-each select="cylinder[position() != $cylinder]">
|
||||
|
@ -164,11 +169,16 @@
|
|||
<CYLINDERENDPRESSURE>
|
||||
<xsl:value-of select="@end"/>
|
||||
</CYLINDERENDPRESSURE>
|
||||
<xsl:if test="@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<WORKINGPRESSURE>198</WORKINGPRESSURE>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<O2PCT>
|
||||
<xsl:value-of select="substring-before(@o2, '%')"/>
|
||||
</O2PCT>
|
||||
|
|
Loading…
Reference in a new issue