code formatting
This commit is contained in:
parent
6189879643
commit
93dd9cc639
|
@ -77,7 +77,7 @@ public class CreateActionSetFromWebEntries implements Serializable {
|
||||||
isSparkSessionManaged,
|
isSparkSessionManaged,
|
||||||
spark -> {
|
spark -> {
|
||||||
|
|
||||||
createActionSet(spark, inputPath, outputPath );
|
createActionSet(spark, inputPath, outputPath);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ public class CreateActionSetFromWebEntries implements Serializable {
|
||||||
return createAffiliatioRelationPair(
|
return createAffiliatioRelationPair(
|
||||||
PMCID_PREFIX
|
PMCID_PREFIX
|
||||||
+ IdentifierFactory
|
+ IdentifierFactory
|
||||||
.md5(PidCleaner.normalizePidValue(PidType.pmc.toString(), removeResolver("PMC" , pmcid))),
|
.md5(PidCleaner.normalizePidValue(PidType.pmc.toString(), removeResolver("PMC", pmcid))),
|
||||||
ror);
|
ror);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ public class CreateActionSetFromWebEntries implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String removeResolver(String pidType, String pid) {
|
private static String removeResolver(String pidType, String pid) {
|
||||||
switch (pidType){
|
switch (pidType) {
|
||||||
case "PMID":
|
case "PMID":
|
||||||
return pid.substring(33);
|
return pid.substring(33);
|
||||||
case "PMC":
|
case "PMC":
|
||||||
|
@ -179,7 +179,7 @@ public class CreateActionSetFromWebEntries implements Serializable {
|
||||||
return createAffiliatioRelationPair(
|
return createAffiliatioRelationPair(
|
||||||
DOI_PREFIX
|
DOI_PREFIX
|
||||||
+ IdentifierFactory
|
+ IdentifierFactory
|
||||||
.md5(PidCleaner.normalizePidValue(PidType.doi.toString(), removeResolver("DOI" ,doi))),
|
.md5(PidCleaner.normalizePidValue(PidType.doi.toString(), removeResolver("DOI", doi))),
|
||||||
ror);
|
ror);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue