allow multiple authors
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 19 Dec 2011 14:57:51 +0000 (15:57 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 19 Dec 2011 14:57:51 +0000 (15:57 +0100)
librarian/cover.py
librarian/dcparser.py
setup.py

index f93e709..63e4aa0 100644 (file)
@@ -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):
index 69175e6..4fd0f66 100644 (file)
@@ -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),
 
index 4d8ec9b..b1ea926 100755 (executable)
--- 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',