@if (book; as book) {
@if (book?.metadata!.seriesNumber !== null && book?.metadata!.seriesNumber !== undefined) {
#{{ book?.metadata!.seriesNumber }}
}
@let progress = getProgressPercent(book); @if (progress !== null) { } @if (getKoProgressPercent(book) !== null) { } @if (getKoboProgressPercent(book) !== null) { }
@if (navigationState()) { }
@if (book?.metadata?.seriesName) { }

{{ book?.metadata?.title }}@if (book?.metadata?.subtitle) { : {{ book.metadata?.subtitle }} }

@for (author of book?.metadata!.authors; track $index; let isLast = $last; let isFirst = $first) { @if (isFirst && book!.metadata!.authors!.length > 1) { {{ author }} {{ t('firstAuthorBadge') }} } @else { {{ author }} } @if (!isLast) { , } }

@if (getDisplayFormat(book?.primaryFile); as displayFormat) { {{ displayFormat }} {{ t('primaryBadge') }} } @if (getDisplayFormat(book?.primaryFile) && getUniqueAlternativeFormats(book).length > 0) { | } @for (formatExt of getUniqueAlternativeFormats(book); track formatExt) { {{ formatExt }} } @if (book?.isPhysical) { {{ t('physicalBadge') }} }
@if (providerBadges().length > 0) {
}
@for (provider of providerBadges(); track provider.id) { {{ provider.labelKey | transloco }} {{ getRatingPercent(provider.rating) }}% }
@if (book?.metadata?.categories?.length) {
{{ t('genresLabel') }}
@for (category of book.metadata!.categories; track category) { {{ category }} }
} @if (book?.metadata?.moods?.length) {
{{ t('moodsLabel') }}
@for (mood of book.metadata!.moods; track mood) { {{ mood }} }
} @if (book?.metadata?.tags?.length) {
{{ t('tagsLabel') }}
@for (tag of book.metadata!.tags; track tag) { {{ tag }} }
}
@if (hasDigitalFile(book)) {
@if (showFilePath) { {{ book?.primaryFile?.filePath }} }
}
@if (userService.currentUser(); as currentUser) {
@if (navigationState()) { } @if (hasDigitalFile(book)) {
@if (readMenuItems().length > 0) { } @else { }
}
@if ((currentUser.permissions.canDownload || currentUser.permissions.admin) && hasAnyFiles(book)) { @if ((book!.alternativeFormats && book!.alternativeFormats.length > 0) || (book!.supplementaryFiles && book!.supplementaryFiles.length > 0)) { } @else { } } @if (currentUser.permissions.canEditMetadata || currentUser.permissions.admin) { } @if (otherItems().length > 0) { }
}
{{ t('synopsisTitle') }}
@if (isExpanded || isOverflowing) { }
@if (isComicBook(book) && hasComicMetadata(book)) {
{{ t('comicDetailsTitle') }}
}

{{ t('confirm.detachFileMessage', { fileName: detachFileName }) }}

} @else {

{{ t('loadingBookDetails') }}

}