While working with
Peter_S on some use cases to synchronize GEDCOM data between webtrees and
GEDBAS
, we identifyed the need for a GEDCOM filter for automatic conversion of GEDCOM data during the webtrees export. Specificly, a filter was needed to reduce the webtrees data to BMD (Birth, Marriage, Death) and also insert links to the original data source in the webtrees installation.
In this context,
Peter_S proposed a configurable export transformation, which is simular to some approaches, which he is already using in his own programs. After some feasibility tests, the concept turned out to be very promising.
Based on these first thoughts, I implemented the following approach as extension to the existing DownloadGedcomWithURL module:
- Select/Unselect GEDCOM structures based on the webtrees tag combination syntax (
app/Gedcom.php
).
- Use regular expression search/replace patterns, like used in webtrees datafixes (Search and replace / Regular expression).
- Describe GEDCOM filters as a set of filter rules consisting of tag combinations and search/replace patterns.
- Provide the possiblilty to include a PHP function for advanced data conversion needs.
- Execute GEDCOM filters before/during export, import etc..
- Provide a remote API to trigger exports with GEDCOM filter execution.
The
Extended Import/Export custom module
is released as version
4.0.0
of the former DownloadGedcomWithURL module. Settings of the former module are migrated to the new module version during first boot.
Further documentation can be found in the
Readme on Github
.