Browse Source

Added several configurable options for allow end-user to specify how to find duplicate publications

spficklin 12 years ago
parent
commit
6ece673b30
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tripal_pub/includes/pub_form.inc
  2. 1 1
      tripal_pub/includes/tripal_pub.admin.inc

+ 1 - 1
tripal_pub/includes/pub_form.inc

@@ -261,7 +261,7 @@ function chado_pub_validate($node, &$form) {
   if (!$skip_duplicate_check) {  
 
     // make sure the publication is unique using the prefereed import duplication check
-    $import_dups_check = variable_get('tripal_pub_import_duplicate_check', 'title_year');
+    $import_dups_check = variable_get('tripal_pub_import_duplicate_check', 'title_year_media');
     switch ($import_dups_check) {            
       case 'title_year':
         $results = tripal_pub_get_pubs_by_title_type_pyear_series($title, NULL, $pyear, NULL);

+ 1 - 1
tripal_pub/includes/tripal_pub.admin.inc

@@ -55,7 +55,7 @@ function get_tripal_pub_admin_form_importing_set(&$form) {
     '#description' => t('During import, Tripal will attempt to find duplicate publications. 
        There are several options for how to find a duplicate publication.  Choose the
        option that best suits your needs.'),
-    '#default_value' => variable_get('tripal_pub_import_duplicate_check', 'title_year'),
+    '#default_value' => variable_get('tripal_pub_import_duplicate_check', 'title_year_media'),
   );
 }