Is there any way to convert all "report" items to "preprint" ?
Since the last Zotero update preprints now use the new preprint item type. Is there any way to convert all previously added preprints that were added as "report" items to the "preprint" item type? I have 4000+ items in my library and it would take considerable time to do it manually.
Thank you.
Thank you.
If that’s the case, I can sort my entire library by "item type" then select all the "report" items, and apply them a tag? Would that work?
const preprint = Zotero.ItemTypes.getID('preprint')
const search = new Zotero.Search()
search.addCondition('itemType', 'is', 'report')
const itemIDs = await search.search()
if (itemIDs.length) {
for (const item of await Zotero.Items.getAsync(itemIDs)) {
item.setType(preprint)
await item.saveTx()
}
}
I've tested this on my end, I don't see what could go wrong, but still, you assume the risk.