Revision 7fcb1960
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/parser/ParserUtil.java | ||
---|---|---|
32 | 32 |
} |
33 | 33 |
|
34 | 34 |
public static String parseDescription(JSONObject jsonObject) throws JSONException{ |
35 |
return jsonObject.getString("description"); |
|
35 |
String descriptionKey = "description"; |
|
36 |
if(jsonObject.has(descriptionKey)){ |
|
37 |
return jsonObject.getString(descriptionKey); |
|
38 |
} |
|
39 |
return null; |
|
36 | 40 |
} |
37 | 41 |
|
38 | 42 |
public static String parseTerminology(JSONObject jsonObject) throws JSONException { |
Also available in: Unified diff
ref #7362 Add "Load Details" button