Change the access right in DoiBoost #126

Merged
claudio.atzori merged 19 commits from doiboosi_accessright into beta 2021-07-28 11:29:15 +02:00
1 changed files with 2 additions and 16 deletions
Showing only changes of commit 43e62fcae9 - Show all commits

View File

@ -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()
@ -211,7 +197,7 @@ object DoiBoostMappingUtil {
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)
}