EPUB: support multiple publishers

This also fixes https://github.com/johnfactotum/foliate/issues/1633
This commit is contained in:
John Factotum
2026-03-05 05:52:35 +08:00
parent b0c02a5221
commit a70ad3a10f
+1 -1
View File
@@ -267,7 +267,7 @@ const getMetadata = opf => {
subtitle: dc.title?.find(x => prop(x, 'title-type') === 'subtitle')?.value, subtitle: dc.title?.find(x => prop(x, 'title-type') === 'subtitle')?.value,
language: dc.language?.map(x => x.value), language: dc.language?.map(x => x.value),
description: one(dc.description), description: one(dc.description),
publisher: makeContributor(dc.publisher?.[0]), publisher: dc.publisher?.map(makeContributor),
published: dc.date?.find(x => x.attrs.event === 'publication')?.value published: dc.date?.find(x => x.attrs.event === 'publication')?.value
?? one(dc.date), ?? one(dc.date),
modified: one(properties[PREFIX.dcterms + 'modified']) modified: one(properties[PREFIX.dcterms + 'modified'])