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

This PR addresses ticket #4362. It does not include the merge with the gold list from UNIBI because it will be considered in creating a new hosteByMap, so no modification to the part of the cose that exploits the map needs to be done here.

This PR addresses ticket [#4362](https://support.openaire.eu/issues/4362). It does not include the merge with the gold list from UNIBI because it will be considered in creating a new hosteByMap, so no modification to the part of the cose that exploits the map needs to be done here.
miriam.baglioni added the
enhancement
label 2021-07-28 10:34:19 +02:00
alessia.bardi was assigned by miriam.baglioni 2021-07-28 10:34:19 +02:00
claudio.atzori was assigned by miriam.baglioni 2021-07-28 10:34:19 +02:00
miriam.baglioni added 15 commits 2021-07-28 10:34:19 +02:00
claudio.atzori requested changes 2021-07-28 10:51:47 +02:00
claudio.atzori left a comment
Owner

Just minor cleanups:

  • commented code should be removed
  • use of constants from the common ModelConstants class
Just minor cleanups: * commented code should be removed * use of constants from the common `ModelConstants` class
@ -121,0 +185,4 @@
// val pub_date = LocalDate.parse(date, formatter)
// if (((now.toEpochDay - pub_date.toEpochDay)/365.0) > 1){

Consider cleaning up commented code

Consider cleaning up commented code
miriam.baglioni marked this conversation as resolved
@ -130,2 +211,4 @@
def getUnknownQualifier():AccessRight = {
OafMapperUtils.accessRight("UNKNOWN","not available",ModelConstants.DNET_ACCESS_MODES, ModelConstants.DNET_ACCESS_MODES)

Consider using ModelConstants.UNKNOWN and ModelConstants.NOT_AVAILABLE

Consider using `ModelConstants.UNKNOWN` and `ModelConstants.NOT_AVAILABLE`
miriam.baglioni marked this conversation as resolved
@ -132,0 +216,4 @@
def getEmbargoedAccessQualifier():AccessRight = {
OafMapperUtils.accessRight("EMBARGO","Embargo",ModelConstants.DNET_ACCESS_MODES, ModelConstants.DNET_ACCESS_MODES)

A constant for EMBARGO is not available yet, but I just added it.

A constant for EMBARGO is not available yet, but I just added it.
Author
Member

Not visible yet, to be modified

Not visible yet, to be modified
@ -132,0 +220,4 @@
}
def getClosedAccessQualifier():AccessRight = {
OafMapperUtils.accessRight("CLOSED","Closed Access", ModelConstants.DNET_ACCESS_MODES, ModelConstants.DNET_ACCESS_MODES)

A constant for CLOSED is not available yet, but I just added it.

A constant for CLOSED is not available yet, but I just added it.
miriam.baglioni added 4 commits 2021-07-28 11:18:20 +02:00
claudio.atzori merged commit b346feed36 into beta 2021-07-28 11:29:15 +02:00
Sign in to join this conversation.
No description provided.