fixed bug related to robots=>noindex metadata
This commit is contained in:
+6
-5
@@ -603,14 +603,14 @@ class BibDBBuilder {
|
|||||||
|
|
||||||
var $currentEntry;
|
var $currentEntry;
|
||||||
|
|
||||||
function BibDBBuilder($filename) {
|
function BibDBBuilder($filename, $builtdb = array(), $stringdb = array()) {
|
||||||
|
$this->builtdb = $builtdb;
|
||||||
|
$this->stringdb = $stringdb;
|
||||||
new StateBasedBibtexParser($filename, $this);
|
new StateBasedBibtexParser($filename, $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function beginFile() {
|
function beginFile() {
|
||||||
$builtdb = array();
|
|
||||||
$stringdb = array();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function endFile() { //nothing
|
function endFile() { //nothing
|
||||||
@@ -1277,7 +1277,7 @@ class MenuManager extends BibtexBrowserDisplay {
|
|||||||
/** Creates a new display manager that uses the given bib database. */
|
/** Creates a new display manager that uses the given bib database. */
|
||||||
function MenuManager(&$db) {
|
function MenuManager(&$db) {
|
||||||
$this->db =$db;
|
$this->db =$db;
|
||||||
new HTMLWrapper($this,array('robots'=>'noindex'));
|
new HTMLWrapper($this,array(array('robots','noindex')));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** function called back by HTMLWrapper */
|
/** function called back by HTMLWrapper */
|
||||||
@@ -1927,7 +1927,7 @@ class BibDataBase {
|
|||||||
/** Creates a new database by parsing bib entries from the given
|
/** Creates a new database by parsing bib entries from the given
|
||||||
* file. */
|
* file. */
|
||||||
function load($filename) {
|
function load($filename) {
|
||||||
$db = new BibDBBuilder($filename);
|
$db = new BibDBBuilder($filename, $this->bibdb, $this->stringdb);
|
||||||
//print_r($parser);
|
//print_r($parser);
|
||||||
$this->bibdb = $db->builtdb;
|
$this->bibdb = $db->builtdb;
|
||||||
$this->stringdb = $db->stringdb;
|
$this->stringdb = $db->stringdb;
|
||||||
@@ -1937,6 +1937,7 @@ class BibDataBase {
|
|||||||
/** Creates a new empty database */
|
/** Creates a new empty database */
|
||||||
function BibDataBase() {
|
function BibDataBase() {
|
||||||
$this->bibdb = array();
|
$this->bibdb = array();
|
||||||
|
$this->stringdb = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns all entries as an array. Each entry is an instance of
|
/** Returns all entries as an array. Each entry is an instance of
|
||||||
|
|||||||
Reference in New Issue
Block a user