[graph provision] fixed serialisation of the usage counts as measures in the XML records
This commit is contained in:
parent
7e6d12fa77
commit
e5df68772d
|
@ -175,7 +175,8 @@ public class XmlSerializationUtils {
|
||||||
.append("<")
|
.append("<")
|
||||||
.append(name)
|
.append(name)
|
||||||
.append(" ")
|
.append(" ")
|
||||||
.append(attr(measure.getId(), kv.getValue()))
|
.append(attr("id", measure.getId()))
|
||||||
|
.append(attr("score", kv.getValue()))
|
||||||
.append(attr("datasource", kv.getKey()))
|
.append(attr("datasource", kv.getKey()))
|
||||||
.append(" />");
|
.append(" />");
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,26 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"measures": [
|
"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",
|
"id": "influence",
|
||||||
"unit": [
|
"unit": [
|
||||||
|
|
Loading…
Reference in New Issue