From 80709aa3924a062dcbcfa600f89c33544cc67f2a Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 22 Aug 2024 19:07:01 +0200 Subject: [PATCH 1/2] [DSC-1889] Disable use of cache when retrieving item in the resolver --- src/app/item-page/item.resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/item-page/item.resolver.ts b/src/app/item-page/item.resolver.ts index ef2a197c10d..283230d6168 100644 --- a/src/app/item-page/item.resolver.ts +++ b/src/app/item-page/item.resolver.ts @@ -45,7 +45,7 @@ export class ItemResolver implements Resolve> { */ resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable> { const itemRD$ = this.itemService.findById(route.params.id, - true, + false, false, ...ITEM_PAGE_LINKS_TO_FOLLOW ).pipe( From 9fe1e8fb81c74230b6e2615532f4fc2ef4be4078 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 22 Aug 2024 19:07:52 +0200 Subject: [PATCH 2/2] [DSC-1889] Include bundles and bitstream when retrieving the item --- src/app/item-page/item.resolver.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/item-page/item.resolver.ts b/src/app/item-page/item.resolver.ts index 283230d6168..2f99dcecdd2 100644 --- a/src/app/item-page/item.resolver.ts +++ b/src/app/item-page/item.resolver.ts @@ -20,6 +20,7 @@ export const ITEM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig[] = [ ), followLink('relationships'), followLink('version', {}, followLink('versionhistory')), + followLink('bundles', {}, followLink('bitstreams')), followLink('thumbnail'), followLink('metrics') ];