DS-8408 - lint errors

This commit is contained in:
aroman-arvo
2023-02-13 12:22:07 +01:00
parent b015f682b4
commit e2668cdf97
4 changed files with 6 additions and 6 deletions

View File

@@ -228,7 +228,7 @@ export class DSOSelectorComponent implements OnInit, OnDestroy {
*/ */
search(query: string, page: number, useCache: boolean = true): Observable<RemoteData<PaginatedList<SearchResult<DSpaceObject>>>> { search(query: string, page: number, useCache: boolean = true): Observable<RemoteData<PaginatedList<SearchResult<DSpaceObject>>>> {
// default sort is only used when there is not query // default sort is only used when there is not query
var efectiveSort=query?null:this.sort; var efectiveSort=query ? null : this.sort;
return this.searchService.search( return this.searchService.search(
new PaginatedSearchOptions({ new PaginatedSearchOptions({
query: query, query: query,

View File

@@ -425,7 +425,7 @@ export class DefaultAppConfig implements AppConfig {
// Configuration that determines the metadata sorting of community and collection edition and creation when there are not a search query. // Configuration that determines the metadata sorting of community and collection edition and creation when there are not a search query.
collectionSelectionSort: DiscoverySortConfig = { collectionSelectionSort: DiscoverySortConfig = {
sortMetadata:"dc.title", sortMetadata:'dc.title',
sortDirection:"ASC", sortDirection:'ASC',
}; };
} }

View File

@@ -1,7 +1,7 @@
import { Config } from './config.interface'; import { Config } from './config.interface';
/** /**
* Config that determines a metadata sorting config. * Config that determines a metadata sorting config.
* It's created mainly to sort by metadata community and collection edition and creation * It's created mainly to sort by metadata community and collection edition and creation
*/ */
export class DiscoverySortConfig implements Config { export class DiscoverySortConfig implements Config {

View File

@@ -298,8 +298,8 @@ export const environment: BuildConfig = {
mathjax: false, mathjax: false,
}, },
collectionSelectionSort: { collectionSelectionSort: {
sortMetadata:"dc.title", sortMetadata:'dc.title',
sortDirection:"ASC", sortDirection:'ASC',
}, },
vocabularies: [ vocabularies: [