Поправка формирования заголовка
This commit is contained in:
@@ -588,12 +588,13 @@ class Search {
|
|||||||
const author = (as.length ? as[0] : '') + (as.length > 1 ? ' и др.' : '');
|
const author = (as.length ? as[0] : '') + (as.length > 1 ? ' и др.' : '');
|
||||||
|
|
||||||
const a = correctValue(author);
|
const a = correctValue(author);
|
||||||
const sc = correctValue(search.series);
|
let s = correctValue(search.series);
|
||||||
const s = (sc ? `(${sc})` : '');
|
s = (s ? `(${s})` : '');
|
||||||
const t = correctValue(search.title);
|
let t = correctValue(search.title);
|
||||||
|
t = (t ? `"${t}"` : '');
|
||||||
|
|
||||||
result = [s, t].filter(v => v).join(' ');
|
result = [s, t].filter(v => v).join(' ');
|
||||||
result = [a, result].filter(v => v).join(' - ');
|
result = [a, result].filter(v => v).join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$root.setAppTitle(result);
|
this.$root.setAppTitle(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user