BookContextDto
Book context for template and condition evaluation.
This structure provides a unified interface for evaluating templates and conditions against book data. It includes book-specific fields plus an embedded parent series context for cross-referencing.
Template Usage
In Handlebars templates, fields are accessible via:
{{type}}- Always "book"{{bookId}}- Book UUID{{seriesId}}- Parent series UUID{{metadata.title}}- Book title{{metadata.authors}}- Author array{{externalIds.plugin:source.id}}- External ID from a source{{customMetadata.myField}}- Custom metadata field{{series.metadata.title}}- Parent series title (cross-reference)
Book UUID
550e8400-e29b-41d4-a716-446655440001Custom metadata fields (preserved as-is, no case transformation).
externalIds object
External IDs mapped by source name.
property name* ExternalIdContextDto
External ID context for template evaluation.
Represents an external ID from a metadata provider (plugin, comicinfo, etc.) in a simplified format suitable for template access.
Metadata hash for change detection (if available)
External ID value
12345External URL (if available)
https://mangabaka.com/series/12345File format (e.g., "cbz", "epub", "pdf")
epubFile size in bytes
52428800Library UUID
550e8400-e29b-41d4-a716-446655440099metadata object
Book metadata
authors object[]
Structured author information
Author name
Oda EiichiroRole (e.g., "author", "artist", "editor")
authorSort name (e.g., "Lastname, Firstname")
Oda, EiichiroWhether authors_json is locked
awards object[]
Awards information
Award category (optional)
Best NovelAward name
Hugo AwardWhether the book won (vs nominated)
trueYear awarded (optional)
2015Whether awards_json is locked
Whether the book is black and white
falseWhether black_and_white is locked
Book type classification
novelWhether book_type is locked
Total count in series
4Whether count is locked
Whether cover is locked
Whether custom_metadata is locked
Publication day (1-31)
15Whether day is locked
Edition information
First EditionWhether edition is locked
externalLinks object[]
External links for this book
External ID on the source (optional)
123Source name (e.g., "mangadex", "myanimelist")
mangadexURL to the external resource
https://mangadex.org/title/123Format detail (e.g., "Trade Paperback")
Trade PaperbackWhether format_detail is locked
Genre (ComicInfo-style single genre field)
Science FictionWhether genre is locked
Genre names for this book
["Science Fiction","Adventure"]Imprint (sub-publisher)
Broadway BooksWhether imprint is locked
ISBN(s)
978-0553418026Whether isbns is locked
Language code (ISO format)
enWhether language_iso is locked
Whether the book is manga format
falseWhether manga is locked
Publication month (1-12)
2Whether month is locked
Book number (e.g., issue/chapter number)
1Whether number is locked
Original title (for translated works)
火星の人Whether original_title is locked
Original publication year
2011Whether original_year is locked
Publisher name
Crown PublishingWhether publisher is locked
Position in a series
1Whether series_position is locked
Total number of books in the series
3Whether series_total is locked
Subject/topic tags
["Science Fiction","Space Exploration"]Whether subjects are locked
Book subtitle
A NovelWhether subtitle is locked
Book summary/description
Astronaut Mark Watney is stranded on Mars...Whether summary is locked
Tag names for this book
["mars","survival","space"]Book title
The MartianWhether title is locked
Custom sort name
Martian, TheWhether title_sort is locked
Translator name
John SmithWhether translator is locked
Volume number
1Whether volume is locked
Publication year
2011Whether year is locked
Number of pages
369series objectrequired
Parent series context for cross-referencing
Number of books in the series
5Custom metadata fields (preserved as-is, no case transformation). Can contain any JSON structure defined by the user.
externalIds object
External IDs mapped by source name. Keys are source identifiers (e.g., "plugin:mangabaka", "comicinfo").
property name* ExternalIdContextDto
External ID context for template evaluation.
Represents an external ID from a metadata provider (plugin, comicinfo, etc.) in a simplified format suitable for template access.
Metadata hash for change detection (if available)
External ID value
12345External URL (if available)
https://mangabaka.com/series/12345metadata object
Series metadata
Age rating (e.g., 13, 16, 18)
13Whether age_rating is locked
alternateTitles object[]
Alternate titles (e.g., Japanese, Romaji, English)
Label for this alternate title (e.g., "Japanese", "Romaji")
JapaneseThe alternate title text
ワンピースauthors object[]
Structured author information
Author name
Oda EiichiroRole (e.g., "author", "artist", "editor")
authorSort name (e.g., "Lastname, Firstname")
Oda, EiichiroWhether authors_json is locked
Whether cover is locked
Whether custom_metadata is locked
externalLinks object[]
External links to other sites
External ID on the source (optional)
123Source name (e.g., "mangadex", "myanimelist")
mangadexURL to the external resource
https://mangadex.org/title/123externalRatings object[]
External ratings from various sources
Rating value (normalized to 0-100)
85.5Source name (e.g., "myanimelist", "anilist")
myanimelistNumber of votes (optional)
12345Genre names
["Action","Adventure","Comedy"]Whether genres are locked
Imprint (sub-publisher)
Jump ComicsWhether imprint is locked
Language code (BCP47 format)
jaWhether language is locked
Publisher name
ShueishaWhether publisher is locked
Reading direction (ltr, rtl, ttb, webtoon)
rtlWhether reading_direction is locked
Series status (ongoing, ended, hiatus, abandoned, unknown)
ongoingWhether status is locked
Series description/summary
Follow Monkey D. Luffy on his adventure...Whether summary is locked
Tag names
["pirates","treasure","friendship"]Whether tags are locked
Series title
One PieceWhether title is locked
Custom sort name
One PieceWhether title_sort is locked
Expected total book count
110Whether total_book_count is locked
Publication year
1997Whether year is locked
Series UUID
550e8400-e29b-41d4-a716-446655440000Type discriminator — always "series" for SeriesContextDto
seriesParent series UUID
550e8400-e29b-41d4-a716-446655440000Type discriminator — always "book" for BookContextDto
book{
"bookId": "550e8400-e29b-41d4-a716-446655440001",
"customMetadata": "Unknown Type: object,null",
"externalIds": {
"plugin:goodreads": {
"id": "18007564",
"url": "https://goodreads.com/book/show/18007564"
}
},
"fileFormat": "epub",
"fileSize": 52428800,
"libraryId": "550e8400-e29b-41d4-a716-446655440099",
"metadata": {
"authors": [
{
"name": "Oda Eiichiro",
"role": "author",
"sortName": "Oda, Eiichiro"
}
],
"authorsJsonLock": true,
"awards": [
{
"category": "Best Novel",
"name": "Hugo Award",
"won": true,
"year": 2015
}
],
"awardsJsonLock": true,
"blackAndWhite": false,
"blackAndWhiteLock": true,
"bookType": "novel",
"bookTypeLock": true,
"count": 4,
"countLock": true,
"coverLock": true,
"customMetadataLock": true,
"day": 15,
"dayLock": true,
"edition": "First Edition",
"editionLock": true,
"externalLinks": [
{
"externalId": "123",
"source": "mangadex",
"url": "https://mangadex.org/title/123"
}
],
"formatDetail": "Trade Paperback",
"formatDetailLock": true,
"genre": "Science Fiction",
"genreLock": true,
"genres": [
"Science Fiction",
"Adventure"
],
"imprint": "Broadway Books",
"imprintLock": true,
"isbns": "978-0553418026",
"isbnsLock": true,
"languageIso": "en",
"languageIsoLock": true,
"manga": false,
"mangaLock": true,
"month": 2,
"monthLock": true,
"number": 1,
"numberLock": true,
"originalTitle": "火星の人",
"originalTitleLock": true,
"originalYear": 2011,
"originalYearLock": true,
"publisher": "Crown Publishing",
"publisherLock": true,
"seriesPosition": 1,
"seriesPositionLock": true,
"seriesTotal": 3,
"seriesTotalLock": true,
"subjects": [
"Science Fiction",
"Space Exploration"
],
"subjectsLock": true,
"subtitle": "A Novel",
"subtitleLock": true,
"summary": "Astronaut Mark Watney is stranded on Mars...",
"summaryLock": true,
"tags": [
"mars",
"survival",
"space"
],
"title": "The Martian",
"titleLock": true,
"titleSort": "Martian, The",
"titleSortLock": true,
"translator": "John Smith",
"translatorLock": true,
"volume": 1,
"volumeLock": true,
"year": 2011,
"yearLock": true
},
"pageCount": 369,
"series": {
"bookCount": 5,
"customMetadata": "Unknown Type: object,null",
"externalIds": {
"plugin:mangabaka": {
"id": "12345",
"url": "https://mangabaka.com/series/12345"
}
},
"metadata": {
"ageRating": 13,
"ageRatingLock": true,
"alternateTitles": [
{
"label": "Japanese",
"title": "ワンピース"
}
],
"authors": [
{
"name": "Oda Eiichiro",
"role": "author",
"sortName": "Oda, Eiichiro"
}
],
"authorsJsonLock": true,
"coverLock": true,
"customMetadataLock": true,
"externalLinks": [
{
"externalId": "123",
"source": "mangadex",
"url": "https://mangadex.org/title/123"
}
],
"externalRatings": [
{
"rating": 85.5,
"source": "myanimelist",
"votes": 12345
}
],
"genres": [
"Action",
"Adventure",
"Comedy"
],
"genresLock": true,
"imprint": "Jump Comics",
"imprintLock": true,
"language": "ja",
"languageLock": true,
"publisher": "Shueisha",
"publisherLock": true,
"readingDirection": "rtl",
"readingDirectionLock": true,
"status": "ongoing",
"statusLock": true,
"summary": "Follow Monkey D. Luffy on his adventure...",
"summaryLock": true,
"tags": [
"pirates",
"treasure",
"friendship"
],
"tagsLock": true,
"title": "One Piece",
"titleLock": true,
"titleSort": "One Piece",
"titleSortLock": true,
"totalBookCount": 110,
"totalBookCountLock": true,
"year": 1997,
"yearLock": true
},
"seriesId": "550e8400-e29b-41d4-a716-446655440000",
"type": "series"
},
"seriesId": "550e8400-e29b-41d4-a716-446655440000",
"type": "book"
}