From 95b269ca0501ec37f7795fa07a1c3d0509bac5e4 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 14 Oct 2023 15:37:36 -0400 Subject: [PATCH] display isbn10s as well --- frontend/files/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/files/app.js b/frontend/files/app.js index c16e710..ae1b25b 100644 --- a/frontend/files/app.js +++ b/frontend/files/app.js @@ -137,6 +137,7 @@ function ISBNfromEAN(EAN) { function BookTemplate({ "isbn-13": isbn13, + "isbn-10": isbn10, authors, coverURL, description, @@ -153,7 +154,7 @@ function BookTemplate({

${title}

${authors}

- ${isbn13}
+ ${[isbn10, isbn13].join(" / ")}
${publisher}, ${year}
${ series @@ -167,6 +168,7 @@ function BookTemplate({ function TableRowTemplate({ "isbn-13": isbn13, + "isbn-10": isbn10, authors, publisher, rowNumber, @@ -183,7 +185,7 @@ function TableRowTemplate({ ${authors} ${publisher} ${year} - ${isbn13} + ${isbn13 ? isbn13 : isbn10} `; }