Project

General

Profile

« Previous | Next » 

Revision 0c392a47

Added by Andreas Müller about 12 years ago

latest updates to PESI export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/PesiExportActivator.java
58 58

  
59 59
// ****************** ALL *****************************************
60 60
	
61
	//authors
62
	static final boolean doAuthors = true;
63 61
	//references
64 62
	static final DO_REFERENCES doReferences =  DO_REFERENCES.ALL;
65 63
	
66
	static final boolean doNameFacts = false;
67
	
68 64
	//taxa
69 65
	static final boolean doTaxa = true;
70 66
	static final boolean doRelTaxa = true;
71
	static final boolean doFacts = true;
72
	static final boolean doOccurences = true;
67
	static final boolean doNotes = true;
68
	static final boolean doNoteSources = true;
69
	static final boolean doAdditionalTaxonSource = true;
70
	static final boolean doOccurrence = true;
71
	static final boolean doOccurrenceSource = true;
72
	static final boolean doImage = true;
73
	
73 74

  
74 75
// ************************ NONE **************************************** //
75 76
	
76
//	//authors
77
//	static final boolean doAuthors = false;
78
//	
79 77
//	//references
80
//	static final DO_REFERENCES doReferences =  DO_REFERENCES.ALL;
81
//	//names
82
//	static final boolean doNameFacts = false;
78
//	static final DO_REFERENCES doReferences =  DO_REFERENCES.NONE;
83 79
//	
84 80
//	//taxa
85 81
//	static final boolean doTaxa = false;
86 82
//	static final boolean doRelTaxa = false;
87
//	static final boolean doFacts = false;
88
//	static final boolean doOccurences = false;
89
//	
83
//	static final boolean doNotes = false;
84
//	static final boolean doNoteSources = false;
85
//	static final boolean doAdditionalTaxonSource = false;
86
//	static final boolean doOccurrence = false;
87
//	static final boolean doOccurrenceSource = false;
88
//	static final boolean doImage = false;
89
	
90 90
	
91 91
	public boolean 	doExport(ICdmDataSource source){
92 92
		System.out.println("Start export to PESI ("+ pesiDestination.getDatabase() + ") ...");
......
96 96
		
97 97
		PesiExportConfigurator config = PesiExportConfigurator.NewInstance(destination, source);
98 98
		
99
		config.setDoNameFacts(doNameFacts);
100
		
101 99
		config.setDoTaxa(doTaxa);
102 100
		config.setDoRelTaxa(doRelTaxa);
103
		config.setDoFacts(doFacts);
104
		config.setDoOccurrence(doOccurences);
101
		config.setDoOccurrence(doOccurrence);
105 102
		config.setDoReferences(doReferences);
103
		config.setDoImages(doImage);
104
		config.setDoNotes(doNotes);
105
		config.setDoNoteSources(doNoteSources);
106
		config.setDoOccurrenceSource(doOccurrenceSource);
107
		
106 108
		config.setCheck(check);
107 109
		config.setLimitSave(partitionSize);
108 110
		config.setIdType(idType);

Also available in: Unified diff