Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java @ 8222:1cd7225df846
Let official epochs be showy and remove detritus of 'yields' in datacage config.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 15:54:12 +0200 |
parents | 204905c16ade |
children | b32c1927f90d |
comparison
equal
deleted
inserted
replaced
8221:a0994a326e2a | 8222:1cd7225df846 |
---|---|
82 String[] split = code.split(";"); | 82 String[] split = code.split(";"); |
83 String idStr = split[0]; | 83 String idStr = split[0]; |
84 | 84 |
85 String fraction = split.length >= 2 ? split[1] : ""; | 85 String fraction = split.length >= 2 ? split[1] : ""; |
86 String years = split.length >= 3 ? split[2] : ""; | 86 String years = split.length >= 3 ? split[2] : ""; |
87 String kind = split.length >= 4 ? split[3] : ""; | |
87 | 88 |
88 // Name has the pattern sedimentload.ta.<grainfraction_name> | 89 // Name has the pattern sedimentload.ta.<grainfraction_name> |
89 name = NAME + "." + fraction; | 90 name = NAME + "." + fraction; |
90 log.debug("Created facet: " + name); | 91 log.debug("Created facet: " + name); |
91 | 92 |
92 description = Resources.getMsg( | 93 description = Resources.getMsg( |
93 callMeta, | 94 callMeta, |
94 "facet.sedimentload." + fraction, | 95 "facet.sedimentload." + fraction, |
95 new Object[] { years, "t/a" }); | 96 new Object[] { years, "t/a" }); |
97 | |
98 if (kind.equals("official")) { | |
99 String descPrefix = Resources.getMsg( | |
100 callMeta, | |
101 "facet.sedimentload.prefix.offcial"); | |
102 description = descPrefix + description; | |
103 } | |
96 | 104 |
97 ((D4EArtifact)artifact).addStringData("load_id", idStr); | 105 ((D4EArtifact)artifact).addStringData("load_id", idStr); |
98 } | 106 } |
99 | 107 |
100 | 108 |