[PATCH 2 of 2] NEw export option for diagramms: with or without extra metadata subtitle

Wald Commits scm-commit at wald.intevation.org
Tue Jun 5 19:21:32 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1528219283 -7200
# Node ID 3f619f8dfa8e4ddeb4d843a638979025f08b4b94
# Parent  1cc7653ca84f6c7d7f6959e577c0fc0ffa1c52ac
NEw export option for diagramms: with or without extra metadata subtitle

diff -r 1cc7653ca84f -r 3f619f8dfa8e artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java	Tue Jun 05 19:21:16 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java	Tue Jun 05 19:21:23 2018 +0200
@@ -314,6 +314,7 @@
 
         String width  = XMLUtils.xpathString(export, "export/width", null);
         String height = XMLUtils.xpathString(export, "export/height", null);
+        String metadata = XMLUtils.xpathString(export, "export/chart_settings_export_metadata", null);
 
         if (log.isDebugEnabled()) {
             log.debug("Found export width : '" + width + "'");
@@ -322,6 +323,7 @@
 
         section.setWidth(Integer.valueOf(width.length() > 0 ? width : "-1"));
         section.setHeight(Integer.valueOf(height.length() > 0 ? height : "-1"));
+        section.setMetadata(metadata == null ? false : Boolean.valueOf(metadata));
 
         target.setExportSection(section);
     }
diff -r 1cc7653ca84f -r 3f619f8dfa8e artifacts/src/main/resources/messages.properties
--- a/artifacts/src/main/resources/messages.properties	Tue Jun 05 19:21:16 2018 +0200
+++ b/artifacts/src/main/resources/messages.properties	Tue Jun 05 19:21:23 2018 +0200
@@ -1137,4 +1137,4 @@
 common.client.ui.from = from
 common.client.ui.to = to
 
-chart.subtitle.metadata = FLYS-Version: {0} - Bearbeiter: {1} - Datum der Erstellung: {2} - Gew\u00e4sser: {3}
\ No newline at end of file
+chart.subtitle.metadata = FLYS-Version: {0} - Bearbeiter: {1} - Datum der Erstellung: {2}
\ No newline at end of file
diff -r 1cc7653ca84f -r 3f619f8dfa8e artifacts/src/main/resources/messages_de.properties
--- a/artifacts/src/main/resources/messages_de.properties	Tue Jun 05 19:21:16 2018 +0200
+++ b/artifacts/src/main/resources/messages_de.properties	Tue Jun 05 19:21:23 2018 +0200
@@ -1137,4 +1137,4 @@
 common.client.ui.from = von
 common.client.ui.to = bis
 
-chart.subtitle.metadata = FLYS-Version: {0} - Bearbeiter: {1} - Datum der Erstellung: {2} - Gew\u00e4sser: {3}
\ No newline at end of file
+chart.subtitle.metadata = FLYS-Version: {0} - Bearbeiter: {1} - Datum der Erstellung: {2}
\ No newline at end of file
diff -r 1cc7653ca84f -r 3f619f8dfa8e gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Tue Jun 05 19:21:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Tue Jun 05 19:21:23 2018 +0200
@@ -1530,4 +1530,6 @@
     String uinfo_vegetation_zones_validation_from_greater_to();
 
     String uinfo_vegetation_zones_invalid_integer();
+
+    String chart_settings_export_metadata();
 }
\ No newline at end of file
diff -r 1cc7653ca84f -r 3f619f8dfa8e gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Tue Jun 05 19:21:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Tue Jun 05 19:21:23 2018 +0200
@@ -821,4 +821,6 @@
 uinfo_vegetation_zones_validation_from_greater_to = Der Wert f\u00fcr "\u00dcfd von" muss kleiner als "\u00dcfd bis".
 uinfo_vegetation_zones_invalid_integer = Nur Ganzzahlen erlaubt.
 
-bundu = Betrieb und Unterhaltung 
\ No newline at end of file
+bundu = Betrieb und Unterhaltung 
+
+chart_settings_export_metadata = Show Meta-Data
\ No newline at end of file
diff -r 1cc7653ca84f -r 3f619f8dfa8e gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Tue Jun 05 19:21:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Tue Jun 05 19:21:23 2018 +0200
@@ -821,4 +821,6 @@
 uinfo_vegetation_zones_validation_from_greater_to = Der Wert f\u00fcr "\u00dcfd von" muss kleiner als "\u00dcfd bis".
 uinfo_vegetation_zones_invalid_integer = Nur Ganzzahlen erlaubt.
 
-bundu = Betrieb und Unterhaltung
\ No newline at end of file
+bundu = Betrieb und Unterhaltung
+
+chart_settings_export_metadata = Metadaten anzeigen
\ No newline at end of file


More information about the Dive4Elements-commits mailing list