forked from antonis.lempesis/dnet-hadoop
changes to avoid reassignment to val
This commit is contained in:
parent
f33521d338
commit
8d2e086e48
|
@ -16,8 +16,8 @@ object SparkConvertORCIDToOAF {
|
|||
val logger: Logger = LoggerFactory.getLogger(SparkConvertORCIDToOAF.getClass)
|
||||
|
||||
def fixORCIDItem(item :ORCIDItem):ORCIDItem = {
|
||||
item.authors = item.authors.groupBy(_.oid).map(_._2.head)
|
||||
item
|
||||
new ORCIDItem(item.doi, item.authors.groupBy(_.oid).map(_._2.head).toList)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue