Allow multiple source.URL. 1.7.7
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 30 Dec 2019 23:31:05 +0000 (00:31 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 30 Dec 2019 23:31:05 +0000 (00:31 +0100)
CHANGELOG.md
librarian/dcparser.py
setup.py

index ec4bfee..42371b7 100644 (file)
@@ -2,6 +2,11 @@
 
 This document records all notable changes to Librarian.
 
 
 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
 ## 1.7.6 (2019-10-01)
 
 ### Changed
index 7a2a69e..85f3028 100644 (file)
@@ -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('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'),
         Field(DCNS('identifier.url'), 'url', WLURI, strict=as_wluri_strict),
         Field(DCNS('rights.license'), 'license', required=False),
         Field(DCNS('rights'), 'license_description'),
index 439ce06..1d124f4 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
 
 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',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',