From fa2532db303f66c7a1780c0720ccec51cfb10864 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Wed, 25 Sep 2024 09:38:50 +0200 Subject: [PATCH] fixed a bug with id --- .../dnetlib/dhp/collection/plugin/osf/OsfPreprintsIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/osf/OsfPreprintsIterator.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/osf/OsfPreprintsIterator.java index 292e1c322..de18ef37f 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/osf/OsfPreprintsIterator.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/osf/OsfPreprintsIterator.java @@ -85,7 +85,7 @@ public class OsfPreprintsIterator implements Iterator { final Element n = (Element) ((Element) o).detach(); final Element group = DocumentHelper.createElement("group"); - group.addAttribute("id", n.valueOf(".//data/id")); + group.addAttribute("id", n.valueOf("./id")); group.addElement("preprint").add(n);