from librarian.util import roman_to_int
from librarian import (ValidationError, NoDublinCore, ParseError, DCNS, RDFNS,
- XMLNS, WLURI)
+ XMLNS, WLURI, WLNS)
import lxml.etree as etree # ElementTree API using libxml2
from lxml.etree import XMLSyntaxError
try:
# check out the "N. poł X w." syntax
if isinstance(text, str): text = text.decode("utf-8")
+
century_format = u"(?:([12]) *poł[.]? +)?([MCDXVI]+) *w[.,]*(?: *l[.]? *([0-9]+))?"
vague_format = u"(?:po *|ok. *)?([0-9]{4})(-[0-9]{2}-[0-9]{2})?"
Field( DCNS('relation.coverImage.url'), 'cover_url', required=False),
Field( DCNS('relation.coverImage.attribution'), 'cover_by', required=False),
Field( DCNS('relation.coverImage.source'), 'cover_source', required=False),
+ # WLCover-specific.
+ Field( WLNS('coverBarColor'), 'cover_bar_color', required=False),
+ Field( WLNS('coverBoxPosition'), 'cover_box_position', required=False),
)