Project

General

Profile

« Previous | Next » 

Revision 5c81a80c

Added by Patrick Plitzner over 7 years ago

#5448 Fix import of hybrid formula

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
397 397
            }
398 398
            //hybrid
399 399
            if(CdmUtils.isNotBlank(hybString)){
400
                //save hybrid formula
401
                if(CdmUtils.isNotBlank(formelString)){
402
                    Annotation annotation = Annotation.NewDefaultLanguageInstance(formelString);
403
                    annotation.setAnnotationType(AnnotationType.TECHNICAL());
404
                    name.addAnnotation(annotation);
405
                }
406 400
                //more than two hybrids not yet handled by name parser
407 401
                //TODO: use parser when implemented to fully support hybrids
408 402
                if(taxNameString.split(RedListUtil.HYB_SIGN).length>2){
......
437 431
                else{
438 432
                    logger.error("HYB value "+hybString+" not yet handled");
439 433
                }
434
                //save hybrid formula
435
                if(CdmUtils.isNotBlank(formelString)){
436
                    Annotation annotation = Annotation.NewDefaultLanguageInstance(formelString);
437
                    annotation.setAnnotationType(AnnotationType.TECHNICAL());
438
                    name.addAnnotation(annotation);
439
                }
440 440
            }
441 441
        }
442 442

  

Also available in: Unified diff