This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository echobase. See https://gitlab.nuiton.org/codelutin/echobase.git commit 735993d3839438117561e3e2de652328b3e456ed Author: Julien Ruchaud <julien.ruchaud@debux.org> Date: Tue Oct 25 17:40:46 2016 +0200 Put the length to mm --- .../services/service/atlantos/xml/XmlBioticExport.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlBioticExport.java b/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlBioticExport.java index 3660b7a..606e225 100644 --- a/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlBioticExport.java +++ b/echobase-services/src/main/java/fr/ifremer/echobase/services/service/atlantos/xml/XmlBioticExport.java @@ -302,6 +302,12 @@ public class XmlBioticExport implements EchoBaseService { SpeciesCategory category = sample.getSpeciesCategory(); + String lengthClass = sampleDataValues.get("LengthClass"); + Float lengthClassValue = 0f; + if (lengthClass != null) { + lengthClassValue = Float.parseFloat(lengthClass) * 10; + } + xml.create("DataType", "IDREF", vocabulary.getVocabularyCode("AC_CatchDataType_R")); xml.create("SpeciesCode", @@ -327,9 +333,9 @@ public class XmlBioticExport implements EchoBaseService { sample.getSampleWeight()); xml.create("LengthCode", - "IDREF", vocabulary.getVocabularyCode(sampleDataValues.containsKey(SampleDataTypeImpl.LTCM0_5) ? "AC_LengthCode_halfcm" : "AC_LengthCode_cm")); + "IDREF", vocabulary.getVocabularyCode("AC_LengthCode_mm")); xml.create("LengthClass", - sampleDataValues.get("LengthClass")); + lengthClassValue); xml.create("LengthType", "IDREF", vocabulary.getVocabularyCode("AC_LengthMeasurementType_1")); xml.create("NumberAtLength", -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.