Project

General

Profile

« Previous | Next » 

Revision f98b108b

Added by Andreas Müller about 12 years ago

Latest changes for PESI export and introduce transformers in export mappings

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/PesiExportActivator.java
42 42
	static final UUID secUuid = UUID.fromString("d03ef02a-f226-4cb1-bdb4-f6c154f08a34");
43 43
	static final int sourceSecId = 7331;
44 44
	static final int isHomotypicId = 72;
45
	//Taxon names can't be mapped to their CDM ids as PESI Taxon table mainly holds taxa and there IDs. We ad nameIdStart to the TaxonName id to get a unique id
45 46
	static final int nameIdStart = 10000000;
46 47
	
47 48
	static final int partitionSize = 5000;
......
63 64
	
64 65
	//taxa
65 66
	static final boolean doTaxa = true;
66
	static final boolean doRelTaxa = true;
67
	static final boolean doRelTaxa = false;
67 68
	static final boolean doNotes = true;
68 69
	static final boolean doNoteSources = true;
69 70
	static final boolean doAdditionalTaxonSource = true;
70 71
	static final boolean doOccurrence = true;
71 72
	static final boolean doOccurrenceSource = true;
72 73
	static final boolean doImage = true;
74
	static final boolean doTreeIndex = false;
75
	static final boolean doRank = false;
76
	static final boolean doInferredSynonyms = false;
73 77
	
74 78

  
75 79
// ************************ NONE **************************************** //
......
86 90
//	static final boolean doOccurrence = false;
87 91
//	static final boolean doOccurrenceSource = false;
88 92
//	static final boolean doImage = false;
93
//	static final boolean doTreeIndex = true;
94
//	static final boolean doRank = true;
95
//	static final boolean doInferredSynonyms = true;
89 96
	
90 97
	
91 98
	public boolean 	doExport(ICdmDataSource source){
......
104 111
		config.setDoNotes(doNotes);
105 112
		config.setDoNoteSources(doNoteSources);
106 113
		config.setDoOccurrenceSource(doOccurrenceSource);
114
		config.setDoTreeIndex(doTreeIndex);
115
		config.setDoRank(doRank);
116
		config.setDoInferredSynonyms(doInferredSynonyms);
107 117
		
108 118
		config.setCheck(check);
109 119
		config.setLimitSave(partitionSize);

Also available in: Unified diff