Browse Source

Update to function that generates citations in the pub module

spficklin 11 years ago
parent
commit
2183944c1e
1 changed files with 11 additions and 2 deletions
  1. 11 2
      tripal_pub/api/tripal_pub.api.inc

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

@@ -1116,6 +1116,12 @@ function tripal_pub_create_citation($pub) {
 	  elseif ($pub['Journal Abbreviation']) {
 	    $citation .= $pub['Journal Abbreviation'] . '. ';
 	  }
+	  elseif ($pub['Series Name']) {
+	    $citation .= $pub['Series Name'] . '. ';	
+	  }
+	  elseif ($pub['Series Abbreviation']) {
+      $citation .= $pub['Series Abbreviation'] . '. ';
+    }
 	  $citation .= $pub['Publication Date'];
 	  if ($pub['Volume'] or $pub['Issue'] or $pub['Pages']) {
 	    $citation .= '; ';
@@ -1152,8 +1158,11 @@ function tripal_pub_create_citation($pub) {
   elseif ($pub_type == 'Conference Proceedings') {
     $citation = $pub['Authors'] . '. ' . $pub['Title'] .  '. ';
   
-    if ($pub['Series Name']) {
-      $citation .= $pub['Series Name'] . '. ';
+    if ($pub['Conference Name']) {
+      $citation .= $pub['Conference Name'] . '. ';
+    }
+    elseif ($pub['Series Name']) {
+      $citation .= $pub['Series Name'] . '. ';  
     }
     elseif ($pub['Series Abbreviation']) {
       $citation .= $pub['Series Abbreviation'] . '. ';