Revision 61487
Added by Michele Artini over 2 years ago
EnrichOpenairePlugin.java | ||
---|---|---|
29 | 29 |
import eu.dnetlib.data.mdstore.plugins.objects.MdRecord; |
30 | 30 |
import eu.dnetlib.data.mdstore.plugins.objects.MyURL; |
31 | 31 |
import eu.dnetlib.data.mdstore.plugins.objects.Project; |
32 |
import eu.dnetlib.data.utils.XsltFunctions; |
|
32 | 33 |
|
33 | 34 |
public class EnrichOpenairePlugin extends GenericDoiMdstorePlugin { |
34 | 35 |
|
... | ... | |
190 | 191 |
np.setFunder(p.valueOf(".//funder/@shortname")); |
191 | 192 |
np.setProgram(p.valueOf(".//funding_level_0/@name")); |
192 | 193 |
np.setJurisdiction(p.valueOf(".//funder/@jurisdiction")); |
193 |
np.setInfoId(String.format("info:eu-repo/grantAgreement/%s/%s/%s/%s/%s/%s", np.getFunder(), np.getProgram(), np.getCode(), np.getJurisdiction(),
|
|
194 |
np.setInfoId(XsltFunctions.projectLongId(np.getFunder(), np.getProgram(), np.getCode(), np.getJurisdiction(),
|
|
194 | 195 |
np.getName(), np.getAcronym())); |
195 | 196 |
|
196 | 197 |
doc.getProjects().add(np); |
Also available in: Unified diff
project ID with /