Implement family_view function
amnonj - December 4, 2005 - 21:05
| Project: | Family Tree 2 |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Description
This function will present the data of a family node and its relating information.
I wrote basic function that show individual with his parents and children, each with birth and death place and date.
It works with the simple database at simple.mysql.
This version does not work with nodes, it uses the fid index from facts table.
See demo at:
Import: http://demo.jonasfamily.org/admin/family/import
View: http://demo.jonasfamily.org/family/view

#1
Enclosed is an updated family.module with a hook to display a list of all individuals with links to the individual details page that has already been started. Notice the different method of making the database calls. I don't know which is better, I made my calls the way I did because I thought it might be somewhat faster.
I have tested this code against a Gedcom imported from by phpgedview application.
There are still several things that need to be done, specifcally
1. sorting needs to be added so you can sort on different columns.
2. multiple pages need to be added so long lists can be broken down into smaller ones.
Are we going to make Individuals into nodes?
How are we going to handle security issues? Who has access to view what information.
To view the list of individuals with these changes point to your sites /family/individuals
Any comments on the code are welcome
#2
This has been implemented, but I would like to revive it to discuss adding more features to the View page. I will put my thoughts on this soon.
#3