From a04f11baee3eb7d090867c2d5639a120ec3217b8 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 22 Oct 2014 10:51:59 +0200 Subject: [PATCH 1/1] Data for #3396: picture style, full creation date. --- librarian/dcparser.py | 2 +- librarian/picture.py | 1 + tests/test_html_annotations.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/librarian/dcparser.py b/librarian/dcparser.py index a33940d..f413fac 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -230,7 +230,7 @@ class WorkInfo(object): salias='funder', multiple=True, default=[]), Field( DCNS('contributor.thanks'), 'thanks', required=False), - Field( DCNS('date'), 'created_at', as_date), + Field( DCNS('date'), 'created_at'), Field( DCNS('date.pd'), 'released_to_public_domain_at', as_date, required=False), Field( DCNS('publisher'), 'publisher'), diff --git a/librarian/picture.py b/librarian/picture.py index 5d644d7..5a0c47b 100644 --- a/librarian/picture.py +++ b/librarian/picture.py @@ -32,6 +32,7 @@ class PictureInfo(WorkInfo): Field(DCNS('subject.period'), 'epochs', salias='epoch', multiple=True), Field(DCNS('subject.type'), 'kinds', salias='kind', multiple=True), Field(DCNS('subject.genre'), 'genres', salias='genre', multiple=True, required=False), + Field(DCNS('subject.style'), 'styles', salias='style', multiple=True, required=False), Field(DCNS('format.dimensions'), 'dimensions', required=False), Field(DCNS('format.checksum.sha1'), 'sha1', required=True), diff --git a/tests/test_html_annotations.py b/tests/test_html_annotations.py index f2b9eee..f269042 100644 --- a/tests/test_html_annotations.py +++ b/tests/test_html_annotations.py @@ -80,8 +80,8 @@ def test_annotations(): ('Definiendum (łac.) --- definiens.', ( 'pe', - 'łac.', - 'Definiendum (łac.) \u2014 definiens.', + 'łac.', + 'Definiendum (łac.) \u2014 definiens.', '

Definiendum (łac.) \u2014 definiens.

' ), 'Standard footnote with qualifier and some emphasis.'), -- 2.20.1