spficklin 13 years ago
parent
commit
bd3eb10537
2 changed files with 3 additions and 3 deletions
  1. 1 1
      tripal_feature/indexFeatures.php
  2. 2 2
      tripal_library/tripal_library.module

+ 1 - 1
tripal_feature/indexFeatures.php

@@ -93,7 +93,7 @@ function tripal_features_reindex ($max_sync,$job_id = NULL){
       if($job_id and $i % $interval == 0){
       if($job_id and $i % $interval == 0){
          $prog = intval(($i/$count)*100);
          $prog = intval(($i/$count)*100);
          tripal_job_set_progress($job_id,$prog);
          tripal_job_set_progress($job_id,$prog);
-         print "$prog\n";
+         print "$prog%\n";
       }
       }
 
 
       // sync only the max requested
       // sync only the max requested

+ 2 - 2
tripal_library/tripal_library.module

@@ -397,9 +397,9 @@ function theme_tripal_library_search_index ($node) {
       // get the libraries for the organism
       // get the libraries for the organism
       $previous_db = tripal_db_set_active('chado');
       $previous_db = tripal_db_set_active('chado');
       $sql = "SELECT * FROM {library} L ".
       $sql = "SELECT * FROM {library} L ".
-       	     "WHERE L.Organism_id = $node->organism->organism_id";
+       	     "WHERE L.organism_id = %d";
       $libraries = array();
       $libraries = array();
-      $results = db_query($sql);
+      $results = db_query($sql,$node->organism->organism_id);
       while($library = db_fetch_object($results)){
       while($library = db_fetch_object($results)){
          // get the description
          // get the description
          $sql = "SELECT * FROM {libraryprop} LP ".
          $sql = "SELECT * FROM {libraryprop} LP ".