From 0e38a674b54e717a58cb9b654279bfdb1c552a4b Mon Sep 17 00:00:00 2001 From: adityachandelgit <> Date: Mon, 21 Apr 2025 21:09:15 -0600 Subject: [PATCH] Add more columns to table view --- .../book-browser/book-browser.component.ts | 3 +- .../book-table/book-table.component.html | 75 ++++++++++++++----- .../book-table/book-table.component.ts | 5 +- 3 files changed, 62 insertions(+), 21 deletions(-) diff --git a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts index f85d3fa85..1608b9fdd 100644 --- a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts @@ -105,9 +105,10 @@ export class BookBrowserComponent implements OnInit, AfterViewInit { {label: 'Locked', icon: '', field: 'locked', command: () => this.sortBooks('locked')}, {label: 'Publisher', icon: '', field: 'publisher', command: () => this.sortBooks('publisher')}, {label: 'Published Date', icon: '', field: 'publishedDate', command: () => this.sortBooks('publishedDate')}, - {label: 'Rating (Legacy)', icon: '', field: 'rating', command: () => this.sortBooks('rating')}, {label: 'Amazon Rating', icon: '', field: 'amazonRating', command: () => this.sortBooks('amazonRating')}, + {label: 'Amazon #', icon: '', field: 'amazonReviewCount', command: () => this.sortBooks('amazonReviewCount')}, {label: 'Goodreads Rating', icon: '', field: 'goodreadsRating', command: () => this.sortBooks('goodreadsRating')}, + {label: 'Goodreads #', icon: '', field: 'goodreadsReviewCount', command: () => this.sortBooks('goodreadsReviewCount')}, {label: 'Pages', icon: '', field: 'pageCount', command: () => this.sortBooks('pageCount')} ]; diff --git a/booklore-ui/src/app/book/components/book-browser/book-table/book-table.component.html b/booklore-ui/src/app/book/components/book-browser/book-table/book-table.component.html index f20caebca..7bbdf59d7 100644 --- a/booklore-ui/src/app/book/components/book-browser/book-table/book-table.component.html +++ b/booklore-ui/src/app/book/components/book-browser/book-table/book-table.component.html @@ -21,13 +21,18 @@