Skip to content

Commit

Permalink
[DSC-1974] Use preventMetadataSecurity projection for collection rece…
Browse files Browse the repository at this point in the history
…nt submissions
  • Loading branch information
atarix83 committed Nov 5, 2024
1 parent c5a8133 commit 640bf63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/collection-page/collection-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class CollectionPageComponent implements OnInit {
pagination: currentPagination,
sort: currentSort,
dsoTypes: [DSpaceObjectType.ITEM],
forcedEmbeddedKeys: ['metrics']
forcedEmbeddedKeys: ['metrics'],
projection: 'preventMetadataSecurity'
}), null, true, true, ...BROWSE_LINKS_TO_FOLLOW)
.pipe(toDSpaceObjectListRD()) as Observable<RemoteData<PaginatedList<Item>>>;
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ export class PaginatedSearchOptions extends SearchOptions {
sort?: SortOptions;
forcedEmbeddedKeys?: string[];

constructor(options: {configuration?: string, scope?: string, query?: string, dsoTypes?: DSpaceObjectType[], filters?: SearchFilter[], fixedFilter?: any, pagination?: PaginationComponentOptions, sort?: SortOptions, view?: ViewMode, forcedEmbeddedKeys?: string[]}) {
constructor(options: {configuration?: string, scope?: string, query?: string, dsoTypes?: DSpaceObjectType[], filters?: SearchFilter[], fixedFilter?: any, pagination?: PaginationComponentOptions, sort?: SortOptions, view?: ViewMode, forcedEmbeddedKeys?: string[], projection?: string}) {
super(options);
this.pagination = options.pagination;
this.sort = options.sort;
this.view = options.view;
this.forcedEmbeddedKeys = options.forcedEmbeddedKeys;
this.projection = options.projection; // optional projection parameter for the search results
}

/**
Expand Down

0 comments on commit 640bf63

Please sign in to comment.