0002918: Add Gedcom EVENT_TYPE_CITED_FROM and ROLE_IN_EVENT in relation with Source Citation Fields. These are added as data elements with keys EVEN and EVEN:ROLE respectively.

svn: r18780
This commit is contained in:
Tim G L Lyons
2012-01-27 20:59:35 +00:00
parent d2297a5a09
commit 26733443fb
3 changed files with 43 additions and 2 deletions

View File

@ -1341,6 +1341,13 @@ class GedcomWriter(UpdateCallback):
if n and n.get_type() != gen.lib.NoteType.SOURCE_TEXT]
self.__note_references(note_list, level+1)
self.__photos(citation.get_media_list(), level+1)
if "EVEN" in citation.get_data_map().keys():
self.__writeln(level+1, "EVEN", citation.get_data_map()["EVEN"])
if "EVEN:ROLE" in citation.get_data_map().keys():
self.__writeln(level+2, "ROLE",
citation.get_data_map()["EVEN:ROLE"])
def __photo(self, photo, level):
"""