Add Gedcom import function
amnonj - November 27, 2005 - 23:47
| Project: | Family Tree |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | amnonj |
| Status: | closed |
Description
Import standard Gedcom files into our database (assigned to myself).
I planned to make it later, but now I think it will be useful if we can import some database to work on, already in the development phase. Also, since Sam works on some hook functions and other things wait for the database structure, this is something that I can already proceed with.
Please open similar issues on tasks you want to take care of, to avoid duplicates.

#1
I implemented a basic import function. It uses the simple database format from simple.mysql. Further processing will be needed to translate to other formats. I still didn't install the drupal HEAD version, so meanwhile I have tested it on 4.6. For HEAD, there are two lines that should be removed, lines 18 and 87 (see comments).
The required files to test it are:
simple.mysql - should be used to define the database tables
family.module - core module definitions. Use v. 1.4+.
import.inc - the import functions.
To import a GEDCOM file, goto path /admin/family/import.
It shows a log of all the generated records. It is useful for debugging and understanding the operation but it will removed later. It also delete the tables before each import and that should also be changed.
Here you can experience a demo of it.
You should log to the site to have a permission to run the demo.
You can use the attached gedcom file for testing. It is a simple file with 4 people - father, mother and 2 children. Each one has a birth date and place and the parents have also a marriage date and place.
#2
This has long since been implemented.
#3
Automatically closed -- issue fixed for two weeks with no activity.