Exclude records that are under curation

This commit is contained in:
Serafeim Chatzopoulos 2024-07-15 18:07:14 +03:00
parent c60a60420f
commit fa6a9f13e5
4 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public interface DataSourceRequestMapper {
fqList.add(String.format("oaftype:\"%s\"", "datasource"));
fqList.add(String.format("eosctype:\"%s\"", "Data Source"));
fqList.add(String.format("deletedbyinference:%s", "false"));
fqList.add(String.format("-status:\"%s\"", "under curation"));
if (!Utils.isNullOrEmpty(src.getId())) {
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));

View File

@ -56,6 +56,7 @@ public interface OrganizationRequestMapper {
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 * ]"));
fqList.add(String.format("-status:\"%s\"", "under curation"));
if (!Utils.isNullOrEmpty(src.getId())) {
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));

View File

@ -53,6 +53,7 @@ public interface ProjectRequestMapper {
fqList.add(String.format("oaftype:\"%s\"", "project"));
fqList.add(String.format("deletedbyinference:%s", "false"));
fqList.add(String.format("-status:\"%s\"", "under curation"));
if (!Utils.isNullOrEmpty(src.getId())) {
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));

View File

@ -69,6 +69,7 @@ public interface ResearchProductsRequestMapper {
fqList.add(String.format("oaftype:\"%s\"", "result"));
fqList.add(String.format("deletedbyinference:%s", "false"));
fqList.add(String.format("-status:\"%s\"", "under curation"));
if (!Utils.isNullOrEmpty(src.getId())) {
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));