排版相关调整
This commit is contained in:
@@ -18,7 +18,7 @@ use think\log;
|
|||||||
class Production extends Base
|
class Production extends Base
|
||||||
{
|
{
|
||||||
|
|
||||||
private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath'];
|
private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath','myh3'];
|
||||||
// 颜色映射(自定义标签颜色对应LaTeX的HTML十六进制颜色)
|
// 颜色映射(自定义标签颜色对应LaTeX的HTML十六进制颜色)
|
||||||
private $colorMap = [
|
private $colorMap = [
|
||||||
'blue' => '0082AA',
|
'blue' => '0082AA',
|
||||||
@@ -2667,6 +2667,9 @@ class Production extends Base
|
|||||||
$style['color'] = $this->colorMap['r'];
|
$style['color'] = $this->colorMap['r'];
|
||||||
break;
|
break;
|
||||||
// tr标签已被移除,无需处理
|
// tr标签已被移除,无需处理
|
||||||
|
case 'myh3':
|
||||||
|
$style['h3'] = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2708,6 +2711,10 @@ class Production extends Base
|
|||||||
$content = '$_{{'.$content.'}}$';
|
$content = '$_{{'.$content.'}}$';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 处理h3标签
|
||||||
|
if (isset($style['h3']) && $style['h3']) {
|
||||||
|
$content = "\\textbf{{$content}}";
|
||||||
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3300,6 +3307,16 @@ class Production extends Base
|
|||||||
$article_info = $this->article_obj->where('article_id', $p_info['article_id'])->find();
|
$article_info = $this->article_obj->where('article_id', $p_info['article_id'])->find();
|
||||||
$journal_info = $this->journal_obj->where('journal_id', $article_info['journal_id'])->find();
|
$journal_info = $this->journal_obj->where('journal_id', $article_info['journal_id'])->find();
|
||||||
$user_info = $this->user_obj->where('user_id', $article_info['user_id'])->find();
|
$user_info = $this->user_obj->where('user_id', $article_info['user_id'])->find();
|
||||||
|
|
||||||
|
//查询文章是否有Accept记录 20260210 start
|
||||||
|
$article_info_id = empty($article_info['article_id']) ? 0 : $article_info['article_id'];
|
||||||
|
$aMsgWhere = ['article_id' => $article_info_id,'state_to' => 5];
|
||||||
|
$aArticleMsg = Db::name('article_msg')->field('msg_id')->where($aMsgWhere)->find();
|
||||||
|
if(empty($aArticleMsg)){
|
||||||
|
return jsonError("Please set the paper as Accept before asking the author to confirm");
|
||||||
|
}
|
||||||
|
//查询文章是否有Accept记录 20260210 end
|
||||||
|
|
||||||
$this->pdfAddProof($p_info['article_id']);
|
$this->pdfAddProof($p_info['article_id']);
|
||||||
if ($p_info['file_pdf'] == '') {
|
if ($p_info['file_pdf'] == '') {
|
||||||
return jsonError('To the editor: PROOF is the final form before the article goes online. The PROOF link step not be opened if you have not completed the previous steps.');
|
return jsonError('To the editor: PROOF is the final form before the article goes online. The PROOF link step not be opened if you have not completed the previous steps.');
|
||||||
|
|||||||
Reference in New Issue
Block a user