Menu

#1091 4.1.6 Decendancy Chart - Marriage information

phpGedView
open
nobody
None
5
2009-01-13
2009-01-13
No

In the decendancy chart it is either stated "Marriage Yes" or "Confidential" in the line between husband and wife. It would be nice to have a more differentiated information in that line depending on the TAG used in the family record. I have resolved that in the class_family.php file in the following way:

/**
* parse marriage record
*/
function _parseMarriageRecord() {
$factrecR = get_sub_record(1, "1 MARR_RELIGIOUS", $this->gedrec);
$factrecC = get_sub_record(1, "1 MARR_CIVIL", $this->gedrec);
$factrecN = get_sub_record(1, "1 _NMR", $this->gedrec);

if (showFact("MARR_RELIGIOUS", $famid) and (!empty($factrecR))) {
$this->marriage = new Event(trim(get_sub_record(1, "1 MARR_RELIGIOUS", $this->gedrec)), -1);
} elseif (showFact("_NMR", $famid) and (!empty($factrecN))){
$this->marriage = new Event(trim(get_sub_record(1, "1 _NMR", $this->gedrec)), -1);
} elseif (showFact("MARR_CIVIL", $famid) and (!empty($factrecC))){
$this->marriage = new Event(trim(get_sub_record(1, "1 MARR_CIVIL", $this->gedrec)), -1);
} else {
$this->marriage = new Event(trim(get_sub_record(1, "1 MARR", $this->gedrec)), -1);
}

Discussion


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.