1
This commit is contained in:
@@ -573,6 +573,7 @@ class Journal extends Controller {
|
|||||||
}
|
}
|
||||||
$list = $this->article_obj->where('journal_stage_id', $journal_info['publish_stage_id'])
|
$list = $this->article_obj->where('journal_stage_id', $journal_info['publish_stage_id'])
|
||||||
->where('state', 0)
|
->where('state', 0)
|
||||||
|
->where("lx_online",1)
|
||||||
->order($order)
|
->order($order)
|
||||||
->select();
|
->select();
|
||||||
$stage_info = $this->journal_stage_obj->where('journal_stage_id', $journal_info['publish_stage_id'])->find();
|
$stage_info = $this->journal_stage_obj->where('journal_stage_id', $journal_info['publish_stage_id'])->find();
|
||||||
|
|||||||
@@ -471,6 +471,9 @@ class Article extends Controller
|
|||||||
$co = @copy("http://api.tmrjournals.com/public/bibTex/" . $data['bibtex'], ROOT_PATH . 'public' . DS . 'bibTex' . DS . date('Ymd') . DS . $cfile_name);
|
$co = @copy("http://api.tmrjournals.com/public/bibTex/" . $data['bibtex'], ROOT_PATH . 'public' . DS . 'bibTex' . DS . date('Ymd') . DS . $cfile_name);
|
||||||
$insert['bibtex'] = date('Ymd') . DS . $cfile_name;
|
$insert['bibtex'] = date('Ymd') . DS . $cfile_name;
|
||||||
}
|
}
|
||||||
|
if(isset($data['lx_online'])&&$data['lx_online']!=''){
|
||||||
|
$insert['lx_online'] = $data['lx_online'];
|
||||||
|
}
|
||||||
$insert['doi'] = '10.53388/' . $data['doi'];
|
$insert['doi'] = '10.53388/' . $data['doi'];
|
||||||
$insert['abstract'] = $data['abstract'];
|
$insert['abstract'] = $data['abstract'];
|
||||||
$insert['pub_date'] = $data['pub_date'];
|
$insert['pub_date'] = $data['pub_date'];
|
||||||
|
|||||||
@@ -225,6 +225,19 @@ class Journal extends Controller
|
|||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function publishArticleForSubmission(){
|
||||||
|
$data = $this->request->post();
|
||||||
|
$rule = new Validate([
|
||||||
|
"article_id"=>"require"
|
||||||
|
]);
|
||||||
|
if(!$rule->check($data)){
|
||||||
|
return jsonError($rule->getError());
|
||||||
|
}
|
||||||
|
$this->article_obj->where("article_id",$data['article_id'])->update(['lx_online'=>1]);
|
||||||
|
return jsonSuccess([]);
|
||||||
|
}
|
||||||
|
|
||||||
public function getCiteListForSubmission(){
|
public function getCiteListForSubmission(){
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
$rule = new Validate([
|
$rule = new Validate([
|
||||||
|
|||||||
Reference in New Issue
Block a user