if self.name:
self.name.print(file)
for o in self.nicknames:
- file.write('2 NICK ' + o.given + ' /' + o .surname + '/\n')
+ file.write('2 NICK ' + o.given + ' ' + o .surname + '\n')
for o in self.birthnames:
o.print(file)
for o in self.aka:
for o in self.sources:
o[0].link(file, 1)
if len(o) > 1:
- file.write('2 PAGE ' + o[1].replace('\n', '\n1 CONT ') + '\n')
+ file.write('2 PAGE ' + o[1].replace('\n', '\n2 CONT ') + '\n')
# GEDCOM family class
for o in self.sources:
o[0].link(file, 1)
if len(o) > 1:
- file.write('2 PAGE ' + o[1].replace('\n', '\n1 CONT ') + '\n')
+ file.write('2 PAGE ' + o[1].replace('\n', '\n2 CONT ') + '\n')
# family tree class
self.indi[self.num].confirmation = self.__get_ordinance()
elif self.tag == 'ENDL':
self.indi[self.num].endowment = self.__get_ordinance()
- elif self.tag == 'SLGS':
+ elif self.tag == 'SLGC':
self.indi[self.num].sealing_child = self.__get_ordinance()
elif self.tag == 'FAMS':
self.indi[self.num].fams_num.add(int(self.data[2:len(self.data) - 1]))
def __get_link_source(self):
num = int(self.data[2:len(self.data) - 1])
- self.sour[num] = Source(num=num)
+ if num not in self.sour:
+ self.sour[num] = Source(num=num)
page = None
while self.__get_line() and self.level > 1:
if self.tag == 'PAGE':
else:
n.num = list_notes[i - 1].num + 1
- # merge notes by fid
+ # merge sources by fid
list_sources = sorted(list_sources, key=lambda x: x.fid)
for i, n in enumerate(list_sources):
if i == 0: