-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Problem
The current InvenioRDM Configuartion Consider only one prefix to generate and assign DOI to the submitted record; however, if you manage a consortium of DOI, for example, you must generate DOI using various prefixes dependent on the publisher of the submitted document.
The solution you'd like
The main idea is to transform the Datacite configuration parameters in a dictionary in which we will attach for each publisher a specific prefix and access parameters (DATACITE_USERNAME,DATACITE_PASSWORD) because the access parameters generally change when the prefix (repoistory) changes.
Example:
{
{'publisher1':[('DATACITE_PREFIX1: '10.88876'),('DATACITE_USERNAME1: 'XYZ'), (DATACITE_PASSWORD1: '#122cv')]}
{'publisher2':[('DATACITE_PREFIX2: '10.99976'), ('DATACITE_USERNAME2: 'wcv'), (DATACITE_PASSWORD2: '#333cv')]}
.....
{'publishern':[('DATACITE_PREFIX2: '10.55576'),('DATACITE_USERNAMEn: 'ncv'), (DATACITE_PASSWORD2: '#nnncv')]}
}