- for m, f in (
- ('Publisher: ', DCNS('publisher')),
- ('Rights: ', DCNS('rights')),
- ('Intended audience: ', DCNS('audience')),
- ('', DCNS('description'))):
- v = self.doc.meta.get_one(f)
+ for m, f, multiple in (
+ ('Publisher: ', DCNS('publisher'), False),
+ ('Rights: ', DCNS('rights'), False),
+ ('Intended audience: ', DCNS('audience'), True),
+ ('', DCNS('description'), False)):
+ if multiple:
+ v = ', '.join(self.doc.meta.get(f))
+ else:
+ v = self.doc.meta.get_one(f)