feat(shelf): add shelf filtering options and integrate into book processing (#2268)
* feat(shelf): add shelf filtering options and integrate into book processing Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * fix(book-rule-evaluator): normalize array values to lowercase for rule comparisons Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat(filter): enhance library and shelf filtering logic for 'or' and 'and' modes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat(shelf): implement support for multiple shelf IDs in book retrieval and filtering Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
@@ -96,6 +96,10 @@ export class ShelfService {
|
||||
return this.shelfStateSubject.value.shelves?.find(s => s.id === id);
|
||||
}
|
||||
|
||||
getShelvesFromState(): Shelf[] {
|
||||
return this.shelfStateSubject.value.shelves ?? [];
|
||||
}
|
||||
|
||||
getBookCount(shelfId: number): Observable<number> {
|
||||
return this.bookService.bookState$.pipe(
|
||||
map(state =>
|
||||
|
||||
Reference in New Issue
Block a user