[Bypass Action Set] used constant DOI instead of "doi"
This commit is contained in:
parent
881113743f
commit
92d0e18b55
|
@ -15,8 +15,6 @@ import eu.dnetlib.dhp.application.ArgumentApplicationParser;
|
||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
|
|
||||||
public static final String UNREOSLVED_PREFIX = "unresolved:";
|
|
||||||
public static final String UNREOSLVED_POSTFIX_DOI = ":doi";
|
|
||||||
public static final String DOI = "doi";
|
public static final String DOI = "doi";
|
||||||
|
|
||||||
public static final String UPDATE_DATA_INFO_TYPE = "update";
|
public static final String UPDATE_DATA_INFO_TYPE = "update";
|
||||||
|
|
|
@ -94,7 +94,7 @@ public class PrepareBipFinder implements Serializable {
|
||||||
.map((MapFunction<BipScore, Result>) v -> {
|
.map((MapFunction<BipScore, Result>) v -> {
|
||||||
Result r = new Result();
|
Result r = new Result();
|
||||||
|
|
||||||
r.setId(DHPUtils.generateUnresolvedIdentifier(v.getId(), "doi"));
|
r.setId(DHPUtils.generateUnresolvedIdentifier(v.getId(), DOI));
|
||||||
r.setMeasures(getMeasure(v));
|
r.setMeasures(getMeasure(v));
|
||||||
return r;
|
return r;
|
||||||
}, Encoders.bean(Result.class))
|
}, Encoders.bean(Result.class))
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class PrepareFOSSparkJob implements Serializable {
|
||||||
}, Encoders.bean(FOSDataModel.class))
|
}, Encoders.bean(FOSDataModel.class))
|
||||||
.map((MapFunction<FOSDataModel, Result>) value -> {
|
.map((MapFunction<FOSDataModel, Result>) value -> {
|
||||||
Result r = new Result();
|
Result r = new Result();
|
||||||
r.setId(DHPUtils.generateUnresolvedIdentifier(value.getDoi(), "doi"));
|
r.setId(DHPUtils.generateUnresolvedIdentifier(value.getDoi(), DOI));
|
||||||
r.setSubject(getSubjects(value));
|
r.setSubject(getSubjects(value));
|
||||||
return r;
|
return r;
|
||||||
}, Encoders.bean(Result.class))
|
}, Encoders.bean(Result.class))
|
||||||
|
|
Loading…
Reference in New Issue