diff --git a/application/common/LatexContent.php b/application/common/LatexContent.php index 86a933e..666875d 100644 --- a/application/common/LatexContent.php +++ b/application/common/LatexContent.php @@ -115,7 +115,7 @@ page={{stage_page}},%号 } //期刊简写 - $sAbbr = empty($aJournal['abbr']) ? $this->sAbbr : $aJournal['abbr']; + $sAbbr = $this->sAbbr;//empty($aJournal['abbr']) ? $this->sAbbr : $aJournal['abbr']; $sAbbr = strtolower($sAbbr); $sJournalTitle = empty($aJournal['title']) ? '' : $aJournal['title']; //年 @@ -175,7 +175,10 @@ page={{stage_page}},%号 $aSearch['{{pub_date}}'] = empty($aProductionArticle['pub_date']) ? '' : $aProductionArticle['pub_date']; //获取编辑信息 - $aSearch['{{executive_editor}}'] = empty($aUser['realname']) ? '' : '\Executiveeditor{'.$this->dealContent($aUser['realname']).'}'; + $executive_editor = empty($aProductionArticle['executive_editor']) ? '' : '\Executiveeditor{'.$this->dealContent($aProductionArticle['executive_editor']).'}'; + $executive_editor_realname = empty($aUser['realname']) ? '' : '\Executiveeditor{'.$this->dealContent($aUser['realname']).'}'; + $executive_editor = empty($executive_editor) ? $executive_editor_realname : $executive_editor; + $aSearch['{{executive_editor}}'] = $executive_editor; //摘要替换 $sAbstract = empty($aProductionArticle['abstract']) ? '' : $this->dealContent($aProductionArticle['abstract']);