Skip to content

Commit

Permalink
Better handling of funeral vs. burial information
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 19, 2024
1 parent b48daa2 commit 331176c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -6710,10 +6710,17 @@ sub print_person
$record = $cremation;
}
if(defined($record)) {
if($funeral && $record->date() && (datecmp($funeral->date(), $record->date()) == 0) && (my $place = place({ person => $person, record => $funeral }))) {
# Prefer burial date, but use funeral if that is available instead
if($funeral &&
(!$record->date() || (datecmp($funeral->date(), $record->date()) == 0)) &&
(my $place = place({ person => $person, record => $funeral }))) {
if(my $weather = weather({ person => $person, record => $funeral, meteo => $meteo })) {
$phrase->append(" ($weather)");
}
if($funeral->place() eq $record->place()) {
# Burial and funeral in the same town
$place = i18n(' at ') . $funeral->address() if($funeral->address());
}
$phrase->append(' following ' .
($person->pronoun() eq 'She' ? 'her' : 'his') .
i18n(' funeral') .
Expand Down

0 comments on commit 331176c

Please sign in to comment.