From 93d25ebdd6f8d3b7755f09ca868f70943e98dd1c Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 16 May 2023 15:42:00 +0200 Subject: [PATCH] Thema --- setup.py | 2 +- src/librarian/dcparser.py | 2 +- src/librarian/meta/types/text.py | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 44ab5ee..4c3412a 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): 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', diff --git a/src/librarian/dcparser.py b/src/librarian/dcparser.py index 075c7c7..b89abd1 100644 --- a/src/librarian/dcparser.py +++ b/src/librarian/dcparser.py @@ -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(WLNS('category.thema'), 'thema', text.ThemaCategory, required=False, multiple=True), Field(DCNS('subject.location'), 'location', required=False), Field(DCNS('contributor.translator'), 'translators', diff --git a/src/librarian/meta/types/text.py b/src/librarian/meta/types/text.py index 5241398..768004a 100644 --- a/src/librarian/meta/types/text.py +++ b/src/librarian/meta/types/text.py @@ -18,7 +18,11 @@ class NameIdentifier(TextValue): class LegimiCategory(NameIdentifier): pass - + +class ThemaCategory(NameIdentifier): + pass + + class Epoch(NameIdentifier): pass -- 2.20.1