From 2357b57eb7ae01047740efed12bb842094d470bd Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 15 Feb 2024 09:49:43 +0100 Subject: [PATCH] Maybe IT will be passed with vanilla search component --- src/app/shared/search/themed-search.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/shared/search/themed-search.component.ts b/src/app/shared/search/themed-search.component.ts index 206e713405e..02550c21efa 100644 --- a/src/app/shared/search/themed-search.component.ts +++ b/src/app/shared/search/themed-search.component.ts @@ -1,5 +1,6 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; import { ThemedComponent } from '../theme-support/themed.component'; +import { SearchComponent } from './search.component'; import { SearchConfigurationOption } from './search-switch-configuration/search-configuration-option.model'; import { Context } from '../../core/shared/context.model'; import { CollectionElementLinkType } from '../object-collection/collection-element-link.type'; @@ -8,7 +9,6 @@ import { ViewMode } from '../../core/shared/view-mode.model'; import { SearchObjects } from './models/search-objects.model'; import { DSpaceObject } from '../../core/shared/dspace-object.model'; import { ListableObject } from '../object-collection/shared/listable-object.model'; -import { ClarinSearchComponent } from './clarin-search/clarin-search.component'; /** * Themed wrapper for {@link SearchComponent} @@ -18,8 +18,8 @@ import { ClarinSearchComponent } from './clarin-search/clarin-search.component'; styleUrls: [], templateUrl: '../theme-support/themed.component.html', }) -export class ThemedSearchComponent extends ThemedComponent { - protected inAndOutputNames: (keyof ClarinSearchComponent & keyof this)[] = ['configurationList', 'context', 'configuration', 'fixedFilterQuery', 'useCachedVersionIfAvailable', 'inPlaceSearch', 'linkType', 'paginationId', 'searchEnabled', 'sideBarWidth', 'searchFormPlaceholder', 'selectable', 'selectionConfig', 'showCsvExport', 'showSidebar', 'showThumbnails', 'showViewModes', 'useUniquePageId', 'viewModeList', 'showScopeSelector', 'resultFound', 'deselectObject', 'selectObject', 'trackStatistics', 'query']; +export class ThemedSearchComponent extends ThemedComponent { + protected inAndOutputNames: (keyof SearchComponent & keyof this)[] = ['configurationList', 'context', 'configuration', 'fixedFilterQuery', 'useCachedVersionIfAvailable', 'inPlaceSearch', 'linkType', 'paginationId', 'searchEnabled', 'sideBarWidth', 'searchFormPlaceholder', 'selectable', 'selectionConfig', 'showCsvExport', 'showSidebar', 'showThumbnails', 'showViewModes', 'useUniquePageId', 'viewModeList', 'showScopeSelector', 'resultFound', 'deselectObject', 'selectObject', 'trackStatistics', 'query']; @Input() configurationList: SearchConfigurationOption[]; @@ -72,14 +72,14 @@ export class ThemedSearchComponent extends ThemedComponent = new EventEmitter(); protected getComponentName(): string { - return 'ClarinSearchComponent'; + return 'SearchComponent'; } protected importThemedComponent(themeName: string): Promise { - return import(`../../../themes/${themeName}/app/shared/search/search.component`); + return import(`../../../themes/${themeName}/app/shared/search/clarin-search/search.component`); } protected importUnthemedComponent(): Promise { - return import('./clarin-search/clarin-search.component'); + return import('./search.component'); } }