diff --git a/ChangeLog b/ChangeLog index 0eb050932..15c8bdbcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-03 Gary Burton + * src/plugins/DetDescendantReport.py + * src/plugins/DetAncestralReport.py + Added functionality to print event and event reference notes. issue #1335 + 2007-11-02 Stéphane Charette * src/plugins/NarrativeWeb.py: issue #1340, do not display mime-types in NarrativeWeb for image/* diff --git a/src/plugins/DetAncestralReport.py b/src/plugins/DetAncestralReport.py index 234216821..49acefbb0 100644 --- a/src/plugins/DetAncestralReport.py +++ b/src/plugins/DetAncestralReport.py @@ -369,6 +369,20 @@ class DetAncestorReport(Report): self.doc.write_text(event.get_description()) self.doc.write_text(".") self.doc.end_paragraph() + + if self.includeNotes: + # if the event or event reference has a note attached to it, + # get the text and format it correctly + note = event.get_note() + if note != "": + self.doc.start_paragraph('DAR-MoreDetails') + self.doc.write_text(note) + self.doc.end_paragraph() + note = event_ref.get_note() + if note != "": + self.doc.start_paragraph('DAR-MoreDetails') + self.doc.write_text(note) + self.doc.end_paragraph() def write_parents(self, person, firstName): family_handle = person.get_main_parents_family_handle() diff --git a/src/plugins/DetDescendantReport.py b/src/plugins/DetDescendantReport.py index d1c020fa0..b79b14ab1 100644 --- a/src/plugins/DetDescendantReport.py +++ b/src/plugins/DetDescendantReport.py @@ -398,6 +398,20 @@ class DetDescendantReport(Report): self.doc.write_text(".") self.doc.end_paragraph() + if self.includeNotes: + # if the event or event reference has a note attached to it, + # get the text and format it correctly + note = event.get_note() + if note != "": + self.doc.start_paragraph('DDR-MoreDetails') + self.doc.write_text(note) + self.doc.end_paragraph() + note = event_ref.get_note() + if note != "": + self.doc.start_paragraph('DDR-MoreDetails') + self.doc.write_text(note) + self.doc.end_paragraph() + def write_parents(self, person, firstName): family_handle = person.get_main_parents_family_handle() if family_handle: