From 7d8db2eb8a87ad7a26464148f10a260e4d3e7f13 Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Tue, 6 Jul 2021 09:56:32 +0200 Subject: [PATCH] betterRenamingMethod --- .../java/eu/dnetlib/dhp/sx/graph/scholix/ScholixUtils.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/sx/graph/scholix/ScholixUtils.scala b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/sx/graph/scholix/ScholixUtils.scala index f7d8a22c4..881467e5b 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/sx/graph/scholix/ScholixUtils.scala +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/sx/graph/scholix/ScholixUtils.scala @@ -168,7 +168,7 @@ object ScholixUtils { } - def findURLforPID(pidValue:List[StructuredProperty], urls:List[String]):List[(StructuredProperty, String)] = { + def findURLForPID(pidValue:List[StructuredProperty], urls:List[String]):List[(StructuredProperty, String)] = { pidValue.map{ p => val pv = p.getValue @@ -184,7 +184,7 @@ object ScholixUtils { return List() r.getInstance().asScala.filter(i => i.getUrl!= null && !i.getUrl.isEmpty) - .flatMap(i => findURLforPID(i.getPid.asScala.toList, i.getUrl.asScala.toList)) + .flatMap(i => findURLForPID(i.getPid.asScala.toList, i.getUrl.asScala.toList)) .map(i => new ScholixIdentifier(i._1.getValue, i._1.getQualifier.getClassid, i._2)).distinct.toList }