From 6641219fd962fc1791fa8d94dec26db4c3546931 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 27 Jan 2021 10:16:04 +0100 Subject: [PATCH] Content warnings. --- CHANGELOG.md | 6 ++++++ setup.py | 2 +- src/librarian/dcparser.py | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43dddfc..98b62e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ This document records all notable changes to Librarian. +## 1.12 (2021-01-27) + +### Added +- Content warnings. + + ## 1.11.3 (2021-01-25) ### Fixed diff --git a/setup.py b/setup.py index d577dbd..055ec93 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='1.11.3', + version='1.12', 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 2072695..16c2397 100644 --- a/src/librarian/dcparser.py +++ b/src/librarian/dcparser.py @@ -292,6 +292,8 @@ class WorkInfo(six.with_metaclass(DCInfo, object)): Field(PLMETNS('digitisationSponsor'), 'sponsors', multiple=True, required=False), Field(WLNS('digitisationSponsorNote'), 'sponsor_note', required=False), + Field(WLNS('contentWarning'), 'content_warnings', multiple=True, + required=False), Field(WLNS('developmentStage'), 'stage', required=False), ) -- 2.20.1