Project

General

Profile

« Previous | Next » 

Revision 801f7c6e

Added by Andreas Müller almost 7 years ago

ref #6754 fix name relationship bug and some cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/dwca/out/DwcaResourceRelationExport.java
124 124
                DwcaResourceRelationRecord record = new DwcaResourceRelationRecord(metaRecord, config);
125 125
                IdentifiableEntity<?> subject = CdmBase.deproxy(rel.getFromName());
126 126
                IdentifiableEntity<?> object = CdmBase.deproxy(rel.getToName());
127
                name = CdmBase.deproxy(name);
127 128
                boolean isInverse = false;
128 129
                if(subject == name){
129 130
                    subject = taxon;
......
184 185
		if (object.isInstanceOf(TaxonName.class)){
185 186
			record.setScientificName(object.getTitleCache());
186 187
		}
187

  
188

  
189 188
	}
190 189

  
191 190

  
......
218 217
		record.setRelationshipRemarks(interaction.getAnnotations());
219 218
		//TODO does this need to be filled?
220 219
		record.setScientificName(null);
221

  
222 220
	}
223 221

  
224 222

  
......
234 232
	protected boolean isIgnore(DwcaTaxExportState state) {
235 233
		return ! state.getConfig().isDoResourceRelation();
236 234
	}
237

  
238 235
}

Also available in: Unified diff