From 98372ea62c44179ecdee44136e0aaf6c5fc48c9a Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 3 Jan 2021 11:55:16 +1100 Subject: [PATCH] fixed BUG-4 (books only showing 1 author) --- BUGs | 2 -- templates/books.html | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BUGs b/BUGs index e47ad99..6dfbe06 100644 --- a/BUGs +++ b/BUGs @@ -4,8 +4,6 @@ BUG-2: series does not deal with calcd_rating... BUG-3: alter a condition, covertype, etc. and its not in drop-down list (even though db look via index is correct, e.g books.html shows updated covertype) -BUG-4: show books, only shows first author - BUG-6: author,series, etc. do not have explicit ordering like sub-books... sort of irritating / needs code and DB fix - add/remove authors, and after save they are ordered by author.id, not order of addition (prob. needs book_author_link to have an auth_num) diff --git a/templates/books.html b/templates/books.html index ea1fc9c..b166e80 100644 --- a/templates/books.html +++ b/templates/books.html @@ -4,7 +4,7 @@

All Books

- + {% for book in books %} @@ -14,7 +14,11 @@ {% else %} {% endif %} - +
TitleAuthorPublisherConditionOwnedCovertype
TitleAuthor(s)PublisherConditionOwnedCovertype
{{book.title}}{{ book.author[0]['surname'] }}, {{book.author[0]['firstnames']}} + {% for auth in book.author %} + {{ auth['surname'] }}, {{auth['firstnames']}} + {% endfor %} + {{ GetPublisherById(book.publisher)}} {% set cond = GetConditionById(book.condition) %}