Get parents from FAMS in case they're not married#63
Conversation
|
Thanks for the PR. I still need to read the code. Nonetheless, here are my first thoughts. I have always assumed that both FAMS and HUSB/WIFE links are required (also FAMC and CHIL respectively) and if WIFE and HUSB tags are missing, it's a bug in the software that produced the file. Now, looking through the Internet, I see that this may not always be true although most software write bidirectional links. Here is an interesting discussion: https://genealogy.stackexchange.com/questions/12437/gedcom-indi-famc-vs-fam-chil The GEDCOM 5.5.5 specification does not mention both links being required. What's interesting, GEDCOM 7 specs say so the opposite is required, i.e. If there is a WIFE link, there has to be a FAMS link but not necessarily the other way around. Now, let me look at the code in the PR :-) |
|
For the record, missing WIFE/HUSB links do not mean that the individuals are not married. To express the type of relationship, one should use the MARR.TYPE field with a value like "not married". See GEDCOM specification (page 59): https://webtrees.net/downloads/gedcom-555.pdf |
|
Hey mate thanks for the answer, I was really happy to find your repo for my family tree.
Yes indeed, I was thinking the other way around, if parents are not married then I believe WIFE/HUSB links will be missing (i think it was the case for me, I'll double check). I must admit I don't exactly know GEDCOM specs for now, I'm mainly reacting to bugs I saw when trying this beauty. Let me know what you think, in the mean time I'll read more about GEDCOM out of curiosity. |
|
I gave a bit of thought to this issue. I'm afraid the change in this form could cause performance problems for large GEDCOM files. Notice that each time Here is what I would do instead. I'm assuming your intention is to fix topola-viewer to work with your GEDCOM files. I would leave the topola library unchanged but fix the input that it receives, as you noticed that it could be done in an earlier stage. In particular, there is a function in topola-viewer named |
Fixes issue #62