Skip to content

Commit

Permalink
CORE: test prop vol1 (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 12, 2024
1 parent 315a10a commit 35dcb17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/search-result/search-result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => {

const SearchResult = ({
renderRedirectLink,
renderKeys,
children,
id,
className,
Expand Down Expand Up @@ -157,7 +158,7 @@ const SearchResult = ({
>
<a
href={
renderRedirectLink
renderRedirectLink || renderKeys
? `/search?q=author:(${a.name})&t=${searchId}-${workId}`
: `/search?q=author:(${a.name})`
}
Expand Down Expand Up @@ -216,7 +217,7 @@ const SearchResult = ({
>
<Link
href={
renderRedirectLink
renderRedirectLink || renderKeys
? `//core.ac.uk/data-providers/${dataProvider.id}?t=${searchId}-${workId}`
: `//core.ac.uk/data-providers/${dataProvider.id}`
}
Expand All @@ -237,6 +238,7 @@ SearchResult.propTypes = {
searchId: PropTypes.string,
useLogo: PropTypes.bool,
renderRedirectLink: PropTypes.bool,
renderKeys: PropTypes.bool,
data: PropTypes.shape({
workId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
title: PropTypes.string,
Expand Down

0 comments on commit 35dcb17

Please sign in to comment.