www

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

commit 9c3ec6f0beeda9cb743334d13af0d5b319df3dc5
parent 79ed7e503ef70671d8979f8150b60022f3a3c54f
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  1 Sep 2014 20:00:31 -0400

Fix DataCite under Fx 32

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1542,7 +1542,7 @@ Zotero.Utilities = { }, /** - * Converts an item in CSL JSON format to a Zotero tiem + * Converts an item in CSL JSON format to a Zotero item * @param {Zotero.Item} item * @param {Object} cslItem */ @@ -1614,6 +1614,9 @@ Zotero.Utilities = { item.setCreator(item.getCreators().length, creator, creatorTypeID); } else { creator.creatorType = Zotero.CreatorTypes.getName(creatorTypeID); + if(Zotero.isFx && !Zotero.isBookmarklet && Zotero.platformMajorVersion >= 32) { + creator = Components.utils.cloneInto(creator, item); + } item.creators.push(creator); } }