Skip to content

ZCU-PUB/Enable per-bitstream embargo badge (item.bitstream.showAccessStatuses) - #1403

Merged
milanmajchrak merged 2 commits into
customer/zcu-pubfrom
zcu-pub/enable-bitstream-embargo-badge
Jul 23, 2026
Merged

ZCU-PUB/Enable per-bitstream embargo badge (item.bitstream.showAccessStatuses)#1403
milanmajchrak merged 2 commits into
customer/zcu-pubfrom
zcu-pub/enable-bitstream-embargo-badge

Conversation

@Kasinhou

Copy link
Copy Markdown

What

Enables the per-bitstream embargo-date badge in the Item View by setting item.bitstream.showAccessStatuses: true in config/config.yml.

Why

The badge (dspace-customers#823, FE #1378 + #1390) is gated behind this flag, which defaults to false in default-app-config.ts. On the dev instance the flag is off, so the badge never renders even though the frontend build and the backend accessStatus endpoint (#1377) are already deployed. Verified live: GET /server/api/core/bitstreams/{uuid}/accessStatus returns {status, embargoDate}, while /assets/config.json shows the flag false.

Notes

  • config.yml is the base config (merged before config.prod.yml), so this takes effect on redeploy unless the deployment's mounted config.prod.yml or a DSPACE_ITEM_BITSTREAM_SHOWACCESSSTATUSES env var overrides it. Verify after deploy at /assets/config.json.
  • Config is regenerated at UI startup, so a redeploy/restart of the dspace-angular container is required (no rebuild needed).
  • Sibling flag item.showAccessStatuses (item-level badge) is intentionally left at its default.

🤖 Generated with Claude Code

Matus Kasak and others added 2 commits July 23, 2026 14:09
…Statuses)

The embargo-date badge (dspace-customers#823, FE #1378/#1390) is gated behind
item.bitstream.showAccessStatuses, which defaults to false in
default-app-config.ts. Set it to true in config.yml so the badge renders on
redeploy. Safe now that the backend accessStatus endpoint is deployed for
zcu-pub (DSpace#1377); the frontend fails closed without it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Kasinhou Kasinhou self-assigned this Jul 23, 2026
@Kasinhou
Kasinhou requested a review from milanmajchrak July 23, 2026 12:39
@milanmajchrak
milanmajchrak merged commit c455695 into customer/zcu-pub Jul 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants