Skip to content

Commit 86c1054

Browse files
Merge pull request #429 from diggsweden/DIGG-408
Digg 408 Minor fixes conforms to + dubble title
2 parents 4cafe8c + 262bd54 commit 86c1054

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

components/content/Entryscape/DataSetPage/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const filterContactAndLandingPage = [
5050
"dcat:landingPage",
5151
"http://data.europa.eu/r5r/applicableLegislation",
5252
"http://xmlns.com/foaf/0.1/page",
53+
"http://data.europa.eu/r5r/hvdCategory",
5354
];
5455

5556
export const DataSetPage: React.FC = () => {

locales/en/pages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"fileformat": "other file format",
155155
"rdf": "Download metadata as RDF",
156156
"view_more": "View more",
157-
"related_specifications": "Related specifications",
157+
"related_specifications": "Specification",
158158
"view_less": "View less",
159159
"dataservice": "Dataservice",
160160
"keyword": "Keywords",

locales/sv/pages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"fileformat": "övrigt filformat",
155155
"rdf": "Ladda ner metadata som RDF",
156156
"view_more": "Visa mer",
157-
"related_specifications": "Relaterade specifikationer",
157+
"related_specifications": "Specifikation",
158158
"view_less": "Visa mindre",
159159
"dataservice": "Dataservice",
160160
"keyword": "Nyckelord",

providers/EntrystoreProvider/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,14 @@ export const EntrystoreProvider: React.FC<EntrystoreProviderProps> = ({
341341
.find(null, "dcterms:conformsTo")
342342
.map((stmt: any) => stmt.getValue());
343343

344-
const findSpec = await es
345-
.newSolrQuery()
346-
.resource(maybeSpecs, null)
347-
.rdfType(["dcterms:Standard", "prof:Profile"])
348-
.getEntries();
344+
const findSpec =
345+
maybeSpecs.length > 0
346+
? await es
347+
.newSolrQuery()
348+
.resource(maybeSpecs, null)
349+
.rdfType(["dcterms:Standard", "prof:Profile"])
350+
.getEntries()
351+
: [];
349352

350353
const specArr = await Promise.all(
351354
findSpec.map(async (spec: any) => {

0 commit comments

Comments
 (0)