X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/128ba2e8b97f2f3abfc40283c182fd08f2f0a818..a27b79bf60b5b4e551ae39442db65ba2a36389b3:/librarian/text.py diff --git a/librarian/text.py b/librarian/text.py index 39bf324..2577a20 100644 --- a/librarian/text.py +++ b/librarian/text.py @@ -85,9 +85,9 @@ def transform(wldoc, flags=None, **options): if funders: funders = u"\n\nPublikację wsparli i wsparły: %s." % funders publisher = '\n\nWydawca: ' + ', '.join(parsed_dc.publisher) - isbn_element = document.edoc.find("//meta[@id='txt-id']") - if isbn_element is not None: - isbn = isbn_element.text.replace('ISBN-', '\n\nISBN ') + isbn = getattr(parsed_dc, 'isbn_txt', None) + if isbn: + isbn = '\n\n' + isbn else: isbn = '' else: