5881: data_item ignored on citation object

svn: r19931
This commit is contained in:
Jérôme Rapinat 2012-06-28 14:09:13 +00:00
parent ad66d4ba4c
commit b913cde440

View File

@ -1012,7 +1012,10 @@ class GrampsParser(UpdateCallback):
self.ord.set_temple(attrs['val']) self.ord.set_temple(attrs['val'])
def start_data_item(self, attrs): def start_data_item(self, attrs):
if self.source:
self.source.set_data_item(attrs['key'], attrs['value']) self.source.set_data_item(attrs['key'], attrs['value'])
else:
self.citation.set_data_item(attrs['key'], attrs['value'])
def start_status(self, attrs): def start_status(self, attrs):
try: try: