Revision 51688d00
Added by Andreas Müller almost 7 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/old/PesiAdditionalTaxonSourceExport.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.cdm.model.description.DescriptionElementSource; |
29 | 29 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
30 | 30 |
import eu.etaxonomy.cdm.model.description.TextData; |
31 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
31 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
32 | 32 |
import eu.etaxonomy.cdm.model.reference.Reference; |
33 | 33 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
34 | 34 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
... | ... | |
53 | 53 |
private static boolean sourceUse_AdditionalSource = false; |
54 | 54 |
private static boolean sourceUse_NomenclaturalReference = false; |
55 | 55 |
private static boolean sourceUse_SourceOfSynonymy = false; |
56 |
private static TaxonNameBase currentTaxonName = null;
|
|
56 |
private static TaxonName currentTaxonName = null; |
|
57 | 57 |
private static String citationMicroReference = null; |
58 | 58 |
|
59 | 59 |
public PesiAdditionalTaxonSourceExport() { |
... | ... | |
153 | 153 |
Reference reference = elementSource.getCitation(); |
154 | 154 |
|
155 | 155 |
// Check whether it was a synonym originally |
156 |
TaxonNameBase<?,?> nameUsedInSource = elementSource.getNameUsedInSource();
|
|
156 |
TaxonName nameUsedInSource = elementSource.getNameUsedInSource(); |
|
157 | 157 |
if (nameUsedInSource != null) { |
158 | 158 |
// It was a synonym originally: Set currentTaxonName to synonym's taxonName |
159 | 159 |
currentTaxonName = nameUsedInSource; |
Also available in: Unified diff
ref #6368 , ref #6671, ref #6630 adapt pesi to no taxon name model