remove support for old-style CSLs

This commit is contained in:
Simon Kornblith 2008-07-23 05:05:03 +00:00
parent 0f71fdbc35
commit 5efeeb6089
3 changed files with 7 additions and 2021 deletions

View file

@ -73,17 +73,13 @@ Zotero.Cite = new function() {
// create a CSL instance
var csl = _getCSL(cslID);
// load CSL in compat mode if it is old-style
if(csl.indexOf("<defaults") != -1) {
_lastCSL = new Zotero.CSL.Compat(csl);
} else {
if(csl.substr(0, 6) == "\x00\x08\xFF\x00\x00\x00") {
// EN style
var enConverter = new Zotero.ENConverter(csl);
csl = enConverter.parse();
}
_lastCSL = new Zotero.CSL(csl);
// load CSL in EN mode if necessary
if(csl.substr(0, 6) == "\x00\x08\xFF\x00\x00\x00") {
// EN style
var enConverter = new Zotero.ENConverter(csl);
csl = enConverter.parse();
}
_lastCSL = new Zotero.CSL(csl);
_lastStyle = cslID;
}

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,7 @@ var ZoteroWrapped = this;
*********************************************************************/
var xpcomFiles = ['zotero',
'annotate', 'attachments', 'cite', 'cite_compat', 'collectionTreeView',
'annotate', 'attachments', 'cite', 'collectionTreeView',
'dataServer', 'data_access', 'data/item', 'data/items', 'data/collection',
'data/collections', 'data/cachedTypes', 'data/creator', 'data/creators',
'data/itemFields', 'data/notes', 'data/tag', 'data/tags', 'db', 'enstyle',