Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/PorosityFacet.java @ 7981:45cced06490c facet-metadata
merged with default.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 30 Jun 2014 11:29:45 +0200 |
parents | 42076d94977e f9e3ef5d38d0 |
children | 98ca61cb58fb |
comparison
equal
deleted
inserted
replaced
7894:42076d94977e | 7981:45cced06490c |
---|---|
76 logger.debug(XMLUtils.toString(data)); | 76 logger.debug(XMLUtils.toString(data)); |
77 } | 77 } |
78 | 78 |
79 String code = D4EArtifact.getDatacageIDValue(data); | 79 String code = D4EArtifact.getDatacageIDValue(data); |
80 | 80 |
81 String[] split = code.split(";"); | |
82 String id = split[0]; | |
83 String desc = ""; | |
84 if (split.length >= 2) { | |
85 desc = split[1]; | |
86 } | |
87 | |
81 if (code != null) { | 88 if (code != null) { |
82 this.name = NAME; | 89 this.name = NAME; |
83 this.description = Resources.getMsg( | 90 this.description = Resources.getMsg( |
84 callMeta, | 91 callMeta, |
85 "facet.porosity", | 92 "facet.porosity", |
86 "Porosity"); | 93 "Porosity", |
94 new Object[] { desc }); | |
87 D4EArtifact d4e = (D4EArtifact) artifact; | 95 D4EArtifact d4e = (D4EArtifact) artifact; |
88 d4e.addStringData("porosity_id", code); | 96 d4e.addStringData("porosity_id", id); |
89 } | 97 } |
90 } | 98 } |
91 } | 99 } |