Data fix for PLAC:_GOV
Opened this issue · 2 comments
I have about 1000 INDI and FAM records with _GOV under PLAC (historical reasons). Now II like to delete those _GOV records because the _GOV information is stored now in _LOC records. So it would be nice to have a data fix, searching for PLAC:_GOV.
There are the following cases for PLAC:_GOV:
- PLAC has PLAC:_GOV, but no PLAC:_LOC: do nothing (maybe show a warning)
- PLAC has both PLAC:_GOV and PLAC:_LOC
- there is no _GOV in the corresponding _LOC record: move _GOV from PLAC to shared _LOC record
- there is a _GOV in the corresponding _LOC record:
- both _GOV are identical: delete redundant _GOV under PLAC
- both _GOV are not identical: do nothing and show an error message
I don't think there is a way to show warnings and errors in the webtrees data fixes framework. At most I would consider adding a data fix "Enhance existing shared places with tree-specific data" that adds missing _GOV to _LOC (via PLAC).
There are some complications, such as potentially conflicting _GOV under different PLAC with the same _LOC. Also the _GOV under PLAC may be more specific than the assigned _LOC (similar to coordinates, but maybe less common in practice).
Overall I'm not sure such a data fix would be actually useful for many users.
Ok, then I will follow another approach: export GEDCOM, use GedTool and some Excel functions in order to identify the different cases. Then depending on the result do some manual change activities or prepare a bulk update.