From 9d3c7ba57a4ba248c7013221a8c9996343bd9e85 Mon Sep 17 00:00:00 2001 From: Konstantin Pinaev Date: Tue, 14 Jan 2025 11:26:58 +0100 Subject: [PATCH] DIGG-442: fixing minor errors --- features/entryscape/showcase/index.tsx | 2 +- locales/en/pages.json | 3 ++- types/organisation.ts | 1 - utilities/entrystore/entrystore.service.ts | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/features/entryscape/showcase/index.tsx b/features/entryscape/showcase/index.tsx index ce6417da..4e84f344 100644 --- a/features/entryscape/showcase/index.tsx +++ b/features/entryscape/showcase/index.tsx @@ -39,7 +39,7 @@ const Showcase: FC = ({ title, date, description }) => { textSize="md" modalOpen={showModal} setModalOpen={setShowModal} - > + /> ); }; diff --git a/locales/en/pages.json b/locales/en/pages.json index b0179b99..63fd6760 100644 --- a/locales/en/pages.json +++ b/locales/en/pages.json @@ -156,7 +156,8 @@ "protected-data": "Protected datasets", "spec-data": "Datasets that follow specifications", "view-all-data": "View datasets", - "view-all-spec": "View specifications" + "view-all-spec": "View specifications", + "showcases_heading": "Examples of use cases" }, "organisations": { "organisations": "organisations", diff --git a/types/organisation.ts b/types/organisation.ts index f335dca4..22f3b90f 100644 --- a/types/organisation.ts +++ b/types/organisation.ts @@ -29,7 +29,6 @@ export interface TermsInfo { export interface Showcase { date: string; title: string; - url: string; description: string; } diff --git a/utilities/entrystore/entrystore.service.ts b/utilities/entrystore/entrystore.service.ts index b735d6c6..af97a323 100644 --- a/utilities/entrystore/entrystore.service.ts +++ b/utilities/entrystore/entrystore.service.ts @@ -854,14 +854,12 @@ export class EntrystoreService { const showcaseData = await this.entryStore .newSolrQuery() .rdfType("dcat:Resource") + .publicRead(true) .uriProperty("dcterms:publisher", entry.getResourceURI()) .getEntries(); return showcaseData.map((entry: Entry) => ({ title: getLocalizedValue(entry.getAllMetadata(), "dcterms:title"), - url: `/${this.lang}/showcases/${entry - .getContext() - .getId()}_${entry.getId()}`, date: getLocalizedValue(entry.getAllMetadata(), "dcterms:issued"), description: getLocalizedValue( entry.getAllMetadata(),