DoiBoost AccessRigh #4362 - removing commented code

This commit is contained in:
Miriam Baglioni 2021-07-28 11:16:49 +02:00
parent 5fe016dcbc
commit 80d5b3b4de
1 changed files with 2 additions and 13 deletions

View File

@ -236,8 +236,7 @@ object DoiBoostMappingUtil {
i.setAccessright(getOpenAccessQualifier())
i.getAccessright.setOpenAccessRoute(OpenAccessRoute.gold)
}
// val ar = getOpenAccessQualifier()
// publication.setBestaccessright(OafMapperUtils.qualifier(ar.getClassid, ar.getClassname, ar.getSchemeid, ar.getSchemename))
}
else {
hb = ModelConstants.UNKNOWN_REPOSITORY
@ -246,17 +245,7 @@ object DoiBoostMappingUtil {
})
publication.setBestaccessright(OafMapperUtils.createBestAccessRights(publication.getInstance()))
// val ar = publication.getInstance().asScala.filter(i => i.getInstancetype != null && i.getAccessright!= null && i.getAccessright.getClassid!= null).map(f=> f.getAccessright.getClassid)
// if (ar.nonEmpty) {
// if(ar.contains(ModelConstants.ACCESS_RIGHT_OPEN)){
// val ar = getOpenAccessQualifier()
// publication.setBestaccessright(OafMapperUtils.qualifier(ar.getClassid, ar.getClassname, ar.getSchemeid, ar.getSchemename))
// }
// else {
// val ar = getRestrictedQualifier()
// publication.setBestaccessright(OafMapperUtils.qualifier(ar.getClassid, ar.getClassname, ar.getSchemeid, ar.getSchemename))
// }
// }
publication
}