浏览代码

Fixed bug in importer

Stephen Ficklin 12 年之前
父节点
当前提交
51c5406327
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tripal_pub/api/tripal_pub.api.inc

+ 2 - 2
tripal_pub/api/tripal_pub.api.inc

@@ -652,7 +652,7 @@ function tripal_pub_add_publication($pub_details, &$action, $do_contact = FALSE,
   // try to find it using the title and publication year.
   if (!$pub_id and $pub_details['Title']) {
     
-    $results = tripal_pub_get_pubs_by_title_type_pyear($pub_details['Title'], NULL, $pub_details['Year']);    
+    $results = tripal_pub_get_pubs_by_title_type_pyear_series($pub_details['Title'], NULL, $pub_details['Year']);    
     if (count($results) == 1) {
       $pub_id = $results[0];
     }
@@ -984,4 +984,4 @@ function tripal_pub_create_citation($pub) {
   $citation .= '.';
   
   return $citation;
-}
+}