Project

General

Profile

« Previous | Next » 

Revision b436f19a

Added by Andreas Müller almost 5 years ago

ref #7334, ref #6627 Adapted CDM light to support pp synonyms (cont.)

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/cdmLight/CdmLightClassificationExport.java
747 747
            //As we currently do have only 1 reference column in CDM light the synonym relationship
748 748
            //reference is used here. This is according to how pro parte synonyms were mapped to
749 749
            //concept relationships in #7334
750
            Reference secRef = rel.getCitation();
751
            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE_FK)] = getId(state, secRef);
752
            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE)] = getTitleCache(secRef);
753

  
754
//            Reference secRef = ppSyonym.getSec();
750
//            Reference secRef = rel.getCitation();
755 751
//            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE_FK)] = getId(state, secRef);
756 752
//            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE)] = getTitleCache(secRef);
757
//            Reference synSecRef = rel.getCitation();
758
//            csvLine[table.getIndex(CdmLightExportTable.SYN_SEC_REFERENCE_FK)] = getId(state, secRef);
759
//            csvLine[table.getIndex(CdmLightExportTable.SYN_SEC_REFERENCE)] = getTitleCache(secRef);
753

  
754
            Reference secRef = ppSyonym.getSec();
755
            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE_FK)] = getId(state, secRef);
756
            csvLine[table.getIndex(CdmLightExportTable.SEC_REFERENCE)] = getTitleCache(secRef);
757
            Reference synSecRef = rel.getCitation();
758
            csvLine[table.getIndex(CdmLightExportTable.SYN_SEC_REFERENCE_FK)] = getId(state, secRef);
759
            csvLine[table.getIndex(CdmLightExportTable.SYN_SEC_REFERENCE)] = getTitleCache(secRef);
760 760

  
761 761
            //pro parte type
762 762
            TaxonRelationshipType type = rel.getType();
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/cdmLight/CdmLightExportTable.java
45 45
    protected static final String PARENT_FK = "Parent_FK";
46 46
    protected static final String SEC_REFERENCE_FK = "SecReference_FK";
47 47
    protected static final String SEC_REFERENCE = "SecReference";
48
    protected static final String SYN_SEC_REFERENCE_FK = "SynSecReference_FK";
49
    protected static final String SYN_SEC_REFERENCE = "SynSecReference";
50

  
48 51
    protected static final String IS_PRO_PARTE = "IsProParteSynonym";
49 52
    protected static final String IS_PARTIAL = "IsPartial";
50 53
    protected static final String IS_MISAPPLIED = "IsMisapplied";

Also available in: Unified diff