Skip to content

Commit

Permalink
DIGG-442: fixing minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopin1 committed Jan 14, 2025
1 parent 18c34ce commit 9d3c7ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion features/entryscape/showcase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Showcase: FC<ShowcaseType> = ({ title, date, description }) => {
textSize="md"
modalOpen={showModal}
setModalOpen={setShowModal}
></Modal>
/>
</div>
);
};
Expand Down
3 changes: 2 additions & 1 deletion locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion types/organisation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export interface TermsInfo {
export interface Showcase {
date: string;
title: string;
url: string;
description: string;
}

Expand Down
4 changes: 1 addition & 3 deletions utilities/entrystore/entrystore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9d3c7ba

Please sign in to comment.