Need help to remove "editor" names from selected items using Run JavaScript in Zotero
Hi everyone,
I'm trying to clean up my Zotero library by removing all "editor" creator entries from the items I select, using the "Run JavaScript" developer feature in Zotero.
For some reason, in many entries the "editor" field does not contain actual editor names. Instead, it contains a long concatenation of all the author names plus the article title. This results in a ridiculously long string in the "editor" field, which seems to cause sync issues with my Zotero storage.
My goal is simple: for any selected items, I want to delete any names listed as "editor" in the creator list. This is because I have many journal articles where the "editor" field was incorrectly populated during import. A simple fix would be to just remove all editors from the selected items, as this data is not useful anyway in this context, but I struggle to do so.
Has anyone managed to successfully do this using the JavaScript developer console in Zotero, or even encountered the same issue? If so, could you share a working snippet or tell me what might be going wrong?
Thanks a lot in advance for any help!
Cheers,
Kevin
I'm trying to clean up my Zotero library by removing all "editor" creator entries from the items I select, using the "Run JavaScript" developer feature in Zotero.
For some reason, in many entries the "editor" field does not contain actual editor names. Instead, it contains a long concatenation of all the author names plus the article title. This results in a ridiculously long string in the "editor" field, which seems to cause sync issues with my Zotero storage.
My goal is simple: for any selected items, I want to delete any names listed as "editor" in the creator list. This is because I have many journal articles where the "editor" field was incorrectly populated during import. A simple fix would be to just remove all editors from the selected items, as this data is not useful anyway in this context, but I struggle to do so.
Has anyone managed to successfully do this using the JavaScript developer console in Zotero, or even encountered the same issue? If so, could you share a working snippet or tell me what might be going wrong?
Thanks a lot in advance for any help!
Cheers,
Kevin