# HG changeset patch # User "Tom Gottfried " # Date 1413814406 -7200 # Node ID 9ab8b1146ac4ad84ced624bce6529ef5f2db59ae # Parent 4fd063703487c7468686829450f64f14d586d359 Adapt PDF-export to new columns in bed differences result. diff -r 4fd063703487 -r 9ab8b1146ac4 artifacts/doc/conf/jasper/beddifference.jasper Binary file artifacts/doc/conf/jasper/beddifference.jasper has changed diff -r 4fd063703487 -r 9ab8b1146ac4 artifacts/doc/conf/jasper/beddifference.jrxml --- a/artifacts/doc/conf/jasper/beddifference.jrxml Mon Oct 20 14:22:51 2014 +0200 +++ b/artifacts/doc/conf/jasper/beddifference.jrxml Mon Oct 20 16:13:26 2014 +0200 @@ -12,11 +12,15 @@ - - - - + + + + + + + + @@ -86,24 +90,34 @@ - + - + - + - + - + - + + + + + + + + + + + @@ -115,24 +129,34 @@ - + - + - + - + - + - + + + + + + + + + + + diff -r 4fd063703487 -r 9ab8b1146ac4 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDifferenceJRDataSource.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDifferenceJRDataSource.java Mon Oct 20 14:22:51 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDifferenceJRDataSource.java Mon Oct 20 16:13:26 2014 +0200 @@ -68,6 +68,18 @@ else if ("diffheader".equals(fieldName)) { value = metaData.get("diffheader"); } + else if ("sounding1header".equals(fieldName)) { + value = metaData.get("sounding1header"); + } + else if ("sounding2header".equals(fieldName)) { + value = metaData.get("sounding2header"); + } + else if ("gap1header".equals(fieldName)) { + value = metaData.get("gap1header"); + } + else if ("gap2header".equals(fieldName)) { + value = metaData.get("gap2header"); + } else if ("km".equals(fieldName)) { value = data.get(index)[0]; } @@ -84,10 +96,10 @@ value = data.get(index)[4]; } else if ("gap1".equals(fieldName)) { - value = data.get(index)[3]; + value = data.get(index)[5]; } else if ("gap2".equals(fieldName)) { - value = data.get(index)[4]; + value = data.get(index)[6]; } return value; } diff -r 4fd063703487 -r 9ab8b1146ac4 artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java Mon Oct 20 14:22:51 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java Mon Oct 20 16:13:26 2014 +0200 @@ -164,11 +164,13 @@ source.addMetaData("differences", StringUtils.join( access.getDifferenceArtifactNamePairs(), "\n")); - source.addMetaData("kmheader", - msg(CSV_HEADER_KM, "km")); - source.addMetaData("diffpairheader", - msg(CSV_HEADER_DIFF_PAIR, "Difference pair")); - source.addMetaData("diffheader", msg(CSV_HEADER_DIFF, "cm")); + source.addMetaData("kmheader", msg(CSV_HEADER_KM)); + source.addMetaData("diffpairheader", msg(CSV_HEADER_DIFF_PAIR)); + source.addMetaData("diffheader", msg(CSV_HEADER_DIFF)); + source.addMetaData("sounding1header", msg(CSV_HEADER_SOUNDING1)); + source.addMetaData("sounding2header", msg(CSV_HEADER_SOUNDING2)); + source.addMetaData("gap1header", msg(CSV_HEADER_GAP1)); + source.addMetaData("gap2header", msg(CSV_HEADER_GAP2)); }