if cover is not None:
self.cover = cover
- def dc(self, tag):
- return self.doc.meta.get_one(DCNS(tag))
+ def dc(self, tag, multiple=False):
+ if multiple:
+ return ', '.join(self.doc.meta.get(DCNS(tag)))
+ else:
+ return self.doc.meta.get_one(DCNS(tag))
def build(self, ctx=None):
'Information about the resource',
'Publisher: %s' % self.dc('publisher'),
'Rights: %s' % self.dc('rights'),
- 'Intended audience: %s' % self.dc('audience'),
+ 'Intended audience: %s' % self.dc('audience', multiple=True),
self.dc('description'),
'Resource prepared using MIL/PEER editing platform.',
'Source available at %s' % ctx.source_url,
EpubFormat.renderers.register(core.Div, 'list', NaturalText('ul'))
EpubFormat.renderers.register(core.Div, 'list.enum', NaturalText('ol'))
EpubFormat.renderers.register(core.Div, 'item', NaturalText('li'))
+EpubFormat.renderers.register(core.Span, 'item', NaturalText('li'))
class DivImageR(EpubRenderer):