fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
subscripts in WL XML
[librarian.git]
/
librarian
/
text.py
diff --git
a/librarian/text.py
b/librarian/text.py
index
39bf324
..
2577a20
100644
(file)
--- 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)
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:
else:
isbn = ''
else: