diff --git a/package-lock.json b/package-lock.json index 093cf25f..ea8fe021 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3109,9 +3109,9 @@ } }, "node_modules/@oacore/design": { - "version": "5.0.12", - "resolved": "https://npm.pkg.github.com/download/@oacore/design/5.0.12/6a12643ec4d92cc669876a91bfa73fac05f9a762", - "integrity": "sha512-hdjt7Y9VXQSyTU2FvR6t5r/zc9GBXySz76gzDAzyuwXK62MgP6NpOj8vahzkwbEVTd78q47iIsqOCvoyHwN1PA==", + "version": "5.0.13", + "resolved": "https://npm.pkg.github.com/download/@oacore/design/5.0.13/19b0f81f88dedcb4b9275bc996129f67ec80c908", + "integrity": "sha512-N0FFUM+jeC2WxQAelx3ccryFtz0lJOss37+zr+9GoV/pYT9r/vwnRTO+1r/eaT5iWO8UvZ5XZzVit7S3gQ6SPA==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -21669,9 +21669,9 @@ } }, "@oacore/design": { - "version": "5.0.12", - "resolved": "https://npm.pkg.github.com/download/@oacore/design/5.0.12/6a12643ec4d92cc669876a91bfa73fac05f9a762", - "integrity": "sha512-hdjt7Y9VXQSyTU2FvR6t5r/zc9GBXySz76gzDAzyuwXK62MgP6NpOj8vahzkwbEVTd78q47iIsqOCvoyHwN1PA==", + "version": "5.0.13", + "resolved": "https://npm.pkg.github.com/download/@oacore/design/5.0.13/19b0f81f88dedcb4b9275bc996129f67ec80c908", + "integrity": "sha512-N0FFUM+jeC2WxQAelx3ccryFtz0lJOss37+zr+9GoV/pYT9r/vwnRTO+1r/eaT5iWO8UvZ5XZzVit7S3gQ6SPA==", "requires": { "@babel/runtime": "^7.12.1", "@mdi/svg": "^5.8.55", diff --git a/templates/data-provider/index.jsx b/templates/data-provider/index.jsx index e2ea8d8a..c8c034d6 100644 --- a/templates/data-provider/index.jsx +++ b/templates/data-provider/index.jsx @@ -113,7 +113,7 @@ const DataProviderTemplate = ({ data, onSearch, className, ...restProps }) => { className={styles.sort} /> - + {outputs.data.length === 0 && outputs.error == null && (
This data provider has not articles yet. diff --git a/templates/search/index.jsx b/templates/search/index.jsx index 90b4d61c..c93874fa 100644 --- a/templates/search/index.jsx +++ b/templates/search/index.jsx @@ -110,7 +110,11 @@ const SearchTemplate = observe(({ data }) => { /> )}
- + {data.currentPage === 1000 && (
Our search interface allows you to see only the first 10.000 diff --git a/templates/search/results.jsx b/templates/search/results.jsx index ae5729ab..07a6c31d 100644 --- a/templates/search/results.jsx +++ b/templates/search/results.jsx @@ -6,7 +6,7 @@ import { checkType } from '../../utils/data-providers-transform' import { formatDate } from 'utils/helpers' -const Results = ({ works, searchId }) => +const Results = ({ works, searchId, renderKeys }) => works.map( ({ id, @@ -27,6 +27,8 @@ const Results = ({ works, searchId }) => const fullTextLink = links.find((l) => l.type === 'download')?.url const metadataLink = links.find((l) => l.type === 'display')?.url + const urlSearchString = window.location.search + const publicationDate = publishedDate ? formatDate(new Date(publishedDate)) : yearPublished !== null && toString(yearPublished) @@ -78,7 +80,8 @@ const Results = ({ works, searchId }) => className={styles.searchResults} useLogo={!!checkBillingType()} searchId={searchId} - renderRedirectLink + renderKeys={renderKeys} + renderRedirectLink={!urlSearchString.includes('author')} data={{ workId: id, title,