diff --git a/bibtexbrowser.php b/bibtexbrowser.php
index 5f196ff..0ed3a96 100755
--- a/bibtexbrowser.php
+++ b/bibtexbrowser.php
@@ -58,6 +58,9 @@ function bibtexbrowser_configure($key, $value) {
// the default view in {SimpleDisplay,AcademicDisplay,RSSDisplay,BibtexDisplay}
@define('BIBTEXBROWSER_DEFAULT_DISPLAY','SimpleDisplay');
+// the default template
+@define('BIBTEXBROWSER_DEFAULT_TEMPLATE','HTMLTemplate');
+
// the target frame of menu links
@define('BIBTEXBROWSER_MENU_TARGET','main'); // might be define('BIBTEXBROWSER_MENU_TARGET','_self'); in bibtexbrowser.local.php
@@ -892,7 +895,8 @@ function latex2html($line) {
$line = str_replace('\\aa','å', $line);
$line = str_replace('\\AA','Å', $line);
- // clean out extra tex curly brackets, usually used for preserving capitals
+
+// clean out extra tex curly brackets, usually used for preserving capitals
$line = str_replace('}','', $line);
$line = str_replace('{','', $line);
@@ -2071,7 +2075,7 @@ class MenuManager {
}
- /** function called back by HTMLWrapper */
+ /** function called back by HTMLTemplate */
function display() {
echo $this->searchView().'
';
echo $this->typeVC().'
';
@@ -3172,18 +3176,15 @@ usage:
$db = zetDB('metrics.bib'); $dis = new BibEntryDisplay($db->getEntryByKey('Schmietendorf2000')); - new HTMLWrapper($dis); + new HTMLTemplate($dis);-*/ -class HTMLWrapper { -/** * $content: an object with methods display() getRSS() getTitle() * $title: title of the page */ -function HTMLWrapper(&$content,$metatags=array()/* an array name=>value*/) { +function HTMLTemplate(&$content,$metatags=array()/* an array name=>value*/) { // when we load a page with AJAX // the HTTP header is taken into account, not the @@ -3239,16 +3240,12 @@ if (method_exists($content, 'getTitle')) { if (BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT) { javascript(); } - - ?>