X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/12b5230d8fdb3ad995e867fb5d58a69e8a627e68..882cbae7275aed205648b3f6167255fb24eb8786:/librarian/text.py diff --git a/librarian/text.py b/librarian/text.py index 0eb7b59..0761ab0 100644 --- a/librarian/text.py +++ b/librarian/text.py @@ -24,7 +24,7 @@ Wersja lektury w opracowaniu merytorycznym i krytycznym (przypisy i motywy) dost Utwór opracowany został w ramach projektu Wolne Lektury przez fundację Nowoczesna Polska. -%(license_description)s.%(source)s +%(license_description)s.%(source)s%(publisher)s %(description)s%(contributors)s%(funders)s """ @@ -83,7 +83,8 @@ def transform(wldoc, flags=None, **options): contributors = "\n\nOpracowanie redakcyjne i przypisy: %s." % contributors funders = ', '.join(parsed_dc.funders) if funders: - funders = u"\n\nPublikację ufundowali i ufundowały: %s." % funders + funders = u"\n\nPublikację wsparli i wsparły: %s." % funders + publisher = '\n\nWydawca: ' + ', '.join(parsed_dc.publisher) else: description = 'Publikacja zrealizowana w ramach projektu Wolne Lektury (http://wolnelektury.pl).' url = '*' * 10 @@ -91,6 +92,7 @@ def transform(wldoc, flags=None, **options): source = "" contributors = "" funders = "" + publisher = "" result = (TEMPLATE % { 'description': description, 'url': url, @@ -99,6 +101,7 @@ def transform(wldoc, flags=None, **options): 'source': source, 'contributors': contributors, 'funders': funders, + 'publisher': publisher, }).encode('utf-8') else: result = unicode(result).encode('utf-8')