From 7f7083f53e88a38ee940cf8cd9ced57e24bb2140 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Wed, 13 Mar 2024 11:57:26 +0100 Subject: [PATCH] updated sql query for filtering BASE records --- .../dhp/collection/plugin/base/sql/opendoar-accepted.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/resources/eu/dnetlib/dhp/collection/plugin/base/sql/opendoar-accepted.sql b/dhp-workflows/dhp-aggregation/src/main/resources/eu/dnetlib/dhp/collection/plugin/base/sql/opendoar-accepted.sql index b7dd835ee..7b3cb9610 100644 --- a/dhp-workflows/dhp-aggregation/src/main/resources/eu/dnetlib/dhp/collection/plugin/base/sql/opendoar-accepted.sql +++ b/dhp-workflows/dhp-aggregation/src/main/resources/eu/dnetlib/dhp/collection/plugin/base/sql/opendoar-accepted.sql @@ -2,6 +2,8 @@ select s.id as id from dsm_services s where collectedfrom = 'openaire____::opendoar' and jurisdiction = 'Institutional' -and s.id not in ( - select service from dsm_api where coalesce(compatibility_override, compatibility) like '%openaire%' or last_collection_total > 0 -); \ No newline at end of file +and s.id in ( + select service from dsm_api where coalesce(compatibility_override, compatibility) = 'driver' or coalesce(compatibility_override, compatibility) = 'UNKNOWN' +) and s.id not in ( + select service from dsm_api where coalesce(compatibility_override, compatibility) like '%openaire%' +);