diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 668f1f264..0a5da440c 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2005-08-19 Don Allingham + * src/NameDisplay.py: handle patronymic names in given name + * src/plugins/NavWebPage.py: handle patronymic names in given name * src/GenericFilter.py: fix unicode problem with menu store 2005-08-18 Don Allingham diff --git a/gramps2/src/NameDisplay.py b/gramps2/src/NameDisplay.py index 92aec0b4a..5cbf56ae2 100644 --- a/gramps2/src/NameDisplay.py +++ b/gramps2/src/NameDisplay.py @@ -112,6 +112,13 @@ class NameDisplay: else: return self._lnfn(name) + def display_given(self,person): + name = person.get_primary_name() + if name.patronymic: + return "%s %s" % (name.first_name, name.patronymic) + else: + return name.first_name + def display(self,person): """ Returns a text string representing the L{RelLib.Person} instance's diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 2277ec246..0ff860b43 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -528,8 +528,7 @@ class IndividualListPage(BasePage): of.write('') path = self.build_path(person.handle,"ppl",False) self.person_link(of, self.build_name(path,person.handle), - person.get_primary_name().get_first_name(), - person.gramps_id,False) + _nd.display_given(person), person.gramps_id,False) of.write('') birth_handle = person.get_birth_handle() if birth_handle: