Commit 57b2c604 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '496_taxonomy_connector' into 'devel_12.0.x'

taxonomy changed html response

See merge request minerva/core!388
parents 608161ae a82625d3
......@@ -108,7 +108,7 @@ public class TaxonomyBackend extends CachableInterface implements IExternalServi
queryTerm = URLEncoder.encode(queryTerm, "UTF-8");
String url = "" + queryTerm;
String page = getWebPageContent(url);
Pattern idPattern = Pattern.compile("<em>Taxonomy ID: </em>([0-9]+)");
Pattern idPattern = Pattern.compile("Taxonomy ID: ([0-9]+)");
Matcher matcher = idPattern.matcher(page);
if (!matcher.find()) {
logger.warn("Unknown organism: " + term);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment