mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #2107 from KingKrimmson/DS-3939-master
DS-3939 OAI-Harvester, skip item and continue if handle is missing
This commit is contained in:
@@ -205,8 +205,11 @@ public class XOAI {
|
||||
while (iterator.hasNext()) {
|
||||
try {
|
||||
Item item = iterator.next();
|
||||
server.add(this.index(item));
|
||||
|
||||
if (item.getHandle() == null) {
|
||||
log.warn("Skipped item without handle: " + item.getID());
|
||||
} else {
|
||||
server.add(this.index(item));
|
||||
}
|
||||
//Uncache the item to keep memory consumption low
|
||||
context.uncacheEntity(item);
|
||||
|
||||
|
Reference in New Issue
Block a user