From 8958a36808458447c00317a10d501fe137ce580c Mon Sep 17 00:00:00 2001 From: "Luis J. Villanueva" Date: Sun, 9 Mar 2014 11:40:13 -0400 Subject: [PATCH] Adding a "[PDF file]" link in each entry for the file exported by Zotero. The path is relative and is stored in the "file" variable. --- bibtexbrowser.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 253fca9..4201d6a 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1483,6 +1483,18 @@ class BibEntry { $str = ''; + + #Adding link to PDF file exported by Zotero + if ($this->hasField('file')) { + + $file = $this->getField("file"); + $file = explode(":", $file); + $file = $file[1]; + + $str .= ' [PDF file]'; + } + + if (BIBTEXBROWSER_BIBTEX_LINKS) { // we add biburl and title to be able to retrieve this important information // using Xpath expressions on the XHTML source