diff --git a/emm/src/main/java/whelk/Dump.java b/emm/src/main/java/whelk/Dump.java index 0f135884de..70b2ea472e 100644 --- a/emm/src/main/java/whelk/Dump.java +++ b/emm/src/main/java/whelk/Dump.java @@ -210,6 +210,11 @@ private static void sendFormattedResponse(Whelk whelk, String apiBaseUrl, String responseObject.put("totalItems", totalEntityCount); } + var partOf = new LinkedHashMap<>(); + partOf.put("type", "Collection"); + partOf.put("id", apiBaseUrl + "?selection=" + dump); + responseObject.put("partOf", partOf); + long nextOffset = offset + EmmChangeSet.TARGET_HITS_PER_PAGE; if (totalEntityCount == null || nextOffset < totalEntityCount) { responseObject.put("next", apiBaseUrl+"?selection="+dump+"&offset="+nextOffset);