display isbn10s as well
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
David 2023-10-14 15:37:36 -04:00
parent 3d2c9964dc
commit 95b269ca05

View File

@ -137,6 +137,7 @@ function ISBNfromEAN(EAN) {
function BookTemplate({
"isbn-13": isbn13,
"isbn-10": isbn10,
authors,
coverURL,
description,
@ -153,7 +154,7 @@ function BookTemplate({
<div class="bookDetails">
<h1>${title}</h1>
<h2>${authors}</h2>
<span>${isbn13}</span><br/>
<span>${[isbn10, isbn13].join(" / ")}</span><br/>
<span>${publisher}, ${year}</span><br/>
${
series
@ -167,6 +168,7 @@ function BookTemplate({
function TableRowTemplate({
"isbn-13": isbn13,
"isbn-10": isbn10,
authors,
publisher,
rowNumber,
@ -183,7 +185,7 @@ function TableRowTemplate({
<td class="author">${authors}</td>
<td class="publisher">${publisher}</td>
<td class="year">${year}</td>
<td class="isbn">${isbn13}</td>
<td class="isbn">${isbn13 ? isbn13 : isbn10}</td>
</tr>`;
}