Project

General

Profile

« Previous | Next » 

Revision ef108bcf

Added by Patrick Plitzner about 5 years ago

Add id in vocabulary and source to terms

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/plantglossary/kew/KewPlantGlossaryImport.java
53 53
        }
54 54

  
55 55
        Feature structure = Feature.NewInstance(currentRecord.get(HEADER_DEFINITION), termLabel, null);
56
        structure.setIdInVocabulary(termLabel);
56 57

  
57 58
        TermVocabulary vocabulary = importState.getStructureVoc();
58 59
        vocabulary.addTerm(structure);
59 60

  
60
        structure.addSource(IdentifiableSource.NewInstance(OriginalSourceType.Import, importState.getCitation().getTitle(), null, importState.getCitation(), null));
61
        IdentifiableSource source = IdentifiableSource.NewInstance(OriginalSourceType.Import, importState.getCitation().getTitle(), null, importState.getCitation(), null);
62
        source.setIdInSource(termLabel);
63
        structure.addSource(source);
61 64

  
62 65
        getVocabularyService().saveOrUpdate(vocabulary);
63 66
        getTermService().saveOrUpdate(structure);

Also available in: Unified diff