From 8958a36808458447c00317a10d501fe137ce580c Mon Sep 17 00:00:00 2001 From: "Luis J. Villanueva" Date: Sun, 9 Mar 2014 11:40:13 -0400 Subject: [PATCH 1/3] 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 From 907ccf12308910dce12a9768e2b9b9b4af00b71d Mon Sep 17 00:00:00 2001 From: "Luis J. Villanueva" Date: Fri, 25 Apr 2014 13:22:29 -0400 Subject: [PATCH 2/3] Adding index file that checks if there are any bib files. --- index.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..b8a3003 --- /dev/null +++ b/index.php @@ -0,0 +1,26 @@ + + +

Available databases:

"; +echo " + +"; +?> \ No newline at end of file From d1a9e8b1800631266fab0806c86a5de3505396e2 Mon Sep 17 00:00:00 2001 From: "Luis J. Villanueva" Date: Fri, 25 Apr 2014 13:24:42 -0400 Subject: [PATCH 3/3] Adding changes in this repo from original --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12a38a4..0211236 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -This is the github repository of bibtexbrowser. +Custom changes to bibtexbrowser, including: -It is used to collect patches and extensions as pull requests. +* Custom index file to select among several bib files +* Added a pdf link for bib databases exported from Zotero The official home page of bibtexbrowser is .