diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue
index 6bc0613b..a6b1550f 100644
--- a/client/components/cards/LazyBookCard.vue
+++ b/client/components/cards/LazyBookCard.vue
@@ -6,11 +6,11 @@
-
+
{{ displayTitle }}
-
{{ displayAuthor || ' ' }}
+
{{ displayLineTwo || ' ' }}
{{ displaySortLine }}
@@ -247,8 +247,11 @@ export default {
}
return this.title
},
- displayAuthor() {
+ displayLineTwo() {
if (this.isPodcast) return this.author
+ if (this.isAuthorBookshelfView) {
+ return this.mediaMetadata.publishedYear || ''
+ }
if (this.orderBy === 'media.metadata.authorNameLF') return this.authorLF
return this.author
},
@@ -424,8 +427,12 @@ export default {
var constants = this.$constants || this.$nuxt.$constants
return this.bookshelfView === constants.BookshelfView.TITLES
},
+ isAuthorBookshelfView() {
+ var constants = this.$constants || this.$nuxt.$constants
+ return this.bookshelfView === constants.BookshelfView.AUTHOR
+ },
titleDisplayBottomOffset() {
- if (!this.isAlternativeBookshelfView) return 0
+ if (!this.isAlternativeBookshelfView && !this.isAuthorBookshelfView) return 0
else if (!this.displaySortLine) return 3 * this.sizeMultiplier
return 4.25 * this.sizeMultiplier
}
diff --git a/client/components/widgets/ItemSlider.vue b/client/components/widgets/ItemSlider.vue
index 851c19a0..4328839a 100644
--- a/client/components/widgets/ItemSlider.vue
+++ b/client/components/widgets/ItemSlider.vue
@@ -13,7 +13,7 @@
diff --git a/client/plugins/constants.js b/client/plugins/constants.js
index e7081e99..7712c680 100644
--- a/client/plugins/constants.js
+++ b/client/plugins/constants.js
@@ -21,7 +21,8 @@ const BookCoverAspectRatio = {
const BookshelfView = {
STANDARD: 0,
- TITLES: 1
+ TITLES: 1,
+ AUTHOR: 2 // Books shown on author page
}
const PlayMethod = {