Skip to content

Commit 2a31ccc

Browse files
Merge pull request #456 from katrinleinweber/resolve-DOIs-securely
Link DOIs to preferred resolver
2 parents 9619f97 + 8b9922d commit 2a31ccc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

miriam/miriam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function parseItem($item)
159159
else $mylist = $i;
160160
foreach($mylist AS $myitem) {
161161
if(strstr($myitem, "pubmed")) $uri = "pubmed:".substr($myitem, strrpos($myitem, ":")+1);
162-
else if(strstr($myitem, "doi")) $uri = "http://dx.doi.org/".substr($myitem, strpos($myitem, "doi:"));
162+
else if(strstr($myitem, "doi")) $uri = "https://doi.org/".substr($myitem, strpos($myitem, "doi:"));
163163
else $uri = $myitem;
164164

165165
parent::addRDF(

taxonomy/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private function citations()
329329
$c = parent::getRes()."citation-id-".$a[0];
330330
$seealso = isset($a[4])?trim($a[4]):"";
331331
if($seealso) {
332-
$seealso = str_replace(array("lx: DOI ","http;//"), array("http://dx.doi.org/","http://"), $seealso);
332+
$seealso = str_replace(array("lx: DOI ","http;//"), array("https://doi.org/","http://"), $seealso);
333333
if(strlen($seealso) > 2 and !strstr($seealso,"http")) $seealso = "http://".$seealso;
334334
$seealso = parent::triplify($c, "rdfs:seeAlso", $seealso);
335335
}

0 commit comments

Comments
 (0)