www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f207c7d1dec661e69b9bec426760226d80ef01d2
parent 9658387de94c4249bbae63a86119662235fb37fd
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 17 Feb 2010 00:41:57 +0000

add support for container-author (bookAuthor)


Diffstat:
Mchrome/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 @@ -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;