diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index e62dbef4b..520222776 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -107,6 +107,17 @@ Zotero.Styles = new function() { * @param {String} id */ this.get = function(id) { + // Map some obsolete styles to current ones + var mappings = { + "http://www.zotero.org/styles/chicago-note": "http://www.zotero.org/styles/chicago-note-bibliography", + "http://www.zotero.org/styles/mhra_note_without_bibliography": "http://www.zotero.org/styles/mhra", + "http://www.zotero.org/styles/aaa": "http://www.zotero.org/styles/american-anthropological-association" + }; + if(mappings[id]) { + Zotero.debug("Mapping " + id + " to " + mappings[id]); + id = mappings[id]; + } + if(!_initialized) this.init(); return _styles[id] ? _styles[id] : false; }