Fix DataCite under Fx 32
This commit is contained in:
parent
79ed7e503e
commit
9c3ec6f0be
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue