major 小版本更新
This commit is contained in:
@@ -1314,6 +1314,7 @@ class Production extends Base
|
||||
|
||||
$typesetInfo['author'] = $au_res['author'];
|
||||
$typesetInfo['authorAddress'] = $au_res['address'];
|
||||
$typesetInfo['authorAddressList'] = $au_res['addressList1'];
|
||||
$typesetInfo['authorContribution'] = $p_info['author_contribution'];
|
||||
|
||||
//查询通讯作者
|
||||
@@ -1371,19 +1372,21 @@ class Production extends Base
|
||||
if($item['type']==1){
|
||||
$info = $this->article_main_image_obj->where("ami_id",$item['ami_id'])->find();
|
||||
$arr['image'] = $info['url'];
|
||||
$arr['title'] = "<r>".$info['title']."</r>";
|
||||
$arr['note'] = $info['note'];
|
||||
$images[$info['ami_id']] = $arr;
|
||||
$main_string = "<img src='https://submission.tmrjournals.com/public/articleImage/".$info['url']."' imageId='".$info['ami_id']."'/>";
|
||||
}else if($item['type']==2){
|
||||
$info = $this->article_main_table_obj->where("amt_id",$item['amt_id'])->find();
|
||||
$arr_table['title'] = $info['title'];
|
||||
$arr_table['title'] = "<t>".strip_tags($info['title'])."</t>";
|
||||
$arr_table['table_data'] = $info['table_data'];
|
||||
$arr_table['note'] = $info['note'];
|
||||
$tables[$info['amt_id']] = $arr_table;
|
||||
$main_string = "<table tableId='".$info['amt_id']."'/>";
|
||||
}else{
|
||||
if($item['is_h1']==1){
|
||||
$main_string = "<b><i>".$item['content']."</i></b>";
|
||||
// $main_string = "<b><i>".$item['content']."</i></b>";
|
||||
$main_string = "<tr>".strip_tags($item['content'])."</tr>";
|
||||
}else if($item['is_h2']==1||$item['is_h3']==1){
|
||||
$main_string = "<b>".$item['content']."</b>";
|
||||
}else{
|
||||
@@ -2190,12 +2193,18 @@ class Production extends Base
|
||||
}
|
||||
//组装address
|
||||
$address_str = '';
|
||||
$address1 = [];
|
||||
foreach ($address as $k => $v) {
|
||||
$address_str .= ($k + 1) . ' ' . $v . ' ';
|
||||
$address1[] = [
|
||||
"k"=>$k + 1,
|
||||
"content"=>$v
|
||||
];
|
||||
}
|
||||
$frag['author'] = $author;
|
||||
$frag['address'] = $address_str;
|
||||
$frag['addressList'] = $address;
|
||||
$frag['addressList1'] = $address1;
|
||||
return $frag;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user