Menu

#1008 Kinship list/report

open
nobody
5
2008-07-06
2008-07-06
Wes Groleau
No

Another user recently requested on the forum, a kinship list like FTM offers.

1. It would be great if the PDF/HTML Relationship Report had an extra column stating each person's relationship to the starting person.

2. I have attached a kinship.php which is a rather sloppy version of what the guy was looking for, as implementing (1) is beyond me. This script's performance can be seen at http:UniGen.usPGV/kinship?pid1=P677
(or any other PID)

What it lacks:

- help text

- something to replace missing names

- (maybe) First Last is cousin.... should be First Last (1902-1985) or First Last (P2012)

- never finishes--times out. Seems to encounter some kind of loop until killed by the timer.

- used code from relationship.php I eliminated some of the code that made the graphics, but embedded in the graphics code is something I never identified that affects the sentence generator. When I stripped that out, P677's male cousin changed to his aunt, and he suddenly had an army of grandmothers, many of them male. So I started over and left much of it in--I neverr did see anything to explain the difference.

Discussion

  • Wes Groleau

    Wes Groleau - 2008-07-07

    Second version; dead code removed

     
  • Wes Groleau

    Wes Groleau - 2008-07-07

    Logged In: YES
    user_id=1537714
    Originator: YES

    Much improved second version attached.

    Still needs lots of cosmetics: error checking, user help.

    Still sometimes hangs but sometimes completes. Is consistent about which pid1 values will hang and which will complete. But when it hangs, it is not consistent about how far it gets.

    If any develolpers want to finish the job or coach me on it, let me know.
    File Added: kinship.php

     
  • Wes Groleau

    Wes Groleau - 2008-07-08

    Logged In: YES
    user_id=1537714
    Originator: YES

    Tried removing some code that never seemed to get called. This allowed moving code that gets the same answer every time called to run once at the beginning of the loop.

    These changes do not appear to have any effect on the behavior. It still fails to finish on some persons.

    But this is version three. Code is commented, not removed.
    File Added: kinship.php

     
  • Wes Groleau

    Wes Groleau - 2008-07-08

    Logged In: YES
    user_id=1537714
    Originator: YES

    File Added: kinship.php

     
  • Wes Groleau

    Wes Groleau - 2008-07-08

    Version 3+ (oops) no real change

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.