mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Manual fix: update i/o for ThemedConfigurationSearchPageComponent
Fixes compile-time errors due to out-of-sync inputs and outputs between ThemedConfigurationSearchPageComponent and SearchComponent (note that this is was an existing problem in the source code that flew under the radar until we flipped the selector convention!)
This commit is contained in:
@@ -2,9 +2,12 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
Input,
|
Input,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { Observable } from 'rxjs';
|
|
||||||
|
|
||||||
import { Context } from '../core/shared/context.model';
|
import { Context } from '../core/shared/context.model';
|
||||||
|
import { ViewMode } from '../core/shared/view-mode.model';
|
||||||
|
import { CollectionElementLinkType } from '../shared/object-collection/collection-element-link.type';
|
||||||
|
import { SelectionConfig } from '../shared/search/search-results/search-results.component';
|
||||||
|
import { SearchConfigurationOption } from '../shared/search/search-switch-configuration/search-configuration-option.model';
|
||||||
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
||||||
import { ConfigurationSearchPageComponent } from './configuration-search-page.component';
|
import { ConfigurationSearchPageComponent } from './configuration-search-page.component';
|
||||||
|
|
||||||
@@ -20,10 +23,21 @@ import { ConfigurationSearchPageComponent } from './configuration-search-page.co
|
|||||||
})
|
})
|
||||||
export class ThemedConfigurationSearchPageComponent extends ThemedComponent<ConfigurationSearchPageComponent> {
|
export class ThemedConfigurationSearchPageComponent extends ThemedComponent<ConfigurationSearchPageComponent> {
|
||||||
/**
|
/**
|
||||||
* The configuration to use for the search options
|
* The list of available configuration options
|
||||||
* If empty, the configuration will be determined by the route parameter called 'configuration'
|
|
||||||
*/
|
*/
|
||||||
@Input() configuration: string;
|
@Input() configurationList: SearchConfigurationOption[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current context
|
||||||
|
* If empty, 'search' is used
|
||||||
|
*/
|
||||||
|
@Input() context: Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The configuration to use for the search options
|
||||||
|
* If empty, 'default' is used
|
||||||
|
*/
|
||||||
|
@Input() configuration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The actual query for the fixed filter.
|
* The actual query for the fixed filter.
|
||||||
@@ -31,33 +45,106 @@ export class ThemedConfigurationSearchPageComponent extends ThemedComponent<Conf
|
|||||||
*/
|
*/
|
||||||
@Input() fixedFilterQuery: string;
|
@Input() fixedFilterQuery: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If this is true, the request will only be sent if there's
|
||||||
|
* no valid cached version. Defaults to true
|
||||||
|
*/
|
||||||
|
@Input() useCachedVersionIfAvailable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* True when the search component should show results on the current page
|
* True when the search component should show results on the current page
|
||||||
*/
|
*/
|
||||||
@Input() inPlaceSearch: boolean;
|
@Input() inPlaceSearch;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The link type of the listed search results
|
||||||
|
*/
|
||||||
|
@Input() linkType: CollectionElementLinkType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The pagination id used in the search
|
||||||
|
*/
|
||||||
|
@Input() paginationId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the search bar should be visible
|
* Whether or not the search bar should be visible
|
||||||
*/
|
*/
|
||||||
@Input() searchEnabled: boolean;
|
@Input() searchEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The width of the sidebar (bootstrap columns)
|
* The width of the sidebar (bootstrap columns)
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input() sideBarWidth;
|
||||||
sideBarWidth: number;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The currently applied configuration (determines title of search)
|
* The placeholder of the search form input
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input() searchFormPlaceholder;
|
||||||
configuration$: Observable<string>;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current context
|
* A boolean representing if result entries are selectable
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input() selectable;
|
||||||
context: Context;
|
|
||||||
|
/**
|
||||||
|
* The config option used for selection functionality
|
||||||
|
*/
|
||||||
|
@Input() selectionConfig: SelectionConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A boolean representing if show csv export button
|
||||||
|
*/
|
||||||
|
@Input() showCsvExport;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A boolean representing if show search sidebar button
|
||||||
|
*/
|
||||||
|
@Input() showSidebar;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to show the thumbnail preview
|
||||||
|
*/
|
||||||
|
@Input() showThumbnails;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to show the view mode switch
|
||||||
|
*/
|
||||||
|
@Input() showViewModes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of available view mode
|
||||||
|
*/
|
||||||
|
@Input() useUniquePageId: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of available view mode
|
||||||
|
*/
|
||||||
|
@Input() viewModeList: ViewMode[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines whether or not to show the scope selector
|
||||||
|
*/
|
||||||
|
@Input() showScopeSelector;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not to track search statistics by sending updates to the rest api
|
||||||
|
*/
|
||||||
|
@Input() trackStatistics;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default value for the search query when none is already defined in the {@link SearchConfigurationService}
|
||||||
|
*/
|
||||||
|
@Input() query: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The fallback scope when no scope is defined in the url, if this is also undefined no scope will be set
|
||||||
|
*/
|
||||||
|
@Input() scope: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides the scope in the url, this can be useful when you hardcode the scope in another way
|
||||||
|
*/
|
||||||
|
@Input() hideScopeInUrl: boolean;
|
||||||
|
|
||||||
protected inAndOutputNames: (keyof ConfigurationSearchPageComponent & keyof this)[] =
|
protected inAndOutputNames: (keyof ConfigurationSearchPageComponent & keyof this)[] =
|
||||||
['context', 'configuration', 'fixedFilterQuery', 'inPlaceSearch', 'searchEnabled', 'sideBarWidth'];
|
['context', 'configuration', 'fixedFilterQuery', 'inPlaceSearch', 'searchEnabled', 'sideBarWidth'];
|
||||||
|
Reference in New Issue
Block a user