Project

General

Profile

bug #8368

Updated by Andreas Kohlbecker about 1 year ago

Hallo Katja,

ich leite das mal an dich weiter, denn es gibt hier ein Problem mit deinem Kode in compose_cdm_specimen_or_observation_tree_entry():

~~~php ~~~
// collect typeStatus as label
if (isset($specimen_or_observation->specimenTypeDesignations)) {
$type_status = array();
foreach ($specimen_or_observation->specimenTypeDesignations as $typeDesignation) {
if (isset($typeDesignation->typeStatus->representation_L10n)) {
$type_status[] = $typeDesignation->typeStatus->representation_L10n;
}
}
if (count($type_status) > 0) {
$type_label = implode(', ', $type_status);
}
}

if (isset($typeDesignation)){ // <-- dies müsste doch innerhalb der foreach-Schleife oben passieren?
$title = $type_label . ' for: ' . $typeDesignation->typifiedNames; // <-- das ist ein array
}else{
$title = $type_label;
}
~~~

Du könntest statt dieses code auch einfach die Funktion compose_specimen_type_designations() verwenden

Viele Grüße
Andreas

Back

Add picture from clipboard (Maximum size: 40 MB)