mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #11175 from DSpace/backport-11156-to-dspace-7_x
[Port dspace-7_x] Metadata import empty collection column check
This commit is contained in:
@@ -494,7 +494,7 @@ public class MetadataImport extends DSpaceRunnable<MetadataImportScriptConfigura
|
||||
|
||||
// Check it has an owning collection
|
||||
List<String> collections = line.get("collection");
|
||||
if (collections == null) {
|
||||
if (collections == null || collections.isEmpty()) {
|
||||
throw new MetadataImportException(
|
||||
"New items must have a 'collection' assigned in the form of a handle");
|
||||
}
|
||||
|
Reference in New Issue
Block a user