Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/PorosityFacet.java @ 7881:f9e3ef5d38d0
Use description from database for i18n (completed revision dc8910e29dd4).
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 16 May 2014 13:17:29 +0200 |
parents | e84726b48484 |
children | 45cced06490c |
comparison
equal
deleted
inserted
replaced
7880:a575eaae7899 | 7881:f9e3ef5d38d0 |
---|---|
74 logger.debug(XMLUtils.toString(data)); | 74 logger.debug(XMLUtils.toString(data)); |
75 } | 75 } |
76 | 76 |
77 String code = D4EArtifact.getDatacageIDValue(data); | 77 String code = D4EArtifact.getDatacageIDValue(data); |
78 | 78 |
79 String[] split = code.split(";"); | |
80 String id = split[0]; | |
81 String desc = ""; | |
82 if (split.length >= 2) { | |
83 desc = split[1]; | |
84 } | |
85 | |
79 if (code != null) { | 86 if (code != null) { |
80 this.name = NAME; | 87 this.name = NAME; |
81 this.description = Resources.getMsg( | 88 this.description = Resources.getMsg( |
82 callMeta, | 89 callMeta, |
83 "facet.porosity", | 90 "facet.porosity", |
84 "Porosity"); | 91 "Porosity", |
92 new Object[] { desc }); | |
85 D4EArtifact d4e = (D4EArtifact) artifact; | 93 D4EArtifact d4e = (D4EArtifact) artifact; |
86 d4e.addStringData("porosity_id", code); | 94 d4e.addStringData("porosity_id", id); |
87 } | 95 } |
88 } | 96 } |
89 } | 97 } |