From: Radek Czajka Date: Mon, 19 Dec 2011 14:57:51 +0000 (+0100) Subject: allow multiple authors X-Git-Tag: 1.7~181^2 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/808e7c2967440cacbc15af82cde171e10aea8a6a allow multiple authors --- diff --git a/librarian/cover.py b/librarian/cover.py index f93e709..63e4aa0 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -118,7 +118,7 @@ class Cover(object): } def __init__(self, book_info): - self.author = book_info.author.readable() + self.author = ", ".join(auth.readable() for auth in book_info.authors) self.title = book_info.title def pretty_author(self): diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 69175e6..4fd0f66 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -144,7 +144,7 @@ class WorkInfo(object): __metaclass__ = DCInfo FIELDS = ( - Field( DCNS('creator'), 'author', as_person), + Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True), Field( DCNS('title'), 'title'), Field( DCNS('type'), 'type', required=False, multiple=True), diff --git a/setup.py b/setup.py index 4d8ec9b..b1ea926 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='1.4', + version='1.4.1', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com',