Revision ab2f9bc5
Added by Andreas Müller almost 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/EuroMedActivator.java | ||
---|---|---|
246 | 246 |
config.setSwitchSpeciesGroup(switchSpeciesGroup); |
247 | 247 |
|
248 | 248 |
// invoke import |
249 |
CdmDefaultImport<BerlinModelImportConfigurator> bmImport = new CdmDefaultImport<BerlinModelImportConfigurator>();
|
|
249 |
CdmDefaultImport<BerlinModelImportConfigurator> bmImport = new CdmDefaultImport<>(); |
|
250 | 250 |
bmImport.invoke(config); |
251 | 251 |
|
252 | 252 |
renameRanks(config, bmImport); |
... | ... | |
278 | 278 |
Representation repr = sectBot.getRepresentation(Language.ENGLISH()); |
279 | 279 |
repr.setAbbreviatedLabel(repr.getAbbreviatedLabel().replace("(bot.)", "").trim()); |
280 | 280 |
repr.setLabel(repr.getLabel().replace("(Botany)", "").trim()); |
281 |
sectBot.setTitleCache(null, false); //to definetely update the titleCache also
|
|
281 |
sectBot.setTitleCache(null, false); //to definitely update the titleCache also
|
|
282 | 282 |
app.getTermService().saveOrUpdate(sectBot); |
283 | 283 |
|
284 | 284 |
Rank subSectBot = (Rank)app.getTermService().find(Rank.SECTION_BOTANY().getUuid()); |
285 | 285 |
repr = subSectBot.getRepresentation(Language.ENGLISH()); |
286 | 286 |
repr.setAbbreviatedLabel(repr.getAbbreviatedLabel().replace("(bot.)", "").trim()); |
287 | 287 |
repr.setLabel(repr.getLabel().replace("(Botany)", "").trim()); |
288 |
subSectBot.setTitleCache(null, false); //to definetely update the titleCache also
|
|
288 |
subSectBot.setTitleCache(null, false); //to definitely update the titleCache also
|
|
289 | 289 |
app.getTermService().saveOrUpdate(subSectBot); |
290 | 290 |
app.commitTransaction(tx); |
291 | 291 |
} catch (Exception e) { |
Also available in: Unified diff
cleanup not compiling and other issues in app-import and pesi