[PATCH] Include O2 percentage in DivingLog import

Miika Turkia miika.turkia at gmail.com
Tue Dec 24 08:37:56 UTC 2013


Seems there is a different way to state O2 percentage in DivingLog.
This patch includes that format along with the previously seen one.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/DivingLog.xslt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/xslt/DivingLog.xslt b/xslt/DivingLog.xslt
index abf22d0..49f617c 100644
--- a/xslt/DivingLog.xslt
+++ b/xslt/DivingLog.xslt
@@ -108,6 +108,12 @@
           </xsl:attribute>
         </xsl:if>
 
+        <xsl:if test="Gas != ''">
+          <xsl:attribute name="o2">
+            <xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/>
+          </xsl:attribute>
+        </xsl:if>
+
         <xsl:if test="He != ''">
           <xsl:attribute name="he">
             <xsl:value-of select="concat(He, '%')"/>
-- 
1.8.3.2



More information about the subsurface mailing list