From 0f73e95209595d62bb7f11c5dea166f82088c564 Mon Sep 17 00:00:00 2001 From: spyroukon Date: Mon, 10 Oct 2022 16:04:06 +0000 Subject: [PATCH] filter out only sword and rest --- .../dnetlib/repo/manager/service/RepositoryServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java index 440b096..76cf6ed 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java @@ -473,11 +473,11 @@ public class RepositoryServiceImpl implements RepositoryService { ApiDetailsResponse rs = restTemplate.getForObject(uriComponents.toUri(), ApiDetailsResponse.class); - // TODO STOP FILTERING OUT "sword", "rest", etc AND FIX UI! + // TODO STOP FILTERING OUT "sword", "rest" AND FIX UI! List res = new ArrayList<>(); for (ApiDetails det: rs.getApi()) { - if (det.getProtocol().equals("oai")) + if (!det.getProtocol().equals("sword") && !det.getProtocol().equals("rest")) res.add(det); }