mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
EPUB: support multiple publishers
This also fixes https://github.com/johnfactotum/foliate/issues/1633
This commit is contained in:
@@ -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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user