Revision 0ff8cbcf
Added by Andreas Kohlbecker over 3 years ago
modules/cdm_dataportal/includes/occurrences.inc | ||
---|---|---|
1010 | 1010 |
$children = array(); |
1011 | 1011 |
$child = array(); |
1012 | 1012 |
$child['data'] =$specimen; |
1013 |
// $children[] = create_specimen_array($specimenOrObservation->derivates); |
|
1014 |
if (isset($fieldunit_dto->derivates) && sizeof($fieldunit_dto->derivates) > 0){
|
|
1015 |
usort($fieldunit_dto->derivates, 'compare_specimen_or_observation_dtos'); |
|
1016 |
$child['children']= specimen_render_array_items($fieldunit_dto->derivates); |
|
1013 |
// $children[] = create_specimen_array($specimenOrObservation->derivatives);
|
|
1014 |
if (isset($fieldunit_dto->derivatives) && sizeof($fieldunit_dto->derivatives) > 0){
|
|
1015 |
usort($fieldunit_dto->derivatives, 'compare_specimen_or_observation_dtos');
|
|
1016 |
$child['children']= specimen_render_array_items($fieldunit_dto->derivatives);
|
|
1017 | 1017 |
} |
1018 | 1018 |
$children[]=$child; |
1019 | 1019 |
$items['children'] = $children; |
... | ... | |
1116 | 1116 |
$detail_html .= create_label("Citation") . $derivateHierarchy->citation . "<br>"; |
1117 | 1117 |
} |
1118 | 1118 |
//assemble specimen details |
1119 |
if ($derivateHierarchy->derivates) { |
|
1119 |
if ($derivateHierarchy->derivatives) {
|
|
1120 | 1120 |
$derivates_orderd = []; |
1121 |
foreach ($derivateHierarchy->derivates as $derivedUnitDTO) { |
|
1121 |
foreach ($derivateHierarchy->derivatives as $derivedUnitDTO) {
|
|
1122 | 1122 |
$derivates_orderd[$derivedUnitDTO->specimenIdentifier] = $derivedUnitDTO; |
1123 | 1123 |
} |
1124 | 1124 |
ksort($derivates_orderd); |
Also available in: Unified diff
ref #9252 renaming property derivates to derivatives - adapting dataportal