From cc9686016536ae6f2d7b5c4dd51a21cf3ce4d797 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 27 Feb 2013 18:05:40 +0200 Subject: MacDive import improvement MacDive reports non-existent values as zero and in Imperial units it would be 32F. This patch will try to make an educated guess whether we have the proper temperature and pressure readings and ignore the zero fields if it seems that there are no real samples from the dive computer. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- xslt/MacDive.xslt | 91 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 74 insertions(+), 17 deletions(-) (limited to 'xslt/MacDive.xslt') diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt index 35a5a783d..f3c87386a 100644 --- a/xslt/MacDive.xslt +++ b/xslt/MacDive.xslt @@ -30,6 +30,19 @@ + + + + + + + + + + + + + @@ -122,12 +135,14 @@ - + + - + @@ -163,7 +178,7 @@ - + @@ -171,7 +186,7 @@ - + @@ -179,7 +194,7 @@ - + @@ -189,7 +204,7 @@ - + @@ -206,37 +221,63 @@ + + - + - + + + + + + + - + - + + + + + + + - + - + + + + + + - + - + + + + + + @@ -290,7 +331,7 @@ - + @@ -298,7 +339,7 @@ - + @@ -393,7 +434,7 @@ - + @@ -459,4 +500,20 @@ + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2