Project

General

Profile

Revision 64cfdac1

ID64cfdac1799ed42d01f6259293437ff2370aae8d
Parent e7f3789b
Child 281ec7b2

Added by Andreas Kohlbecker 7 months ago

switching portal to real TaxonNodeDTOs

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)