Project

General

Profile

« Previous | Next » 

Revision c810e72f

Added by Andreas Müller almost 10 years ago

use E+M areas in BM import and Pesi export

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelOccurrenceImport.java
18 18
import java.util.List;
19 19
import java.util.Map;
20 20
import java.util.Set;
21
import java.util.UUID;
21 22

  
22 23
import org.apache.commons.lang.StringUtils;
23 24
import org.apache.log4j.Logger;
......
223 224
		
224 225
		//label
225 226
		NamedArea area = NamedArea.NewInstance(geoSearch, unit, emCode);
227
		
228
		//uuid
229
		UUID uuid = BerlinModelTransformer.getEMAreaUuid(emCode);
230
		if (uuid != null){
231
			area.setUuid(uuid);
232
		}else{
233
			logger.warn("Uuuid for emCode could not be defined: " + emCode);
234
		}
235
		
226 236
		//code
227 237
		area.setIdInVocabulary(emCode);
228 238
		//notes

Also available in: Unified diff