Skip to content

Commit

Permalink
Merge pull request #1233 from dsenalik/20211031_pub_importer
Browse files Browse the repository at this point in the history
20211031 pub importer
  • Loading branch information
spficklin committed Nov 22, 2021
2 parents 141f4a5 + 297712e commit 2580fc6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tripal_chado/api/modules/tripal_chado.pub.api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function chado_publication_exists($pub_details) {
$series_name = substr($pub_details['Conference Name'], 0, 255);
}

// Make sure the publication is unique using the prefereed import
// Make sure the publication is unique using the preferred import
// duplication check.
$import_dups_check = variable_get('tripal_pub_import_duplicate_check', 'title_year_media');
$pubs = [];
Expand Down Expand Up @@ -571,8 +571,13 @@ function chado_execute_pub_importer($import_id, $publish = TRUE,
return FALSE;
}

// Summary of importer results for each action
$message = 'Done. Publication importer summary:';
foreach ($report as $action => $pubs) {
$message .= ' ' . $action . '=' . count($pubs);
}
tripal_report_error($message_type, TRIPAL_INFO,
"Done.", [], $message_opts);
$message, [], $message_opts);

return $report;
}
Expand Down

0 comments on commit 2580fc6

Please sign in to comment.