Небольшие доработки opds

This commit is contained in:
Book Pauk
2022-12-07 20:55:30 +07:00
parent 8ed52f62b8
commit 307b78f60d
3 changed files with 72 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class SearchPage extends BasePage {
entry.push(
this.makeEntry({
id: row.id,
title: `${(from === 'series' ? 'Серия: ': '')}${row[from]}`,
title: `${(from === 'series' ? 'Серия: ': '')}${from === 'author' ? this.bookAuthor(row[from]) : row[from]}`,
link: this.navLink({href: `/${from}?${from}==${encodeURIComponent(row[from])}`}),
content: {
'*ATTRS': {type: 'text'},
@@ -88,6 +88,15 @@ class SearchPage extends BasePage {
'*TEXT': `Искать по названиям книг`,
},
}),
this.makeEntry({
id: 'search_help',
title: '[Памятка по поиску]',
link: this.acqLink({href: `/search-help`}),
content: {
'*ATTRS': {type: 'text'},
'*TEXT': `Описание формата поискового значения`,
},
}),
]
}