Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java @ 8142:d4e4dde1d5cb
With the exception of real calculation results, descriptions of sediment loads can all follow the same pattern.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 26 Aug 2014 17:16:21 +0200 |
parents | 8eb25cbfe242 |
children | eb48b244921d |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java Tue Aug 26 12:09:18 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java Tue Aug 26 17:16:21 2014 +0200 @@ -87,7 +87,7 @@ String idStr = split[0]; String fraction = split.length >= 2 ? split[1] : ""; - String years = split.length >= 3 ? " - " + split[2] : ""; + String years = split.length >= 3 ? split[2] : ""; // Name has the pattern sedimentload.<grainfraction_name> name = NAME + "." + fraction; @@ -96,7 +96,7 @@ description = Resources.getMsg( callMeta, "facet.sedimentload." + fraction, - new Object[] { years }); + new Object[] { years, "t/a" }); ((D4EArtifact)artifact).addStringData("load_id", idStr); }