1
This commit is contained in:
@@ -726,12 +726,14 @@ function my_doiToFrag2($data)
|
||||
$update = [];
|
||||
if ($frag == "") {
|
||||
$update['refer_frag'] = $data['refer_content'];
|
||||
$update['refer_type'] = "other";
|
||||
} else {
|
||||
// preg_match("/[0-9]{4}/",$frag,$math);
|
||||
// $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'];
|
||||
$update['refer_type'] = "other";
|
||||
$update['refer_frag'] = $f;
|
||||
$update['cs'] = 1;
|
||||
} else {
|
||||
@@ -744,6 +746,7 @@ function my_doiToFrag2($data)
|
||||
$is_js = 0;
|
||||
if ($joura == trim($bj[0])) {
|
||||
}
|
||||
$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'];
|
||||
|
||||
Reference in New Issue
Block a user