diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java @ 3912:5fce1908317f

Remove info-url and add official number Remove the info-url form the response and add the official url of the river. The info-url will be generated in the client. flys-artifacts/trunk@5580 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Mon, 24 Sep 2012 08:25:00 +0000
parents 82109cea32d2
children 5da024c2af62
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Sun Sep 23 19:37:54 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Mon Sep 24 08:25:00 2012 +0000
@@ -67,7 +67,8 @@
         ec.addAttr(r, "kmup", Boolean.toString(river.getKmUp()), true);
         ec.addAttr(r, "minq", Double.toString(minmaxq[0]), true);
         ec.addAttr(r, "maxq", Double.toString(minmaxq[1]), true);
-        ec.addAttr(r, "info-url", river.fetchInfoURL(), true);
+        ec.addAttr(r, "official", Long.toString(river.getOfficialNumber()),
+                    true);
 
         Element egs = ec.create("gauges");
 
@@ -84,7 +85,6 @@
             if (name != null) {
                 ec.addAttr(eg, "name", gauge.getName(), true);
             }
-            ec.addAttr(eg, "info-url", gauge.fetchInfoURL(), true);
 
             String aeo = getGaugeValue(gauge.getAeo());
             if (aeo != null) {

http://dive4elements.wald.intevation.org