mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
coar-notify-7 QAEvent creation set targeted item fix
This commit is contained in:
@@ -594,10 +594,11 @@ public class QAEventServiceImpl implements QAEventService {
|
|||||||
doc.addField(TRUST, dto.getTrust());
|
doc.addField(TRUST, dto.getTrust());
|
||||||
doc.addField(MESSAGE, dto.getMessage());
|
doc.addField(MESSAGE, dto.getMessage());
|
||||||
doc.addField(LAST_UPDATE, new Date());
|
doc.addField(LAST_UPDATE, new Date());
|
||||||
final String resourceUUID = getResourceUUID(context, dto.getOriginalId());
|
String resourceUUID = getResourceUUID(context, dto.getOriginalId());
|
||||||
if (resourceUUID == null) {
|
if (resourceUUID == null) {
|
||||||
throw new IllegalArgumentException("Skipped event " + checksum +
|
resourceUUID = dto.getTarget();
|
||||||
" related to the oai record " + dto.getOriginalId() + " as the record was not found");
|
/*throw new IllegalArgumentException("Skipped event " + checksum +
|
||||||
|
" related to the oai record " + dto.getOriginalId() + " as the record was not found");*/
|
||||||
}
|
}
|
||||||
doc.addField(RESOURCE_UUID, resourceUUID);
|
doc.addField(RESOURCE_UUID, resourceUUID);
|
||||||
doc.addField(RELATED_UUID, dto.getRelated());
|
doc.addField(RELATED_UUID, dto.getRelated());
|
||||||
|
Reference in New Issue
Block a user