Mercurial > dive4elements > framework
diff 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 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java Thu Jun 16 13:24:54 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java Thu Jun 16 13:28:58 2011 +0000 @@ -198,8 +198,12 @@ Element newFacet = createArtNode( creator, "facet", - new String[] { "name", "description" }, - new String[] { f.getName(), f.getDescription() }); + new String[] { "index", "name", "description" }, + new String[] { + String.valueOf(f.getIndex()), + f.getName(), + f.getDescription() + }); facet.appendChild(newFacet); }