Hack for OpenOffice.org fields with codes

This commit is contained in:
Simon Kornblith 2011-08-14 19:42:01 +00:00
parent 748790bf46
commit 92f0fa9097

View file

@ -860,6 +860,13 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
field.setCode(
(this._session.data.prefs.storeReferences ? "ITEM CSL_CITATION" : "ITEM")
+" "+fieldCode);
if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich) {
// 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
: citation.properties.formattedCitation, isRich);
}
}
}