小bug调整
This commit is contained in:
@@ -792,7 +792,7 @@ function my_doiToFrag2($data)
|
||||
// $year = $math[0];
|
||||
// $qbj=trim(substr($frag,0,stripos($frag,$year))) ;
|
||||
if (mb_substr_count($frag, '.') != 3) {
|
||||
$f = $frag . " Available at: " . PHP_EOL . "http://doi.org/" . $data['refer_doi'];
|
||||
$f = $frag . " Available at: " . PHP_EOL . "https://doi.org/" . $data['refer_doi'];
|
||||
$update['refer_type'] = "other";
|
||||
$update['refer_frag'] = $f;
|
||||
$update['cs'] = 1;
|
||||
@@ -809,7 +809,7 @@ function my_doiToFrag2($data)
|
||||
$update['refer_type'] = "journal";
|
||||
$update['is_ja'] = $joura == trim($bj[0]) ? 0 : 1;
|
||||
$update['dateno'] = str_replace(' ', '', str_replace('-', '–', trim($bj[1])));
|
||||
$update['doilink'] = strpos($data['refer_doi'],"http")===false?"http://doi.org/" . $data['refer_doi']:$data['refer_doi'];
|
||||
$update['doilink'] = strpos($data['refer_doi'],"http")===false?"https://doi.org/" . $data['refer_doi']:$data['refer_doi'];
|
||||
$update['cs'] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user