Delete chicago-note.csl, mhra_note_with_bibliography.csl, aaa.csl

First two are redundant, third has been renamed

Mappings for existing documents forthcoming
This commit is contained in:
Dan Stillman 2012-01-20 17:00:53 -05:00
parent b617c508b1
commit 84e59d6601

View File

@ -530,8 +530,8 @@ Zotero.Schema = new function(){
continue;
}
// Delete incorrectly named files saved via repo pre-1.5b3
switch (file.leafName) {
// Delete incorrectly named files saved via repo pre-1.5b3
case 'ama':
case 'apa':
case 'apsa':
@ -548,8 +548,21 @@ Zotero.Schema = new function(){
case 'nature':
case 'nlm':
case 'vancouver':
// Delete renamed/obsolete files
case 'chicago-note.csl':
case 'mhra_note_without_bibliography.csl':
toDelete.push(file);
continue;
// Be a little more careful with this one, in case someone
// created a custom 'aaa' style
case 'aaa.csl':
var str = Zotero.File.getContents(file, false, 300);
if (str.indexOf("<title>American Anthropological Association</title>") != -1) {
toDelete.push(file);
}
continue;
}
if (forceReinstall || !file.leafName.match(fileNameRE)) {