Delete duplicate notes created during Zotfile annotation extraction?
Hello,
I have a strange use-case that I understand is not the way Zotero proper expects me to be dealing with annotation extractions:
I wanted to have my annotations separated into separate notes (each highlighted sentence creates its own child note). This was a feature of Zotfile but was deactivated once Zotero 6 came out with an integrated annotation extraction feature, which unfortunately does not support extracting annotations into multiple notes. So I made some changes on the most recent Zotfile source code and now I have the separate note functionality back and running with no issues.
However, I'm running into this situation: I have a PDF that I extracted the annotations from, and have, for example, 10 child notes. Then I happen to go back to the PDF again and add another highlight. When I ask Zotfile to extract annotations, it (understandably) extracts all of them again, meaning I now have 21 notes, the original ones having been duplicated. This all makes sense. I wonder if anyone has any method to automatically delete duplicate child notes so that only the new annotations are added once I re-extract the annotations. I know there's a built in Duplicate Items folder, but that only applies to actual citations, and not to child notes. Any ideas?
I have a strange use-case that I understand is not the way Zotero proper expects me to be dealing with annotation extractions:
I wanted to have my annotations separated into separate notes (each highlighted sentence creates its own child note). This was a feature of Zotfile but was deactivated once Zotero 6 came out with an integrated annotation extraction feature, which unfortunately does not support extracting annotations into multiple notes. So I made some changes on the most recent Zotfile source code and now I have the separate note functionality back and running with no issues.
However, I'm running into this situation: I have a PDF that I extracted the annotations from, and have, for example, 10 child notes. Then I happen to go back to the PDF again and add another highlight. When I ask Zotfile to extract annotations, it (understandably) extracts all of them again, meaning I now have 21 notes, the original ones having been duplicated. This all makes sense. I wonder if anyone has any method to automatically delete duplicate child notes so that only the new annotations are added once I re-extract the annotations. I know there's a built in Duplicate Items folder, but that only applies to actual citations, and not to child notes. Any ideas?
We can't help with this, obviously, but see https://forums.zotero.org/discussion/comment/426530/#Comment_426530. If there's sufficient demand for creating separate notes from annotations for multiple items at once, we can consider adding back a way to do this.Here's what I've said on this elsewhere, for what it's worth:
Same would apply for something like Obsidian, where a plugin can pull the annotations directly, with no need for pointless intermediate notes.
The plugin part doesn't apply if you're using a closed-source text editor with no plugin architecture that has been weirdly hostile over the years to repeated requests from users for any some sort of Zotero integration, but there's not much we can do about that… In any case, once annotations show up in the items list, you'll be able to filter by tag and use Quick Copy to copy them individually into Scrivener. (You can already do this from the PDF reader, where you can also filter by tag in the sidebar.)
The one update I would add to this, is that I don't need to generate a report from my annotations. I open the child note with all the annotations included, select all, and then paste into Word, before running the find and replace.
Hope this helps. I would also value a way to get notes from Zotero into Scrivener as individual files, but I'm not sure I'd want my Zotero cluttered with hundreds of individual child notes along the way.