[downloadsAndViews] changed the serialization for downloads and views
This commit is contained in:
parent
128c143394
commit
3955ceaa76
|
@ -170,8 +170,8 @@ public class XmlSerializationUtils {
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
// <measure views="0" datasource="infrastruct_::f66f1bd369679b5b077dcdf006089556||OpenAIRE" />
|
||||
// <measure downloads="0" datasource="infrastruct_::f66f1bd369679b5b077dcdf006089556||OpenAIRE" />
|
||||
// <measure id="views" count="0" datasource="infrastruct_::f66f1bd369679b5b077dcdf006089556||OpenAIRE" />
|
||||
// <measure id="downloads" count="0" datasource="infrastruct_::f66f1bd369679b5b077dcdf006089556||OpenAIRE" />
|
||||
public static String usageMeasureAsXmlElement(String name, Measure measure) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (KeyValue kv : measure.getUnit()) {
|
||||
|
@ -179,7 +179,8 @@ public class XmlSerializationUtils {
|
|||
.append("<")
|
||||
.append(name)
|
||||
.append(" ")
|
||||
.append(attr(measure.getId(), kv.getValue()))
|
||||
.append(attr("id", measure.getId()))
|
||||
.append(attr("count", kv.getValue()))
|
||||
.append(attr("datasource", kv.getKey()))
|
||||
.append(" />");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue