From: Marcin Koziej
Date: Wed, 7 Aug 2013 10:03:14 +0000 (+0200)
Subject: Merge changes from master to Aigrain publishing code - that will be used for new...
X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/f318053fb3349c5364cfb866b2a3d33c2423e12a?hp=b56beb67ff25d7a6ae42c841b9f10e681a748e22
Merge changes from master to Aigrain publishing code - that will be used for new publishing code for few publications Summer/Autumn 2013
---
diff --git a/librarian/cover.py b/librarian/cover.py
index 8b770ca..dfd451b 100644
--- a/librarian/cover.py
+++ b/librarian/cover.py
@@ -258,7 +258,6 @@ class WLCover(Cover):
super(WLCover, self).__init__(book_info, format=format, width=width, height=height)
self.kind = book_info.kind
self.epoch = book_info.epoch
- self.with_logo = with_logo
if book_info.cover_url:
url = book_info.cover_url
bg_src = None
diff --git a/librarian/dcparser.py b/librarian/dcparser.py
index eddd8e5..3e6ac1b 100644
--- a/librarian/dcparser.py
+++ b/librarian/dcparser.py
@@ -163,7 +163,7 @@ class WorkInfo(object):
__metaclass__ = DCInfo
FIELDS = (
- Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True),
+ Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True, required=False),
Field( DCNS('title'), 'title'),
Field( DCNS('type'), 'type', required=False, multiple=True),
@@ -181,7 +181,7 @@ class WorkInfo(object):
Field( DCNS('source'), 'source_name', required=False),
Field( DCNS('source.URL'), 'source_url', required=False),
- Field( DCNS('identifier.url'), 'url', WLURI, strict=as_wluri_strict),
+ Field( DCNS('identifier.url'), 'url', WLURI, strict=as_wluri_strict, required=False),
Field( DCNS('rights.license'), 'license', required=False),
Field( DCNS('rights'), 'license_description'),
)
diff --git a/librarian/epub.py b/librarian/epub.py
index eab2b18..223bde9 100644
--- a/librarian/epub.py
+++ b/librarian/epub.py
@@ -446,10 +446,10 @@ def transform(wldoc, verbose=False,
cover = WLCover
cover_file = StringIO()
- bound_cover = cover(document.book_info)
- bound_cover.save(cover_file)
- cover_name = 'cover.%s' % bound_cover.ext()
- zip.writestr(os.path.join('OPS', cover_name), cover_file.getvalue())
+ c = cover(document.book_info)
+ c.save(cover_file)
+ c_name = 'cover.%s' % c.ext()
+ zip.writestr(os.path.join('OPS', c_name), cover_file.getvalue())
del cover_file
cover_tree = etree.parse(get_resource('epub/cover.html'))
diff --git a/librarian/epub/cover.html b/librarian/epub/cover.html
index 784067c..3233201 100644
--- a/librarian/epub/cover.html
+++ b/librarian/epub/cover.html
@@ -2,12 +2,12 @@
- OkÅadka
+ Cover
-
+
\ No newline at end of file
diff --git a/librarian/epub/toc.html b/librarian/epub/toc.html
index 69d8724..1c2887d 100755
--- a/librarian/epub/toc.html
+++ b/librarian/epub/toc.html
@@ -2,10 +2,10 @@
- WolneLektury.pl
+ Future of Copyright
-
It is our great pleasure to present you the âFuture of Copyright
+Anthologyâ, a collection of 10 best short stories sent in for the âFuture
+of Copyrightâ contest organized by Modern Poland Foundation. These works
+have been selected by our jury â Prof. Michael Geist, Piotr Czerski and
+JarosÅaw Lipszyc.
+
+
The main prize in this contest was founded by you, the readers, on the
+Indiegogo crowdfunding platform. We are proud to announce that this
+prize goes to Aymeric Mansoux, author of âMorphology of a copyright
+taleâ, in appreciation of the originality, power and the strong message
+of this work. Moreover, the jury decided to grant an honorable mention
+to Togi, author of the work âGiveâ.
+
+
We would like to thank you for your crowdfunding support and a high
+standard of the submitted works. We were pleasantly surprised by the
+interest shown in the competition, and we have decided to hold
+its second edition next
+year. We hope that with your help it will be even more successful and
+the collected works will provide a strong voice in the debate on the future
+of copyright law and system.