www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9b9a45052749a506c0f6ad8025ad73d8ce63c9a6
parent ac75376d51e3414bae8c7d68f2d24eed7984a005
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 22 Sep 2008 21:45:50 +0000

Disable EndNoteĀ® style support


Diffstat:
Mchrome/content/zotero/preferences/preferences.js | 2+-
Mchrome/content/zotero/xpcom/style.js | 10+++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js @@ -1165,7 +1165,7 @@ function addStyle() { fp.init(window, Zotero.getString("zotero.preferences.styles.addStyle"), nsIFilePicker.modeOpen); fp.appendFilter("CSL Style", "*.csl"); - fp.appendFilter("EndNote Style", "*.ens"); + //fp.appendFilter("EndNote Style", "*.ens"); var rv = fp.show(); if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) { diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js @@ -146,15 +146,15 @@ Zotero.Styles = new function() { var error = false; try { - if(type == "ens") { + /*if(type == "ens") { // EN style var type = "ens"; var enConverter = new Zotero.ENConverter(style); var xml = enConverter.parse(); - } else { + } else {*/ // CSL var xml = new XML(Zotero.CSL.Global.cleanXML(style)); - } + //} } catch(e) { error = e; } @@ -330,13 +330,13 @@ Zotero.Style = function(file) { this.file = file; var extension = file.leafName.substr(-4).toLowerCase(); - if(extension == ".ens") { + /*if(extension == ".ens") { this.type = "ens"; this.styleID = Zotero.Styles.ios.newFileURI(this.file).spec; this.title = file.leafName.substr(0, file.leafName.length-4); this.updated = Zotero.Date.dateToSQL(new Date(file.lastModifiedTime)); - } else if(extension == ".csl") { + } else */if(extension == ".csl") { // "with ({});" needed to fix default namespace scope issue // See https://bugzilla.mozilla.org/show_bug.cgi?id=330572 default xml namespace = "http://purl.org/net/xbiblio/csl"; with ({});