Move book metadata view to tab and remove the routed page

This commit is contained in:
aditya.chandel
2025-01-04 17:59:26 -07:00
parent 82b7cca0a5
commit 77fb080757
16 changed files with 156 additions and 343 deletions
@@ -55,6 +55,8 @@ public class BookMetadataService {
metadata.setIsbn13(newMetadata.getIsbn13());
metadata.setDescription(newMetadata.getDescription());
metadata.setPageCount(newMetadata.getPageCount());
metadata.setRating(newMetadata.getRating());
metadata.setReviewCount(newMetadata.getReviewCount());
if (newMetadata.getAuthors() != null && !newMetadata.getAuthors().isEmpty()) {
List<Author> authors = newMetadata.getAuthors().stream()
.map(authorName -> authorRepository.findByName(authorName)
@@ -27,6 +27,8 @@ public class BookMetadataTransformer {
.language(bookMetadata.getLanguage())
.pageCount(bookMetadata.getPageCount())
.publishedDate(bookMetadata.getPublishedDate())
.rating(bookMetadata.getRating())
.reviewCount(bookMetadata.getReviewCount())
.authors(bookMetadata.getAuthors() == null ? null : bookMetadata.getAuthors().stream().map(AuthorTransformer::toAuthorDTO).collect(Collectors.toList()))
.categories(bookMetadata.getCategories() == null ? null : bookMetadata.getCategories().stream().map(CategoryTransformer::categoryDTO).collect(Collectors.toList()))
.build();