[Funder] changed the chosen funder identifier
This commit is contained in:
parent
d5000502ea
commit
ec55a22091
|
@ -98,10 +98,13 @@ public class SparkDumpFunderResults implements Serializable {
|
|||
if (ofunder.isPresent()) {
|
||||
String fName = ofunder.get().getShortName();
|
||||
if (StringUtil.isNullOrEmpty(fName))
|
||||
return ofunder.get().getName();
|
||||
if (fName.equalsIgnoreCase("ec")) {
|
||||
if (p.getId().indexOf("_") < 0)
|
||||
return p.getId().substring(0, p.getId().indexOf(":"));
|
||||
else
|
||||
return p.getId().substring(0, p.getId().indexOf("_"));
|
||||
// ofunder.get().getName();
|
||||
if (fName.equalsIgnoreCase("ec"))
|
||||
fName += "_" + ofunder.get().getFundingStream();
|
||||
}
|
||||
return fName;
|
||||
} else {
|
||||
String fName = p.getId().substring(0, p.getId().indexOf("_")).toUpperCase();
|
||||
|
|
Loading…
Reference in New Issue