fix incorrect creatorType
This commit is contained in:
parent
e979a55c6d
commit
b8d89b9d60
1 changed files with 1 additions and 3 deletions
|
@ -369,6 +369,7 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
var creator = item.creators[i];
|
||||
|
||||
// try to assign correct creator type
|
||||
var creatorTypeID = 1;
|
||||
if(creator.creatorType) {
|
||||
try {
|
||||
var creatorTypeID = Zotero.CreatorTypes.getID(creator.creatorType);
|
||||
|
@ -376,9 +377,6 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
Zotero.debug("Translate: Invalid creator type "+creator.creatorType+" for creator index "+j, 2);
|
||||
}
|
||||
}
|
||||
if(!creatorTypeID) {
|
||||
var creatorTypeID = 1;
|
||||
}
|
||||
|
||||
// Single-field mode
|
||||
if (creator.fieldMode && creator.fieldMode == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue