master #11

Manually merged
claudio.atzori merged 275 commits from :master into enrichment_wfs 2020-05-11 15:14:56 +02:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit b7dd400e51 - Show all commits

View File

@ -187,7 +187,11 @@ public class SparkOrcidToResultFromSemRelJob3 {
}
private static boolean containsAllowedPid(Author a) {
for (StructuredProperty pid : a.getPid()) {
Optional<List<StructuredProperty>> pids = Optional.ofNullable(a.getPid());
if (!pids.isPresent()) {
return false;
}
for (StructuredProperty pid : pids.get()) {
if (PROPAGATION_AUTHOR_PID.equals(pid.getQualifier().getClassid())) {
return true;
}