From 1f52400de07a63ac1e0ffa44a2c8772f4fdb44f6 Mon Sep 17 00:00:00 2001 From: Serafeim Chatzopoulos Date: Mon, 29 Apr 2024 19:25:30 +0300 Subject: [PATCH] Add extra default filters for organizations --- .../openaire/api/mappers/query/OrganizationRequestMapper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/openaire/api/mappers/query/OrganizationRequestMapper.java b/src/main/java/eu/openaire/api/mappers/query/OrganizationRequestMapper.java index 29f6d5d..3cb1222 100644 --- a/src/main/java/eu/openaire/api/mappers/query/OrganizationRequestMapper.java +++ b/src/main/java/eu/openaire/api/mappers/query/OrganizationRequestMapper.java @@ -62,6 +62,8 @@ public interface OrganizationRequestMapper { fqList.add(String.format("oaftype:\"%s\"", "organization")); fqList.add(String.format("deletedbyinference:%s", "false")); + fqList.add(String.format("reldatasourcecompatibilityid:(%s)", "\"driver\" OR \"driver-openaire2.0\" OR \"openaire2.0\" OR \"openaire3.0\" OR \"openaire4.0\" OR \"openaire-cris_1.1\" OR \"openaire2.0_data\" OR \"hostedBy\"")); + fqList.add(String.format("relproject:%s", "[ * TO * ]")); // TODO: add other filters by default?