fix single author could generate reference problem.
This commit is contained in:
parent
9512051737
commit
cd8fe1ca87
|
@ -277,7 +277,13 @@ class Ris
|
|||
|
||||
//创建reference 字段
|
||||
public function makeReferenceFlag($ref){
|
||||
$str = join(', ',$ref['author']).'. ';
|
||||
$str='';
|
||||
if(is_array($author) && count($author) > 0)
|
||||
{
|
||||
$str .= join(', ',$ref['author']).'. ';
|
||||
} else if if(is_string($author)) {
|
||||
$str .= $ref['author'].'. ';
|
||||
}
|
||||
$str .= $ref['title'].'. ';
|
||||
$str .= $ref['publisher'].', ';
|
||||
isset($ref['year']) ? $str .= $ref['year'].', ':"";
|
||||
|
|
Loading…
Reference in New Issue