* src/filters/Complete.py: Add filter matching people with the
complete flag. * src/GenericFilter.py (HasCompleteRecord): Add rule matching people with the complete records. * src/RelLib.py (Source.setAbbrev, Source.getAbbrev): Add functions. * src/WriteXML.py (write_xml_data): Save abbreviation info for sources. * src/GrampsParser.py (GrampsParser.stop_sabbrev): Parse abbreviation. * src/gramps.glade (sourceEditor): Add widgets for Call Number and Abbreviation. * src/EditSource.py: Support Call Number and Abbreviation. * src/plugins/ReadGedcom.py (parse_source): Parse abbreviation. * src/plugins/WriteGedcom.py (write_sources): Export abbreviation. * NEWS: Update. svn: r2463
This commit is contained in:
@ -1832,6 +1832,7 @@ class Source:
|
||||
self.note = Note()
|
||||
self.photoList = []
|
||||
self.id = ""
|
||||
self.abbrev = ""
|
||||
|
||||
def getDisplayInfo(self):
|
||||
return [self.title,self.id,self.author,upper(self.title),
|
||||
@ -1911,6 +1912,14 @@ class Source:
|
||||
of the Source"""
|
||||
return self.callno
|
||||
|
||||
def setAbbrev(self,abbrev):
|
||||
"""sets the title abbreviation of the Source"""
|
||||
self.abbrev = abbrev
|
||||
|
||||
def getAbbrev(self):
|
||||
"""returns the title abbreviation of the Source"""
|
||||
return self.abbrev
|
||||
|
||||
class SourceRef:
|
||||
"""Source reference, containing detailed information about how a
|
||||
referenced source relates to it"""
|
||||
|
Reference in New Issue
Block a user