Skip to content
Snippets Groups Projects
Commit 3fa93fd3 authored by piotr.gawron's avatar piotr.gawron
Browse files

fix on drugbank web changes

parent f284b3b3
No related branches found
No related tags found
1 merge request!1Issue 37
...@@ -197,8 +197,12 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi ...@@ -197,8 +197,12 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi
String description = webpageContent.substring(startIndex, endIndex); String description = webpageContent.substring(startIndex, endIndex);
// find special html characters // find special html characters
description = StringEscapeUtils.unescapeHtml4(description); description = StringEscapeUtils.unescapeHtml4(description);
description = cleanHtml(description);
if (description.equalsIgnoreCase("Not Available")) {
description = null;
}
return cleanHtml(description); return description;
} }
/** /**
...@@ -390,9 +394,8 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi ...@@ -390,9 +394,8 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi
* @throws DrugSearchException * @throws DrugSearchException
* thrown when there are problems with connection to DrugBank * thrown when there are problems with connection to DrugBank
* database * database
* @return * @return drug with the information abtained from drugbank or
* drug with the information abtained from drugbank or * <code>null</code> if such data couldn't be found
* <code>null</code> if such data couldn't be found
*/ */
private Drug findMoreInformation(String name) throws DrugSearchException { private Drug findMoreInformation(String name) throws DrugSearchException {
Drug result = null; Drug result = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment