From 90be2a144794379f69cd7efa57d2ff40eb9bf0b9 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 19 Oct 2022 16:30:33 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 8cdd35b..a18b6ca 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -588,12 +588,13 @@ class Search { const author = (as.length ? as[0] : '') + (as.length > 1 ? ' и др.' : ''); const a = correctValue(author); - const sc = correctValue(search.series); - const s = (sc ? `(${sc})` : ''); - const t = correctValue(search.title); + let s = correctValue(search.series); + s = (s ? `(${s})` : ''); + let t = correctValue(search.title); + t = (t ? `"${t}"` : ''); 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);