Browse Source

Added home page for the controlled vocabulary lookup

Stephen Ficklin 7 years ago
parent
commit
a5df710c69
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tripal/includes/tripal.term_lookup.inc

+ 4 - 2
tripal/includes/tripal.term_lookup.inc

@@ -118,6 +118,9 @@ function tripal_vocabulary_lookup_vocab_page($vocabulary) {
   if (count($root_terms) == 0) {
     $items = '<p>Sometimes a vocabulary may not be fully loaded, but individual terms are. In this case the term browser is not available.</p>';
   }
+  else {
+    $items = '<p>Sometimes the full ontology may not be loaded into this site, but only terms needed by this site. The following allows browsing of loaded terms</p>' . $items;
+  }
 
   drupal_add_js(array(
     'tripal' => array(
@@ -136,8 +139,7 @@ function tripal_vocabulary_lookup_vocab_page($vocabulary) {
     'vocab_browser' => array(
       '#type' => 'item',
       '#title' => 'Term Browser',
-      '#markup' => '<p>Sometimes the full ontology may not be loaded into this site, but only terms needed by this site. The following allows browsing of loaded terms</p>' .
-         $items,
+      '#markup' => $items,
     ),
   );