X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/7feccce4659f48b0f9a131d8de0d983075a33378..4b958ca8fc156576373e1d805fff96fb34a35804:/librarian/formats/pdf/__init__.py?ds=sidebyside diff --git a/librarian/formats/pdf/__init__.py b/librarian/formats/pdf/__init__.py index a994008..a8fe38f 100644 --- a/librarian/formats/pdf/__init__.py +++ b/librarian/formats/pdf/__init__.py @@ -185,12 +185,15 @@ class PdfFormat(Format): doc.append(texml_cmd("section*", "Information about the resource")) doc.append(texml_cmd("vspace", "1em")) - 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) if v: e = texml_cmd("par", "") e[0].append(texml_cmd("noindent"))