From a218c16f51a1ee9991ea38b248318fb9599583a2 Mon Sep 17 00:00:00 2001 From: Matus Kasak Date: Fri, 7 Aug 2026 11:25:25 +0200 Subject: [PATCH 1/2] JCU/feat(item-page): show the embargo label on files in the Item View The per-file access-status label ("Embargo until ") is gated behind item.bitstream.showAccessStatuses, which defaults to false in default-app-config.ts. JCU's config.yml never set it, so an anonymous visitor looking at an embargoed file only got the lock icon and no reason for it. The backend already serves the data (/server/api/core/bitstreams//accessStatus, BitstreamAccessStatusLinkRepository) and the frontend fails closed if it does not, so enabling the flag is enough. Co-Authored-By: Claude Opus 5 (1M context) --- config/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.yml b/config/config.yml index 22a3a3c7259..101168dfeaf 100644 --- a/config/config.yml +++ b/config/config.yml @@ -15,6 +15,14 @@ languages: label: Čeština active: true +# Item view configuration +item: + bitstream: + # Per-file access-status label in the Item View ("Embargo until "). + # Off by default in default-app-config.ts; the backend serves the data at + # /server/api/core/bitstreams//accessStatus. + showAccessStatuses: true + # Theme Config themes: # See src/themes/custom/ for the styles, header override, fonts and favicons. From f58432787ad8992c6132c6097ad1155d2684b5be Mon Sep 17 00:00:00 2001 From: Matus Kasak Date: Fri, 7 Aug 2026 12:00:23 +0200 Subject: [PATCH 2/2] JCU/feat(search): show the access-status badge in the result lists item.showAccessStatuses is the sibling flag of the one enabled in the previous commit, and it is off for the same reason - it was never set. It puts an access-status badge (Open Access / Embargo / Restricted / Metadata only) next to each item in search, browse and the recent-items list, so an embargo is visible before you open the record rather than only inside it. Same as customer/mendelu, which enables both. Co-Authored-By: Claude Opus 5 (1M context) --- config/config.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/config.yml b/config/config.yml index 101168dfeaf..3171e9bbdd5 100644 --- a/config/config.yml +++ b/config/config.yml @@ -15,12 +15,15 @@ languages: label: Čeština active: true -# Item view configuration +# Item configuration item: + # Access-status badge (Open Access / Embargo / Restricted / Metadata only) on each + # item in the result lists - search, browse and the recent-items list on the home page. + showAccessStatuses: true bitstream: # Per-file access-status label in the Item View ("Embargo until "). - # Off by default in default-app-config.ts; the backend serves the data at - # /server/api/core/bitstreams//accessStatus. + # Both are off by default in default-app-config.ts; the backend serves the data at + # /server/api/core/{items,bitstreams}//accessStatus. showAccessStatuses: true # Theme Config