forked from D-Net/dnet-hadoop
DoiBoost AccessRigh #4362 - related to https://code-repo.d4science.org/D-Net/dnet-hadoop/pulls/126/files#issuecomment-4193
This commit is contained in:
parent
6c936943aa
commit
43e62fcae9
|
@ -179,20 +179,6 @@ object DoiBoostMappingUtil {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// val pub_date = LocalDate.parse(date, formatter)
|
|
||||||
|
|
||||||
// if (((now.toEpochDay - pub_date.toEpochDay)/365.0) > 1){
|
|
||||||
// val oaq : AccessRight = getOpenAccessQualifier()
|
|
||||||
// oaq.setOpenAccessRoute(OpenAccessRoute.hybrid)
|
|
||||||
// return oaq
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// return getEmbargoedAccessQualifier()
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return getClosedAccessQualifier()
|
return getClosedAccessQualifier()
|
||||||
|
@ -211,7 +197,7 @@ object DoiBoostMappingUtil {
|
||||||
|
|
||||||
|
|
||||||
def getUnknownQualifier():AccessRight = {
|
def getUnknownQualifier():AccessRight = {
|
||||||
OafMapperUtils.accessRight("UNKNOWN","not available",ModelConstants.DNET_ACCESS_MODES, ModelConstants.DNET_ACCESS_MODES)
|
OafMapperUtils.accessRight(ModelConstants.UNKNOWN, ModelConstants.NOT_AVAILABLE,ModelConstants.DNET_ACCESS_MODES, ModelConstants.DNET_ACCESS_MODES)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue