From 1bfa3b320b365a3c86a1d186116bc167d5b462df Mon Sep 17 00:00:00 2001 From: Alessandro Gasperini Date: Mon, 10 Jun 2024 19:57:54 +0200 Subject: [PATCH 1/3] DIGG-408: Minor fixes conforms to + dubble title --- components/content/Entryscape/DataSetPage/index.tsx | 1 + locales/en/pages.json | 2 +- locales/sv/pages.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/content/Entryscape/DataSetPage/index.tsx b/components/content/Entryscape/DataSetPage/index.tsx index 7ec497ff..9085312e 100644 --- a/components/content/Entryscape/DataSetPage/index.tsx +++ b/components/content/Entryscape/DataSetPage/index.tsx @@ -50,6 +50,7 @@ const filterContactAndLandingPage = [ "dcat:landingPage", "http://data.europa.eu/r5r/applicableLegislation", "http://xmlns.com/foaf/0.1/page", + "http://data.europa.eu/r5r/hvdCategory", ]; export const DataSetPage: React.FC = () => { diff --git a/locales/en/pages.json b/locales/en/pages.json index d69331bc..affa9eea 100644 --- a/locales/en/pages.json +++ b/locales/en/pages.json @@ -154,7 +154,7 @@ "fileformat": "other file format", "rdf": "Download metadata as RDF", "view_more": "View more", - "related_specifications": "Related specifications", + "related_specifications": "Specification", "view_less": "View less", "dataservice": "Dataservice", "keyword": "Keywords", diff --git a/locales/sv/pages.json b/locales/sv/pages.json index 6707d4e7..e2d979fe 100644 --- a/locales/sv/pages.json +++ b/locales/sv/pages.json @@ -154,7 +154,7 @@ "fileformat": "övrigt filformat", "rdf": "Ladda ner metadata som RDF", "view_more": "Visa mer", - "related_specifications": "Relaterade specifikationer", + "related_specifications": "Specifikation", "view_less": "Visa mindre", "dataservice": "Dataservice", "keyword": "Nyckelord", From e9795b15eb4671c4468e9d679e2bc3b17fee4ec3 Mon Sep 17 00:00:00 2001 From: Alessandro Gasperini Date: Tue, 11 Jun 2024 09:23:13 +0200 Subject: [PATCH 2/3] DIGG-408: Related spec fix --- providers/EntrystoreProvider/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/providers/EntrystoreProvider/index.tsx b/providers/EntrystoreProvider/index.tsx index 00cc1db9..d66c0446 100644 --- a/providers/EntrystoreProvider/index.tsx +++ b/providers/EntrystoreProvider/index.tsx @@ -341,11 +341,13 @@ export const EntrystoreProvider: React.FC = ({ .find(null, "dcterms:conformsTo") .map((stmt: any) => stmt.getValue()); - const findSpec = await es - .newSolrQuery() - .resource(maybeSpecs, null) - .rdfType(["dcterms:Standard", "prof:Profile"]) - .getEntries(); + const findSpec = + maybeSpecs.length > 0 && + (await es + .newSolrQuery() + .resource(maybeSpecs, null) + .rdfType(["dcterms:Standard", "prof:Profile"]) + .getEntries()); const specArr = await Promise.all( findSpec.map(async (spec: any) => { From 262bd54a501f833ab91786287d75de728e7fe990 Mon Sep 17 00:00:00 2001 From: Alessandro Gasperini Date: Tue, 11 Jun 2024 09:26:16 +0200 Subject: [PATCH 3/3] DIGG-408: Related spec fix --- providers/EntrystoreProvider/index.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/providers/EntrystoreProvider/index.tsx b/providers/EntrystoreProvider/index.tsx index d66c0446..bfb55423 100644 --- a/providers/EntrystoreProvider/index.tsx +++ b/providers/EntrystoreProvider/index.tsx @@ -342,12 +342,13 @@ export const EntrystoreProvider: React.FC = ({ .map((stmt: any) => stmt.getValue()); const findSpec = - maybeSpecs.length > 0 && - (await es - .newSolrQuery() - .resource(maybeSpecs, null) - .rdfType(["dcterms:Standard", "prof:Profile"]) - .getEntries()); + maybeSpecs.length > 0 + ? await es + .newSolrQuery() + .resource(maybeSpecs, null) + .rdfType(["dcterms:Standard", "prof:Profile"]) + .getEntries() + : []; const specArr = await Promise.all( findSpec.map(async (spec: any) => {