fix bug with transcribers XPath in src/actesdataset.py

develop
jgenero 2 years ago
parent 051ea9a044
commit 444f62256f

@ -86,14 +86,17 @@ class BsXMLDataSet(XMLDataSet):
def find_transcribers(self):
"find transcriber xml bs4 helper"
transcribers = self.soup.find_all('respStmt')
transcribers = self.soup.find_all('teiHeader')
trs = []
for pers in transcribers:
trs_name = pers.find('name')
if trs_name:
trs.append(trs_name.get_text())
for header in transcribers:
respStmt = header.find('fileDesc').find('titleStmt').find('respStmt')
if respStmt:
trs_name = respStmt.find('name')
if trs_name:
trs.append(trs_name.get_text())
return trs
def find_prince_name(self):
"""find prince_name xml bs4 helper

Loading…
Cancel
Save