Re: Importing from 'Generations'
Posted: 01 Apr 2022 20:03
I can't wait 
Helping Family Historian users since 2002
https://fhug.org.uk/forum/
Hello Mike
Hi Miketatewise wrote: ↑03 Apr 2022 13:15There are a few more tidying up steps that can be usefully performed:
- Delete any unused records, such as Note records with no Links
- Review Cause of Death facts
- Fixing Dates and Date Phrases
- Check Project Statistics & Exceptions
tatewise wrote: ↑03 Apr 2022 14:53Assuming that fixed all the cases it is designed to fix we are now onto the four tidying up steps.
So the first step is to open the Records Window and in the Notes tab review the Links column.
Are they mostly if not all 0?
Use Edit > Find..., enter Search For: @N and ensure only these three are ticked: Fact Values, Notes, Match case
Does Find Now find anything?
If it does then there are some unresolved links to those Note records.
tatewise wrote: ↑03 Apr 2022 20:48The 0 Links means nothing is linked to them.
Since there are no @N anywhere, we have not overlooked any 'broken' links.
So those 27 Note records can be deleted, unless they contain anything you need to keep.
See FHUG Knowledge Base Delete One or Many Records for how to delete them.
tatewise wrote: ↑04 Apr 2022 10:25Review Cause of Death facts.
Rather than having a separate Fact, conventionally the Cause of Death is recorded in the Death event in its Cause field.
If you only have a handful of Cause of Death facts then each text value can be manually moved to the Death event Cause field and the Cause of Death facts deleted.
If there are too many for that then I will write a Plugin to perform the text move and delete.
tatewise wrote: ↑04 Apr 2022 17:44The remaining two steps are:
FHUG Knowledge Base Fixing Dates and Date Phrases which repairs malformed Date fields in Facts.
Just run the Find Date Phrases plugin, and the Fix Date Fields plugin, then review what is still malformed if anything.
FHUG Knowledge Base Check Project Statistics & Exceptions which looks for inconsistent or incomplete data.
Run both the All Empty Facts Query, and the Show Project Statistics plugin, then review outstanding issues.
Paul Wigan wrote: ↑04 Apr 2022 17:33tatewise wrote: ↑04 Apr 2022 10:25Review Cause of Death facts.
Rather than having a separate Fact, conventionally the Cause of Death is recorded in the Death event in its Cause field.
If you only have a handful of Cause of Death facts then each text value can be manually moved to the Death event Cause field and the Cause of Death facts deleted.
If there are too many for that then I will write a Plugin to perform the text move and delete.
Hello Mike
I have got around two-hundred (200) Cause of Death facts, so a plugin would be very useful if you can produce one without too much trouble please. It would be quite onerous, albeit not impossible, to amend those manually, so a plugin would be a huge bonus.
Can you also please tell me what step three of the four tidying-up steps is please ?
Many thanks.
Paul
tatewise wrote: ↑09 Apr 2022 21:03To be honest, I was expecting feedback & questions for Fixing Dates and Date Phrases and Check Project Statistics & Exceptions, so did not want to muddy the waters with the plugin for Cause of Death.
I have added the Cause of Death conversion to the Generations Fact Fixes plugin Version 0.2 Date 09 Apr 2022 attached.
So it still performs all the corrections it did before and now also corrects the Cause of Death fact.
( The other corrections should do nothing since they have already been fixed. )
It relies on your FH custom attribute being called literally "Cause of death" and that there exists a Death Event for each person to receive the Cause of death reason.
If your custom attribute has a different name, or the Death Event may be missing for some people and you would like the Plugin to create such Death Events, then it will need a change.
tatewise wrote: ↑13 Apr 2022 19:54I'm confused (again)!
Your relevant snippets show:
Original Gedcom :-
1 OCCU 1841 - Coach Maker
1 OCCU 1851 & 1871 - Coachbody Maker
1 OCCU 1861 & 1873 - Coachmaker
1 OCCU 1873 - Wheelwright
Pre-Load Source Clean Gedcom (showing just the OCCU facts derived from above) :-
1 OCCU Coach Maker
2 DATE 1841
1 OCCU Coachbody Maker
2 DATE 1851
1 OCCU Coachmaker
2 DATE 1861
1 OCCU Coachbody Maker
2 DATE 1871
1 OCCU Coachmaker
2 DATE 1873
1 OCCU Wheelwright
2 DATE 1873
Surprisingly, that has perfectly created an Occupation for each Date in the original Gedcom.
(Are you sure you posted the correct Gedcom?)
My experiments suggest that the Generations Pre-Load Source Clean plugin makes no such changes.
I wonder if you've posted the current Project Gedcom after importing, running corrective plugins, and manual edits?
You complained that
Occupation: 1881 & 1891 Coal Miner
would import as only one fact and discard the '& 1891' data:-
Occupation: 1891 Coal Miner
Notice that your 'problem' description 'Occupation : 1881 & 1891 Coal Miner' has no hyphen (-) between years and occupation, whereas the original Gedcom snippet does have hyphens!
So your description of the problem does not agree with your posted snippets. Do you see my dilemma?
After some more experiments, this is what I found.
The original post-Generations Pre-Load Source Clean plugin Gedcom imports into FH Project as:-
1 OCCU 1841 - Coach Maker
1 OCCU 1851 & 1871 - Coachbody Maker
1 OCCU 1861 & 1873 - Coachmaker
1 OCCU 1873 - Wheelwright
After running the Generations Fact Fixes plugin those become:
1 OCCU Coach Maker
2 DATE 1841
1 OCCU Coachbody Maker
2 DATE 1871
1 OCCU Coachmaker
2 DATE 1873
1 OCCU Wheelwright
2 DATE 1873
i.e. the years 1851 and 1861 have been omitted by my plugin because it does not expect two years before the hyphen.
You never mentioned that was a possibility, so I will need to amend the plugin to cope with that format.
Most of your earlier examples have no hyphen (-) at all, so will be completely unaffected by the import & plugins.
Occupation : 1881 and 1891 Coal Miner
Occupation : 1881 to 1891 Coal Miner
Occupation : 1881 & 1891 Coal Miner
So I can find no consistency between your stated '&' problem, the posted Gedcom snippets, and my experiments.