Skip to content
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

Product entity in Orcid push #428

Closed

Conversation

floriangantner
Copy link

@floriangantner floriangantner commented Feb 21, 2024

References

Description

Support for Orcid Push of Product Entity. Allow construction of orcid work object from product entity and support for sync-mode setting change for product entity.

Instructions for Reviewers

List of changes in this PR:

  • new metadata field to hold the sync setting for product dspace.orcid.sync-products

  • new OrcidEntityType Product and corresponding Factory OrcidProductWorkFactory creating orcid Work objects based on Product entity.

  • new OrcidProductWorkFieldMapping to use some entity-specific mapping (fields might differ from publication)

  • simple Mapping dspace product to orcid types

    • might be improved and double checked
    • default worktype for products is data-set
  • extended profile orcid sync preferences operation to support the change of the sync settings for the corresponding profile

  • Tests: copied and aligned tests for creation of the orcid work objects for Product entity

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 & integration tests). Exceptions may be made if previously agreed upon.
  • My PR passes Checkstyle validation based on the Code Style Guide.
  • My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
  • My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR modifies REST API endpoints, I've opened a separate REST Contract PR related to this change.
  • If my PR includes new configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

allow construction of orcid work object from product entity and support for sync-mode setting change for product entitiy.
Copy link
Member

@abollini abollini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @floriangantner for this contribution. The code looks good I have just minor comments inline, can you check?
are you willing to perform the same change also to add support for patent?

@floriangantner
Copy link
Author

thanks @floriangantner for this contribution. The code looks good I have just minor comments inline, can you check? are you willing to perform the same change also to add support for patent?

I've checked the comments. Support for patent will soon come in some own PR.

This was referenced Feb 27, 2024
@olli-gold
Copy link

I can confirm, that we have integrated this PR into our production system already and it's working fine. So I guess it should be easily mergable. TORE is on version 2023.02.02.

@floriangantner
Copy link
Author

Orcid push for product has become part of the 2023.02.03 release, thus closing the issue

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.

ORCID Push Queue does not support Products (Research Data)
3 participants