From bd0cc260a420aff8d1e399b70e2b090cc8941bff Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Sun, 2 Oct 2011 21:00:54 +0200 Subject: [PATCH] removed page title from embedded mode, the resulting code is cleaner --- bibtexbrowser.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 47bef2b..b8d16a6 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1872,9 +1872,6 @@ class PagedDisplay extends BibtexBrowserDisplay { $this->noPages = ceil(count($this->result) / PAGE_SIZE); - /** Displays the header stringg. */ - echo $this->formatedHeader(); - if ($this->noPages>1) $this->displayPageBar($this->noPages, $page); $this->startIndex = ($page - 1) * PAGE_SIZE; @@ -2072,7 +2069,6 @@ class AcademicDisplay extends BibtexBrowserDisplay { } function display() { - echo $this->formatedHeader(); foreach (_DefaultBibliographySections() as $section) { $this->search2html($section['query'],$section['title']); } @@ -2113,7 +2109,6 @@ class BibEntryDisplay extends BibtexBrowserDisplay { // we encapsulate everything so that the output of display() is still valid XHTML echo '
'; echo $this->bib->toCoins(); - echo $this->formatedHeader(); echo $this->bib->toEntryUnformatted(); //echo $this->bib->getUrlLink(); echo $this->poweredby(); @@ -2579,7 +2574,11 @@ function bibtexbrowserDefaultCSS() { withe and TITLE */ class HTMLWrapper { /** - * $content: an object with a display() method + * $content: an object with methods + display() + getRSS() + formatedHeader() + getTitle() * $title: title of the page */ function HTMLWrapper(&$content,$metatags=array()/* an array name=>value*/) { @@ -2618,6 +2617,7 @@ echo "\n".' -->'; ?> +formatedHeader();?> display();?>