- 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
This commit is contained in:
Simon Kornblith 2008-11-03 10:11:47 +00:00
parent 5bb3529c0e
commit 2117745a63
3 changed files with 9 additions and 5 deletions

View file

@ -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() {

View file

@ -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>

View file

@ -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 &#xA;compatibility reasons, citations cannot be inserted into footnotes or endnotes when this option is selected.">
<!ENTITY zotero.integration.references.label "References in Bibliography">