fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fixes.
[librarian.git]
/
librarian
/
dcparser.py
diff --git
a/librarian/dcparser.py
b/librarian/dcparser.py
index
ab1e714
..
f413fac
100644
(file)
--- a/
librarian/dcparser.py
+++ b/
librarian/dcparser.py
@@
-10,7
+10,7
@@
import re
from librarian.util import roman_to_int
from librarian import (ValidationError, NoDublinCore, ParseError, DCNS, RDFNS,
from librarian.util import roman_to_int
from librarian import (ValidationError, NoDublinCore, ParseError, DCNS, RDFNS,
- XMLNS, WLURI, WLNS)
+ XMLNS, WLURI, WLNS
, PLMETNS
)
import lxml.etree as etree # ElementTree API using libxml2
from lxml.etree import XMLSyntaxError
import lxml.etree as etree # ElementTree API using libxml2
from lxml.etree import XMLSyntaxError
@@
-230,7
+230,7
@@
class WorkInfo(object):
salias='funder', multiple=True, default=[]),
Field( DCNS('contributor.thanks'), 'thanks', required=False),
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'),
Field( DCNS('date.pd'), 'released_to_public_domain_at', as_date, required=False),
Field( DCNS('publisher'), 'publisher'),
@@
-242,6
+242,10
@@
class WorkInfo(object):
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'),
+
+ Field( PLMETNS('digitisationSponsor'), 'sponsors', multiple=True, default=[]),
+ Field( WLNS('digitisationSponsorNote'), 'sponsor_note', required=False),
+ Field( WLNS('developmentStage'), 'stage', required=False),
)
@classmethod
)
@classmethod