Revision 37078
Added by Eri Katsari about 9 years ago
FundingParser.java | ||
---|---|---|
33 | 33 |
funding_level = funding_level.substring(0, funding_level.indexOf("</name>")); |
34 | 34 |
funding_level = funding_level.replaceAll("\"", ""); |
35 | 35 |
funding_level = funding_level.replaceAll("&", ""); |
36 |
|
|
37 |
if (level == 1) { |
|
38 |
if (funding_level.equalsIgnoreCase("SP1")) { |
|
39 |
funding_level = "SP1-Cooperation"; |
|
40 |
} else if (funding_level.equalsIgnoreCase("SP2")) { |
|
41 |
funding_level = "SP2-Ideas"; |
|
42 |
} |
|
43 |
if (funding_level.equalsIgnoreCase("SP3")) { |
|
44 |
funding_level = "SP3-People"; |
|
45 |
} else if (funding_level.equalsIgnoreCase("SP4")) { |
|
46 |
funding_level = "SP4 - Capacities"; |
|
47 |
|
|
48 |
} else if (funding_level.equalsIgnoreCase("SP5")) { |
|
49 |
funding_level = "SP5-Euratom"; |
|
50 |
} |
|
51 |
} |
|
52 |
|
|
36 | 53 |
return ENCLOSED + funding_level + ENCLOSED + DELIM; |
37 | 54 |
} |
38 | 55 |
|
Also available in: Unified diff
fixed issue with SP1-2-3-4 mapping