1
This commit is contained in:
@@ -456,6 +456,13 @@ class Article extends Controller {
|
||||
$insert['tradition'] = isset($data['tradition'])?$data['tradition']:'';
|
||||
$insert['keywords'] = $data['keywords'];
|
||||
$insert['npp'] = $data['npp'];
|
||||
$sort = 0;
|
||||
if($journal_info['journal_id']==2||$journal_info['journal_id']==17||$journal_info['journal_id']==18){
|
||||
$sort = intval(substr($data['npp'],-2));
|
||||
}else{
|
||||
$sort = $data['npp'];
|
||||
}
|
||||
$insert['sort'] = $sort;
|
||||
$insert['file_pdf'] = date('Ymd').DS.$file_name;
|
||||
$insert['is_public'] = 1;
|
||||
$insert['ctime'] = time();
|
||||
@@ -477,7 +484,7 @@ class Article extends Controller {
|
||||
$ca_au_id = true;
|
||||
foreach($authors as $v){
|
||||
$insert_author['article_id'] = $aid;
|
||||
$insert_author['author_name'] = $v['first_name'].' '.$v['last_name'];
|
||||
$insert_author['author_name'] = $journal_info['journal_id']==22?$v['last_name'].$v['first_name']:$v['first_name'].' '.$v['last_name'];
|
||||
$insert_author['first_name'] = $v['first_name'];
|
||||
$insert_author['last_name'] = $v['last_name'];
|
||||
$insert_author['author_country'] = $v['author_country'];
|
||||
|
||||
Reference in New Issue
Block a user