[graph provision] fixed serialisation of the usage counts as measures in the XML records

This commit is contained in:
Claudio Atzori 2024-10-02 09:35:21 +02:00
parent 7e6d12fa77
commit e5df68772d
2 changed files with 22 additions and 1 deletions

View File

@ -175,7 +175,8 @@ public class XmlSerializationUtils {
.append("<")
.append(name)
.append(" ")
.append(attr(measure.getId(), kv.getValue()))
.append(attr("id", measure.getId()))
.append(attr("score", kv.getValue()))
.append(attr("datasource", kv.getKey()))
.append(" />");
}

View File

@ -8,6 +8,26 @@
}
],
"measures": [
{
"id": "views",
"unit": [
{
"key": "opendoar____::358aee4cc897452c00244351e4d91f69||ZENODO",
"value": "5",
"dataInfo": null
}
]
},
{
"id": "downloads",
"unit": [
{
"key": "opendoar____::358aee4cc897452c00244351e4d91f69||ZENODO",
"value": "2",
"dataInfo": null
}
]
},
{
"id": "influence",
"unit": [