X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/128ba2e8b97f2f3abfc40283c182fd08f2f0a818..dd6f13725963dd34f96ebbf7688461ab1ce4466c:/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: