changeset 8012:8922eda935eb facet-metadata

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 03 Jul 2014 17:21:22 +0200
parents 60cd665b1bd6 (diff) 80e4aa6e9936 (current diff)
children 107d38f6e489
files
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java	Thu Jul 03 16:34:28 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java	Thu Jul 03 17:21:22 2014 +0200
@@ -207,8 +207,12 @@
 
     private void writeMetaData(CSVWriter writer, MiddleBedHeightData data) {
          writer.writeNext(new String[]{"#"});
+         String year = "";
+         if (data.getStartYear() != 0) {
+             year = String.valueOf(data.getStartYear());
+         }
          writer.writeNext(new String[]{"# " + msg(CSV_META_YEAR) +
-             ": " + data.getStartYear()});
+             ": " + year});
          writer.writeNext(new String[]{"# " + msg(CSV_META_TYPE) +
              ": " + data.getType()});
          writer.writeNext(new String[]{"# " + msg(CSV_META_LOC_SYSTEM) +
--- a/artifacts/src/main/resources/messages_de_DE.properties	Thu Jul 03 16:34:28 2014 +0200
+++ b/artifacts/src/main/resources/messages_de_DE.properties	Thu Jul 03 17:21:22 2014 +0200
@@ -424,7 +424,7 @@
 export.bedheight_middle.csv.header.range = Strecke
 export.bedheight_middle.csv.header.location.system = Lagesystem
 export.bedheight_middle.csv.header.evalby = Auswerter
-export.bedheight_middle.csv.header.river.elevation = River elevation model
+export.bedheight_middle.csv.header.river.elevation = H\u00f6hensystem des Flusses
 export.sedimentload_ls.csv.header.km = km
 export.sedimentload_ls.csv.header.year = Jahr
 export.sedimentload_ls.csv.header.coarse = Kies(g)

http://dive4elements.wald.intevation.org