Problem in getting Access Status Badge in Untyped Item Page

44 views
Skip to first unread message

sanjib modak

unread,
Jul 11, 2024, 7:56:23 AM7/11/24
to DSpace Technical Support
Hello, Dspace community; I am Using the Dspace 8 current version, trying to show the Access Status Badge on the simple item page. My approach is like this, I added this '<ds-access-status-badge [object]="object"></ds-access-status-badge>' or '<ds-access-status-badge #accessStatusBadge [object]="object"></ds-access-status-badge>' in Untyped-item.component.html file, and imported ThemedAccessStatusBadgeComponent, AccessStatusBadgeComponent classes in untyped-item.component.ts file. But no Access Status Badge is showing up on the untyped item page. I am getting errors in the console saying this...

ERROR TypeError: Cannot assign to read only property 'accessStatus' of object '[object Object]'
    at AccessStatusBadgeComponent.ngOnInit (access-status-badge.component.ts:75:24)
    at callHookInternal (core.mjs:5136:14)
    at callHook (core.mjs:5163:13)
    at callHooks (core.mjs:5118:17)
    at executeInitAndCheckHooks (core.mjs:5068:9)
    at refreshView (core.mjs:12806:21)
    at detectChangesInView$1 (core.mjs:13015:9)
    at detectChangesInViewIfAttached (core.mjs:12978:5)
    at detectChangesInEmbeddedViews (core.mjs:12935:13)
    at refreshView (core.mjs:12815:9)



Is there anyone who can guide me through this problem for version 8? Earlier in version 7.6, this used to work in untyped-item.component.html '<ds-themed-access-status-badge #accessStatusBadge [object]="object"></ds-themed-access-status-badge>'.
Reply all
Reply to author
Forward
0 new messages