Thanks for the file!
I didn't test your file yet, but I did look into the changed code. Just a few remarks at this moment:
You disabled the texts: "The gedcom export is not completely ready yet!".
I made that text because the gedcom export isn't finished. There are a lot of items that needs to be exported...
If anyone uses this file, they will see this submitter in the gedcom file: $buffer.="1 SUBM Jac Messerschmidt\n";
It's in my wishlist to add more personal data in a gedcom export, we probably need some general settings to save these personal data to make this work properly.
You do checks for @N, but there are programs that uses other characters for text (there is a program that uses @NM for text by marriage, and other characters like that).
I do know the "referenced" text are missing in the gedcom export. There is a reason for this: if someone uses the HuMo-gen editor, a referenced text is saved as non-referenced text (and the old referenced text is not removed yet...). The editor is a relative new item in HuMo-gen, and I still don't know for sure how to store texts in a proper way.
Personally I don't like referenced texts... I don't think it's usefull to use referenced texts. I do think it's usefull to use referenced sources (I use them a lot!), but for texts??
It's not possible to add changes that require a gedcom reading. Because I (and one or two other HuMo-gen users) never use gedcom import, I use HuMo-gen as my main genealogical program.For this to work smoothly, a modification should also be made to table texts in gedcom-tables.php to introduce a new key, KEY text_gedcomnr. KEY text_id should be replaced by PRIMARY KEY text_id. This modification requires that the gedcom input file should be read again.
Most database modifications can be done if the gedcom data is allready in it...
I will do some tests, and look at the database update!
[UPDATE] I started to update the gedcom export, using your code.
- I decided to remove the text "The gedcom export is not completely ready yet!"
- I found a bug in export of latitude and longitude. That's solved.
- The HuMo-gen version is now automatically updated
Code: Select all
$buffer.="2 VERS ".$humo_option["version"]."\n";
Code: Select all
0 @N82@ NOTE text etc.
Code: Select all
0 @N82@ NOTE
1 CONC text etc.
Code: Select all
natsort($noteids);
- I changed the export code, it's not necessary to change the database now.
- The name of the family tree owner is now exported as submitter!
Still busy testing and changing code...