2.4.1 2.4.1
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 12 May 2022 09:41:00 +0000 (11:41 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 12 May 2022 09:46:21 +0000 (11:46 +0200)
CHANGELOG.md
setup.py
src/librarian/dcparser.py
src/librarian/parser.py

index 13da76c..9dbf4af 100644 (file)
@@ -2,6 +2,17 @@
 
 This document records all notable changes to Librarian.
 
+
+## 2.4.1 (22-05-12)
+
+### Added
+- `category.legimi` metadata field
+
+### Changed
+- Fix PDF support for 'Geometric shapes' characters.
+- Explicitly ignore unknown elements in v2 elements API.
+
+
 ## 2.4 (2022-05-06)
 
 ### Added
index 7bb2477..637f20d 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
-    version='2.4',
+    version='2.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',
index 1976850..549142b 100644 (file)
@@ -509,6 +509,7 @@ class BookInfo(WorkInfo):
               required=False),
         Field(DCNS('subject.genre'), 'genres', salias='genre', multiple=True,
               required=False),
+        Field(WLNS('category.legimi'), 'legimi', required=False),
 
         Field(DCNS('subject.location'), 'location', required=False),
 
index c00785a..5e2fb08 100644 (file)
@@ -30,7 +30,10 @@ class WLElementLookup(etree.CustomElementClassLookup):
             return
         if namespace:
             return
-        return WL_ELEMENTS[name]
+        try:
+            return WL_ELEMENTS[name]
+        except KeyError:
+            return
 
 
 parser = etree.XMLParser()