Display bibliography placeholder when there is a bibliography in the document, but no items cited
This commit is contained in:
parent
6fc6dbe4e5
commit
4278d60710
|
@ -580,7 +580,11 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
|
||||||
|
|
||||||
var bibliographyText = this._session.getBibliography();
|
var bibliographyText = this._session.getBibliography();
|
||||||
for each(var field in this._bibliographyFields) {
|
for each(var field in this._bibliographyFields) {
|
||||||
field.setText(bibliographyText, true);
|
if(bibliographyText) {
|
||||||
|
field.setText(bibliographyText, true);
|
||||||
|
} else {
|
||||||
|
field.setText("{Bibliography}", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user