Project

General

Profile

« Previous | Next » 

Revision 57700

fixed issue on parsing argument parameter for the plugin

View differences:

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