Browse Source

Fixed bug when adding new publication with Dbxref

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

+ 1 - 1
tripal_pub/includes/pub_form.inc

@@ -134,7 +134,7 @@ function chado_pub_form($node, $form_state) {
       the last name of the author followed by initials. Each author should be separated by a comma. Next comes 
       the title, followed by the series title (e.g. journal name), publication date (4 digit year, 3 character Month, day), volume, issue and page numbers. You may also use HTML to provide a link in the citation.  
       Below is an example: <pre>Medeiros PM, Ladio AH, Santos AM, Albuquerque UP. <a href="http://www.ncbi.nlm.nih.gov/pubmed/23462414" target="_blank">Does the selection of medicinal plants by Brazilian local populations 
-        suffer taxonomic influence?</a> J Ethnopharmacol. 2013 Apr 19; 146(3):842-52. PubMed PMID: 23462414</pre>'),
+        suffer taxonomic influence?</a> J Ethnopharmacol. 2013 Apr 19; 146(3):842-52.</pre>'),
     '#required' => TRUE,
   );
   

+ 1 - 1
tripal_pub/tripal_pub.module

@@ -392,7 +392,7 @@ function chado_pub_insert($node) {
     
     // add in any database cross-references
     foreach ($cross_refs as $index => $ref) {
-      $pub_dbxref = tripal_pub_add_pub_dbxref($pub_id, $ref);
+      $pub_dbxref = tripal_pub_add_pub_dbxref($pub['pub_id'], $ref);
       if (!$pub_dbxref) { 
         drupal_set_message("Error cannot add publication cross reference: $ref", "error");
         watchdog('tripal_pub', "Error cannot add publication cross reference: %ref",