Revision 281ec7b2
Added by Andreas Kohlbecker almost 4 years ago
modules/cdm_dataportal/includes/taxon-node.inc | ||
---|---|---|
50 | 50 |
$state_label .= ' <span class="status-note">(' . $taxon_node->statusNote_L10n->text . ')</span>'; |
51 | 51 |
} |
52 | 52 |
$classification = cdm_ws_get(CDM_WS_CLASSIFICATION, array($taxon_node->classificationUUID)); |
53 |
$status_markup_tokens[] = [ |
|
53 |
$status_markup_tokens[$state_label . '-' . $taxon_node->uuid] = [
|
|
54 | 54 |
'status' => '<span class="' . html_class_attribute_ref($taxon_node) .'">' . $state_label . $annotations_and_sources['foot_note_keys'] . '%s</span>', // %s will be replaced by the $classification_markup or by '', |
55 | 55 |
'classification' => ' <span class="' . html_class_attribute_ref($classification) .'">[' . $classification->titleCache . ']</span>' |
56 | 56 |
]; |
... | ... | |
58 | 58 |
|
59 | 59 |
} |
60 | 60 |
if(count($status_markup_tokens) > 0){ |
61 |
ksort($status_markup_tokens); |
|
61 | 62 |
$status_markup = []; |
62 | 63 |
$label_plural |= count($status_markup_tokens) > 1; |
63 | 64 |
$label = $label_plural ? t('Placement status') : t('Placement status'); |
Also available in: Unified diff
ref #9102 adapting tests