Changeset 360cd85 in subsurface


Ignore:
Timestamp:
Apr 11, 2017, 5:26:45 PM (12 days ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
f9988f0
Parents:
e355037
git-author:
Miika Turkia <miika.turkia@…> (04/09/17 05:02:25)
git-committer:
Dirk Hohndel <dirk@…> (04/11/17 17:26:45)
Message:

Fix DivingLog? import

DivingLog? seems to report cylinder start and end pressures in metric
format, but sample readings are in imperial in case user has selected
this unit. So we must convert the sample pressures in this case.

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/DivingLog.xslt

    rdbb3f2d r360cd85  
    212212               pressure reading -->
    213213          <xsl:attribute name="pressure">
    214             <xsl:value-of select="Press1"/>
     214            <xsl:choose>
     215              <xsl:when test="$depthUnit = 'imperial'">
     216                <xsl:value-of select="concat(format-number((Press1 div 14.5037738007), '#.##'), ' bar')"/>
     217              </xsl:when>
     218              <xsl:otherwise>
     219                <xsl:value-of select="Press1"/>
     220              </xsl:otherwise>
     221            </xsl:choose>
    215222          </xsl:attribute>
    216223          <xsl:attribute name="depth">
Note: See TracChangeset for help on using the changeset viewer.