From f981e2fe9c976709edb03f8617079319be6605e8 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 16 May 2017 12:16:24 +0200 Subject: [PATCH 1/1] ISBN in PDF --- librarian/pdf.py | 2 +- librarian/pdf/wl.cls | 5 +++++ librarian/pdf/wl2tex.xslt | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/librarian/pdf.py b/librarian/pdf.py index 20ab8bb..bbe3a92 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -86,7 +86,7 @@ def substitute_hyphens(doc): insert_tags(doc, re.compile("(?<=[^-\s])-(?=[^-\s])"), "dywiz", - exclude=[DCNS("identifier.url"), DCNS("rights.license")] + exclude=[DCNS("identifier.url"), DCNS("rights.license"), "meta"] ) diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index 82098ec..30dbf63 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -276,6 +276,11 @@ Letters={SmallCaps,UppercaseSmallCaps} \coverby \fi + \ifdefined\isbn + \vspace{.6em} + \isbn + \fi + \vspace{.6em} \emph{Wesprzyj Wolne Lektury!} diff --git a/librarian/pdf/wl2tex.xslt b/librarian/pdf/wl2tex.xslt index 7b38e34..43092e7 100644 --- a/librarian/pdf/wl2tex.xslt +++ b/librarian/pdf/wl2tex.xslt @@ -203,6 +203,10 @@ \vspace{.6em} } \def\description{} + + + \def\isbn{ISBN } + -- 2.20.1