Actions
bug #9721
closedSpecimen Table: wrong labels of specimen scans
Start date:
Due date:
% Done:
100%
Estimated time:
Severity:
normal
Found in Version:
Description
This problem becomes apparent for specimens with multiple scans
Files
Updated by Andreas Kohlbecker over 2 years 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);
}
Updated by Andreas Kohlbecker over 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|2de4677ebf72158a33a70d87e9794feb5f1269d1.
Updated by Andreas Kohlbecker over 2 years ago
- Status changed from Resolved to Closed
- Target version changed from Release 5.44 to Release 5.26
- % Done changed from 50 to 100
Updated by Andreas Kohlbecker over 2 years ago
- Category changed from cdm to cdmlib
Actions