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 . diff --git a/bibtexbrowser.php b/bibtexbrowser.php index e4a1e95..b9bacb1 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1484,6 +1484,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 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