Revision 57700
Added by Miriam Baglioni over 4 years ago
modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/excel/Read.java | ||
---|---|---|
132 | 132 |
if (StringUtils.isNotEmpty(argument)){ |
133 | 133 |
try{ |
134 | 134 |
final JSONObject json = new JSONObject(argument); |
135 |
if(json.has("header")) |
|
135 |
JSONObject tmp = json.getJSONObject("replace"); |
|
136 |
if(tmp.has("header")) |
|
136 | 137 |
fillMap(json, map_header,"header"); |
137 |
if (json.has("body"))
|
|
138 |
if(tmp.has("body"))
|
|
138 | 139 |
fillMap(json,map_body,"body"); |
140 |
// if(json.has("header")) |
|
141 |
// fillMap(json, map_header,"header"); |
|
142 |
// if (json.has("body")) |
|
143 |
// fillMap(json,map_body,"body"); |
|
139 | 144 |
|
140 | 145 |
if(json.has("replace_currency")) |
141 | 146 |
{ |
Also available in: Unified diff
fixed issue on parsing argument parameter for the plugin