Hack for OpenOffice.org fields with codes
This commit is contained in:
parent
748790bf46
commit
92f0fa9097
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue