Project

General

Profile

Revision 73a78654

ID73a786543c85250685691823e5ec141cfd29d353
Parent fe8fa9b2
Child 4e36de56

Added by Patrick Plitzner about 1 year ago

ref #8467 add commented code

  • un-comment when cloned descriptions can be added to taxon descriptions as sources

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptiveDataSetService.java
289 289

  
290 290
        UpdateResult result = new UpdateResult();
291 291

  
292
        // clone specimen descriptions
293
        // create a snapshot of those descriptions that were used to create the aggregated descriptions
294
        // TODO implement when the clones descriptions can be attached to taxon descriptions as sources
295
//        for (DescriptionBase<?> descriptionBase : descriptions) {
296
//            if(descriptionBase instanceof SpecimenDescription){
297
//                SpecimenDescription specimenDescription = (SpecimenDescription)descriptionBase;
298
//                SpecimenOrObservationBase<?> specimenOrObservation = specimenDescription.getDescribedSpecimenOrObservation();
299
//                SpecimenDescription clone = (SpecimenDescription) specimenDescription.clone();
300
//                clone.setDescriptionType(DescriptionType.AggregationClone);
301
//                specimenOrObservation.addDescription(clone);
302
//            }
303
//        }
304

  
292 305
        // sort descriptions by taxa
293 306
        Map<TaxonNode, Set<UUID>> taxonNodeToSpecimenDescriptionMap = new HashMap<>();
294 307
        for (DescriptionBase descriptionBase : descriptions) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)