From 53a026f73c20061e531b6a8d5fbf70c297b1a14a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 3 Apr 2020 12:56:02 +0200 Subject: [PATCH] Add Ebookpoint cover task. --- src/catalogue/fields.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/catalogue/fields.py b/src/catalogue/fields.py index be4ce8a41..7d190df80 100644 --- a/src/catalogue/fields.py +++ b/src/catalogue/fields.py @@ -293,6 +293,15 @@ class BuildSimpleCover(BuildCover): return WLNoBoxCover(wldoc.book_info, height=1000).output_file() +@BuildEbook.register('cover_ebookpoint') +@task(ignore_result=True) +class BuildCoverEbookpoint(BuildCover): + @classmethod + def fransform(cls, wldoc, fieldfile): + from librarian.cover import EbookpointCover + return EbookpointCover(wldoc.book_info).output_file() + + # not used, but needed for migrations class OverwritingFieldFile(FieldFile): """ -- 2.20.1