From 6fc412c10050482e14c500d23af660c8c4291b3b Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 8 Jan 2026 13:12:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?Latex=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/LatexContent.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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']); From 7e76540a668a994f91b9eaeada88ac4a3948d6fb Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 8 Jan 2026 17:02:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Latex=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/LatexContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/LatexContent.php b/application/common/LatexContent.php index 666875d..44fd085 100644 --- a/application/common/LatexContent.php +++ b/application/common/LatexContent.php @@ -132,7 +132,7 @@ page={{stage_page}},%号 $aSearch = ['{{journal_abbr}}' => $sAbbr,'{{stage_year}}' => $iYear,'{{stage_vol}}' => $iVolume,'{{stage_no}}' => $iPeriod,'{{stage_page}}' => $sPage,'{{website}}' => $sWebsite,'{{journal_title}}' => $sJournalTitle]; //获取DOI - $aSearch['{{doi}}'] = empty($aProductionArticle['doi']) ? '' : $aProductionArticle['doi']; + $aSearch['{{doi}}'] = empty($aProductionArticle['doi']) ? '' : '10.53388/'.trim($aProductionArticle['doi'],'/'); //获取作者信息 $aAuthoInfo = $this->dealAuthor(['p_article_id' => $aProductionArticle['p_article_id']]); From 6d2868c8f92a642465f6b833e1bfdd25cdd056aa Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 8 Jan 2026 17:27:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Latex=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/LatexContent.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/common/LatexContent.php b/application/common/LatexContent.php index 44fd085..03f3e54 100644 --- a/application/common/LatexContent.php +++ b/application/common/LatexContent.php @@ -42,9 +42,6 @@ page={{stage_page}},%号 \doi{{{doi}}} \journalweb{{{website}}} -% \def\ORCIdICONNAME{{{CLSFILEURL}}/orcid_icon.png} %定义ORCID图片 -% \def\TMRLOGONAME{{{CLSFILEURL}}/tmr-logo.pdf} % 定义期刊LOGO图片 - \usepackage{amsmath} \usepackage[nopatch]{microtype} \usepackage{booktabs} @@ -125,14 +122,17 @@ page={{stage_page}},%号 //期 $iPeriod = empty($aJournalStage['stage_no']) ? 0 : $aJournalStage['stage_no']; //页 - $sPage = empty($aJournalStage['stage_page']) ? '' : $aJournalStage['stage_page']; + $sPage = empty($aProductionArticle['npp']) ? '' : $aProductionArticle['npp']; //期刊web $sWebsite = empty($aJournal['website']) ? $this->sWebsite : $aJournal['website']; $aSearch = ['{{journal_abbr}}' => $sAbbr,'{{stage_year}}' => $iYear,'{{stage_vol}}' => $iVolume,'{{stage_no}}' => $iPeriod,'{{stage_page}}' => $sPage,'{{website}}' => $sWebsite,'{{journal_title}}' => $sJournalTitle]; //获取DOI - $aSearch['{{doi}}'] = empty($aProductionArticle['doi']) ? '' : '10.53388/'.trim($aProductionArticle['doi'],'/'); + if(!empty($aProductionArticle['doi'])){ + $aProductionArticle['doi'] = '10.53388/'.trim($aProductionArticle['doi'],'/'); + } + $aSearch['{{doi}}'] = empty($aProductionArticle['doi']) ? '' : $aProductionArticle['doi']; //获取作者信息 $aAuthoInfo = $this->dealAuthor(['p_article_id' => $aProductionArticle['p_article_id']]);