From f207c7d1dec661e69b9bec426760226d80ef01d2 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 17 Feb 2010 00:41:57 +0000 Subject: [PATCH] add support for container-author (bookAuthor) --- chrome/content/zotero/xpcom/csl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index ddde19d216..6c7f852312 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -73,6 +73,7 @@ Zotero.CSL._namesVariables = { "recipient":true, "interviewer":true, "collection-editor":true, + "container-author":true, "author":true } @@ -1728,7 +1729,8 @@ Zotero.CSL.Item.prototype._refreshItem = function() { * Mappings for names */ Zotero.CSL.Item._zoteroNameMap = { - "collection-editor":"seriesEditor" + "collection-editor":"seriesEditor", + "container-author":"bookAuthor" } /* @@ -2294,6 +2296,7 @@ Zotero.CSL.ItemSet.prototype.resort = function() { if(!names) names = this.items[i].getNames("translator"); if(!names) names = this.items[i].getNames("recipient"); if(!names) names = this.items[i].getNames("interviewer"); + if(!names) names = this.items[i].getNames("book-author"); if(!names) names = this.items[i].getNames("collection-editor"); if(!names) continue; namesByItem[i] = names;