From 4278d607107a300b75b7b241e4844d54ac8693cd Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 20 Sep 2009 00:03:13 +0000 Subject: [PATCH] Display bibliography placeholder when there is a bibliography in the document, but no items cited --- chrome/content/zotero/xpcom/integration.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index db08553f9..9dc2e4621 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -580,7 +580,11 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations, var bibliographyText = this._session.getBibliography(); for each(var field in this._bibliographyFields) { - field.setText(bibliographyText, true); + if(bibliographyText) { + field.setText(bibliographyText, true); + } else { + field.setText("{Bibliography}", false); + } } }