From bce31df7e600ae51a3001c6c81c1a8d6356807f4 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 13 Feb 2019 13:12:26 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B0=20?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reader/HistoryPage/HistoryPage.vue | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index 630654a1..a9884b13 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/client/components/Reader/HistoryPage/HistoryPage.vue @@ -141,17 +141,27 @@ class HistoryPage extends Vue { } const fb2 = (book.fb2 ? book.fb2 : {}); + + let title = fb2.bookTitle; + if (title) + title = `"${title}"`; + else + title = ''; + + let author = _.compact([ + fb2.lastName, + fb2.firstName, + fb2.middleName + ]).join(' '); + author = (author ? author : (fb2.bookTitle ? fb2.bookTitle : book.url)); + result.push({ touchDateTime: book.touchTime, touchDate: t[0], touchTime: t[1], desc: { - title: `"${fb2.bookTitle}"${perc}${textLen}`, - author: _.compact([ - fb2.lastName, - fb2.firstName, - fb2.middleName - ]).join(' '), + title: `${title}${perc}${textLen}`, + author, }, url: book.url, path: book.path,