1
This commit is contained in:
@@ -155,6 +155,7 @@ class Article extends Controller {
|
|||||||
$re['cite'] = $cite;
|
$re['cite'] = $cite;
|
||||||
$re['mains'] = getArticleMains($data['article_id']);
|
$re['mains'] = getArticleMains($data['article_id']);
|
||||||
$re['refers'] = getArticleRefers($data['article_id']);
|
$re['refers'] = getArticleRefers($data['article_id']);
|
||||||
|
$re["track"] = getArticleTracks($article_info['doi']);
|
||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,17 @@ function getArticleRefers($article_id){
|
|||||||
return $refers;
|
return $refers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getArticleTracks($doi){
|
||||||
|
$url = "http://api.tmrjournals.com/public/index.php/api/Web/getStackByDoi";
|
||||||
|
$program["doi"] = $doi;
|
||||||
|
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||||
|
if($res['code']==1){
|
||||||
|
return [];
|
||||||
|
}else{
|
||||||
|
return $res['data']['msgs'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function choiseJtitle($list){
|
function choiseJtitle($list){
|
||||||
foreach ($list as $k => $v){
|
foreach ($list as $k => $v){
|
||||||
$list[$k]['journal_title'] = choiseti($v);
|
$list[$k]['journal_title'] = choiseti($v);
|
||||||
|
|||||||
Reference in New Issue
Block a user