diff --git a/prisma/prisma-cloud/blocks/search-bar/search-bar.js b/prisma/prisma-cloud/blocks/search-bar/search-bar.js index f9c8bfe..1a9a316 100644 --- a/prisma/prisma-cloud/blocks/search-bar/search-bar.js +++ b/prisma/prisma-cloud/blocks/search-bar/search-bar.js @@ -75,7 +75,7 @@ export class SearchBar extends HTMLElement { init() { const booknameMeta = getMetadata('book-name'); - const productMeta = getMetadata('product'); + const productMeta = getMetadata('docset-title'); const docsetMeta = getMetadata('docset-id'); const appendDropdown = this.querySelector('.dropdown-content'); @@ -105,11 +105,11 @@ export class SearchBar extends HTMLElement { if (!booknameMeta) { this.querySelector('.coveo-dropdown-item.selected').classList.remove('selected'); docSetOption.classList.add('selected'); - this.querySelector('.dropbtn').textContent = `All ${productMeta} books`; + this.querySelector('.dropbtn').textContent = `All ${productMeta} Books`; } - docSetOption.setAttribute('data-label', `All ${productMeta} books`); + docSetOption.setAttribute('data-label', `All ${productMeta} Books`); docSetOption.setAttribute('data-value', `@td_docsetid==("${docsetMeta}")`); - docSetOption.append(`All ${productMeta} books`); + docSetOption.append(`All ${productMeta} Books`); appendDropdown.prepend(docSetOption); } if (booknameMeta) {