From cac8e7c721895efa18b4ffa969e0bb4ba28afc87 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 23 Nov 2022 18:08:31 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B1=D0=B0=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/opds/AuthorPage.js | 2 +- server/core/opds/BasePage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/core/opds/AuthorPage.js b/server/core/opds/AuthorPage.js index 5733f59..f2d81e5 100644 --- a/server/core/opds/AuthorPage.js +++ b/server/core/opds/AuthorPage.js @@ -152,7 +152,7 @@ class AuthorPage extends BasePage { } } else { //поиск по каталогу - const queryRes = await this.opdsQuery('author', query); + const queryRes = await this.opdsQuery('author', query, 'Остальные авторы'); for (const rec of queryRes) { entry.push( diff --git a/server/core/opds/BasePage.js b/server/core/opds/BasePage.js index 85d316b..ceb9b5a 100644 --- a/server/core/opds/BasePage.js +++ b/server/core/opds/BasePage.js @@ -138,7 +138,7 @@ class BasePage { return result; } - async opdsQuery(from, query) { + async opdsQuery(from, query, otherTitle = 'Другие') { const queryRes = await this.webWorker.opdsQuery(from, query); let count = 0; for (const row of queryRes.found) @@ -181,7 +181,7 @@ class BasePage { } if (!query.others && others.length) - result.push({id: 'other', title: 'Все остальные', q: '___others'}); + result.unshift({id: 'other', title: otherTitle, q: '___others'}); return (!query.others ? result : others); }