refactor(books): add subtitle field (#2712)

This commit is contained in:
Alex
2026-09-21 09:00:47 +01:00
committed by GitHub
parent bcac7ff161
commit 78e132aeee
4 changed files with 3 additions and 3 deletions
@@ -257,7 +257,6 @@ public class BookQueryService {
m.setApplebooksId(null);
// Strip unused detail fields
m.setSubtitle(null);
m.setSeriesTotal(null);
m.setAbridged(null);
m.setExternalUrl(null);
@@ -25,6 +25,7 @@ public final class BookSearchSpecification {
Join<BookEntity, BookMetadataEntity> metadata = root.join("metadata", JoinType.LEFT);
return cb.or(
cb.like(cb.lower(metadata.get("title")), pattern),
cb.like(cb.lower(metadata.get("subtitle")), pattern),
cb.like(cb.lower(metadata.get("seriesName")), pattern),
cb.like(cb.lower(metadata.get("isbn13")), pattern),
cb.like(cb.lower(metadata.get("isbn10")), pattern),
@@ -36,7 +36,7 @@ public class BookSortRegistry {
registry.register("addedOn", rootField("addedOn"));
for (String field : List.of(
"title", "seriesName", "seriesNumber", "publisher", "publishedDate",
"title", "subtitle", "seriesName", "seriesNumber", "publisher", "publishedDate",
"amazonRating", "amazonReviewCount", "goodreadsRating", "goodreadsReviewCount",
"hardcoverRating", "hardcoverReviewCount", "ranobedbRating",
"lubimyczytacRating",