- Posts: 31
Question FAM:MARC doesn't appear for visitors (wt 2.1.20 PHP 8.3.9)
- brozer
- Topic Author
- Offline
- New Member
Il n’existe cependant pas de règles spécifiques liées à ces personnes ou familles.
2 exemples apparaissent et n'apparaissent pas dans les fichiers.
autre problème, les événements n'apparaissent pas dans leur ordre chronologique.
Merci pour votre aide.
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
You should be aware that with default privacy settings in webtrees a family is considered private as long as one of the members is private.
The reasoning behind this is that a source on the family (eg most recent census record) may contain data that should be protected, eg full names and date of birth. This can be used for identity fraud.
So one missing death event of a child (or just a long living child) can cause that visitors won't see marriages, spouses, etc.
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- brozer
- Topic Author
- Offline
- New Member
- Posts: 31
Et concernant l'ordre chronologique des évènements avez vous une idée du problème ?
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- brozer
- Topic Author
- Offline
- New Member
- Posts: 31
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
Sorry, I cannot explain that.
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- brozer
- Topic Author
- Offline
- New Member
- Posts: 31
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
But it would be much more easyier for us, to have an export, that can be imported/merged into an existing one, or completely used.
So I entered the events and their dates into my test database. See here , what now seems to be correct, after I inserted some more events by help of the normal GUI, whereas I inserted the other events by copy and paste raw gedcom from the original in a nearly arbitrary sort order.
You can see in the screenshot, that the census dates are handled for their own and shown direct after birth.
I think Greg can explain, why that is handled that way.
Please Log in or Create an account to join the conversation.
- brozer
- Topic Author
- Offline
- New Member
- Posts: 31
Regards
Brozer
Please Log in or Create an account to join the conversation.
- MartinM
- Offline
- New Member
I suspect it has something to do with the fact there are date ranges in other events, ie occupation or residence. Using Abt. Also seems to sometimes confuse the software.
Please Log in or Create an account to join the conversation.
- RickM
- Offline
- Junior Member
I think it does relate to how the date is added. Certainly date ranges bet - from to have an impact. Also using just a year.I too have instances where the date order appears random, and certainly not in the correct sequence.
I suspect it has something to do with the fact there are date ranges in other events, ie occupation or residence. Using Abt. Also seems to sometimes confuse the software.
It seems date ranges work on the end date rather than the beginning date. There is also something that alters when using residence and occupation rather than Census and Occupation.. Full dates seem to make an bigger impact (sort better) than ABT or year only dates.. Not sure it is a software issue, but could be.. Hopefully Greg will chime in with his comments..
Rick M
Tauranga
New Zealand - Nu Tirani
alineofmalkins.com/wt-malkins
Webtrees v2.2.1
Hosted by HostAmarada on litespeed Server, PHP v8.3
Please Log in or Create an account to join the conversation.
- drblam
- Offline
- Junior Member
- Posts: 186
@Franz,sorry, i did not see that you gave a part of a gedcom file.
But it would be much more easyier for us, to have an export, that can be imported/merged into an existing one, or completely used.
So I entered the events and their dates into my test database. See here , what now seems to be correct, after I inserted some more events by help of the normal GUI, whereas I inserted the other events by copy and paste raw gedcom from the original in a nearly arbitrary sort order.
You can see in the screenshot, that the census dates are handled for their own and shown direct after birth.
I think Greg can explain, why that is handled that way.
If you look closely at your attachment, every pair of adjacent items is "correctly" sorted.
- Residence (line 4) continues after the censuses in lines 1-3.
- Occupation (line 5) starts after Residence
- Military (line 6) is inside the range for Occupation
- Everything beyond Military is in chronological order
First, it is a "stable" sort that preserves the original order of items that compare equal. That seems important, for there are many situations in GEDCOM when multiple versions of an object are allowed (name, birth date, etc) and the FIRST ONE is preferred.
Second, the method used for date comparison can't handle the variety of date formats allowed in GEDCOM. In particular, all practical sorting algorithms assume that the pairwise comparison operator "<" satisfies the transitive property: "A<B, B<C implies A<C". Otherwise, the sort can't make any forward progress because it must continue to compare everything to everything else at each step.
I honestly don't think that there exists a pairwise comparison operator that satisfies the transitive property and can handle the full generality of GEDCOM dates because the answers "A<B" and "B<C" could be determined by different parts of the date expression than the ones needed to answer "A<C".
Anyway, when I run into such garbled sorting orders, I use the "edit the raw GEDCOM" form to reorder the blocks the way I want them. (Remember that if this is a stable sort, then it will preserve my decisions.) It looks like moving "Residence" and "occupation" below "Marriage" would do the trick.
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
Have a look at
dfrese.de/webtrees/tree/ahnen/individual...avier-Amedee-McMyers
And the comment for1891
Please Log in or Create an account to join the conversation.
- brozer
- Topic Author
- Offline
- New Member
- Posts: 31
Pour une plage de dates, la date de début doit être comparée aux autres.
Pour les dates sans précision jour mois, il faut considérer qu'il s'agit du 1 (1906 = 01/01/1906).
Enfin pour des dates égales, la naissance devrait apparaitre en premier puis le baptême, enfin le décès puis la sépulture.
J'ai ajouté en pièce jointe comment cet individu est traité par heredis qui s'affiche correctement.
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
This big list is split in two lists:
* events with a date (with year after a minimum and before maximum of Julian dates)
* events without a date
First the events with date are sorted on their date. A range takes its start date. Only a year is interpreted as 01 JAN, only a month as day 01. When dates are equal, events are compared by type.
Then events without a date are taken and sorted on their type: first birth & baptism, death and buriel come last.
In short, I fail to see why census is not sorted as expected. Must be something unexpected somewhere.
I'll add links to the actual code tomorrow (when not om my phone) and perhaps create an issue on github.
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
This is a good explanation of the issue.
When we have overlapping dates, we treat them as equal. Events with "equal" dates are sorted by an "event order". i.e. BIRT comes before BAPM, DEAT comes before BURI.
Events with long date ranges cause the issue, as they overlap many other dates, and are thus considered equal with all of them.
It might be worth investigating whether we could have different logic for facts/events. i.e. for events, keep the same logic, but for facts use only the start date.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
Even if a simple year is interpreted as "BET 01 JAN AND 31 DEC", that is not a very long range. It does not explain why these are always put directly after the birth, as confirmed by Franz, and I don't see it happening in the code.
This is where that's happening, right?
github.com/fisharebest/webtrees/blob/fab...tsTabModule.php#L147
github.com/fisharebest/webtrees/blob/fab...3c/app/Fact.php#L707
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
I deleted some events. (Cant remember the last deleted)
Now sorting of cesus is ok.
Please Log in or Create an account to join the conversation.