-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
bugcomponent: configurable entitiesrelated to configurable entitiesrelated to configurable entitieshelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forwardintegration: OpenAIRERelated to integration with OpenAIRERelated to integration with OpenAIREtools:import-sourcesRelated to "Live Import" Sources feature, allowing import of content via external APIs.Related to "Live Import" Sources feature, allowing import of content via external APIs.
Description
Describe the bug
When importing an item from an external source (e.g. OpenAIRE), DSpace now checks if the item already exists locally and alerts the user. However, the strategy for doing this is simply a solr query using the name metadata. This works for most cases, but breaks when certain characters are not escaped in the title. e.g. :
This means any titles with colons will necessarily create duplicates every time they are imported.
I suspect these other characters may present issues as well: +, --, -, &&, ||, !, (, ), ", ~, *, ?, :
To Reproduce
- Setup OpenAIRE to be used during
Publicationsubmission to attach a relatedProjectentity. - During submission, do a lookup using the "Funding OpenAIRE API" tab with the query
655609. You should see an item with the title "Adriatic Perspectives: Memory and Identity on a Transnational European Periphery". - Import this item and ensure the Project is created and installed as a DSpace entity.
- Ensure solr core is up-to-date
- Repeat step 2, we should expect the first Project to appear in the "Select a local match" section, but it is blank, because the colon is not escaped and no results were returned.
Expected behavior
During step 5, the original Project should be detected and displayed for the user to select
Related work
TBD
Metadata
Metadata
Assignees
Labels
bugcomponent: configurable entitiesrelated to configurable entitiesrelated to configurable entitieshelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forwardintegration: OpenAIRERelated to integration with OpenAIRERelated to integration with OpenAIREtools:import-sourcesRelated to "Live Import" Sources feature, allowing import of content via external APIs.Related to "Live Import" Sources feature, allowing import of content via external APIs.
Type
Projects
Status
📋 To Do