From 808e7c2967440cacbc15af82cde171e10aea8a6a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 19 Dec 2011 15:57:51 +0100 Subject: [PATCH 1/1] allow multiple authors --- librarian/cover.py | 2 +- librarian/dcparser.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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', -- 2.20.1