1
This commit is contained in:
@@ -690,6 +690,21 @@ class Article extends Controller
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function getArticleCitesForSubmit(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$list = $this->article_cite_obj->where("article_id",$data['article_id'])->where("state",1)->select();
|
||||
$re['list'] = $list;
|
||||
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有分期
|
||||
*/
|
||||
@@ -1140,7 +1155,8 @@ class Article extends Controller
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
grabCiteFromCrossref($data['article_id'],"sx");
|
||||
$res = grabCiteFromCrossref($data['article_id'],"sx");
|
||||
return jsonSuccess($res);
|
||||
}
|
||||
|
||||
public function addArticleCiteNew(){
|
||||
@@ -1151,6 +1167,8 @@ class Article extends Controller
|
||||
"doi" => "require",
|
||||
"journal_name" => "require",
|
||||
"article_name" => "require",
|
||||
"author"=>"require",
|
||||
"vol"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
@@ -1162,6 +1180,8 @@ class Article extends Controller
|
||||
$entity['article_name'] = $data['article_name'];
|
||||
$entity['ctime'] = time();
|
||||
$entity['state'] = 1;
|
||||
$entity['author'] = $data['author'];
|
||||
$entity['vol'] = $data['vol'];
|
||||
$entity['factor'] = isset($data['factor'])?$data['factor']:0;
|
||||
$entity['is_china'] = isset($data['is_china'])?$data['is_china']:0;
|
||||
$entity['is_wos'] = isset($data['is_wos'])?$data['is_wos']:0;
|
||||
@@ -1180,12 +1200,26 @@ class Article extends Controller
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->article_cite_obj->where("article_id",$data['article_id'])->update($data);
|
||||
$this->article_cite_obj->where("article_cite_id",$data['article_cite_id'])->update($data);
|
||||
return jsonSuccess([]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function delArticleCiteForSubmission(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_cite_id" => "require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
|
||||
$re = $this->article_cite_obj->where("article_cite_id",$data['article_cite_id'])->update(["state"=>2]);
|
||||
return jsonSuccess();
|
||||
}
|
||||
|
||||
|
||||
public function getArticleMainsForSubmission(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
|
||||
Reference in New Issue
Block a user