From 51be608176941cd5a49910d9f87caa35161252a2 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Wed, 1 Sep 2010 00:54:18 +0200 Subject: [PATCH] included contributions of Sebastian Schoeps --- bibtexbrowser.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 45d0c3e..ae5b1cb 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -740,6 +740,10 @@ function latex2html($line) { $line = str_replace('\\c{C}','Ç', $line); $line = str_replace('\\cc','ç', $line); $line = str_replace('\\cC','Ç', $line); + $line = str_replace('\\c c','ç', $line); + $line = str_replace('\\c C','Ç', $line); + $line = str_replace('\\ae','æ', $line); + $line = str_replace('\\ss','ß', $line); $line = str_replace('\\o','ø', $line); $line = str_replace('\\O','Ø', $line); @@ -865,7 +869,9 @@ class BibEntry { if ($this->getType()=="mastersthesis") { return $this->getField(SCHOOL); } - + if ($this->getType()=="bachelorsthesis") { + return $this->getField(SCHOOL); + } if ($this->getType()=="techreport") { return $this->getField("institution"); } @@ -1796,7 +1802,7 @@ class AcademicDisplay extends BibtexBrowserDisplay { $this->search2html(array(Q_TYPE=>'inproceedings',Q_SEARCH=>'workshop'),'Refereed Workshop Papers'); // misc and thesis - $this->search2html(array(Q_TYPE=>'misc|phdthesis|mastersthesis|techreport'),'Other Publications'); + $this->search2html(array(Q_TYPE=>'misc|phdthesis|mastersthesis|bachelorsthesis|techreport'),'Other Publications'); echo $this->poweredby(); }