1
This commit is contained in:
@@ -89,13 +89,13 @@ class Article extends Controller {
|
||||
$cite = $article_info['abbr'] . '. ' . $article_info['title'] . '. <i>' . choiseJabbr($article_info['article_id'], $journal_info['jabbr']) . '</i>. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $article_info['npp'] . '. doi:' . $article_info['doi'];
|
||||
}
|
||||
|
||||
//获取html
|
||||
if($article_info['file_html']==''){
|
||||
$caches = $this->article_main_obj->where('article_id',$article_info['article_id'])->where('state',0)->select();
|
||||
if($caches){
|
||||
$article_info['file_html'] = $caches;
|
||||
}
|
||||
}
|
||||
// //获取html
|
||||
// if($article_info['file_html']==''){
|
||||
// $caches = $this->article_main_obj->where('article_id',$article_info['article_id'])->where('state',0)->select();
|
||||
// if($caches){
|
||||
// $article_info['file_html'] = $caches;
|
||||
// }
|
||||
// }
|
||||
|
||||
if (stripos($article_info['npp'], '-')) {
|
||||
$cc = explode('-', $article_info['npp']);
|
||||
@@ -153,6 +153,7 @@ class Article extends Controller {
|
||||
$re['stageInfo'] = $stage_info;
|
||||
$re['author'] = $author;
|
||||
$re['cite'] = $cite;
|
||||
$re['mains'] = getArticleMains($data['article_id']);
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
@@ -160,6 +161,7 @@ class Article extends Controller {
|
||||
echo 'ok';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @title 获取文章话题
|
||||
* @description 获取文章话题
|
||||
@@ -314,6 +316,8 @@ class Article extends Controller {
|
||||
$list[$k]['topic'] = $cache_topic;
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
//标题斜体
|
||||
foreach ($list as $k => $v) {
|
||||
@@ -395,6 +399,8 @@ class Article extends Controller {
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['journal_title'] = choiseti1($v['article_id'],$journal_info['title']);
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
//标题斜体
|
||||
foreach ($list as $k => $v) {
|
||||
|
||||
Reference in New Issue
Block a user