diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 5b67663..8263679 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1,8 +1,8 @@ -currentEntry->text = $entrysource; - $this->bibdb[$this->currentEntry->getKey()] = $this->currentEntry; + + // ignoring string entries and jabref comments + if (($this->currentEntry->getType()!='comment') && ($this->currentEntry->getType()!='string')) { + $this->bibdb[$this->currentEntry->getKey()] = $this->currentEntry; + } } } // end class BibtexbrowserBibDB @@ -770,6 +773,10 @@ class BibEntry { $publication = $this->getField("note"); } + if ($this->hasField("publisher")) { + $publication = $publication .', '.$this->getField("publisher"); + } + if ($this->hasField(EDITOR)) { $editors = array(); foreach ($this->getEditors() as $editor) { @@ -1030,7 +1037,7 @@ else $page = 1; } else if(isset($_GET[Q_ALL])) { $to_find = $_GET[Q_ALL]; $searched = array_values($this->db->bibdb); - $header = 'Bibtex entries'; + $header = 'Publications'; // nothing special to display as header $this->display = new PagedDisplay($searched, $header, array(Q_ALL =>'')); } else if(isset($_GET[Q_ACADEMIC])) {