mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
DS-8408 - lint errors
This commit is contained in:
@@ -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,
|
||||||
|
@@ -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',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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: [
|
||||||
|
Reference in New Issue
Block a user