Thema 2.4.13
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 16 May 2023 13:42:00 +0000 (15:42 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 16 May 2023 13:44:16 +0000 (15:44 +0200)
setup.py
src/librarian/dcparser.py
src/librarian/meta/types/text.py

index 44ab5ee..4c3412a 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
 
 setup(
     name='librarian',
-    version='2.4.12',
+    version='2.4.13',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',
index 075c7c7..b89abd1 100644 (file)
@@ -363,7 +363,7 @@ class BookInfo(WorkInfo):
         Field(DCNS('subject.genre'), 'genres', text.Genre, salias='genre', multiple=True,
               required=False),
         Field(WLNS('category.legimi'), 'legimi', text.LegimiCategory, required=False),
         Field(DCNS('subject.genre'), 'genres', text.Genre, salias='genre', multiple=True,
               required=False),
         Field(WLNS('category.legimi'), 'legimi', text.LegimiCategory, required=False),
-
+        Field(WLNS('category.thema'), 'thema', text.ThemaCategory, required=False, multiple=True),
         Field(DCNS('subject.location'), 'location', required=False),
 
         Field(DCNS('contributor.translator'), 'translators',
         Field(DCNS('subject.location'), 'location', required=False),
 
         Field(DCNS('contributor.translator'), 'translators',
index 5241398..768004a 100644 (file)
@@ -18,7 +18,11 @@ class NameIdentifier(TextValue):
 class LegimiCategory(NameIdentifier):
     pass
 
 class LegimiCategory(NameIdentifier):
     pass
 
-    
+
+class ThemaCategory(NameIdentifier):
+    pass
+
+
 class Epoch(NameIdentifier):
     pass
 
 class Epoch(NameIdentifier):
     pass