File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
components/content/Entryscape/DataSetPage
providers/EntrystoreProvider Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ const filterContactAndLandingPage = [
50
50
"dcat:landingPage" ,
51
51
"http://data.europa.eu/r5r/applicableLegislation" ,
52
52
"http://xmlns.com/foaf/0.1/page" ,
53
+ "http://data.europa.eu/r5r/hvdCategory" ,
53
54
] ;
54
55
55
56
export const DataSetPage : React . FC = ( ) => {
Original file line number Diff line number Diff line change 154
154
"fileformat" : " other file format" ,
155
155
"rdf" : " Download metadata as RDF" ,
156
156
"view_more" : " View more" ,
157
- "related_specifications" : " Related specifications " ,
157
+ "related_specifications" : " Specification " ,
158
158
"view_less" : " View less" ,
159
159
"dataservice" : " Dataservice" ,
160
160
"keyword" : " Keywords" ,
Original file line number Diff line number Diff line change 154
154
"fileformat" : " övrigt filformat" ,
155
155
"rdf" : " Ladda ner metadata som RDF" ,
156
156
"view_more" : " Visa mer" ,
157
- "related_specifications" : " Relaterade specifikationer " ,
157
+ "related_specifications" : " Specifikation " ,
158
158
"view_less" : " Visa mindre" ,
159
159
"dataservice" : " Dataservice" ,
160
160
"keyword" : " Nyckelord" ,
Original file line number Diff line number Diff line change @@ -341,11 +341,14 @@ export const EntrystoreProvider: React.FC<EntrystoreProviderProps> = ({
341
341
. find ( null , "dcterms:conformsTo" )
342
342
. map ( ( stmt : any ) => stmt . getValue ( ) ) ;
343
343
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
+ : [ ] ;
349
352
350
353
const specArr = await Promise . all (
351
354
findSpec . map ( async ( spec : any ) => {
You can’t perform that action at this time.
0 commit comments