Revision 293cb034
Added by Andreas Müller about 12 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/vibrant/EuroMedActivator.java | ||
---|---|---|
88 | 88 |
|
89 | 89 |
static boolean useClassification = true; |
90 | 90 |
|
91 |
static boolean isSplitTdwgCodes = false; |
|
92 | 91 |
|
93 | 92 |
static String taxonTable = "v_cdm_exp_taxaAll"; |
94 | 93 |
static String classificationQuery = " SELECT DISTINCT t.PTRefFk, r.RefCache FROM PTaxon t INNER JOIN Reference r ON t.PTRefFk = r.RefId WHERE t.PTRefFk = " + sourceSecId; |
... | ... | |
117 | 116 |
static final boolean doTaxonNames = true; |
118 | 117 |
static final boolean doRelNames = true; |
119 | 118 |
static final boolean doNameStatus = true; |
120 |
static final boolean doTypes = false; //serious types do not exist in E+M |
|
121 | 119 |
static final boolean doNameFacts = true; |
122 | 120 |
|
123 | 121 |
//taxa |
... | ... | |
125 | 123 |
static final boolean doRelTaxa = true; |
126 | 124 |
static final boolean doFacts = true; |
127 | 125 |
static final boolean doOccurences = true; |
128 |
static final boolean doCommonNames = true;
|
|
126 |
static final boolean doCommonNames = false; //currently creates errors
|
|
129 | 127 |
|
130 |
//etc. |
|
131 |
static final boolean doMarker = true; |
|
132 | 128 |
|
133 | 129 |
|
134 | 130 |
// **************** SELECTED ********************* |
... | ... | |
154 | 150 |
// |
155 | 151 |
// //etc. |
156 | 152 |
// static final boolean doMarker = false; |
157 |
|
|
153 |
|
|
154 |
//always false |
|
155 |
static final boolean doTypes = false; |
|
156 |
static final boolean doMarker = false; |
|
157 |
|
|
158 | 158 |
|
159 | 159 |
public void importEm2CDM (Source source, ICdmDataSource destination, DbSchemaValidation hbm2dll){ |
160 | 160 |
System.out.println("Start import from BerlinModel("+ source.getDatabase() + ") to " + destination.getDatabase() + " ..."); |
... | ... | |
216 | 216 |
config.setWebMarkerFilter(webMarkerFilter); |
217 | 217 |
config.setUseSingleClassification(useSingleClassification); |
218 | 218 |
|
219 |
//TDWG codes |
|
220 |
config.setSplitTdwgCodes(isSplitTdwgCodes); |
|
221 |
|
|
222 |
|
|
223 | 219 |
config.setCheck(check); |
224 | 220 |
config.setEditor(editor); |
225 | 221 |
config.setRecordsPerTransaction(partitionSize); |
Also available in: Unified diff
vibrant activator changes