# HG changeset patch # User Bjoern Ricks # Date 1348236228 0 # Node ID 82109cea32d2157e9c35ecaf8458710d673049a3 # Parent 9e2a720ceda083fbba107ec09745d1547a5523af Return also the official gauge number in a service response flys-artifacts/trunk@5558 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 9e2a720ceda0 -r 82109cea32d2 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Sep 21 10:49:25 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Sep 21 14:03:48 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-21 Björn Ricks + + * src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java: + Return also the gauge official number in a service response. + 2012-09-21 Björn Ricks * src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java: diff -r 9e2a720ceda0 -r 82109cea32d2 flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java Fri Sep 21 10:49:25 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java Fri Sep 21 14:03:48 2012 +0000 @@ -134,6 +134,11 @@ ec.addAttr(eg, "station", station, true); } + Long official = gauge.getOfficialNumber(); + if (official != null) { + ec.addAttr(eg, "official", official.toString(), true); + } + egs.appendChild(eg); }