Skip to content

UoE/fix(bitstreams): offer CC-LICENSE when adding a bitstream (#888) - #36

Closed
xlukacm wants to merge 1 commit into
datashare-UoEMainLibrary-dspace-8_xfrom
uoe/888-cc-license-standard-bundles
Closed

xlukacm wants to merge 1 commit into
datashare-UoEMainLibrary-dspace-8_xfrom
uoe/888-cc-license-standard-bundles

Conversation

@xlukacm

@xlukacm xlukacm commented Nov 30, 2026

Copy link
Copy Markdown

References

Description

Curators could not add a CC licence to an item by hand: the Upload bitstream page did not offer a CC-LICENSE bundle. This adds CC-LICENSE to the default bundle.standardBundles.

Instructions for Reviewers

List of changes in this PR:

  • src/config/default-app-config.ts: standardBundles is now ['ORIGINAL', 'THUMBNAIL', 'LICENSE', 'CC-LICENSE'].
  • config/config.example.yml: same list, kept in sync.
  • Specs: new default-app-config.spec.ts, and upload-bitstream.component.spec.ts checks that CC-LICENSE is offered with and without existing bundles.

How to test:

  1. Open an item, go to Edit item > Bitstreams > Upload.
  2. The bundle dropdown lists ORIGINAL, THUMBNAIL, LICENSE and CC-LICENSE.

Deployment note: mergeConfig replaces arrays as a whole. If the live config.prod.yml sets bundle.standardBundles, that list wins and needs CC-LICENSE too.

A CC licence added by hand this way differs from one created by submission or batch import: the bitstream keeps the uploaded file name instead of license_text. If the item already has a CC-LICENSE bundle, the upload adds a second bitstream, which the DataShare theme does not show.

Tests: the original change was verified on 8.3 in #35 (Karma, Cypress). On this 8.5 branch, it relies on the Build workflow (lint, circular-deps, build:prod, test:headless).

…#888)

UoE/fix(bitstreams): offer CC-LICENSE when adding a bitstream (DSpace#888)

(cherry picked from commit ba52cb6)
@xlukacm xlukacm closed this Nov 30, 2026
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