Skip to content

Commit

Permalink
Merge pull request #429 from diggsweden/DIGG-408
Browse files Browse the repository at this point in the history
Digg 408  Minor fixes conforms to + dubble title
  • Loading branch information
AlessandroGasperini authored Jun 12, 2024
2 parents 4cafe8c + 262bd54 commit 86c1054
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/content/Entryscape/DataSetPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion locales/sv/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 8 additions & 5 deletions providers/EntrystoreProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,14 @@ export const EntrystoreProvider: React.FC<EntrystoreProviderProps> = ({
.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) => {
Expand Down

0 comments on commit 86c1054

Please sign in to comment.