mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
EPUB: add support for subtitle
This commit is contained in:
@@ -719,6 +719,7 @@ export class EPUB {
|
|||||||
const title = metadata?.title?.[0]
|
const title = metadata?.title?.[0]
|
||||||
this.metadata = {
|
this.metadata = {
|
||||||
title: title?.value,
|
title: title?.value,
|
||||||
|
subtitle: metadata?.title?.find(x => x.titleType === 'subtitle')?.value,
|
||||||
sortAs: title?.fileAs,
|
sortAs: title?.fileAs,
|
||||||
language: metadata?.language,
|
language: metadata?.language,
|
||||||
identifier: getIdentifier(opf),
|
identifier: getIdentifier(opf),
|
||||||
|
|||||||
Reference in New Issue
Block a user