Revision 64cfdac1
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/includes/taxon-node.inc | ||
---|---|---|
44 | 44 |
'', |
45 | 45 |
null); |
46 | 46 |
|
47 |
if(isset($taxon_node->status)){
|
|
48 |
$state_label = strtolower($taxon_node->status);
|
|
47 |
if(isset($taxon_node->nodeStatus)){
|
|
48 |
$state_label = strtolower($taxon_node->nodeStatus->message_L10n);
|
|
49 | 49 |
if(isset($taxon_node->statusNote_L10n->text)){ |
50 | 50 |
$state_label .= ' <span class="status-note">(' . $taxon_node->statusNote_L10n->text . ')</span>'; |
51 | 51 |
} |
52 |
$classification = cdm_ws_get(CDM_WS_CLASSIFICATION, array($taxon_node->classificationUUID)); |
|
52 | 53 |
$status_markup_tokens[] = [ |
53 | 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 '', |
54 |
'classification' => ' <span class="' . html_class_attribute_ref($taxon_node->classification) .'">[' . $taxon_node->classification->titleCache . ']</span>'
|
|
55 |
'classification' => ' <span class="' . html_class_attribute_ref($classification) .'">[' . $classification->titleCache . ']</span>'
|
|
55 | 56 |
]; |
56 | 57 |
} |
57 | 58 |
|
Also available in: Unified diff
switching portal to real TaxonNodeDTOs