diff --git a/bibtexbrowser-test.php b/bibtexbrowser-test.php index 9c2e43b..dd89e1c 100755 --- a/bibtexbrowser-test.php +++ b/bibtexbrowser-test.php @@ -302,7 +302,7 @@ class BTBTest extends PHPUnit_Framework_TestCase { $btb = new BibDataBase(); $btb->update_internal("inline", $test_data); $first_entry=$btb->bibdb[array_keys($btb->bibdb)[0]]; - $this->assertEquals('
@Article{Baldwin2014Quantum,Doi={10.1103/PhysRevA.90.012110},Url={http://link.aps.org/doi/10.1103/PhysRevA.90.012110}}
',$first_entry->toEntryUnformatted()); + $this->assertEquals('
@Article{Baldwin2014Quantum,Doi={10.1103/PhysRevA.90.012110},Url={http://link.aps.org/doi/10.1103/PhysRevA.90.012110}}
',$first_entry->toEntryUnformatted()); } function test_filter_view() { diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 92e4a21..74ce4ad 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1336,7 +1336,7 @@ class BibEntry { function getDoiLink($iconurl=NULL) { $str = $this->getIconOrTxt('doi',$iconurl); if ($this->hasField('doi')) { - return ''.$str.''; + return ''.$str.''; } 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) {