diff --git a/.gitignore b/.gitignore
index 31d7886..255a042 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/server
/manager
-*.properties
\ No newline at end of file
+*.properties
+.DS_Store
\ No newline at end of file
diff --git a/frontend/files/index.html b/frontend/files/index.html
index ba031df..2aaa99b 100644
--- a/frontend/files/index.html
+++ b/frontend/files/index.html
@@ -3,7 +3,6 @@
Library
-
(e.rowNumber = i)); // re-key for new sort
- $("#books").html(Mustache.render($("#Table").html(), { books }));
+ $("#books").html(TableTemplate(books));
$("#books tbody tr")
.not(":first") // ignore the headers
.on("click", function () {
@@ -106,7 +105,7 @@
}
function updateCurrentBook(book) {
- $("#current").html(Mustache.render($("#View").html(), { book }));
+ $("#current").html(BookTemplate(book));
}
function titleCleaner(title) {
@@ -138,6 +137,78 @@
return ISBN + (checkdigit === 10 ? "X" : checkdigit);
}
+ function BookTemplate({
+ "isbn-13": isbn13,
+ authors,
+ coverurl,
+ description,
+ format,
+ notes,
+ onLoan,
+ publisher,
+ series,
+ signed,
+ title,
+ volume,
+ year,
+ }) {
+ return `${coverurl ? `` : ""}
+