From bea4bbf8a08bcd161742f4c93c9d2abb1186626c Mon Sep 17 00:00:00 2001 From: Ondrej Kosarko Date: Tue, 30 May 2017 23:59:42 +0200 Subject: [PATCH] update item after we add a bitstream (generate auto metadata) --- dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java b/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java index 71e4efd226e..0ee33528856 100644 --- a/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java +++ b/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java @@ -554,6 +554,8 @@ public Bitstream addItemBitstream(@PathParam("item_id") Integer itemId, InputStr dspaceBitstream = org.dspace.content.Bitstream.find(context, dspaceBitstream.getID()); bitstream = new Bitstream(dspaceBitstream, ""); + //trigger auto generated metadata on item + dspaceItem.update(); context.complete();