[#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 committed by Claudio Atzori
parent a2169ccf07
commit bbe1a7c69a
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 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) 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) if (i != null)
result.setInstance(List(i).asJava) result.setInstance(List(i).asJava)