Browse Source

Fixed a bug that the HTML entities in Authors are not converted

Chun-Huai Cheng 11 years ago
parent
commit
8f10c6a02c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tripal_pub/includes/importers/tripal_pub.AGL.inc

+ 3 - 2
tripal_pub/includes/importers/tripal_pub.AGL.inc

@@ -906,15 +906,16 @@ function tripal_pub_AGL_parse_pubxml($pub_xml) {
     $pub['Authors'] = $pub['Author List'];
   }
 
-  // for Title, Author, Abstract, convert the html entity and remove special unicode chars that are not meant for display
+  // for Title, Abstract, Athors, convert the html entity and remove special unicode chars that are not meant for display
   $pub['Title'] =preg_replace( '/[\p{So}]/u', '', mb_convert_encoding($pub['Title'], 'UTF-8', 'HTML-ENTITIES'));
   $pub['Abstract'] =preg_replace( '/[\p{So}]/u', '',mb_convert_encoding($pub['Abstract'], 'UTF-8', 'HTML-ENTITIES'));
   foreach ($pub['Author List'] AS $auth) {
     foreach($auth AS $k => $v) {
       $auth[$k] = preg_replace( '/[\p{So}]/u', '',mb_convert_encoding($v, 'UTF-8', 'HTML-ENTITIES'));
     }
+    $pub['Author List'] = $auth;
   }
-  
+
   // build the citation
   $pub['Citation'] = tripal_pub_create_citation($pub);