Repository navigation
Conversation
…#888) UoE/fix(bitstreams): offer CC-LICENSE when adding a bitstream (DSpace#888) (cherry picked from commit ba52cb6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
backup/datashare-8_x-2026-08-10.Description
Curators could not add a CC licence to an item by hand: the Upload bitstream page did not offer a
CC-LICENSEbundle. This addsCC-LICENSEto the defaultbundle.standardBundles.Instructions for Reviewers
List of changes in this PR:
src/config/default-app-config.ts:standardBundlesis now['ORIGINAL', 'THUMBNAIL', 'LICENSE', 'CC-LICENSE'].config/config.example.yml: same list, kept in sync.default-app-config.spec.ts, andupload-bitstream.component.spec.tschecks thatCC-LICENSEis offered with and without existing bundles.How to test:
Deployment note:
mergeConfigreplaces arrays as a whole. If the liveconfig.prod.ymlsetsbundle.standardBundles, that list wins and needsCC-LICENSEtoo.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 aCC-LICENSEbundle, 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).