-
Notifications
You must be signed in to change notification settings - Fork 504
Fix missing Register DOI button if configuration enabled #2766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix initialOperations typo and return ops with register doi op
kshepherd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @amgciadev , thanks for this fix and my apologies for the delay in reviewing it.
I have tested and it works well overall, though I noted that the default/false behaviour on the handling of the 'button enabled' config property meant that instead of hiding the button as intended, it displays but disables the button.
I made a small change and pushed it to your PR branch to quickly sort that out.
- If enabled or commented out in
identifiers.cfg, the button shows (and whether or not the button itself is 'enabled' depends on whether a DOI exists, filtering, etc) - If disabled or commented out in
identifiers.cfg, the button does not show
I hope you agree with this small tweak - I will hold off merging for now. I'm confident but it would be great to get your +1.
I also opened a related PR DSpace/DSpace#9309 to update identifiers.cfg now that the enabled property can safely be commented out.
|
@kshepherd thanks for reviewing! Yes of course, no problem with your addition at all +1 |
tdonohue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @amgciadev ! This looks good to me to. Gave it a light test to verify it works with the small backend PR from @kshepherd: DSpace/DSpace#9309 . They both work well.
|
Successfully created backport PR for |
[DSC-2163] add page reload after import - cherry-picked from [CST-18837] Approved-by: Andrea Barbasso
Fix for missing Register DOI button under Edit Item > Status tab
References
Add references/links to any related issues or PRs. These may include:
Description
Fix initialOperations variable typo and return ops array with register-doi op successfully added is the register doi configuration is enabled
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lintyarn check-circ-deps)