* 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:
Alex Roitman
2003-12-08 02:23:53 +00:00
parent 325efe438e
commit 5907d97571
11 changed files with 236 additions and 36 deletions

View File

@ -67,6 +67,8 @@ class EditSource:
self.gallery = ImageSelect.Gallery(source, self.path, plwidget, db, self, self.top)
self.author = self.top_window.get_widget("author")
self.pubinfo = self.top_window.get_widget("pubinfo")
self.callno = self.top_window.get_widget("callno")
self.abbrev = self.top_window.get_widget("abbrev")
self.note = self.top_window.get_widget("source_note")
self.notes_buffer = self.note.get_buffer()
self.gallery_label = self.top_window.get_widget("gallerySourceEditor")
@ -79,6 +81,8 @@ class EditSource:
self.title.set_text(source.getTitle())
self.author.set_text(source.getAuthor())
self.pubinfo.set_text(source.getPubInfo())
self.callno.set_text(source.getCallNumber())
self.abbrev.set_text(source.getAbbrev())
if source.getNote():
self.notes_buffer.set_text(source.getNote())
@ -225,6 +229,8 @@ class EditSource:
title = self.title.get_text()
author = self.author.get_text()
pubinfo = self.pubinfo.get_text()
callno = self.callno.get_text()
abbrev = self.abbrev.get_text()
note = self.notes_buffer.get_text(self.notes_buffer.get_start_iter(),
self.notes_buffer.get_end_iter(),gtk.FALSE)
@ -240,6 +246,14 @@ class EditSource:
self.source.setPubInfo(pubinfo)
Utils.modified()
if callno != self.source.getCallNumber():
self.source.setCallNumber(callno)
Utils.modified()
if abbrev != self.source.getAbbrev():
self.source.setAbbrev(abbrev)
Utils.modified()
if note != self.source.getNote():
self.source.setNote(note)
Utils.modified()