Merge multiple identical notes

I try to import a GEDCOM generated by FTM2025 containing a lot of shared citations into GRAMPS 6.0. Every shared citation generates it’s own but identical citation with identical notes in GRAMPS. The “Merge Citations” tool is very helpful to merge all dublicate citations. But for each merged citation there remain multiple identical notes (from FTM’s “Citation text” and “Web address” field).

Any idea or hint how to merge such identical notes by a global job/program/add-on?
Thank you

Welcome!

There is the Multimerge addon tool.

Go to the Addon Manager (green puzzle icon) and open the Projects tab. Make sure the Isotammi (Finnish for Big Oak) option is checked. If it is not there you can add it. Its URL is:

https://raw.githubusercontent.com/Taapeli/isotammi-addons/master/addons/gramps60

Then you can search the Addons tab for “Multimerge Gramplet”.

Add the gramplet to the bottombar (or sidebar) of the Notes view (or any other view). You can select copies of the same note and merge them all.

As with any batch edit, it is always best to ensure you have a backup of your database.

Thank you for the hint. The Gramplet is really helpfull.

But my last bad is now, there are a lot of notes having Web links with very small differences. And it’s more than difficult to select/seperate double notes by hand/eyes.

I see I could use the SuperTool to delete a note if more than one note having the same text was found. But how to delete it?
This doesn’t work as executed statement for SuperTool:
counter[text].append(gramps_id)
if (len(counter[text]) > 1) : note.delete

”note.delete” is unknown.

I am not a SuperTool user so cannot help you with that method.

The only thing I can suggest is to filter on the web link, Merge the common notes found. Tag the remaining note “Done”. Repeat with another note.

The Merging of Notes can have a lot of subtleties. So you might not want to do merges or deletes blindly with SuperTool.

Notes can have links so the links have to be checked to determine if a merge or delete causes rot in the backlinks that need to be patched.

It might be better to ask @kku if the automerge feature in MultiMerge could be expanded to find and merge identical Notes.

In general your right. But for the GEDCOM transfer from FTM2025 (so far I checked) there is no problem to delete the double notes after MultiMerge the double citations if the notes have the identical content and are referenced one and only by the same citation. So I still try to find a solution with the SuperTool. It might be helpfull too for a future MultiMerge.

BTW: I First import the FTM GEDCOM into an empty Gramps tree, manipulate there, export than as gramps file and merge this later into my main tree in Gramps. So, I’m able to check every step.

OK, I see deleting a note without deleting before all references by other objects is a very bad way. So using the SuperTool here is a bad way.

But is there any hint to set a tag on such double notes using SuperTool? The remove could be done manually by Gramps after filtering for this special tag.

Look there for matching scripts for the SuperTool by @kku:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.