OPDS: добавлен раздел "Жанры", в поиск добавлен раздел "Поиск книг в жанре" (#9)
This commit is contained in:
@@ -26,7 +26,7 @@ class SeriesPage extends BasePage {
|
||||
const query = {
|
||||
series: req.query.series || '',
|
||||
genre: req.query.genre || '',
|
||||
del: 0,
|
||||
del: '0',
|
||||
|
||||
all: req.query.all || '',
|
||||
depth: 0,
|
||||
@@ -46,7 +46,7 @@ class SeriesPage extends BasePage {
|
||||
|
||||
if (bookList.books) {
|
||||
let books = bookList.books;
|
||||
const booksAll = this.filterBooks(books, {del: 0});
|
||||
const booksAll = this.filterBooks(books);
|
||||
const filtered = (query.all ? booksAll : this.filterBooks(books, query));
|
||||
const sorted = this.sortSeriesBooks(filtered);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user