From 914a8558191a322406e8faf5ff3b2d26a1a080b1 Mon Sep 17 00:00:00 2001 From: Johannes Wilm Date: Wed, 13 Mar 2024 02:06:26 +0100 Subject: [PATCH] lint --- .gitignore | 3 +++ .../static/js/modules/citation_api_import/templates.js | 8 ++++---- fiduswriter/citation_api_import/views.py | 4 +++- setup.py | 4 +++- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 782a7bd..ba3029f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ fiduswriter/.coveragerc fiduswriter/configuration.py fiduswriter/fiduswriter.sql fiduswriter/screenshots +.transpile/ +static-libs/ +fiduswriter.sql \ No newline at end of file diff --git a/fiduswriter/citation_api_import/static/js/modules/citation_api_import/templates.js b/fiduswriter/citation_api_import/static/js/modules/citation_api_import/templates.js index c6b4d8e..dd3a23e 100644 --- a/fiduswriter/citation_api_import/static/js/modules/citation_api_import/templates.js +++ b/fiduswriter/citation_api_import/static/js/modules/citation_api_import/templates.js @@ -181,8 +181,8 @@ export const searchApiResultCrossrefTemplate = ({items}) => { ${gettext("Abstract")} ` + items.map(item => { - const publishedDate = item.published && item.published['date-parts'] ? item.published['date-parts'].map(part => part.join("-")).join(", ") : "" - const abstractWithoutHTML = item.abstract ? item.abstract.replace(/<[^>]*>?/gm, '') : "" + const publishedDate = item.published && item.published["date-parts"] ? item.published["date-parts"].map(part => part.join("-")).join(", ") : "" + const abstractWithoutHTML = item.abstract ? item.abstract.replace(/<[^>]*>?/gm, "") : "" return `