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

mesh parser refresh http queries properly

parent 53bdc55f
No related branches found
No related tags found
1 merge request!1Issue 37
......@@ -61,7 +61,9 @@ public class MeSHParser extends CachableInterface implements IExternalService {
try {
if (query instanceof String) {
String identifier = (String) query;
if (identifier.startsWith(MESH_PREFIX)) {
if (identifier.startsWith("http")) {
result = getWebPageContent(identifier);
} else if (identifier.startsWith(MESH_PREFIX)) {
String[] ids = identifier.split("\\:");
if (ids.length == 2) {
MiriamData meshID = new MiriamData(MiriamType.MESH_2012, ids[1]);
......
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