if book.Publisher.Valid && book.Publisher.String != "" {
- Publisher
- { book.Publisher.String }
}
if book.DatePublished.Valid {
- Published
- { book.DatePublished.Time.Format("01-02-2006") }
}
if book.Isbn.Valid && book.Isbn.String != "" {
- ISBN
- { book.Isbn.String }
}
if book.Language.Valid && book.Language.String != "" {
- Language
- { book.Language.String }
}
if book.Edition.Valid && book.Edition.String != "" {
- Edition
- { book.Edition.String }
}
if book.PageCount.Valid && book.PageCount.Int32 > 0 {
- Pages
- { book.PageCount.Int32 }
}
if book.Genre.Valid && book.Genre.String != "" {
- Genre
- { book.Genre.String }
}
if book.SeriesCount.Valid && book.SeriesCount.Int32 > 0 {
- Series Count
- { book.SeriesCount.Int32 } items
}
if book.Volume.Valid && book.Volume.Int32 > 0 {
- Volume
- Vol. { book.Volume.Int32 }
}
if book.Imprint.Valid && book.Imprint.String != "" {
- Imprint
- { book.Imprint.String }
}
if book.CopyrightYear.Valid && book.CopyrightYear.Int32 > 0 {
- Copyright Year
- { book.CopyrightYear.Int32 }
}
if book.MangaType.Valid && book.MangaType.String != "" && book.MangaType.String != "unknown" {
- Manga Type
- { strings.ReplaceAll(book.MangaType.String, "_", " ") }
}
if book.ScanInformation.Valid && book.ScanInformation.String != "" {
- Scan Info
- { book.ScanInformation.String }
}
if altSeries := getAlternateSeries(book.AlternateInfo); altSeries != "" {
- Alternate Series
- { altSeries }
}
if len(book.Contributors) > 0 {
- Contributors
- { strings.Join(book.Contributors, ", ") }
}
- Format
- { book.MimeType.String }
if book.FileSize.Valid && book.FileSize.Int64 > 0 {
- File Size
- { formatFileSize(book.FileSize.Int64) }
}
if book.GoodreadsID.Valid || book.OpenlibraryID.Valid || book.GoogleBooksID.Valid || book.Asin.Valid || book.Isbn.Valid || book.WebUrl.Valid {