mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
#150 Remove incorrectly referencing searchOptions
This commit is contained in:
@@ -100,7 +100,7 @@ export class SearchService implements OnDestroy {
|
||||
}
|
||||
|
||||
search(query: string, scopeId?: string, searchOptions?: SearchOptions): Observable<RemoteData<Array<SearchResult<DSpaceObject>>>> {
|
||||
this.searchOptions = this.searchOptions;
|
||||
this.searchOptions = searchOptions;
|
||||
let self = `https://dspace7.4science.it/dspace-spring-rest/api/search?query=${query}`;
|
||||
if (hasValue(scopeId)) {
|
||||
self += `&scope=${scopeId}`;
|
||||
@@ -124,7 +124,7 @@ export class SearchService implements OnDestroy {
|
||||
|
||||
if (isNotEmpty(searchOptions)) {
|
||||
returningPageInfo.elementsPerPage = searchOptions.pagination.pageSize;
|
||||
returningPageInfo.currentPage = searchOptions.pagination.currentPage;
|
||||
returningPageInfo.currentPage = searchOptions.pagination.currentPage;
|
||||
} else {
|
||||
returningPageInfo.elementsPerPage = 10;
|
||||
returningPageInfo.currentPage = 1;
|
||||
|
Reference in New Issue
Block a user