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) {
|
||||
|
||||
@@ -632,6 +632,7 @@ class Journal extends Controller {
|
||||
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
//获取作者
|
||||
@@ -772,6 +773,7 @@ class Journal extends Controller {
|
||||
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
//获取作者
|
||||
@@ -834,6 +836,8 @@ class Journal 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) {
|
||||
@@ -909,6 +913,8 @@ class Journal 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){
|
||||
@@ -1567,6 +1573,7 @@ class Journal extends Controller {
|
||||
}
|
||||
$cache_title = str_replace(trim($data['keyword']), '<b style="color:#c00">' . $data['keyword'] . '</b>', $cache_title);
|
||||
$list[$k]['title'] = $cache_title;
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
$re['articles'] = $list;
|
||||
$re['count'] = $count;
|
||||
|
||||
@@ -192,6 +192,8 @@ class Main extends Controller {
|
||||
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
//连续出版判断,决定是否显示出版时间
|
||||
@@ -251,6 +253,8 @@ class Main extends Controller {
|
||||
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
|
||||
@@ -298,6 +302,8 @@ class Main extends Controller {
|
||||
$cite = $v['abbr'] . '. ' . $v['title'] . '. <i>' . choiseJabbr($v['article_id'],$journal_info['jabbr']) . '</i>. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $v['npp'] . '. doi:' . $v['doi'];
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
//标题斜体
|
||||
@@ -375,6 +381,8 @@ class Main extends Controller {
|
||||
$cite = $v['abbr'] . '. ' . $v['title'] . '. <i>' . choiseJabbr($v['article_id'],$journal_info['jabbr']) . '</i>. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $v['npp'] . '. doi:' . $v['doi'];
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
//标题斜体
|
||||
|
||||
@@ -350,6 +350,8 @@ class Special extends Controller {
|
||||
$cite = $v['abbr'] . '. ' . $v['title'] . '. <i>' . choiseJabbr($v['article_id'],$journal_info['jabbr']) . '</i>. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $v['npp'] . '. doi:' . $v['doi'];
|
||||
$list[$k]['cite'] = $cite;
|
||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
$re['articles'] = $list;
|
||||
return jsonSuccess($re);
|
||||
|
||||
@@ -85,6 +85,8 @@ class Tmrde extends Controller{
|
||||
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||
}
|
||||
$list[$k]['title'] = $cache_title;
|
||||
|
||||
$list[$k]['mains'] = getArticleMains($v['article_id']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user