commit 41a3756102eec15d9da733b5c3dc08f03dd97b86
parent 95024e50d553c5f93c19f71446749fc07911afed
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 27 Oct 2008 18:16:45 +0000
Restore EndNoteĀ® import
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js
@@ -1065,7 +1065,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 ({});