This commit is contained in:
wangjinlei
2024-09-29 16:58:05 +08:00
parent 9df9cf42ef
commit 4a84c9f21c
4 changed files with 109 additions and 14 deletions

View File

@@ -1228,8 +1228,12 @@ class Article extends Base
$tt .= 'journal:' . $journal_info['title'] . '<br>'; $tt .= 'journal:' . $journal_info['title'] . '<br>';
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>'; $tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
$tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>'; $tt .= "Thank you for submitting your manuscript to ".$journal_info['title'].". After a thorough initial review by our editorial team, we regret to inform you that we are unable to move forwardwith your submission for further consideration.<br/><br/>";
$tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate venue for your manuscript. You munuscript will transfer to journal - ' . $tran_journal['title'] . ' as you co-submitting chose order.If you have questions about the Co-submission process, please contact publisher@tmrjournals.com within 48 hours.<br><br>Yours sincerely,<br>'; $tt .= "Please know that this decision was made with careful deliberation,and we appreciate the effort and time you have invested in yourresearch. We encourage you to consider submitting your work to a journal that may be a better fit for your manuscript.<br/><br/>";
$tt .= "We sincerely thank you for considering ".$journal_info['title']." as a venue for your work, and we hope this outcome does not deter you fromsubmitting future manuscripts to our journal.<br/><br/>";
// $tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>';
// $tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate venue for your manuscript. You munuscript will transfer to journal - ' . $tran_journal['title'] . ' as you co-submitting chose order.If you have questions about the Co-submission process, please contact publisher@tmrjournals.com within 48 hours.<br><br>Yours sincerely,<br>';
$tt .= "Sincerely,<br/>";
$tt .= 'Editorial Office<br>'; $tt .= 'Editorial Office<br>';
$tt .= $journal_info['title'] . '<br>'; $tt .= $journal_info['title'] . '<br>';
$tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>'; $tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>';
@@ -1303,7 +1307,7 @@ class Article extends Base
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>'; $tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
$tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>'; $tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>';
$tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate venue for your manuscript. You munuscript will transfer to journal - ' . $tran_journal['title'] . ' as you co-submitting chose order.If you have questions about the Co-submission process, please contact publisher@tmrjournals.com within 48 hours.<br><br>Yours sincerely,<br>'; $tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate platform for your manuscript. You manuscript will transfer to journal - ' . $tran_journal['title'] . ' as you co-submitting chose order.If you have questions about the Co-submission process, please contact publisher@tmrjournals.com within 48 hours.<br><br>Yours sincerely,<br>';
$tt .= 'Editorial Office<br>'; $tt .= 'Editorial Office<br>';
$tt .= $journal_info['title'] . '<br>'; $tt .= $journal_info['title'] . '<br>';
$tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>'; $tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>';
@@ -1422,15 +1426,43 @@ class Article extends Base
//发送文章状态更改邮件给作者 //发送文章状态更改邮件给作者
if ($data['state'] == 3) { //拒稿 if ($data['state'] == 3) { //拒稿
if ($data['trsjournal'] == 0) { if ($data['trsjournal'] == 0) {
$tt = '"' . $article_info['title'] . '"<br>'; //直接拒稿
$tt .= $article_info['accept_sn'] . '<br>'; $review_msg_has = $this->article_msg_obj->where("article_id",$article_info['article_id'])->where("state_to",2)->find();
$tt .= 'journal:' . $journal_info['title'] . '<br>'; $tx_msg_has = $this->article_msg_obj->where("article_id",$article_info['article_id'])->where("state_to",4)->find();
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>'; if($review_msg_has&&$tx_msg_has){
$tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>'; $tt = 'Dear Dr. ' . ($user_info['realname'] == "" ? $user_info['account'] : $user_info['realname']) . '<br><br>';
$tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate venue for your manuscript,' $tt .= "Thank you for submitting your manuscript to [Journal Name]. We appreciate the time and effort you invested in revising your manuscript in response to the reviewers' comments.<br/>";
. ' and we are returning your manuscript to you so that you can submit it to another journal without delay. ' $tt .= "After a thorough evaluation of the revised manuscript, including further feedback from our external reviewers, we regret to inform you that your manuscript has not been accepted for publication in our journal. While your revisions addressed many of the reviewers' concerns, there remain significant issues that prevent us from moving forward with publication.<br/>";
. '<br><br>Yours sincerely,<br><br>'; $tt .= "We recognize that this decision is disappointing, especially given the effort you have put into this work. We encourage you to consider the reviewers' feedback as you continue to develop your manuscript for submission to another journal.<br/>";
$tt .= 'Sincerely,<br>Editorial Office<br>'; $tt .= "Thank you for considering ".$journal_info['title']." for your research. We wish you success in your future academic endeavors and hope that you will consider us again for future submissions.<br/><br/>";
$tt .= "Sincerely,<br/>";
$tt .= 'Editorial Office<br>';
$tt .= $journal_info['title'] . '<br>';
$tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>';
$tt .= 'Email: ' . $journal_info['email'] . '<br>';
$tt .= 'Website: ' . $journal_info['website'];
}elseif ($review_msg_has){
$tt = 'Dear Dr. ' . ($user_info['realname'] == "" ? $user_info['account'] : $user_info['realname']) . '<br><br>';
$tt .= "Thank you for submitting your manuscript to ".$journal_info['title'].". After a thorough initial review by our editorial team, we regret to inform you that we are unable to move forwardwith your submission for further consideration.<br/><br/>";
$tt .= "Please know that this decision was made with careful deliberation,and we appreciate the effort and time you have invested in yourresearch. We encourage you to consider submitting your work to a journal that may be a better fit for your manuscript.<br/><br/>";
$tt .= "We sincerely thank you for considering ".$journal_info['title']." as a platform for your work, and we hope this outcome does not deter you from submitting future manuscripts to our journal.<br/><br/>";
$tt .= "Sincerely,<br/>";
$tt .= 'Editorial Office<br>';
$tt .= $journal_info['title'] . '<br>';
$tt .= '<a href="https://www.tmrjournals.com/draw_up.html?issn=' . $journal_info['issn'] . '">Subscribe to this journal</a><br>';
$tt .= 'Email: ' . $journal_info['email'] . '<br>';
$tt .= 'Website: ' . $journal_info['website'];
}else{
$tt = '"' . $article_info['title'] . '"<br>';
$tt .= $article_info['accept_sn'] . '<br>';
$tt .= 'journal:' . $journal_info['title'] . '<br>';
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br>';
$tt .= 'Thank you for submitting your paper to ' . $journal_info['title'] . '. Your manuscript has undergone review.<br>';
$tt .= 'Unfortunately the editors feel that ' . $journal_info['title'] . ' is not the appropriate venue for your manuscript,'
. ' and we are returning your manuscript to you so that you can submit it to another journal without delay. '
. '<br><br>Yours sincerely,<br><br>';
$tt .= 'Sincerely,<br>Editorial Office<br>';
}
} else { //转投 } else { //转投
//查找转投journal信息 //查找转投journal信息
$trans_journal = $this->journal_obj->where('journal_id', $data['trsjournal'])->find(); $trans_journal = $this->journal_obj->where('journal_id', $data['trsjournal'])->find();

View File

@@ -11,6 +11,7 @@ namespace app\api\controller;
use think\Controller; use think\Controller;
use think\Db; use think\Db;
use think\Queue; use think\Queue;
use think\Validate;
/** /**
* @title 领域接口 * @title 领域接口
@@ -428,6 +429,31 @@ class Major extends Controller {
return jsonSuccess($re); return jsonSuccess($re);
} }
public function getJournalMajorInAll(){
$data = $this->request->post();
$rule = new Validate([
"journal_issn"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
//查询顶级
$list = $this->major_obj->where('pid', 0)->where("major_type", 0)->where('major_state', 0)->order('major_sort desc')->select();
foreach ($list as $k => $v) {
$selected = $this->major_to_journal_obj->where("major_id",$v['major_id'])->where("journal_issn",$data['journal_issn'])->where("mtj_state",0)->find();
$list[$k]['selected'] = $selected?1:0;
$cache_child = $this->getMajorChild($v,$data['journal_issn']);
if ($cache_child != null) {
$list[$k]['children'] = $cache_child;
}
}
$re['majors'] = $list;
return jsonSuccess($re);
}
/** /**
* @title 获取全部期刊 * @title 获取全部期刊
* @description 获取全部期刊 * @description 获取全部期刊
@@ -556,13 +582,17 @@ class Major extends Controller {
/** /**
* 获取领域子树 * 获取领域子树
*/ */
private function getMajorChild($major) { private function getMajorChild($major,$issn=null) {
$list = $this->major_obj->where('pid', $major['major_id'])->where("major_type", 0)->where('major_state', 0)->order("major_sort desc")->select(); $list = $this->major_obj->where('pid', $major['major_id'])->where("major_type", 0)->where('major_state', 0)->order("major_sort desc")->select();
if ($list == null) { if ($list == null) {
return null; return null;
} }
foreach ($list as $k => $v) { foreach ($list as $k => $v) {
$cache_child = $this->getMajorChild($v); if($issn!=null){
$selected = $this->major_to_journal_obj->where("major_id",$v['major_id'])->where("journal_issn",$issn)->where("mtj_state",0)->find();
$list[$k]['selected'] = $selected?1:0;
}
$cache_child = $this->getMajorChild($v,$issn);
if ($cache_child != null) { if ($cache_child != null) {
$list[$k]['children'] = $cache_child; $list[$k]['children'] = $cache_child;
} }
@@ -570,6 +600,22 @@ class Major extends Controller {
return $list; return $list;
} }
public function getJournalsForMajor(){
$data = $this->request->post();
$rule = new Validate([
"major_id"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$issn_list = $this->major_to_journal_obj->where("major_id",$data['major_id'])->where("mtj_state",0)->column("journal_issn");
$list = $this->journal_obj->whereIn("issn",$issn_list)->select();
$re['list'] = $list;
return jsonSuccess($re);
}
/** /**
* 获取期刊领域树子集 * 获取期刊领域树子集
* @param type $major * @param type $major

View File

@@ -458,6 +458,22 @@ class Monitor extends Base
} }
public function getCiteListForEditorMonth(){
$data = $this->request->post();
$rule = new Validate([
"issn"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Journal/getCiteListForSubmission";
$program = [];
$program['issn'] = $data['issn'];
$res = object_to_array(json_decode(myPost($url,$program)));
return jsonSuccess($res['data']);
}
public function getPublicStagesForEditor(){ public function getPublicStagesForEditor(){
$data = $this->request->post(); $data = $this->request->post();
$rule = new Validate([ $rule = new Validate([

View File

@@ -191,6 +191,7 @@ class User extends Base
->where('user_id',$data['user_id']) ->where('user_id',$data['user_id'])
->where('journal_id',$data['journal_id']) ->where('journal_id',$data['journal_id'])
->where('end_date','>',time()) ->where('end_date','>',time())
->where("state",0)
->find(); ->find();
if($check){ if($check){
return jsonError('Already exists'); return jsonError('Already exists');