[Indicators] changed the serialization of the bip indicators

This commit is contained in:
Miriam Baglioni 2024-07-15 12:21:44 +02:00
parent 43f16ece50
commit 9e539d38f7
1 changed files with 4 additions and 10 deletions

View File

@ -193,18 +193,12 @@ public class Utils {
case BIP_INFLUENCE_ALT: case BIP_INFLUENCE_ALT:
m.getUnit().forEach(u -> { m.getUnit().forEach(u -> {
if (u.getKey().equals("class")) if (u.getKey().equals("class"))
getImpactMeasure(i).setInfluenceAltClass(u.getValue()); getImpactMeasure(i).setCitationClass(u.getValue());
if (u.getKey().equals("score")) if (u.getKey().equals("score"))
getImpactMeasure(i).setInfluenceAlt(Double.parseDouble(u.getValue())); getImpactMeasure(i).setCitationCount(Integer.parseInt(u.getValue()));
}); });
break; break;
case BIP_POPULARITY_ALT: case BIP_POPULARITY_ALT:
m.getUnit().forEach(u -> {
if (u.getKey().equals("class"))
getImpactMeasure(i).setPopularityAltClass(u.getValue());
if (u.getKey().equals("score"))
getImpactMeasure(i).setPopularityAlt(Double.parseDouble(u.getValue()));
});
break; break;
case BIP_IMPULSE: case BIP_IMPULSE:
m.getUnit().forEach(u -> { m.getUnit().forEach(u -> {