Project

General

Profile

Revision cf60f92a

IDcf60f92a810323744404682d8e50dc256b43ade7
Parent 441eb4b5
Child 0a5679a4

Added by Andreas Müller over 3 years ago

ref #6887 handle non LSID identifiers in CoL import

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/dwca/in/DwcTaxonStreamItem2CdmTaxonConverter.java
27 27
import eu.etaxonomy.cdm.io.stream.StreamItem;
28 28
import eu.etaxonomy.cdm.model.common.Annotation;
29 29
import eu.etaxonomy.cdm.model.common.CdmBase;
30
import eu.etaxonomy.cdm.model.common.DefinedTerm;
30 31
import eu.etaxonomy.cdm.model.common.Extension;
31 32
import eu.etaxonomy.cdm.model.common.ExtensionType;
32 33
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
34
import eu.etaxonomy.cdm.model.common.Identifier;
33 35
import eu.etaxonomy.cdm.model.common.LSID;
34 36
import eu.etaxonomy.cdm.model.common.Language;
35 37
import eu.etaxonomy.cdm.model.common.OriginalSourceType;
......
368 370
					String message = "LSID is malformed and can't be handled as LSID: %s";
369 371
					message = String.format(message, identifier);
370 372
					fireWarningEvent(message, csvTaxonRecord, 4);
373
					Identifier.NewInstance(taxonBase, identifier, DefinedTerm.getTermByClassAndUUID(DefinedTerm.class, DefinedTerm.uuidLsid));
371 374
				}
372 375
			}else{
373
				String message = "Identifier type not supported: %s";
376
				Identifier.NewInstance(taxonBase, identifier, null);
377
			    String message = "Identifier type not recognized. Create generic identifier: %s";
374 378
				message = String.format(message, identifier);
375
				fireWarningEvent(message, csvTaxonRecord, 4);
379
				fireWarningEvent(message, csvTaxonRecord, 1);
376 380
			}
377 381
		}
378 382

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)