From e8a8c866f2009cb36db2f89a730a2504bde7286c Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 10 Jul 2012 19:33:41 +0000 Subject: [PATCH] 0005735: Custom Source filter missing. Citation filter was not using 'page' and source filter was not using 'Abbreviation'. svn: r19979 --- src/Filters/Rules/Citation/_HasSource.py | 1 + src/gui/filtereditor.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Filters/Rules/Citation/_HasSource.py b/src/Filters/Rules/Citation/_HasSource.py index ca6e68347..83f956ccd 100644 --- a/src/Filters/Rules/Citation/_HasSource.py +++ b/src/Filters/Rules/Citation/_HasSource.py @@ -48,6 +48,7 @@ class HasSource(HasSourceBase): labels = [ _('Title:'), _('Author:'), + _('Abbreviation:'), _('Publication:') ] name = _('Sources matching parameters') description = _("Matches citations with a source of a particular " diff --git a/src/gui/filtereditor.py b/src/gui/filtereditor.py index 31322a22c..ceba26a02 100644 --- a/src/gui/filtereditor.py +++ b/src/gui/filtereditor.py @@ -929,7 +929,7 @@ class ShowResults(ManagedWindow.ManagedWindow): gid = source.get_gramps_id() elif self.namespace == 'Citation': citation = self.db.get_citation_from_handle(handle) - name = citation.get_title() + name = citation.get_page() gid = citation.get_gramps_id() elif self.namespace == 'Place': place = self.db.get_place_from_handle(handle) @@ -963,7 +963,7 @@ class ShowResults(ManagedWindow.ManagedWindow): elif self.namespace == 'Source': sortname = self.db.get_source_from_handle(handle).get_title() 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': sortname = self.db.get_place_from_handle(handle).get_title() elif self.namespace == 'MediaObject':