Commit d2277318 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

pmc (pubmed) API changed

parent 8c263871
......@@ -54,7 +54,7 @@ public class PubmedParser extends CachableInterface implements IExternalService
/**
* Version of the remote API thnat is supported by this connecting class.
*/
static final String SUPPORTED_VERSION = "4.5.3";
static final String SUPPORTED_VERSION = "4.5.3.2";
/**
* Connector used for accessing data from miriam registry.
......@@ -258,6 +258,7 @@ public class PubmedParser extends CachableInterface implements IExternalService
try {
Article art = getPubmedArticleById(SERVICE_STATUS_PUBMED_ID);
if (!getApiVersion().equals(SUPPORTED_VERSION)) {
logger.debug("New europepmc API version: " + getApiVersion());
status.setStatus(ExternalServiceStatusType.CHANGED);
} else if (art == null) {
status.setStatus(ExternalServiceStatusType.DOWN);
......
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