Explorar o código

Oops forgot a bit of code for adding support for 'Letter' pubs

Stephen Ficklin %!s(int64=11) %!d(string=hai) anos
pai
achega
148f266e38
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      tripal_pub/api/tripal_pub.api.inc

+ 5 - 1
tripal_pub/api/tripal_pub.api.inc

@@ -1178,6 +1178,10 @@ function tripal_pub_create_citation($pub) {
         $pub_type = $ptype;
         $pub_type = $ptype;
         break;
         break;
       } 
       } 
+      else if ($ptype == 'Letter') {
+        $pub_type = $ptype;
+        break;
+      } 
       else if ($ptype == 'Book Chapter') {
       else if ($ptype == 'Book Chapter') {
         $pub_type = $ptype;
         $pub_type = $ptype;
         break;
         break;
@@ -1326,4 +1330,4 @@ function tripal_pub_create_citation($pub) {
   }
   }
 
 
   return $citation;
   return $citation;
-}
+}