20201112
This commit is contained in:
@@ -68,7 +68,7 @@ class Article extends Controller{
|
||||
|
||||
//组合cite信息
|
||||
$no = $stage_info['stage_no']==0?':':'('.$stage_info['stage_no'].'):';
|
||||
$cite = $article_info['abbr'].' '.$article_info['title'].' '.$journal_info['jabbr'].'. '.$stage_info['stage_year'].';'.$stage_info['stage_vol'].$no.$article_info['npp'].'. doi:'.$article_info['doi'];
|
||||
$cite = $article_info['abbr'].'. '.$article_info['title'].' <i>'.$journal_info['jabbr'].'</i>. '.$stage_info['stage_year'].';'.$stage_info['stage_vol'].$no.$article_info['npp'].'. doi:'.$article_info['doi'];
|
||||
|
||||
//修改keywords
|
||||
$article_info['keywords'] = str_replace(',',' ', $article_info['keywords']);
|
||||
@@ -133,10 +133,20 @@ class Article 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;
|
||||
}
|
||||
// private function getAuthor($article){
|
||||
// $where['article_id'] = $article['article_id'];
|
||||
// $where['state'] = 0;
|
||||
// $list = $this->article_author_obj->where($where)->select();
|
||||
// $frag = '';
|
||||
// foreach ($list as $k=>$v){
|
||||
// $frag .= $v['author_name'].',';
|
||||
// }
|
||||
// return substr($frag,0, -1);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
@@ -155,7 +165,7 @@ class Article extends Controller{
|
||||
public function getStageArticles(){
|
||||
$data = $this->request->post();
|
||||
$stage_info = $this->journal_stage_obj->where('journal_stage_id',$data['stage_id'])->find();
|
||||
$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_stage_id',$data['stage_id'])->where('_article.state',0)->select();
|
||||
$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_stage_id',$data['stage_id'])->where('j_article.state',0)->select();
|
||||
// $topic_info = $this->journal_topic_obj->where('journal_topic_id',$data['topic_id'])->find();
|
||||
// $list = $this->article_to_topic_obj->field('j_article.*,j_journal_stage.*')
|
||||
// ->join(array(['j_article','j_article_to_topic.article_id = j_article.article_id','LEFT'],['j_journal_stage','j_article.journal_stage_id = j_journal_stage.journal_stage_id','LEFT']))
|
||||
|
||||
Reference in New Issue
Block a user