瀏覽代碼

Added functionality to post run of importer

Stephen Ficklin 8 年之前
父節點
當前提交
e7310eee02
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 4 0
      tripal/api/tripal.importer.api.inc
  2. 0 3
      tripal_chado/includes/tripal_chado.mapping.inc

+ 4 - 0
tripal/api/tripal.importer.api.inc

@@ -116,6 +116,10 @@ function tripal_run_importer($import_id, TripalJob $job = NULL) {
 
     print "\nDone\n";
 
+
+    // Check for tables with new cvterms
+    tripal_chado_map_cvterms();
+
     // Check for new fields and notify the user.
     tripal_tripal_cron_notification();
 

+ 0 - 3
tripal_chado/includes/tripal_chado.mapping.inc

@@ -10,9 +10,6 @@ function tripal_chado_map_cvterms() {
 
   // Perform this action in a transaction
   $transaction = db_transaction();
-  print "\nNOTE: Populating of chado_cvterm_mapping table is performed using a database transaction. \n" .
-      "If the load fails or is terminated prematurely then the entire set of \n" .
-      "insertions/updates is rolled back and will not be found in the database\n\n";
   try {
 
     // Iterate through the referring tables to see what records are there.