Project

General

Profile

« Previous | Next » 

Revision d4c6ec84

Added by Andreas Müller over 4 years ago

ref #8508 minor and cleanup

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/validate/PesiErmsValidator.java
59 59
            e.printStackTrace();
60 60
            success = false;
61 61
        }
62
        //TBC
63 62
        System.out.println("end validation " + (success? "":"NOT ") + "successful.");
64 63
    }
65 64

  
......
363 362
        }else if (rankFk == 190){
364 363
            genusOrUninomial = srcRS.getString("tu1_name");
365 364
            infraGenericEpithet =  srcRS.getString("tu_name");
366
            //TODO does not work this way
365
            //TODO compareNameParts does not work this way
367 366
//        }else if (rankFk == 220){
368 367
//            genusOrUninomial = destRS.getString("p_GenusOrUninomial");
369 368
//            infraGenericEpithet = destRS.getString("p_InfraGenericEpithet");
370 369
//            specificEpithet = srcRS.getString("tu_name");
371 370
        }else{
372
            //TODO exception
371
            //TODO exception (compare name parts)
373 372
            return false;
374 373
        }
375 374
        boolean result = testEpis(destRS, genusOrUninomial, infraGenericEpithet,
......
514 513
        success &= equals("Taxon relation taxon2", "tu_id: " + srcRS.getInt("tu_accfinal"), destRS.getString("t2Id"), id);
515 514
        success &= equals("Taxon relation qualifier fk", PesiTransformer.IS_SYNONYM_OF, destRS.getInt("RelTaxonQualifierFk"), id);
516 515
        success &= equals("Taxon relation qualifier cache", "is synonym of", destRS.getString("RelQualifierCache"), id);
517
        //TODO enable after next import
518
//        success &= isNull("notes", destRS);
519
        //complete if no further relations need to added
516
        success &= isNull("notes", destRS);
517
        //complete if no further relations need to be added
520 518
        return success;
521 519
    }
522 520

  

Also available in: Unified diff