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

Currently not exposed in Book information.
reviewable/pr11642/r1
Bastian Wagner 4 weeks ago committed by GitHub
parent ac4d4756f8
commit aaa56a814f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

@ -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

Loading…
Cancel
Save