explains how to use other bibliographic formats

This commit is contained in:
Martin Monperrus
2015-05-22 23:05:00 +02:00
parent 178b85b3cc
commit 12f6cbd2b3
2 changed files with 45 additions and 1 deletions
+9 -1
View File
@@ -1080,7 +1080,6 @@ class BibEntry {
} else {
//echo "xx".$value."xx\n";
}
$this->fields[$name] = $value;
}
@@ -3379,6 +3378,15 @@ class BibDataBase {
return $this->bibdb[$key];
}
/** Adds a new bib entry to the database. */
function addEntry($entry) {
if (!$entry->hasField('key')) {
die('error: a bibliographic entry must have a key');
}
$this->bibdb[$entry->getKey()] = $entry;
}
/**
* Returns an array containing all bib entries matching the given
* type.