StatsDB workflow to export actionsets about OA routes, diamond, and publicly-funded #355
|
@ -138,10 +138,10 @@ public class StatsAtomicActionsJob implements Serializable {
|
|||
r.setPubliclyFunded(usm.isPublicly_funded());
|
||||
if (usm.isIs_bronze_oa())
|
||||
r.setOpenAccessColor(OpenAccessColor.bronze);
|
||||
else if (usm.isIs_gold())
|
||||
r.setOpenAccessColor(OpenAccessColor.bronze);
|
||||
else if (usm.isIs_gold())
|
||||
r.setOpenAccessColor(OpenAccessColor.gold);
|
||||
else if (usm.isIs_hybrid())
|
||||
dimitris.pierrakos marked this conversation as resolved
Outdated
|
||||
r.setOpenAccessColor(OpenAccessColor.hybrid);
|
||||
return r;
|
||||
}, Encoders.bean(Result.class));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Please check the chain of the conditions, it seems the
usm.isIs_gold()
is checked twice, leading to different then blocks, one sets the OpenAccess color to bronze, the other to gold, which seems counter intuitive. I assume it might be not what you were expecting to write.