Skip to content
Snippets Groups Projects
Commit d2277318 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

pmc (pubmed) API changed

parent 8c263871
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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