Project

General

Profile

Revision f13666da

IDf13666da3753c4c64d7c80e0e068b605db4c0cae
Parent c195f4fb
Child 3f545c52

Added by Andreas Müller about 2 years ago

ref #8104 adapt CubaExcelImport to lastNamePart

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/cuba/CubaExcelImport.java
889 889
            newCombination = TaxonName.castAndDeproxy(name1);
890 890
        }
891 891
        if (matchAuthor(basionymName.getCombinationAuthorship(), newCombination.getBasionymAuthorship())
892
                && BasionymRelationCreator.matchFamilyNamePart(basionymName, newCombination)){
892
                && BasionymRelationCreator.matchLastNamePart(basionymName, newCombination)){
893 893
            newCombination.addBasionym(basionymName);
894 894
        }else{
895 895
            if ( (newCombination.getBasionyms().isEmpty() || ! onlyIfNotYetExists)
......
1348 1348
        return rootNode;
1349 1349
    }
1350 1350

  
1351

  
1352
    /**
1353
     * @param record
1354
     * @param originalKey
1355
     * @return
1356
     */
1357
    @Override
1358
    public String getValue(Map<String, String> record, String originalKey) {
1359
        String value = record.get(originalKey);
1360
        if (! StringUtils.isBlank(value)) {
1361
        	if (logger.isDebugEnabled()) { logger.debug(originalKey + ": " + value); }
1362
        	value = CdmUtils.removeDuplicateWhitespace(value.trim()).toString();
1363
        	return value;
1364
        }else{
1365
        	return null;
1366
        }
1367
    }
1368

  
1369

  
1370

  
1371 1351
	/**
1372 1352
	 *  Stores taxa records in DB
1373 1353
	 */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)