DSpace 6/7 bulkedit MetadataImport unable to remove duplicate metadata in multi-value fields #7989
Labels
bug
help wanted
Needs a volunteer to claim to move forward
tools: batch-editing
Related to batch / bulk metadata editing, csv import/export
tools: import
Related to import of data into the system
Describe the bug
If an item has duplicate metadata in a multi-value field, for example the same author listed twice:
... it is not possible to remove the duplicate value via the CSV/bulkedit metadata import. If you correct the item's metadata by removing the duplicate value in the CSV and re-uploading it, DSpace does not detect changes:
I have verified this issue on DSpace 6.3 and 7.1-SNAPSHOT.
Expected behavior
We should be able to remove duplicate metadata via CSV bulkedit. To work around this we currently have to add a new column with the new data, blank out the original column, then move the data back to the old column (and remove the new column).
Related work
This issue was noticed by at least one user on the dspace-tech mailing list in 2015 (see the thread entitled
"No changes were detected" when importing metadata via XMLUI
).I guess the problem is in the
compare
method indspace-api/src/main/java/org/dspace/app/bulkedit/MetadataImport.java
, but I don't understand the code.The text was updated successfully, but these errors were encountered: