diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java @ 3895:9e2a720ceda0

Use fetchInfoURL instead of getInfoURL until the URL is fetched from the db flys-artifacts/trunk@5552 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 21 Sep 2012 10:49:25 +0000
parents cfed96c53e9a
children 82109cea32d2
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 10:04:12 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 10:49:25 2012 +0000
@@ -67,7 +67,7 @@
         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.getInfoURL(), true);
+        ec.addAttr(r, "info-url", river.fetchInfoURL(), true);
 
         Element egs = ec.create("gauges");
 
@@ -84,7 +84,7 @@
             if (name != null) {
                 ec.addAttr(eg, "name", gauge.getName(), true);
             }
-            ec.addAttr(eg, "info-url", gauge.getInfoURL(), true);
+            ec.addAttr(eg, "info-url", gauge.fetchInfoURL(), true);
 
             String aeo = getGaugeValue(gauge.getAeo());
             if (aeo != null) {

http://dive4elements.wald.intevation.org