This commit is contained in:
Qi
2017-01-15 10:19:31 +01:00
committed by Martin Monperrus
parent 01bbb8bcb8
commit 3f19fb75a8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1336,7 +1336,7 @@ class BibEntry {
function getDoiLink($iconurl=NULL) {
$str = $this->getIconOrTxt('doi',$iconurl);
if ($this->hasField('doi')) {
return '<a'.get_target().' href="https://dx.doi.org/'.$this->getField('doi').'">'.$str.'</a>';
return '<a'.get_target().' href="https://doi.org/'.$this->getField('doi').'">'.$str.'</a>';
}
return '';
}
@@ -1901,7 +1901,7 @@ class BibEntry {
// Fields that should be hyperlinks
// the order matters
$hyperlinks = array('url' => '%O', 'file' => '%O', 'pdf' => '%O', 'doi' => 'https://dx.doi.org/%O', 'gsid' => 'https://scholar.google.com/scholar?cites=%O');
$hyperlinks = array('url' => '%O', 'file' => '%O', 'pdf' => '%O', 'doi' => 'https://doi.org/%O', 'gsid' => 'https://scholar.google.com/scholar?cites=%O');
$vals = array();
foreach ($hyperlinks as $field => $url) {