forked from D-Net/dnet-hadoop
Update StatsAtomicActionsJob.java
Bug fix for duplicate bronze checks
This commit is contained in:
parent
d524e30866
commit
359e81b7a6
|
@ -138,10 +138,10 @@ public class StatsAtomicActionsJob implements Serializable {
|
||||||
r.setPubliclyFunded(usm.isPublicly_funded());
|
r.setPubliclyFunded(usm.isPublicly_funded());
|
||||||
if (usm.isIs_bronze_oa())
|
if (usm.isIs_bronze_oa())
|
||||||
r.setOpenAccessColor(OpenAccessColor.bronze);
|
r.setOpenAccessColor(OpenAccessColor.bronze);
|
||||||
else if (usm.isIs_gold())
|
|
||||||
r.setOpenAccessColor(OpenAccessColor.bronze);
|
|
||||||
else if (usm.isIs_gold())
|
else if (usm.isIs_gold())
|
||||||
r.setOpenAccessColor(OpenAccessColor.gold);
|
r.setOpenAccessColor(OpenAccessColor.gold);
|
||||||
|
else if (usm.isIs_hybrid())
|
||||||
|
r.setOpenAccessColor(OpenAccessColor.hybrid);
|
||||||
return r;
|
return r;
|
||||||
}, Encoders.bean(Result.class));
|
}, Encoders.bean(Result.class));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue