From: Jan Szejko Date: Mon, 6 Mar 2017 13:05:02 +0000 (+0100) Subject: allow multiple dc:publisher X-Git-Tag: 1.7~63 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/47cd67ea0e820d6805c8ed23233e5e408b98b803 allow multiple dc:publisher --- diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 31f2dae..40eac14 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -238,7 +238,7 @@ class WorkInfo(object): Field(DCNS('date'), 'created_at'), Field(DCNS('date.pd'), 'released_to_public_domain_at', as_date, required=False), - Field(DCNS('publisher'), 'publisher'), + Field(DCNS('publisher'), 'publisher', multiple=True), Field(DCNS('language'), 'language'), Field(DCNS('description'), 'description', required=False), diff --git a/librarian/epub/xsltContent.xsl b/librarian/epub/xsltContent.xsl index fa033ee..24315c5 100644 --- a/librarian/epub/xsltContent.xsl +++ b/librarian/epub/xsltContent.xsl @@ -25,7 +25,10 @@ - + + + ; + diff --git a/librarian/fb2/description.xslt b/librarian/fb2/description.xslt index 312df2d..6d7383f 100644 --- a/librarian/fb2/description.xslt +++ b/librarian/fb2/description.xslt @@ -46,8 +46,12 @@ 0 - + + + + ; + +