sanjib modak
unread,Jul 11, 2024, 7:56:23 AM7/11/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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>'.