commit 2117745a63e40513c046a832274fcedb40c4de63
parent 5bb3529c0eed9e2668488a12b2f4575e141327e7
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 3 Nov 2008 10:11:47 +0000
- fix bookmarks mode in OOo plug-in
- disable bookmarks mode for note-based styles
- display an error when attempting to insert a bookmark into a footnote
- closes #1201, Keyboard focus stays in Word when creating or editing a citation
Diffstat:
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js
@@ -142,10 +142,14 @@ var Zotero_File_Interface_Bibliography = new function() {
var selectedStyle = selectedItem.getAttribute('value');
- // update status of displayAs box based
+ // update status of displayAs box based on style class
+ var isNote = Zotero.Styles.get(selectedStyle).class == "note";
+ document.getElementById("displayAs").disabled = !isNote;
- var styleClass = Zotero.Styles.get(selectedStyle).class;
- document.getElementById("displayAs").disabled = styleClass != "note";
+ // update status of formatUsing box based on style class
+ if(isNote) document.getElementById("formatUsing").selectedIndex = 0;
+ document.getElementById("bookmarks").disabled = isNote;
+ document.getElementById("bookmarks-caption").disabled = isNote;
}
function acceptSelection() {
diff --git a/chrome/content/zotero/integrationDocPrefs.xul b/chrome/content/zotero/integrationDocPrefs.xul
@@ -39,7 +39,7 @@
<radio id="fields" selected="true"/>
<label class="radioDescription" id="fields-caption"/>
<radio id="bookmarks" label="&zotero.integration.prefs.bookmarks.label;"/>
- <label class="radioDescription" id="bookmarks-caption">&zotero.integration.prefs.bookmarks.caption;</label>
+ <description class="radioDescription" id="bookmarks-caption" style="white-space: pre;">&zotero.integration.prefs.bookmarks.caption;</description>
</radiogroup>
</groupbox>
</vbox>
diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd
@@ -151,7 +151,7 @@
<!ENTITY zotero.integration.prefs.formatUsing.label "Format Using:">
<!ENTITY zotero.integration.prefs.bookmarks.label "Bookmarks">
-<!ENTITY zotero.integration.prefs.bookmarks.caption "Bookmarks are preserved across Microsoft Word and OpenOffice.org, but may be accidentally modified.">
+<!ENTITY zotero.integration.prefs.bookmarks.caption "Bookmarks are preserved across Microsoft Word and OpenOffice.org, but may be accidentaly modified. For 
compatibility reasons, citations cannot be inserted into footnotes or endnotes when this option is selected.">
<!ENTITY zotero.integration.references.label "References in Bibliography">