diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/voresource/VOResourceCtrl.java b/src/main/java/eu/omp/irap/vespa/epntapclient/voresource/VOResourceCtrl.java index 5b4482c..bcfd765 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/voresource/VOResourceCtrl.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/voresource/VOResourceCtrl.java @@ -91,13 +91,14 @@ public class VOResourceCtrl { StringJoiner keywordJoiner = new StringJoiner(" "); for (Map.Entry keyword : keywords.entrySet()) { - keywordJoiner.add(keyword.getKey() + ":\"" + keyword.getValue() + "\""); + keywordJoiner.add(keyword.getKey().toLowerCase() + ":\"" + keyword.getValue() + "\""); } Map parameters = new HashMap(); parameters.put("keywords", keywordJoiner.toString()); parameters.put("max", String.valueOf(VOResourceCtrl.MAX_VORESOURCES)); String query = Network.buildQuery(GET_IVOID_RESOURCES_URL, parameters); + System.out.println(query); try { ivoidResources = parseIvoidResources(Network.readJson(query)); } catch (CantSendQueryException e) { diff --git a/src/test/java/eu/omp/irap/vespa/epntapclient/TestEpnTapFacade.java b/src/test/java/eu/omp/irap/vespa/epntapclient/TestEpnTapFacade.java index c3d32ec..be2d7a5 100644 --- a/src/test/java/eu/omp/irap/vespa/epntapclient/TestEpnTapFacade.java +++ b/src/test/java/eu/omp/irap/vespa/epntapclient/TestEpnTapFacade.java @@ -74,7 +74,7 @@ public class TestEpnTapFacade { + Debug.toJson(resources)); Map keywords = new HashMap<>(); - keywords.put("type", "CatalogService"); + keywords.put("shortName", "IKS"); List resources2 = facade.getEPNVOResources(keywords); System.out.println("2.2 getEPNVOResources(keywords)\n\t" + Debug.toJson(resources2)); -- libgit2 0.21.2