Skip to content

Embargo Access Status Badge does not render on item pages on refresh #4811

@AbhinavS96

Description

@AbhinavS96

Describe the bug

On DSpace 9, Embargo status badge for bitstreams are visible only when navigating to item pages. If the page is refreshed or if a user directly lands on an item page, then they are not rendered.

To Reproduce

Steps to reproduce the behavior:

  1. Enable the config property item.bitstream.showAccessStatuses
  2. Make an item with at least one embargoed item
  3. Navigate to the item page and verify that the embargo badge shows up
  4. Refresh the page and the badge would now disappear

Expected behavior

The badge should be rendered at all times, if there is an embargo in place

Related work

This is caused by reassigning accessStatus$ inside a subscription in AccessStatusBadgeComponent#handleBitstream(). I will write a fix for this.

Metadata

Metadata

Assignees

Labels

affects: 9.xIssue impacts 9.x releasesaffects: mainIssue impacts "main" (latest release).bugclaimed: AtmireAtmire team is working on this issue & will contribute backcomponent: Item(Archived) Item display or editing

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions