fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for empty dc tags
[librarian.git]
/
librarian
/
text.py
diff --git
a/librarian/text.py
b/librarian/text.py
index
64c956e
..
f5aafc1
100644
(file)
--- a/
librarian/text.py
+++ b/
librarian/text.py
@@
-25,9
+25,7
@@
Utwór opracowany został w ramach projektu Wolne Lektury przez fundację Nowocz
%(license_description)s.%(source)s
%(license_description)s.%(source)s
-%(description)s
-
-Opracowanie redakcyjne i przypisy: %(contributors)s
+%(description)s%(contributors)s
"""
def transform(input_file, output_file, parse_dublincore=True, **options):
"""
def transform(input_file, output_file, parse_dublincore=True, **options):
@@
-57,7
+55,10
@@
def transform(input_file, output_file, parse_dublincore=True, **options):
else:
source = ''
else:
source = ''
- contributors = ', '.join(person.readable() for person in (parsed_dc.technical_editors + parsed_dc.editors))
+ contributors = ', '.join(person.readable() for person in
+ sorted(set(p for p in (parsed_dc.technical_editors + parsed_dc.editors) if p)))
+ if contributors:
+ contributors = "\n\nOpracowanie redakcyjne i przypisy: %s" % contributors
else:
description = 'Publikacja zrealizowana w ramach projektu Wolne Lektury (http://wolnelektury.pl).'
url = '*' * 10
else:
description = 'Publikacja zrealizowana w ramach projektu Wolne Lektury (http://wolnelektury.pl).'
url = '*' * 10