From: Miika Turkia Date: Sun, 18 Dec 2011 12:36:28 +0000 (+0200) Subject: Multiple cylinder support for JDiveLog import X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d1d17c543c450931b1fa3402496cbd2d47ffea1b;p=ext%2Fsubsurface.git Multiple cylinder support for JDiveLog import Support for multiple cylinders and gas change events when Importing JDiveLog logs to Subsurface. This is tested with manually crafted data and not real data (originating from dive computer). NOTE: Subsurface does not handle importing multiple cylinders correctly but imports only the first cylinder. However, manually converting data to a file and opening that in Subsurface works correctly. (xsltproc jdivelog2subsurface.xslt jdivelog-gas.jlb > gas.xml) Some minor tweaking on importing JDiveLog specific fields to notes fields in Subsurface is also included. Signed-off-by: Miika Turkia Signed-off-by: Linus Torvalds --- diff --git a/xslt/jdivelog2subsurface.xslt b/xslt/jdivelog2subsurface.xslt index 73b4590..e2f40c5 100644 --- a/xslt/jdivelog2subsurface.xslt +++ b/xslt/jdivelog2subsurface.xslt @@ -66,13 +66,10 @@ - +Diveactivity: - - - - - + +Divetype: Visibility: @@ -86,41 +83,51 @@ Gloves: Weight: + +Comment: + - - - - - - 21.0% - - - - - - - - 0 l - - - - - - - - - - - - - - - - - - + + + + + + + + 21.0% + + + + + + + + + + + + + 0 l + + + + + + + + + + + + + + + + + + @@ -156,6 +163,22 @@ Weight: + + + + + + + + + + + + + + + +