master #59
|
@ -113,27 +113,15 @@ object SparkProduceHostedByMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
def oaToHostedbyItemType(dats: Datasource): HostedByItemType = {
|
def oaToHostedbyItemType(dats: Datasource): HostedByItemType = {
|
||||||
if (dats.getJournal != null) {
|
if (dats.getJournal != null && dats.getOfficialname != null) {
|
||||||
|
|
||||||
if(dats.getOfficialname != null) {
|
|
||||||
return getHostedByItemType(
|
|
||||||
dats.getId,
|
|
||||||
dats.getOfficialname.getValue,
|
|
||||||
dats.getJournal.getIssnPrinted,
|
|
||||||
dats.getJournal.getIssnOnline,
|
|
||||||
dats.getJournal.getIssnLinking,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return getHostedByItemType(
|
return getHostedByItemType(
|
||||||
dats.getId,
|
dats.getId,
|
||||||
"",
|
dats.getOfficialname.getValue,
|
||||||
dats.getJournal.getIssnPrinted,
|
dats.getJournal.getIssnPrinted,
|
||||||
dats.getJournal.getIssnOnline,
|
dats.getJournal.getIssnOnline,
|
||||||
dats.getJournal.getIssnLinking,
|
dats.getJournal.getIssnLinking,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
HostedByItemType("", "", "", "", "", false)
|
HostedByItemType("", "", "", "", "", false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue