Forráskód Böngészése

Fixed genotype and phenotype display

Chun-Huai Cheng 7 éve
szülő
commit
b967609fea

+ 1 - 0
tripal_chado/includes/TripalFields/sbo__phenotype/sbo__phenotype_formatter.inc

@@ -42,6 +42,7 @@ class sbo__phenotype_formatter extends ChadoFieldFormatter {
     }
     foreach ($items as $delta => $item) {
       $row = array();
+      $phenotype = $item['value'];
       if ($has_type) {
         $row[] = $phenotype['type'];
       }

+ 3 - 3
tripal_chado/includes/TripalFields/so__genotype/so__genotype_formatter.inc

@@ -25,9 +25,9 @@ class so__genotype_formatter extends ChadoFieldFormatter {
       }
 
       // Get the field values
-      $genotype_name = $genotype['name'];
-      $description = $genotype['description'];
-      $type = $genotype['type'];
+      $genotype_name = $genotype['schema:name'];
+      $description = $genotype['schema:description'];
+      $type = $genotype['rdfs:type'];
 
       // Add a link i there is an entity.
       if (array_key_exists('entity', $item['value']) and $item['value']['entity']) {