Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
minerva
core
Commits
d2277318
Commit
d2277318
authored
Jan 31, 2017
by
Piotr Gawron
Browse files
pmc (pubmed) API changed
parent
8c263871
Changes
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/services/PubmedParser.java
View file @
d2277318
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment