CreDocument: support added 'identifier' metadata (#11628)

Currently not exposed in Book information.
This commit is contained in:
Bastian Wagner
2024-04-08 04:17:41 +02:00
committed by GitHub
parent ac4d4756f8
commit aaa56a814f
2 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ local CreDocument = Document:extend{
authors = "doc.authors",
series = "doc.series.name",
series_index = "doc.series.number",
identifiers = "doc.identifiers",
},
-- Reasons for the fallback font ordering:

View File

@@ -201,6 +201,7 @@ function Document:getProps(cached_doc_metadata)
local language = makeNilIfEmpty(props.language or props.Language)
local keywords = makeNilIfEmpty(props.keywords or props.Keywords)
local description = makeNilIfEmpty(props.description or props.Description or props.subject)
local identifiers = makeNilIfEmpty(props.identifiers)
return {
title = title,
authors = authors,
@@ -209,6 +210,7 @@ function Document:getProps(cached_doc_metadata)
language = language,
keywords = keywords,
description = description,
identifiers = identifiers,
}
end