Yesterday night, I discovered that, earlier this year, I messed up a few dozen sources by using the Automerge feature that comes with the Isotammi tools. This feature works great for locations, when you merge those on title, but it can merge sources by title too, and that’s quite destructive, when you have sources that are all titled ‘email’, but which are all by different authors. In that case, I definitely don’t want to have those merged, but the Automerge did that, because it merges on title, so it does what it says, and not what I want.
As a consequence, I need to restore these sources from a tree that I backed up in January, and I see no clear way to do that, using regular means. If I’m lucky, the connected citations are still intact, so the obvious solution would be to export all citations connected to sources titled ‘email’ to a .gramps file, and merge them back into my latest tree, assuming that their handles, and possibly theit ID’s, haven’t changed, so that it’s easy to restore all relations.
To my regret, I can’t find a filter for this. I can select the proper citations in source or citation view, but all export facilities work on a person filter, so the regular export does not help.
I bet that I can solve this by exporting both trees to normalized SQLite, and writing some advanced queries, but I’ve never tried that, and fear that it will be more complex than the alternative, which is manually restoring the sources from a source and citations report.
Is there anyone with experience in this? My latest experience with Oracle is from 2010, so that’s a bit old, and I have no idea whether I can do this with an advanced query using the supertool.
Hacking and merging Gramps XML may be easier, in this case.