Thanks @marcelparciak - solves the problem! However, I really think Zotero should provide a more elegant fix for this. A "Merge all with default selection" button would be very useful
@marcelparciak: Many thanks for this script. But need some further help. How do I change the time settings? I am working on a huge library, so one merge operation is taking up to 15 seconds. How do I prevent the script from clicking too soon? which parameter do I change in your script
@marcelparciak Thank you for this simple little hack. Saved me a lot of time. For those new to it, some manual input is still needed, as it will stop whenever it encounters different reference types. Just select the next item and rerun it. No complaints about this, since this is minimal compared to the amount of work I would have invested otherwise.
I found this add-ons tool that worked smoothly for me. Sometimes looks like it is freezing but after re-clicking on some item of the duplicate folder automatically (in some time) merges all duplicates one after another.
I spent about 5–6 hours digging into this discussion, so I wanted to share a clear summary for anyone struggling. PLEASE SCROLL TO "BEST WORKING SOLUTION", for quick answer :)
First, the JavaScript solution (shared by @marcelparciak in 2020) does not work anymore, unless you use older version / has not update zotero since 2020. It will throw errors like “ReferenceError: Zotero_Duplicates_Pane is not defined”. This happens because Zotero updated to new version (recently Zotero 9) and they removed or changed those UI internals.
Second, there is a Sikuli-based solution on GitHub: https://github.com/escaped-echidna/zotero_merge_all_duplicates (by @rachelmurray25 in 2018). So basically, Sikuli is an 'app' that looks at the screen → finds a matching image → clicks it like a human (if you play games, I guess it’s like using Steam Remote Play / Parsec). @caramaschisara said it worked on 6 Feb 2024, but I personally did not use it because I not familiar/ couldn’t download Sikuli and get it set up.
- Go to the GitHub page - At right side, "About", scroll down lil bit - Click “Releases” (latest) (its green colored font/link) - Scroll down to “Assets” - Click “zoplicate.xpi” (it should be auto-downloaded) - Open Zotero → Tools → Plugins - Drag and drop the .xpi file into the window - Restart Zotero
After restarting, go to Edit → Settings → Zoplicate. If the "Zoplicate" tab appears, the plugin is installed correctly.
To use it, open the Duplicate Items pane in Zotero. You should see an option called “Bulk Merge All Duplicate Items”. Click it and it will automatically merge duplicates.
This is currently the most reliable solution I found for Zotero 9. Big thanks to the developer @chenglongma for maintaining this plugin. There’s also a “buy me a coffee” link in the GitHub page — and honestly, chenglongma deserves all the coffee for this!
However, I really think Zotero should provide a more elegant fix for this. A "Merge all with default selection" button would be very useful
I have developed an add-on to detect duplicates when **importing** new items.
It supports Zotero 6 and 7. A dialog will pop up if the newly imported item already exists in the library.
Please find it here: https://github.com/ChenglongMa/zoplicate
Also, any feedback and new feature suggestions are welcome.
Thanks.
Thank you for this simple little hack.
Saved me a lot of time.
For those new to it, some manual input is still needed, as it will stop whenever it encounters different reference types. Just select the next item and rerun it.
No complaints about this, since this is minimal compared to the amount of work I would have invested otherwise.
I appreciate your kind words, and I am truly flattered :)
I found this add-ons tool that worked smoothly for me. Sometimes looks like it is freezing but after re-clicking on some item of the duplicate folder automatically (in some time) merges all duplicates one after another.
I find the above plugin, but i have not tried it. Please be careful.
First, the JavaScript solution (shared by @marcelparciak in 2020) does not work anymore, unless you use older version / has not update zotero since 2020. It will throw errors like “ReferenceError: Zotero_Duplicates_Pane is not defined”. This happens because Zotero updated to new version (recently Zotero 9) and they removed or changed those UI internals.
Second, there is a Sikuli-based solution on GitHub: https://github.com/escaped-echidna/zotero_merge_all_duplicates (by @rachelmurray25 in 2018). So basically, Sikuli is an 'app' that looks at the screen → finds a matching image → clicks it like a human (if you play games, I guess it’s like using Steam Remote Play / Parsec). @caramaschisara said it worked on 6 Feb 2024, but I personally did not use it because I not familiar/ couldn’t download Sikuli and get it set up.
The BEST WORKING SOLUTION I found is the Zotero plugin “Zoplicate” by @chenglongma: https://github.com/ChenglongMa/zoplicate
To use it:
- Go to the GitHub page
- At right side, "About", scroll down lil bit
- Click “Releases” (latest) (its green colored font/link)
- Scroll down to “Assets”
- Click “zoplicate.xpi” (it should be auto-downloaded)
- Open Zotero → Tools → Plugins
- Drag and drop the .xpi file into the window
- Restart Zotero
After restarting, go to Edit → Settings → Zoplicate. If the "Zoplicate" tab appears, the plugin is installed correctly.
To use it, open the Duplicate Items pane in Zotero. You should see an option called “Bulk Merge All Duplicate Items”. Click it and it will automatically merge duplicates.
This is currently the most reliable solution I found for Zotero 9. Big thanks to the developer @chenglongma for maintaining this plugin. There’s also a “buy me a coffee” link in the GitHub page — and honestly, chenglongma deserves all the coffee for this!