function drush_tripal_chado_trp_import_pubs
3.x tripal_chado.drush.inc | drush_tripal_chado_trp_import_pubs() |
Imports publications into Chado
Related topics
File
- tripal_chado/
tripal_chado.drush.inc, line 128 - Contains function relating to drush-integration of this module.
Code
function drush_tripal_chado_trp_import_pubs() {
$create_contacts = drush_get_option('create_contacts');
$dbxref = drush_get_option('dbxref');
$do_report = drush_get_option('report');
$update = drush_get_option('update');
$uname = drush_get_option('username');
drush_tripal_set_user($uname);
if ($update == 'Y') {
$update = TRUE;
}
else {
$update = FALSE;
}
module_load_include('inc', 'tripal_chado', 'includes/loaders/tripal_chado.pub_importers');
if ($dbxref) {
chado_import_pub_by_dbxref($dbxref, $create_contacts, $update);
}
else {
chado_execute_active_pub_importers($do_report, $update);
}
}