Skip to content

Commit

Permalink
global: extended support for additional funders
Browse files Browse the repository at this point in the history
* Added support for NIH, SFI, HRZZ, SNSF and FWF.

Signed-off-by: Krzysztof Nowak <k.nowak@cern.ch>
  • Loading branch information
Krzysztof Nowak committed Nov 15, 2017
1 parent 3d912d3 commit 01517ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
7 changes: 6 additions & 1 deletion invenio_openaire/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@
'ARCProjects',
'ECProjects',
'FCTProjects',
'FWFProjects',
'HRZZProjects',
'MESTDProjects',
'MZOSProjects',
'NHMRCProjects',
'NIHProjects',
'NSFProjects',
'NWOProjects',
'SFIProjects',
'SNSFProjects',
'WTProjects',
'NSFProjects',
]


Expand Down
15 changes: 10 additions & 5 deletions invenio_openaire/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,15 +541,20 @@ class FundRefDOIResolver(object):
def __init__(self, data=None):
"""Init the resolver."""
fixed_funders = {
'nhmrc_______::NHMRC': 'http://dx.doi.org/10.13039/501100000925',
'ec__________::EC': 'http://dx.doi.org/10.13039/501100000780',
'arc_________::ARC': 'http://dx.doi.org/10.13039/501100000923',
'ec__________::EC': 'http://dx.doi.org/10.13039/501100000780',
'fct_________::FCT': 'http://dx.doi.org/10.13039/501100001871',
'wt__________::WT': 'http://dx.doi.org/10.13039/100004440',
'nsf_________::NSF': 'http://dx.doi.org/10.13039/100000001',
'fwf_________::FWF': 'http://dx.doi.org/10.13039/501100002428',
'irb_hr______::HRZZ': 'http://dx.doi.org/10.13039/501100004488',
'irb_hr______::MZOS': 'http://dx.doi.org/10.13039/501100006588',
'mestd_______::MESTD': 'http://dx.doi.org/10.13039/501100004564',
'nhmrc_______::NHMRC': 'http://dx.doi.org/10.13039/501100000925',
'nih_________::NIH': 'http://dx.doi.org/10.13039/100000002',
'nsf_________::NSF': 'http://dx.doi.org/10.13039/100000001',
'nwo_________::NWO': 'http://dx.doi.org/10.13039/501100003246',
'irb_hr______::MZOS': 'http://dx.doi.org/10.13039/501100006588',
'sfi_________::SFI': 'http://dx.doi.org/10.13039/501100001602',
'snsf________::SNSF': 'http://dx.doi.org/10.13039/501100001711',
'wt__________::WT': 'http://dx.doi.org/10.13039/100004440',
}
self.data = data or fixed_funders
self.inverse_data = {v: k for k, v in self.data.items()}
Expand Down

0 comments on commit 01517ec

Please sign in to comment.