0005735: Custom Source filter missing. Citation filter was not using 'page' and source filter was not using 'Abbreviation'.

svn: r19979
This commit is contained in:
Tim G L Lyons 2012-07-10 19:33:41 +00:00
parent f4b18f07ae
commit e8a8c866f2
2 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,7 @@ class HasSource(HasSourceBase):
labels = [ _('Title:'), labels = [ _('Title:'),
_('Author:'), _('Author:'),
_('Abbreviation:'),
_('Publication:') ] _('Publication:') ]
name = _('Sources matching parameters') name = _('Sources matching parameters')
description = _("Matches citations with a source of a particular " description = _("Matches citations with a source of a particular "

View File

@ -929,7 +929,7 @@ class ShowResults(ManagedWindow.ManagedWindow):
gid = source.get_gramps_id() gid = source.get_gramps_id()
elif self.namespace == 'Citation': elif self.namespace == 'Citation':
citation = self.db.get_citation_from_handle(handle) citation = self.db.get_citation_from_handle(handle)
name = citation.get_title() name = citation.get_page()
gid = citation.get_gramps_id() gid = citation.get_gramps_id()
elif self.namespace == 'Place': elif self.namespace == 'Place':
place = self.db.get_place_from_handle(handle) place = self.db.get_place_from_handle(handle)
@ -963,7 +963,7 @@ class ShowResults(ManagedWindow.ManagedWindow):
elif self.namespace == 'Source': elif self.namespace == 'Source':
sortname = self.db.get_source_from_handle(handle).get_title() sortname = self.db.get_source_from_handle(handle).get_title()
elif self.namespace == 'Citation': elif self.namespace == 'Citation':
sortname = self.db.get_citation_from_handle(handle).get_title() sortname = self.db.get_citation_from_handle(handle).get_page()
elif self.namespace == 'Place': elif self.namespace == 'Place':
sortname = self.db.get_place_from_handle(handle).get_title() sortname = self.db.get_place_from_handle(handle).get_title()
elif self.namespace == 'MediaObject': elif self.namespace == 'MediaObject':