comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java @ 279:5ed1afd81569

ProtocolUtils write the index value of a facet into the document. artifacts/trunk@2135 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 16 Jun 2011 13:28:58 +0000
parents 4bb6bfaca393
children 995fa6994480
comparison
equal deleted inserted replaced
278:9ad188df72f2 279:5ed1afd81569
196 196
197 for (Facet f: facets) { 197 for (Facet f: facets) {
198 Element newFacet = createArtNode( 198 Element newFacet = createArtNode(
199 creator, 199 creator,
200 "facet", 200 "facet",
201 new String[] { "name", "description" }, 201 new String[] { "index", "name", "description" },
202 new String[] { f.getName(), f.getDescription() }); 202 new String[] {
203 String.valueOf(f.getIndex()),
204 f.getName(),
205 f.getDescription()
206 });
203 207
204 facet.appendChild(newFacet); 208 facet.appendChild(newFacet);
205 } 209 }
206 } 210 }
207 } 211 }

http://dive4elements.wald.intevation.org