From 92cb99c49f69bc98312b4bfc87c40b96536fafe4 Mon Sep 17 00:00:00 2001 From: Afzal84 Date: Thu, 22 Aug 2024 18:29:19 +0530 Subject: [PATCH 1/2] Fixed:- fixed CIOS content search Issue with and without blended program filter --- .../search-v2/routes/learn-search/learn-search.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/ws/app/src/lib/routes/search-v2/routes/learn-search/learn-search.component.ts b/project/ws/app/src/lib/routes/search-v2/routes/learn-search/learn-search.component.ts index d7ac55340b..c9dc79fb26 100644 --- a/project/ws/app/src/lib/routes/search-v2/routes/learn-search/learn-search.component.ts +++ b/project/ws/app/src/lib/routes/search-v2/routes/learn-search/learn-search.component.ts @@ -241,6 +241,7 @@ export class LearnSearchComponent implements OnInit, OnChanges, OnDestroy { } applyFilter(filter: any) { + // debugger // let isFilterCheccked = false let isModeratedFilterChecked = false if (filter && filter.length > 0) { @@ -411,11 +412,14 @@ export class LearnSearchComponent implements OnInit, OnChanges, OnDestroy { } this.extSearchRequestObject.searchString = data.request.query const resExtSearch = await this.searchSrvc.fetchSearchDataforCios(this.extSearchRequestObject).toPromise().catch(_error => {}) + const checkQuey: any = this.activated.queryParams + if ((this.myFilters && this.myFilters.length === 0) && (checkQuey && checkQuey._value && checkQuey._value.q)) { if (resExtSearch && resExtSearch.data && resExtSearch.data.length > 0) { resExtSearch.data.forEach((ele: any) => { this.searchResults.unshift(ele) }) } + } this.totalResults = (response.result.count) ? response.result.count : this.searchResults.length // this.facets = response.result.facets this.primaryCategoryType = [] From a8f8bad35473baa158d2957daa602e7c03ff9374 Mon Sep 17 00:00:00 2001 From: Afzal84 Date: Thu, 22 Aug 2024 18:37:39 +0530 Subject: [PATCH 2/2] Fixed:- lint error --- project/ws/viewer/src/lib/plugins/html/html.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ws/viewer/src/lib/plugins/html/html.component.ts b/project/ws/viewer/src/lib/plugins/html/html.component.ts index 953d75e9e8..b07e0b3530 100755 --- a/project/ws/viewer/src/lib/plugins/html/html.component.ts +++ b/project/ws/viewer/src/lib/plugins/html/html.component.ts @@ -344,7 +344,7 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy { // a.click() // URL.revokeObjectURL(objectUrl) // }) - if (this.htmlContent && + if (this.htmlContent && this.htmlContent.mimeType !== 'text/x-url' && this.htmlContent.mimeType !== 'video/x-youtube') { // if (this.htmlContent.status === 'Live') {