From 413065dcdccebe3a97813e9c45a654820f98e0e6 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 18 Aug 2012 19:33:40 +0300 Subject: [PATCH] Add weight and suit support for JDiveLog import Use the suit and weightsystem support of Subsurface when importing divelogs from JDiveLog. (They were previously included in the notes field as support for these fields was missing from Subsurface.) After import the weightsystem is undefined and weight unit is the default of Subsurface. Unfortunately the weight field in JDiveLog is text field and might contain pounds and kilograms mixed in seemingly random order. Thus 2 pounds of weight might be transformed to 2 kg. Signed-off-by: Miika Turkia Signed-off-by: Linus Torvalds --- xslt/jdivelog2subsurface.xslt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/xslt/jdivelog2subsurface.xslt b/xslt/jdivelog2subsurface.xslt index e2f40c5..6e85cbf 100644 --- a/xslt/jdivelog2subsurface.xslt +++ b/xslt/jdivelog2subsurface.xslt @@ -64,6 +64,21 @@ + + + + + + + + + + + + + + + Diveactivity: @@ -73,15 +88,9 @@ Divetype: Visibility: - - -Suit: Gloves: - - -Weight: Comment: -- 2.43.0