Revision fdf52d6a
Added by Andreas Kohlbecker over 7 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
674 | 674 |
*/ |
675 | 675 |
function term_tree_as_options($term_dto_tree, &$options = array(), $prefix = '') { |
676 | 676 |
|
677 |
uasort($term_dto_tree, 'compare_terms_by_representationL10n'); |
|
677 | 678 |
foreach ($term_dto_tree as $uuid => $dto) { |
678 | 679 |
$label = $prefix . '<span class="child-label">' |
679 | 680 |
. $dto->representation_L10n |
680 | 681 |
. '</span><span class="child-label-abbreviated"> (' . $dto->representation_L10n_abbreviatedLabel . ')</span>'; |
681 | 682 |
$options[$uuid] = $label; |
682 | 683 |
if (isset($dto->children) && is_array($dto->children)) { |
683 |
uasort($dto->children, 'compare_terms_by_representationL10n'); |
|
684 | 684 |
term_tree_as_options( |
685 | 685 |
$dto->children, |
686 | 686 |
$options, $prefix |
687 |
. '<span data-cdm-parent="' . $uuid . '" class="parent"></span>'); |
|
687 |
. '<span data-cdm-parent="' . $uuid . '" class="parent"></span>' |
|
688 |
); |
|
688 | 689 |
} |
689 | 690 |
} |
690 | 691 |
|
Also available in: Unified diff
fix #6087 areaFilter item sorting fixed