From 6ab192b7ef1a2ac02856a6ad1fed3fc5ae7a34d6 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Sun, 2 Oct 2011 22:14:48 +0200 Subject: [PATCH] =?UTF-8?q?generalized=20usage=20of=20BIBTEXBROWSER=5FBIB?= =?UTF-8?q?=5FIN=5FNEW=5FWINDOW=20(suggested=20by=20Carlos=20Br=C3=A1s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bibtexbrowser-style-default.php | 2 +- bibtexbrowser-style-janos.php | 4 ++-- bibtexbrowser.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bibtexbrowser-style-default.php b/bibtexbrowser-style-default.php index 8f1a09c..cecdbd4 100755 --- a/bibtexbrowser-style-default.php +++ b/bibtexbrowser-style-default.php @@ -23,7 +23,7 @@ function DefaultBibliographyStyle(&$bibentry) { // title // usually in bold: .bibtitle { font-weight:bold; } $title = ''.$title.''; - if ($bibentry->hasField('url')) $title = ' '.$title.''; + if ($bibentry->hasField('url')) $title = ' '.$title.''; // author diff --git a/bibtexbrowser-style-janos.php b/bibtexbrowser-style-janos.php index 9cff186..48317a3 100755 --- a/bibtexbrowser-style-janos.php +++ b/bibtexbrowser-style-janos.php @@ -1,4 +1,4 @@ -hasField('url')) $title = ' '.$title.''; + if ($bibentry->hasField('url')) $title = ' '.$title.''; $entry[] = $title; diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 5482130..8d7b3cc 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -981,7 +981,7 @@ class BibEntry { /** returns a "[pdf]" link if relevant */ function getUrlLink() { - if ($this->hasField('url')) return ' [pdf]'; + if ($this->hasField('url')) return ' [pdf]'; return ''; }