commit 4278d607107a300b75b7b241e4844d54ac8693cd
parent 6fc6dbe4e504ab00150e00d5575f92352b39ff63
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 20 Sep 2009 00:03:13 +0000
Display bibliography placeholder when there is a bibliography in the document, but no items cited
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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);
+ }
}
}