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

Draft: Enhancement nameenhancer #441

Draft
wants to merge 2 commits into
base: main-cris
Choose a base branch
from

Conversation

floriangantner
Copy link

References

Add references/links to any related issues or PRs. These may include:
based on the NameEnhancer implementation of #312

Description

  • add some Enhancer which sets the dc.title based on a list of other metadatavalues (e.g. crisrp.name, crisrp.variants). This is helpful for repositories which set some displayName bases on the values and preferences of other metadatavalue

  • Known Restrictions:

    • creating new ResearcherProfiles might not work. It could be necessary to add dc.title as the last element of the metadatavalues as fallback (not tested but came in mind while writing this lines) or set the name metadata explicitly in the Researcher Profile Creation
      itemService.addMetadata(context, item, "dc", "title", null, null, fullName);
    • created Entities through cris consumer might have no title. It could be necessary to add dc.title as the last element of the metadatavalues as fallback (not tested) or change the template of the crisconsumer or add the name field for certain entity types bases on the metadata value
      Item relatedItem = workspaceItem.getItem();

Instructions for Reviewers

  • Some own integration tests depending on the enhancer type would be nice, not testing the whole enhancer :)
  • Still working on tests. Some other integration tests fail because of the enhancer

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.

set dc.title from some given list of metadatavalues
basic integration test
@floriangantner floriangantner changed the base branch from main-cris to dspace-cris-2023_02_x April 9, 2024 09:59
@floriangantner floriangantner changed the base branch from dspace-cris-2023_02_x to main-cris April 15, 2024 10:20
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.

None yet

1 participant