Skip to content

Commit

Permalink
Added baptimal dates to ICS file - #96
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 19, 2019
1 parent 4d2ee50 commit e031f03
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,17 @@ sub generate {
summary => 'birth of ' . $person->as_string()
);
}
my $dateofbaptism = get_value({ person => $person, value => 'baptism date' });
if((!$dateofbaptism) && (my $baptism = $person->get_record('baptism'))) {
$dateofbaptism = $baptism->date();
}
if($dateofbaptism && ($dateofbaptism =~ /^\d+\s\w{3}\s\d{3,4}$/)) {
add_to_ical(
ical => $ical,
datetime => date_to_datetime(date => $dateofbaptism),
summary => 'baptism of ' . $person->as_string()
);
}
if(my $marriage = $person->get_record('marriage') || $person->get_record('fams marriage')) {
if(my $dateofmarriage = $marriage->date()) {
if($dateofmarriage && ($dateofmarriage =~ /^\d+\s\w{3}\s\d{3,4}$/)) {
Expand Down Expand Up @@ -3853,6 +3864,10 @@ sub print_person
(($ss->sex() eq 'F') ? 'sister-in-law, ' : 'brother-in-law, ') .
$ss->as_string();
$first = 0;
} elsif($language eq 'French') {
$residencestring .= ' et ' .
(($ss->sex() eq 'F') ? 'belle-sœer, ' : 'beau-frère, ') .
$ss->as_string();
} else {
# FIXME: If possible, should say
# sisters-in-law or
Expand Down

0 comments on commit e031f03

Please sign in to comment.