Skip to content

Conversation

@amgciadev
Copy link
Contributor

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!

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using yarn lint
  • My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • If my PR fixes an issue ticket, I've linked them together.

Fix initialOperations typo and return ops with register doi op
@tdonohue tdonohue added bug identifiers: DOIs 1 APPROVAL pull request only requires a single approval to merge component: Item (Archived) Item display or editing port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release labels Jan 23, 2024
@tdonohue tdonohue added this to the 8.0 milestone Jan 23, 2024
@kshepherd kshepherd self-requested a review January 23, 2024 23:46
Copy link
Member

@kshepherd kshepherd left a 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.

  1. If enabled or commented out inidentifiers.cfg, the button shows (and whether or not the button itself is 'enabled' depends on whether a DOI exists, filtering, etc)
  2. 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.

@amgciadev
Copy link
Contributor Author

@kshepherd thanks for reviewing! Yes of course, no problem with your addition at all +1

Copy link
Member

@tdonohue tdonohue left a 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.

@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-7_x:

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Feb 7, 2024
@amgciadev amgciadev deleted the fix-2765-b branch September 11, 2024 14:29
4science-it pushed a commit to 4Science/dspace-angular that referenced this pull request Mar 3, 2025
[DSC-2163] add page reload after import - cherry-picked from [CST-18837]

Approved-by: Andrea Barbasso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 APPROVAL pull request only requires a single approval to merge bug component: Item (Archived) Item display or editing identifiers: DOIs

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Register DOI button is no longer available in Edit item > Status despite configuration enabled

4 participants