changeset 6007:324d349ae8d6

use name and type instead of ID for measurement station link
author Tom Gottfried <tom.gottfried@intevation.de>
date Mon, 13 May 2013 13:21:05 +0200
parents 2c4be2375f63
children a45da06797c7
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java	Mon May 13 11:37:14 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java	Mon May 13 13:21:05 2013 +0200
@@ -30,9 +30,10 @@
         this.setCanExpand(true);
 
         Integer number = station.getID();
-        String link = number != null ?
-            MSG.measurement_station_url() + number :
-            MSG.measurement_station_url();
+        String stationName = station.getName();
+        String stationType = station.getMeasurementType();
+        String link = MSG.measurement_station_url() + 
+            stationName + stationType;
         this.setLink(link);
         this.setLinkText(MSG.measurement_station_info_link());
         this.setCurveLink(MSG.static_sqrelation());

http://dive4elements.wald.intevation.org