From ad937d688652eb7efdb2d8e1b9ea7f33430c2394 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 Date: Fri, 22 Nov 2024 16:12:28 +0400 Subject: [PATCH] CORE: track back --- src/modules/search-result/search-result.jsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/modules/search-result/search-result.jsx b/src/modules/search-result/search-result.jsx index 0fc77f67..c87542e4 100644 --- a/src/modules/search-result/search-result.jsx +++ b/src/modules/search-result/search-result.jsx @@ -54,11 +54,14 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => { } const SearchResult = ({ + renderRedirectLink, children, id, className, + searchId, useLogo = true, data: { + workId, title, author = [], publicationDate, @@ -153,7 +156,11 @@ const SearchResult = ({ itemType="https://schema.org/Person" > {a.name.replace(',', ' ')} @@ -208,7 +215,11 @@ const SearchResult = ({ className={styles.dataProvider} > {dataProvider.name} @@ -223,9 +234,11 @@ const SearchResult = ({ SearchResult.propTypes = { id: PropTypes.string.isRequired, + searchId: PropTypes.string, useLogo: PropTypes.bool, + renderRedirectLink: PropTypes.bool, data: PropTypes.shape({ - id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + workId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), title: PropTypes.string, author: PropTypes.arrayOf( PropTypes.shape({