refactor(books): add subtitle field (#2712)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user