diff --git a/components/navigation/MainNav/index.tsx b/components/navigation/MainNav/index.tsx index 7fb421ff..54d2bd28 100644 --- a/components/navigation/MainNav/index.tsx +++ b/components/navigation/MainNav/index.tsx @@ -74,7 +74,7 @@ const MainNav: FC = ({ setOpenSideBar, openSideBar }) => { className={`${ openSearch ? "hidden lg:block" - : "min-w-0 max-h-[2rem] w-full max-w-[10rem] md:h-[2.75rem] md:w-[15.5rem]" + : "max-h-[2rem] w-full min-w-0 max-w-[10rem] md:h-[2.75rem] md:w-[15.5rem]" }`} /> )} diff --git a/providers/EntrystoreProvider/index.tsx b/providers/EntrystoreProvider/index.tsx index 99c0e45a..aab37485 100644 --- a/providers/EntrystoreProvider/index.tsx +++ b/providers/EntrystoreProvider/index.tsx @@ -135,6 +135,7 @@ export const EntrystoreProvider: React.FC = ({ const datasets = await es .newSolrQuery() .rdfType(["dcat:Dataset", "dcat:DataService"]) + .publicRead(true) .uriProperty("dcterms:conformsTo", resourceURI) .getEntries(); @@ -145,6 +146,7 @@ export const EntrystoreProvider: React.FC = ({ hasResourceUri || entryUri, ) .rdfType(["dcterms:Standard", "prof:Profile"]) + .publicRead(true) .getEntries(); const datasetArr = await Promise.all( diff --git a/utilities/entryScape.ts b/utilities/entryScape.ts index a26f9566..095f3a44 100644 --- a/utilities/entryScape.ts +++ b/utilities/entryScape.ts @@ -511,6 +511,7 @@ export class EntryScape { const es = this.getEntryStore(); let esQuery = es.newSolrQuery(); + esQuery.publicRead(true); let searchList: any; const term = "http://www.w3.org/2004/02/skos/core#Concept"; @@ -654,12 +655,15 @@ export class EntryScape { const termSearch = request.esRdfTypes && request.esRdfTypes[0] === term; const prefLabel = es .newSolrQuery() + .publicRead(true) .literalProperty("skos:prefLabel", query).properties[0].md5; const altLabel = es .newSolrQuery() + .publicRead(true) .literalProperty("skos:altLabel", query).properties[0].md5; const hiddenLabel = es .newSolrQuery() + .publicRead(true) .literalProperty("skos:hiddenLabel", query).properties[0].md5; queryUrl = queryUrl.replace( diff --git a/utilities/entrystoreUtil.ts b/utilities/entrystoreUtil.ts index 650fe194..1267c91c 100644 --- a/utilities/entrystoreUtil.ts +++ b/utilities/entrystoreUtil.ts @@ -113,6 +113,7 @@ export const getLocalizedValue = async ( export const resourcesSearch = (resources: string[], es: any): Promise => { return new Promise((resolve) => { let esQuery = es.newSolrQuery(); + esQuery.publicRead(true); esQuery .resource(resources, null) .getEntries(0)