Project

General

Profile

Revision 5e2ae553

ID5e2ae553c86b55b121392404a24ff0c56f1a0165
Parent b4e979be
Child af1b3519, e6c333f3

Added by Katja Luther about 4 years ago

small change in CdvNameExport

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/csv/caryophyllales/out/CsvNameExport.java
541 541
        String typeNameString = NOT_DESIGNATED;
542 542
        String statusString = null;
543 543
        if (it.hasNext()){
544
            NameTypeDesignation typeDes = HibernateProxyHelper.deproxy(it.next(), NameTypeDesignation.class);
545 544

  
545
            TypeDesignationBase typeDes = HibernateProxyHelper.deproxy(it.next(), TypeDesignationBase.class);
546 546

  
547
            BotanicalName typeName =  HibernateProxyHelper.deproxy(typeDes.getTypeName(), BotanicalName.class);
548
            if (typeName != null){
547
            if (typeDes instanceof NameTypeDesignation){
548
                NameTypeDesignation nameTypeDes = HibernateProxyHelper.deproxy(it.next(), NameTypeDesignation.class);
549 549

  
550
                typeNameString = "<i>" + typeName.getNameCache() +"</i> "  + typeName.getAuthorshipCache();
551
                if (typeDes.getTypeStatus() != null){
552
                    NameTypeDesignationStatus status = HibernateProxyHelper.deproxy(typeDes.getTypeStatus(), NameTypeDesignationStatus.class);
553
                    statusString = status.getTitleCache();
550
                BotanicalName typeName =  HibernateProxyHelper.deproxy(nameTypeDes.getTypeName(), BotanicalName.class);
551
                if (typeName != null){
552

  
553
                    typeNameString = "<i>" + typeName.getNameCache() +"</i> "  + typeName.getAuthorshipCache();
554
                    if (nameTypeDes.getTypeStatus() != null){
555
                        NameTypeDesignationStatus status = HibernateProxyHelper.deproxy(nameTypeDes.getTypeStatus(), NameTypeDesignationStatus.class);
556
                        statusString = status.getTitleCache();
557
                    }
554 558
                }
555 559
            }
556

  
557 560
        }
558 561
        nameRecord.put("typeName", typeNameString);
559 562
        StringBuffer homotypicalSynonyms = new StringBuffer();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)