1
0
Fork 0

betterRenamingMethod

This commit is contained in:
Sandro La Bruzzo 2021-07-06 09:56:32 +02:00
parent c952c8d236
commit 7d8db2eb8a
1 changed files with 2 additions and 2 deletions

View File

@ -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
}