20201112
This commit is contained in:
@@ -149,7 +149,8 @@ class Journal extends Controller {
|
||||
foreach($list as $k=>$v){
|
||||
//组合cite信息
|
||||
$no = $stage_info['stage_no']==0?':':'('.$stage_info['stage_no'].'):';
|
||||
$cite = $v['abbr'].' '.$v['title'].' '.$journal_info['jabbr'].' '.$stage_info['stage_year'].';'.$stage_info['stage_vol'].$no.$v['npp'].'. doi:'.$v['doi'];
|
||||
$cite =$v['abbr'].'. '.$v['title'].' <i>'.$journal_info['jabbr'].'</i>. '.$stage_info['stage_year'].';'.$stage_info['stage_vol'].$no.$v['npp'].'. doi:'.$v['doi'];
|
||||
// $v['abbr'].' <i>'.$v['title'].'</i> '.$journal_info['jabbr'].' '.$stage_info['stage_year'].';'.$stage_info['stage_vol'].$no.$v['npp'].'. doi:'.$v['doi'];
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
}
|
||||
@@ -162,9 +163,9 @@ class Journal extends Controller {
|
||||
$list = $this->article_author_obj->where($where)->select();
|
||||
$frag = '';
|
||||
foreach ($list as $k=>$v){
|
||||
$frag .= $v['author_name'].',';
|
||||
$frag = $frag==''?''.$v['author_name']:$frag.', '.$v['author_name'];
|
||||
}
|
||||
return substr($frag,0, -1);
|
||||
return $frag;
|
||||
}
|
||||
|
||||
|
||||
@@ -188,6 +189,13 @@ class Journal extends Controller {
|
||||
->where('j_article.journal_stage_id','in',$stages)
|
||||
->where('j_article.state',0)
|
||||
->select();
|
||||
|
||||
|
||||
//获取作者
|
||||
foreach($list as $k=>$v){
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
}
|
||||
|
||||
return json(['code'=>0,'msg'=>'success','data'=>['articlelist'=>$list]]);
|
||||
}
|
||||
|
||||
@@ -213,6 +221,12 @@ class Journal extends Controller {
|
||||
->where('j_article.type',['like','News'],['like','Comment'],'or')
|
||||
->order('j_article.article_id')
|
||||
->select();
|
||||
|
||||
//获取作者
|
||||
foreach($list as $k=>$v){
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
}
|
||||
|
||||
return json(['code'=>0,'msg'=>'success','data'=>['articlelist'=>$list]]);
|
||||
}
|
||||
|
||||
@@ -230,6 +244,13 @@ class Journal extends Controller {
|
||||
public function getTopArticle(){
|
||||
$data = $this->request->post();
|
||||
$list = $this->article_obj->field('j_article.*,j_journal_stage.*')->join('j_journal_stage','j_article.journal_stage_id = j_journal_stage.journal_stage_id','LEFT')->where('j_article.journal_id',$data['journal_id'])->where('j_article.state',0)->orderRaw('j_article.cited+j_article.abs_num+j_article.pdf_num desc')->limit(4)->select();
|
||||
|
||||
//获取作者
|
||||
foreach($list as $k=>$v){
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
}
|
||||
|
||||
|
||||
return jsonSuccess(['articles'=>$list]);
|
||||
}
|
||||
|
||||
@@ -250,6 +271,25 @@ class Journal extends Controller {
|
||||
return jsonSuccess(['notices'=>$list]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取消息详情
|
||||
* @description 获取消息详情
|
||||
* @author wangjinlei
|
||||
* @url /api/Journal/getNoticesDetail
|
||||
* @method POST
|
||||
*
|
||||
* @param name:journal_notices_id type:int require:1 desc:期刊消息id
|
||||
*
|
||||
* @return notices:消息内容#
|
||||
*/
|
||||
public function getNoticesDetail(){
|
||||
$data = $this->request->post();
|
||||
$notices_info = $this->journal_notices_obj->where('journal_notices_id',$data['journal_notices_id'])->find();
|
||||
|
||||
$re['notices'] = $notices_info;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取highl话题文章
|
||||
* @description 获取highl话题文章
|
||||
@@ -271,6 +311,12 @@ class Journal extends Controller {
|
||||
->where('j_article_to_topic.topic_id',$topic_info['journal_topic_id'])
|
||||
->where('j_article_to_topic.state',0)
|
||||
->select();
|
||||
|
||||
//获取作者
|
||||
foreach($list as $k=>$v){
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
}
|
||||
|
||||
return jsonSuccess(['topic_info'=>$topic_info,'articlelist'=>$list]);
|
||||
}else{
|
||||
return jsonError('no highlights');
|
||||
@@ -319,6 +365,25 @@ class Journal extends Controller {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取期刊cfp详情
|
||||
* @description 获取期刊cfp详情
|
||||
* @author wangjinlei
|
||||
* @url /api/Journal/getCfpDetail
|
||||
* @method POST
|
||||
*
|
||||
* @param name:journal_cfp_id type:int require:1 desc:期刊cfpid
|
||||
*
|
||||
* @return cfp:期刊cfp信息#
|
||||
*/
|
||||
public function getCfpDetail(){
|
||||
$data = $this->request->post();
|
||||
$cfp_info = $this->journal_cfp_obj->where('journal_cfp_id',$data['journal_cfp_id'])->find();
|
||||
|
||||
$re['cfp'] = $cfp_info;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取期刊footer
|
||||
* @description 获取期刊footer
|
||||
|
||||
Reference in New Issue
Block a user