Project

General

Profile

Actions

bug #9721

closed

Specimen Table: wrong labels of specimen scans

Added by Andreas Kohlbecker over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:


Files

picture792-1.png (64.6 KB) picture792-1.png Andreas Kohlbecker, 07/22/2021 11:51 AM
Actions #1

Updated by Andreas Kohlbecker over 1 year ago

  • Description updated (diff)
  • Category changed from cdm-dataportal to cdm

This is caused by the DerivationTreeSummaryDTO which composes identical labels for multiple scans of the same specimen:

The portal/occurrence/89d36e79-3e80-4468-986e-411ca391452e/asDTO.json

"class": "DerivationTreeSummaryDTO",
"specimenScans": [

    {
        "linkText": "CEDiT 2017E68",
        "class": "Link",
        "uri": "https://pictures.bgbm.org/digilib/Scaler?fn=Cyprus/Sisymbrium_aegyptiacum_C1.jpg&mo=file"
    },
    {
        "linkText": "CEDiT 2017E68",
        "class": "Link",
        "uri": "https://plants.jstor.org/stable/viewer/10.5555/al.ap.specimen.m0093531"
    },
    {
        "linkText": "CEDiT 2017E68",
        "class": "Link",
        "uri": "https://plants.jstor.org/stable/viewer/10.5555/al.ap.specimen.linn-hs1310-54"
    }

]

code:

if (media.getKindOfUnit().getUuid().equals(DefinedTerm.uuidSpecimenScan)) {
                        derivateDataDTO.addSpecimenScanUuid(media.getMediaSpecimen().getUuid());
                        String imageLinkText = "scan";
                        imageLinkText = specimenIdentifier;
                        derivateDataDTO.addSpecimenScan(mediaUri, imageLinkText);
                    }
Actions #2

Updated by Andreas Kohlbecker over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #3

Updated by Andreas Kohlbecker over 1 year ago

  • Status changed from Resolved to Closed
  • Target version changed from Release 5.37 to Release 5.26
  • % Done changed from 50 to 100
Actions #4

Updated by Andreas Kohlbecker over 1 year ago

  • Category changed from cdm to cdmlib
Actions

Also available in: Atom PDF