diff --git a/client/components/cards/ItemSearchCard.vue b/client/components/cards/ItemSearchCard.vue index 1784db0f..f1b5bf3d 100644 --- a/client/components/cards/ItemSearchCard.vue +++ b/client/components/cards/ItemSearchCard.vue @@ -5,7 +5,7 @@
{{ title }}
-{{ matchHtml }}
+by {{ authorName }}
@@ -61,7 +61,6 @@ export default { }, matchHtml() { if (!this.matchText || !this.search) return '' - if (this.matchKey === 'subtitle') return '' // This used to highlight the part of the search found // but with removing commas periods etc this is no longer plausible @@ -69,6 +68,7 @@ export default { if (this.matchKey === 'episode') return `${this.$strings.LabelEpisode}: ${html}
` if (this.matchKey === 'tags') return `${this.$strings.LabelTags}: ${html}
` + if (this.matchKey === 'subtitle') return `${html}
` if (this.matchKey === 'authors') return `by ${html}` if (this.matchKey === 'isbn') return `ISBN: ${html}
` if (this.matchKey === 'asin') return `ASIN: ${html}
` diff --git a/server/objects/metadata/BookMetadata.js b/server/objects/metadata/BookMetadata.js index 6bd39827..a924c3c0 100644 --- a/server/objects/metadata/BookMetadata.js +++ b/server/objects/metadata/BookMetadata.js @@ -411,7 +411,7 @@ class BookMetadata { return this.narrators.filter(n => cleanStringForSearch(n).includes(query)) } searchQuery(query) { // Returns key if match is found - const keysToCheck = ['title', 'asin', 'isbn'] + const keysToCheck = ['title', 'asin', 'isbn', 'subtitle'] for (const key of keysToCheck) { if (this[key] && cleanStringForSearch(String(this[key])).includes(query)) { return {