# HG changeset patch # User Felix Wolfsteller # Date 1340134222 0 # Node ID c04408ec4c9c7686bf0440ff11d7e0f7517b7437 # Parent cbb033073037ee5f631c10a3110bab5df649824c Do not automatically load q-facets outside of w_differences. flys-artifacts/trunk@4712 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r cbb033073037 -r c04408ec4c9c flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Jun 19 18:41:04 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jun 19 19:30:22 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-19 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java: + Restrict q-filter facet to the differences case. + 2012-06-19 Felix Wolfsteller * doc/conf/artifacts/waterlevel.xml: Add Q-facets to compatibility list. diff -r cbb033073037 -r c04408ec4c9c flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Tue Jun 19 18:41:04 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java Tue Jun 19 19:30:22 2012 +0000 @@ -42,7 +42,8 @@ /** * Setup and restate longitudinal_section filterfacets to apply to the - * w_differences output, too. + * w_differences output, too. Also, for w_differences, add respective q- + * filter facets. */ public void setup( String identifier, @@ -52,22 +53,20 @@ Document data) { super.setup(identifier, factory, context, callMeta, data); + // For w_differences, also allow q-facets. if(filterFacets != null) { List list = new ArrayList(); - List qlist = new ArrayList(); List wlist = filterFacets.get("longitudinal_section"); for (Facet f: wlist) { if (!f.getName().equals("longitudinal_section.q")) { DefaultFacet df = new DefaultFacet(f.getIndex(), "longitudinal_section.q", ""); - qlist.add(df); + list.add(df); } } - list.addAll(qlist); list.addAll(wlist); - filterFacets.put("longitudinal_section", list); filterFacets.put("w_differences", list); } }