From 0117065a8ed8a2cfc04323d8f8dcdabecff8fe6a Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 29 Mar 2012 20:18:26 -0400 Subject: [PATCH] Fix dumb typo --- chrome/content/zotero/xpcom/openurl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js index 35e17b346..bf05a106a 100644 --- a/chrome/content/zotero/xpcom/openurl.js +++ b/chrome/content/zotero/xpcom/openurl.js @@ -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;