Modifying report creator type with Zotero JavaScript API
I have a report with 2 editors. Zotero 6 (maybe is different for newer releases) does not allow Editor as Creator type for Report items type. Either, Author or Series Editor or Contributor...
Then I try the next with the JavaScript API:
Unfortunately, creator.creatorType becomes 8, so authors, instead of editors...
At some point I'll install Zotero 7 or 8, but meanwhile I wonder if these 2 issues happen yet, I mean:
1. Report item type does not allow editor as creator type
2. Modifying creator type through Javascript API is as "blocked" as through GUI.
Then I try the next with the JavaScript API:
var itemID = 1443
var item = Zotero.Items.get(itemID);
let creators = item.getCreators();
for(let creator of creators){
creator.creatorTypeID = 10
}
item.setCreators(creators);
item.save();
Unfortunately, creator.creatorType becomes 8, so authors, instead of editors...
At some point I'll install Zotero 7 or 8, but meanwhile I wonder if these 2 issues happen yet, I mean:
1. Report item type does not allow editor as creator type
2. Modifying creator type through Javascript API is as "blocked" as through GUI.
It's actually kind of impressive that it just fails gracefully.
And next, another report with editors, again: https://www.researchgate.net/publication/234679668_Developmental_Readiness_of_Normal_Full_Term_Infants_To_Progress_from_Exclusive_Breastfeeding_to_the_Introduction_of_Complementary_Foods_Reviews_of_the_Relevant_Literature_Concerning_Infant_Immunologic