better support for entries without keys

This commit is contained in:
Martin Monperrus
2016-10-16 21:14:31 +02:00
parent 62d5411155
commit 578fcd97b3
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -911,7 +911,7 @@ class BibDBBuilder extends ParserDelegate {
// we add a key if there is no key
if (!$this->currentEntry->hasField(Q_KEY) && $this->currentEntry->getType()!='string') {
$this->currentEntry->setField(Q_KEY,md5($this->currentEntry->getTitle().implode('',$this->currentEntry->getRawAuthors())));
$this->currentEntry->setField(Q_KEY,md5($entrysource));
}
// we set the fulltext