fix #5542: display Primary badge on Download button component for pri…#5551
fix #5542: display Primary badge on Download button component for pri…#5551guillermo-escire wants to merge 2 commits intoDSpace:mainfrom
Conversation
…or primary bitstream
|
@guillermo-escire thanks for the quick work on this! @FrancescoMolinaro given your familiarity with this component from the original port, would you be comfortable giving this a review if you have time? Thank you! |
|
Hi @guillermo-escire , many thanks for your work on this, I tested the improvment and it works as expected, the only thing I am not convinced about is the positioning of the badge, the template is currently divided in three columns and I think would be best to keep the badge in one of the columns, without stretching them, something like:
In this way we would have more space for the metadata information to be desplayed entirely. |
|
Hi @FrancescoMolinaro, thanks for the feedback! I've updated the badge positioning to keep it within the right column, below the Download button, as you suggested. This avoids stretching the layout and keeps the metadata column with enough space. Please let me know if this looks good to you! |

References
Description
Adds the "Primary" badge to the Download button component so users can identify the primary bitstream on the item page when showDownloadLinkAsAttachment is enabled.
Instructions for Reviewers
List of changes in this PR:
How to test:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.