diff --git a/src/app/core/browse/browse.service.ts b/src/app/core/browse/browse.service.ts index 9293343c249521f0b6b1c92f96a68b1a1a438e2e..8e2c288ae895305cd738297e10615ba5666aeb80 100644 --- a/src/app/core/browse/browse.service.ts +++ b/src/app/core/browse/browse.service.ts @@ -149,6 +149,7 @@ export class BrowseService { getBrowseItemsFor(definitionID: string, filterValue: string, options: { pagination?: PaginationComponentOptions; sort?: SortOptions; + scope?: string; } = {}): Observable<RemoteData<PaginatedList<Item>>> { const request$ = this.getBrowseDefinitions().pipe( getBrowseDefinitionLinks(definitionID), @@ -157,6 +158,9 @@ export class BrowseService { hasValueOperator(), map((href: string) => { const args = []; + if (isNotEmpty(options.sort)) { + args.push(`scope=${options.scope}`); + } if (isNotEmpty(options.sort)) { args.push(`sort=${options.sort.field},${options.sort.direction}`); } diff --git a/src/app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component.html b/src/app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component.html index 198e79b4533c67d84eb86d66a18698a16f5c0f99..6139e4a9df84b497cd360548f639e3eb1a49d3eb 100644 --- a/src/app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component.html +++ b/src/app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component.html @@ -1,5 +1,5 @@ <div class="d-flex flex-row"> - <a [routerLink]="" [queryParams]="{value: object.value}" class="lead"> + <a [routerLink]="" [queryParams]="{value: object.value}" [queryParamsHandling]="'merge'" class="lead"> {{object.value}} </a> <span class="pr-2"> </span>