Browse Source

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.

pull/14/head
Luis J. Villanueva 12 years ago
parent
commit
8958a36808
  1. 12
      bibtexbrowser.php

12
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 .= ' <a href="'.$file.'">[PDF file]</a>';
}
if (BIBTEXBROWSER_BIBTEX_LINKS) {
// we add biburl and title to be able to retrieve this important information
// using Xpath expressions on the XHTML source

Loading…
Cancel
Save