From: Radek Czajka Date: Mon, 30 Dec 2019 23:31:05 +0000 (+0100) Subject: Allow multiple source.URL. X-Git-Tag: 1.7.7 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/91c9f19d364833cb4fc15aef518158bb4ef47136?ds=sidebyside Allow multiple source.URL. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index ec4bfee..42371b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ This document records all notable changes to Librarian. +## 1.7.7 (2019-12-31) + +### Changed +- Allow multiple source.URL fields. + ## 1.7.6 (2019-10-01) ### Changed diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 7a2a69e..85f3028 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -248,7 +248,7 @@ class WorkInfo(six.with_metaclass(DCInfo, object)): Field(DCNS('description'), 'description', required=False), Field(DCNS('source'), 'source_name', required=False), - Field(DCNS('source.URL'), 'source_url', required=False), + Field(DCNS('source.URL'), 'source_urls', salias='source_url', multiple=True, required=False), Field(DCNS('identifier.url'), 'url', WLURI, strict=as_wluri_strict), Field(DCNS('rights.license'), 'license', required=False), Field(DCNS('rights'), 'license_description'), diff --git a/setup.py b/setup.py index 439ce06..1d124f4 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='1.7.6', + version='1.7.7', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com',