[#6281 Provenance of product PIDs] Added PIDs to the Instance type in Scholexplorer Export

This commit is contained in:
Sandro La Bruzzo 2021-01-12 14:45:17 +01:00
parent 0af8c4df00
commit 90913894f8
1 changed files with 3 additions and 0 deletions

View File

@ -343,6 +343,9 @@ object DLIToOAF {
val instance_urls = if (fpids.head.length < 5) s"https://www.rcsb.org/structure/${fpids.head}" else s"https://dx.doi.org/${fpids.head}"
val i: Instance = createInstance(instance_urls, firstInstanceOrNull(d.getInstance()), result.getDateofacceptance, true)
// Ticket #6281 added pid to Instance
i.setPid(result.getPid)
if (i != null)
result.setInstance(List(i).asJava)