Browse Source

Поправки багов

Book Pauk 2 years ago
parent
commit
cac8e7c721
2 changed files with 3 additions and 3 deletions
  1. 1 1
      server/core/opds/AuthorPage.js
  2. 2 2
      server/core/opds/BasePage.js

+ 1 - 1
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(

+ 2 - 2
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);
     }