Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Port for Fixed search mechanism with category to master #27708

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/sphinx_setup/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ document.addEventListener('DOMContentLoaded', function () {
element.innerHTML = element.innerHTML.replace('search.html', `/${version}/search.html#f-ovversion=${version}`);
}

// preProd = "intelcorporationnonproduction2ybdyblf7"
// prod = "intelcorporationproductione78n25s6"
await element.initialize({
accessToken: "xx1f2aebd3-4307-4632-aeea-17c13378b237",
organizationId: "intelcorporationproductione78n25s6"
Expand Down
34 changes: 16 additions & 18 deletions docs/sphinx_setup/_templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,29 @@

{% block body %}
<atomic-search-interface id="search" localization-compatibility-version="v4"
fields-to-include='["ovversion", "ovdoctype", "ovversioncategory", "filetype", "date", "source", "author", "sourcetype", "language", "description"]'>
fields-to-include='["ovversion", "ovcategory", "filetype", "date", "source", "author", "sourcetype", "language", "description"]'>
<atomic-search-layout>
<atomic-layout-section section="search">
<atomic-search-box>
<atomic-search-box-query-suggestions></atomic-search-box-query-suggestions>
</atomic-search-box>
</atomic-layout-section>
<atomic-layout-section section="facets">
<div class="view-selector-container">
<button id="view-selector-grid" class="view-selector">
<i class="fas fa-th"></i> Grid
</button>
<button id="view-selector-list" class="view-selector">
<i class="fas fa-list"></i> List
</button>
</div>
<atomic-facet
facet-id="ovversion" field="ovversion" label="Version">
</atomic-facet>
<!-- <atomic-category-facet
field="ovversioncategory" label="Categories"
sort-criteria="occurrences"
delimiting-character="/">
</atomic-category-facet> -->
<atomic-facet facet-id="ovdoctype" field="ovdoctype" label="Category" with-search="true"></atomic-facet>
<atomic-facet-manager>
<div class="view-selector-container">
<button id="view-selector-grid" class="view-selector">
<i class="fas fa-th"></i> Grid
</button>
<button id="view-selector-list" class="view-selector">
<i class="fas fa-list"></i> List
</button>
</div>
<atomic-category-facet facet-id="ovcategory" field="ovcategory" label="Category" depends-on-ovversion
sort-criteria="occurrences" number-of-values="4" with-search="true" delimiting-character="|">
</atomic-category-facet>
<atomic-facet facet-id="ovversion" field="ovversion" label="Version" sort-criteria="occurrences">
</atomic-facet>
</atomic-facet-manager>
</atomic-layout-section>
<atomic-layout-section section="main">
<atomic-layout-section section="status">
Expand Down
Loading