forked from D-Net/dnet-hadoop
Hosted By Map - refactor of the first attemp to prepare a new hosted by map dependent on the datasource in the graph and on two external sources: the gold list from unibi ad the doaj list of open access journal. Both the lists are downloaded from provided url parameter
This commit is contained in:
parent
d1807781c0
commit
613bd3bde0
|
@ -55,20 +55,7 @@ object SparkProduceHostedByMap {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
def toHostedByMap(input: Map[String, HostedByItemType]): String = {
|
|
||||||
import org.json4s.jackson.Serialization
|
|
||||||
|
|
||||||
implicit val formats = org.json4s.DefaultFormats
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Serialization.write(input)
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
def getHostedByItemType(id:String, officialname: String, issn:String, eissn:String, issnl:String, oa:Boolean): HostedByItemType = {
|
def getHostedByItemType(id:String, officialname: String, issn:String, eissn:String, issnl:String, oa:Boolean): HostedByItemType = {
|
||||||
if(issn != null){
|
if(issn != null){
|
||||||
|
|
Loading…
Reference in New Issue