Project

General

Profile

« Previous | Next » 

Revision 76108c5a

Added by Andreas Kohlbecker over 12 years ago

fixing #2482 (Dataportal does not show features)

View differences:

5.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
1050 1050
      $islinkToOtherNode = isset($child->otherNode);
1051 1051
      $islinkToNode = $child->nodeNumber && !$islinkToManyTaxa && !$islinkToOtherNode; // either null or 0
1052 1052
      $hasQuestion = isset($polytomousKeyNode->question->label_l10n);
1053
      $hasFeature = isset($polytomousKeyNode->feature);
1053 1054

  
1054 1055
      //$indentEdge = $hasQuestion && $childIndex > 0;
1055 1056

  
1056
      // Questions
1057
      // Question
1057 1058
      if($hasQuestion && $childIndex == 0){
1058 1059
          // place question, as extra table row
1059 1060
          $out .= '<tr class="question new_section">';
......
1072 1073

  
1073 1074
      $out .= '<td ' . RenderHints::getHtmlElementID($child) . '  class="edge'.($hasQuestion? ' edge-indent': '').'">';
1074 1075

  
1076
      // Feature
1077
      if($hasFeature){
1078
        $out .= $polytomousKeyNode->feature->representation_L10n . " ";
1079
      }
1075 1080

  
1081
      // Statement
1076 1082
      $out .=  $child->statement->label_l10n;
1077 1083

  
1078 1084
      // --- links to nodes taxa and subkeys

Also available in: Unified diff