Styles->Cite section in Zotero preferences and split to "Word Processors" and "Styles" tabs
also change "Shortcut Keys" to just "Shortcuts" (since the icon is a key anyway)
This commit is contained in:
parent
98ef051951
commit
d4da080967
|
@ -46,6 +46,7 @@ function init()
|
||||||
}
|
}
|
||||||
|
|
||||||
updateStorageSettings(null, null, true);
|
updateStorageSettings(null, null, true);
|
||||||
|
updateWordProcessorInstructions();
|
||||||
refreshStylesList();
|
refreshStylesList();
|
||||||
refreshProxyList();
|
refreshProxyList();
|
||||||
populateQuickCopyList();
|
populateQuickCopyList();
|
||||||
|
@ -1813,3 +1814,12 @@ function updateProxyPrefs() {
|
||||||
document.getElementById('zotero-proxies-disableByDomain-checkbox').disabled =
|
document.getElementById('zotero-proxies-disableByDomain-checkbox').disabled =
|
||||||
document.getElementById('zotero-proxies-disableByDomain-textbox').disabled = !transparent;
|
document.getElementById('zotero-proxies-disableByDomain-textbox').disabled = !transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines if there are word processors, and if not, enables no word processor message
|
||||||
|
*/
|
||||||
|
function updateWordProcessorInstructions() {
|
||||||
|
if(document.getElementById("wordProcessors").childNodes.length == 2) {
|
||||||
|
document.getElementById("wordProcessors-noWordProcessorPluginsInstalled").hidden = undefined;
|
||||||
|
}
|
||||||
|
}
|
|
@ -564,45 +564,59 @@ To add a new preference:
|
||||||
|
|
||||||
|
|
||||||
<prefpane id="zotero-prefpane-styles"
|
<prefpane id="zotero-prefpane-styles"
|
||||||
label="&zotero.preferences.prefpane.styles;"
|
label="&zotero.preferences.prefpane.cite;"
|
||||||
image="chrome://zotero/skin/prefs-styles.png">
|
image="chrome://zotero/skin/prefs-styles.png">
|
||||||
|
|
||||||
<preferences>
|
<preferences>
|
||||||
<preference id="pref-styles-citePaperJournalArticleURL" name="extensions.zotero.export.citePaperJournalArticleURL" type="bool"/>
|
<preference id="pref-styles-citePaperJournalArticleURL" name="extensions.zotero.export.citePaperJournalArticleURL" type="bool"/>
|
||||||
</preferences>
|
</preferences>
|
||||||
|
|
||||||
<groupbox flex="1">
|
<tabbox>
|
||||||
<caption label="&zotero.preferences.styles.styleManager;"/>
|
<tabs>
|
||||||
|
<tab label="&zotero.preferences.cite.wordProcessors;"/>
|
||||||
<tree flex="1" id="styleManager" hidecolumnpicker="true" rows="6"
|
<tab label="&zotero.preferences.cite.styles;"/>
|
||||||
onselect="document.getElementById('styleManager-delete').disabled = undefined"
|
</tabs>
|
||||||
onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedStyle(); }">
|
<tabpanels>
|
||||||
<treecols>
|
<tabpanel orient="vertical" id="wordProcessors">
|
||||||
<treecol id="styleManager-title" label="&zotero.preferences.styles.styleManager.title;" flex="3"/>
|
<label id="wordProcessors-noWordProcessorPluginsInstalled" width="45em" hidden="true">
|
||||||
<treecol id="styleManager-updated" label="&zotero.preferences.styles.styleManager.updated;" flex="1"/>
|
&zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled;
|
||||||
<treecol id="styleManager-csl" label="&zotero.preferences.styles.styleManager.csl;"/>
|
</label>
|
||||||
</treecols>
|
<label class="text-link" href="http://www.zotero.org/support/word_processor_plugin_installation#word_processor_plugins_for_zotero_2.0" value="&zotero.preferences.cite.wordProcessors.getPlugins;"/>
|
||||||
<treechildren id="styleManager-rows"/>
|
</tabpanel>
|
||||||
</tree>
|
<tabpanel orient="vertical" id="styles">
|
||||||
<separator class="thin"/>
|
<groupbox flex="1">
|
||||||
<hbox align="center" flex="1">
|
<caption label="&zotero.preferences.cite.styles.styleManager;"/>
|
||||||
<label class="text-link" href="http://www.zotero.org/styles/" value="&zotero.preferences.export.getAdditionalStyles;" flex="1"/>
|
|
||||||
<button disabled="true" id="styleManager-delete" label="-" onclick="deleteStyle()"/>
|
<tree flex="1" id="styleManager" hidecolumnpicker="true" rows="6"
|
||||||
<button label="+" onclick="addStyle()"/>
|
onselect="document.getElementById('styleManager-delete').disabled = undefined"
|
||||||
</hbox>
|
onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedStyle(); }">
|
||||||
</groupbox>
|
<treecols>
|
||||||
|
<treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="3"/>
|
||||||
<groupbox>
|
<treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;" flex="1"/>
|
||||||
<caption label="&zotero.preferences.citationOptions.caption;"/>
|
<treecol id="styleManager-csl" label="&zotero.preferences.cite.styles.styleManager.csl;"/>
|
||||||
|
</treecols>
|
||||||
<checkbox label="&zotero.preferences.export.citePaperJournalArticleURL;" preference="pref-styles-citePaperJournalArticleURL"/>
|
<treechildren id="styleManager-rows"/>
|
||||||
<!-- This doesn't wrap without an explicit width, for some reason -->
|
</tree>
|
||||||
<label id="export-citePaperJournalArticleURL" width="45em">
|
<separator class="thin"/>
|
||||||
&zotero.preferences.export.citePaperJournalArticleURL.description;
|
<hbox align="center" flex="1" height="40">
|
||||||
</label>
|
<label class="text-link" href="http://www.zotero.org/styles/" value="&zotero.preferences.export.getAdditionalStyles;" flex="1"/>
|
||||||
</groupbox>
|
<button disabled="true" id="styleManager-delete" label="-" onclick="deleteStyle()"/>
|
||||||
|
<button label="+" onclick="addStyle()"/>
|
||||||
<separator/>
|
</hbox>
|
||||||
|
</groupbox>
|
||||||
|
|
||||||
|
<groupbox>
|
||||||
|
<caption label="&zotero.preferences.citationOptions.caption;"/>
|
||||||
|
|
||||||
|
<checkbox label="&zotero.preferences.export.citePaperJournalArticleURL;" preference="pref-styles-citePaperJournalArticleURL"/>
|
||||||
|
<!-- This doesn't wrap without an explicit width, for some reason -->
|
||||||
|
<label id="export-citePaperJournalArticleURL" width="45em">
|
||||||
|
&zotero.preferences.export.citePaperJournalArticleURL.description;
|
||||||
|
</label>
|
||||||
|
</groupbox>
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
||||||
</prefpane>
|
</prefpane>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,16 +94,19 @@
|
||||||
<!ENTITY zotero.preferences.quickCopy.siteEditor.outputFormat "Output Format">
|
<!ENTITY zotero.preferences.quickCopy.siteEditor.outputFormat "Output Format">
|
||||||
<!ENTITY zotero.preferences.quickCopy.dragLimit "Disable Quick Copy when dragging more than">
|
<!ENTITY zotero.preferences.quickCopy.dragLimit "Disable Quick Copy when dragging more than">
|
||||||
|
|
||||||
|
<!ENTITY zotero.preferences.prefpane.cite "Cite">
|
||||||
|
<!ENTITY zotero.preferences.cite.styles "Styles">
|
||||||
|
<!ENTITY zotero.preferences.cite.wordProcessors "Word Processors">
|
||||||
|
<!ENTITY zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled "No word processor plug-ins are currently installed.">
|
||||||
|
<!ENTITY zotero.preferences.cite.wordProcessors.getPlugins "Get word processor plug-ins...">
|
||||||
|
|
||||||
<!ENTITY zotero.preferences.prefpane.styles "Styles">
|
<!ENTITY zotero.preferences.cite.styles.styleManager "Style Manager">
|
||||||
|
<!ENTITY zotero.preferences.cite.styles.styleManager.title "Title">
|
||||||
<!ENTITY zotero.preferences.styles.styleManager "Style Manager">
|
<!ENTITY zotero.preferences.cite.styles.styleManager.updated "Updated">
|
||||||
<!ENTITY zotero.preferences.styles.styleManager.title "Title">
|
<!ENTITY zotero.preferences.cite.styles.styleManager.csl "CSL">
|
||||||
<!ENTITY zotero.preferences.styles.styleManager.updated "Updated">
|
|
||||||
<!ENTITY zotero.preferences.styles.styleManager.csl "CSL">
|
|
||||||
<!ENTITY zotero.preferences.export.getAdditionalStyles "Get additional styles...">
|
<!ENTITY zotero.preferences.export.getAdditionalStyles "Get additional styles...">
|
||||||
|
|
||||||
<!ENTITY zotero.preferences.prefpane.keys "Shortcut Keys">
|
<!ENTITY zotero.preferences.prefpane.keys "Shortcuts">
|
||||||
|
|
||||||
<!ENTITY zotero.preferences.keys.openZotero "Open/Close Zotero Pane">
|
<!ENTITY zotero.preferences.keys.openZotero "Open/Close Zotero Pane">
|
||||||
<!ENTITY zotero.preferences.keys.toggleFullscreen "Toggle Fullscreen Mode">
|
<!ENTITY zotero.preferences.keys.toggleFullscreen "Toggle Fullscreen Mode">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user