Project

General

Profile

Revision e85fe2cc

IDe85fe2cc5ac3290427c8a1d49a1596db783bbca0
Parent 8376de88
Child 7f11c6ed

Added by Andreas Müller over 2 years ago

ref #6510 adapt source reference handling for representation import

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/terms/RepresentationCsvImportConfigurator.java
14 14
import eu.etaxonomy.cdm.database.ICdmDataSource;
15 15
import eu.etaxonomy.cdm.io.common.SimpleImportConfiguratorBase;
16 16
import eu.etaxonomy.cdm.model.reference.Reference;
17
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
17 18

  
18 19
/**
19 20
 * @author a.mueller
......
78 79
     */
79 80
    @Override
80 81
    public Reference getSourceReference() {
81
        // TODO Auto-generated method stub
82
        return null;
82
        if (this.sourceReference == null){
83
            sourceReference = ReferenceFactory.newGeneric();
84
            if (this.getSource() == null){
85
                sourceReference.setTitleCache("Term Representation Import " + getDateString(), true);
86
            }else{
87
                sourceReference.setTitleCache(getSource().toString(), true);
88
            }
89
        }
90
        return sourceReference;
83 91
    }
84 92

  
85 93
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)