From: Radek Czajka Date: Wed, 22 Oct 2014 08:51:59 +0000 (+0200) Subject: Data for #3396: picture style, full creation date. X-Git-Tag: 1.7~91 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/a04f11baee3eb7d090867c2d5639a120ec3217b8?ds=sidebyside Data for #3396: picture style, full creation date. --- 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.'),