commit b9eb8ecb157f1e335faed1f06d96f32305851d3c
parent 92f0fa9097b39aacad2e73064ab983a64db31324
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 14 Aug 2011 19:48:24 +0000
Don't overwrite changed citations. They will (sadly) lose their formatting in OOo at the moment.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -861,7 +861,8 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
(this._session.data.prefs.storeReferences ? "ITEM CSL_CITATION" : "ITEM")
+" "+fieldCode);
- if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich) {
+ if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich
+ && !citation.properties.dontUpdate) {
// For ReferenceMarks with formatting, we need to set the text again, because
// setting the field code removes formatting from the mark. I don't like this.
field.setText(citation.properties.custom ? citation.properties.custom