Adoption
From SharedTree Wiki
the below documentation describes features that have not been built yet
Contents |
Listed as a Child
Adopted children are listed in a family marriage in the order of their birth, just like the other children. However, they are not counted in the children count. Next to their names will be a letter A instead of a number. No other distinction is visible from that view.
Listed as Primary
When showing a person who has both adopted and biological parents, they will both appear in the Family View. The adoptive parents are above the biological parents. The labels for both change to designate which is which.
Add an adopted child
Adding an adopted child is nearly identical to adding a biological child
Removing an adopted child
Removing an adopted child is identical to removing a biological child. Simply navigate to the child's parent records and click Remove Child.
Technical
The following technical changes are required to back-end classes.
- Family::getChildren should have WHERE bio_family_id = '$family_id' OR adopt_family_id = '$family_id' (we could also do a union if the performance is better)
- family.php should get parents based on $adopt_family = new Family($person->data["adopt_family_id"])
- several templates have to change - gen_view, person_edit, family_view, person_view
- check to see if merge needs to change, I think we need to just get the adopted parents just like we get the regular ones.
