Skip to content

Commit 6a96c39

Browse files
fix(models): ix: ensure abstract language is correctly identified from XML node (#1076)
1 parent 01cbc8a commit 6a96c39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packtools/sps/models/v2/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def get_abstracts(self, abstract_type=None):
239239
for node in self.xmltree.xpath(xpath):
240240
abstract = Abstract(
241241
node,
242-
self.lang,
242+
node.get("{http://www.w3.org/XML/1998/namespace}lang") or self.lang,
243243
tags_to_keep=self.tags_to_keep,
244244
tags_to_keep_with_content=self.tags_to_keep_with_content,
245245
tags_to_remove_with_content=self.tags_to_remove_with_content,

0 commit comments

Comments
 (0)