1
0
Fork 0

DoiBoost AccessRigh #4362 - Unpaywall mapped to OAF with OPEN instance (non oa are filtered out) (unknown hostedby) + map the color as it is

This commit is contained in:
Miriam Baglioni 2021-07-14 13:58:05 +02:00
parent f4f7c6f9d3
commit 09ad7b2a9e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ object UnpayWallToOAF {
def get_unpaywall_color(input:String):Option[OpenAccessRoute] = {
if(input.equalsIgnoreCase("close"))
if(input == null || input.equalsIgnoreCase("close"))
return None
if(input.equalsIgnoreCase("green"))
return Some(OpenAccessRoute.green)