function drush_tripal_pub_tripal_pubs_import
2.x tripal_pub.drush.inc | drush_tripal_pub_tripal_pubs_import() |
3.x tripal_pub.drush.inc | drush_tripal_pub_tripal_pubs_import() |
1.x tripal_pub.drush.inc | drush_tripal_pub_tripal_pubs_import() |
Imports publications into Chado
File
- tripal_pub/
tripal_pub.drush.inc, line 67 - Contains function relating to drush-integration of this module.
Code
function drush_tripal_pub_tripal_pubs_import() {
$create_contacts = drush_get_option('create_contacts');
$dbxref = drush_get_option('dbxref');
$do_report = drush_get_option('report');
$update = drush_get_option('update');
if ($update == 'Y') {
$update = TRUE;
}
else {
$update = FALSE;
}
if ($dbxref) {
tripal_pub_import_by_dbxref($dbxref, $create_contacts, $update);
}
else {
tripal_pub_import_publications($do_report, $update);
}
}