Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
86:eae92a05282e | 87:c8cd1b918901 |
---|---|
142 } | 142 } |
143 | 143 |
144 String uuid = XMLUtils.xpathString( | 144 String uuid = XMLUtils.xpathString( |
145 node, "@art:uuid", ArtifactNamespaceContext.INSTANCE); | 145 node, "@art:uuid", ArtifactNamespaceContext.INSTANCE); |
146 | 146 |
147 String hash = XMLUtils.xpathString( | |
148 node, "@art:hash", ArtifactNamespaceContext.INSTANCE); | |
149 | |
147 if (uuid == null || uuid.equals("")) { | 150 if (uuid == null || uuid.equals("")) { |
148 System.err.println("Found an invalid CollectionItem!"); | 151 System.err.println("Found an invalid CollectionItem!"); |
149 } | 152 } |
150 | 153 |
151 Node outputmodes = (Node) XMLUtils.xpath( | 154 Node outputmodes = (Node) XMLUtils.xpath( |
154 XPathConstants.NODE, | 157 XPathConstants.NODE, |
155 ArtifactNamespaceContext.INSTANCE); | 158 ArtifactNamespaceContext.INSTANCE); |
156 | 159 |
157 List<OutputMode> modes = parseOutputModes(outputmodes); | 160 List<OutputMode> modes = parseOutputModes(outputmodes); |
158 | 161 |
159 return new DefaultCollectionItem(uuid, modes); | 162 return new DefaultCollectionItem(uuid, hash, modes); |
160 } | 163 } |
161 | 164 |
162 | 165 |
163 /** | 166 /** |
164 * This method extracts the OutputModes available for a specific | 167 * This method extracts the OutputModes available for a specific |