Verses as div, not p.
[librarian.git] / librarian / dcparser.py
index 7a2a69e..92afc01 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('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'),
@@ -297,7 +297,7 @@ class WorkInfo(six.with_metaclass(DCInfo, object)):
         desc = rdf_tag.find(".//" + RDFNS('Description'))
 
         if desc is None:
-            raise NoDublinCore("No DublinCore section found.")
+            raise NoDublinCore("There must be a '%s' element inside the RDF." % RDFNS('Description'))
 
         lang = None
         p = desc