commit 8a7245fd74dbd6e9702b02ead0a3cc8cdd1097a0
parent c8a87f123ae4707347c891293a88b726a4140dc8
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 29 Mar 2012 20:10:22 -0400
COinS atitle should be title for proceeding, and btitle should be publicationTitle.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js
@@ -296,20 +296,20 @@ Zotero.OpenURL = new function() {
item.accessDate = "";
}
} else if(key == "rft.btitle") {
- if(item.itemType == "book" || item.itemType == "conferencePaper" || item.itemType == "report") {
+ if(item.itemType == "book" || item.itemType == "report") {
item.title = value;
- } else if(item.itemType == "bookSection") {
+ } else if(item.itemType == "bookSection" || item.itemType == "conferencePaper") {
item.publicationTitle = value;
}
- } else if(key == "rft.atitle" && (item.itemType == "journalArticle" ||
- item.itemType == "bookSection")) {
+ } else if(key == "rft.atitle"
+ && ["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType)) {
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(item.itemType == "journalArticle" || item.itemType == "bookSection") {
+ if(["journalArticle", "bookSection", "conferencePaper"].indexOf(item.itemType)) {
item.publicationTitle = value;
} else {
item.title = value;