From 91c9f19d364833cb4fc15aef518158bb4ef47136 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 31 Dec 2019 00:31:05 +0100 Subject: [PATCH] Allow multiple source.URL. --- CHANGELOG.md | 5 +++++ librarian/dcparser.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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', -- 2.20.1