Fix dumb typo

This commit is contained in:
Simon Kornblith 2012-03-29 20:18:26 -04:00
parent f77644659e
commit 0117065a8e

View file

@ -304,14 +304,14 @@ Zotero.OpenURL = new function() {
item.publicationTitle = value;
}
} else if(key == "rft.atitle"
&& ["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType)) {
&& ["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType) !== -1) {
item.title = value;
} else if(key == "rft.jtitle" && item.itemType == "journalArticle") {
item.publicationTitle = value;
} else if(key == "rft.stitle" && item.itemType == "journalArticle") {
item.journalAbbreviation = value;
} else if(key == "rft.title") {
if(["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType)) {
if(["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType) !== -1) {
item.publicationTitle = value;
} else {
item.title = value;