diff flys-client/src/main/java/de/intevation/flys/client/server/AddArtifactServiceImpl.java @ 87:c8cd1b918901

Bugfix: Step back will remove duplicated output tab and an extended chart image URL bypasses the browser cache. flys-client/trunk@1599 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 28 Mar 2011 17:04:17 +0000
parents 4bdb18e5f484
children 5c3d685546a6
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/AddArtifactServiceImpl.java	Mon Mar 28 16:20:45 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/AddArtifactServiceImpl.java	Mon Mar 28 17:04:17 2011 +0000
@@ -144,6 +144,9 @@
         String uuid = XMLUtils.xpathString(
             node, "@art:uuid", ArtifactNamespaceContext.INSTANCE);
 
+        String hash = XMLUtils.xpathString(
+            node, "@art:hash", ArtifactNamespaceContext.INSTANCE);
+
         if (uuid == null || uuid.equals("")) {
             System.err.println("Found an invalid CollectionItem!");
         }
@@ -156,7 +159,7 @@
 
         List<OutputMode> modes = parseOutputModes(outputmodes);
 
-        return new DefaultCollectionItem(uuid, modes);
+        return new DefaultCollectionItem(uuid, hash, modes);
     }
 
 

http://dive4elements.wald.intevation.org