Skip to content

Commit 35dcb17

Browse files
CORE: test prop vol1 (#713)
1 parent 315a10a commit 35dcb17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/modules/search-result/search-result.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => {
5555

5656
const SearchResult = ({
5757
renderRedirectLink,
58+
renderKeys,
5859
children,
5960
id,
6061
className,
@@ -157,7 +158,7 @@ const SearchResult = ({
157158
>
158159
<a
159160
href={
160-
renderRedirectLink
161+
renderRedirectLink || renderKeys
161162
? `/search?q=author:(${a.name})&t=${searchId}-${workId}`
162163
: `/search?q=author:(${a.name})`
163164
}
@@ -216,7 +217,7 @@ const SearchResult = ({
216217
>
217218
<Link
218219
href={
219-
renderRedirectLink
220+
renderRedirectLink || renderKeys
220221
? `//core.ac.uk/data-providers/${dataProvider.id}?t=${searchId}-${workId}`
221222
: `//core.ac.uk/data-providers/${dataProvider.id}`
222223
}
@@ -237,6 +238,7 @@ SearchResult.propTypes = {
237238
searchId: PropTypes.string,
238239
useLogo: PropTypes.bool,
239240
renderRedirectLink: PropTypes.bool,
241+
renderKeys: PropTypes.bool,
240242
data: PropTypes.shape({
241243
workId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
242244
title: PropTypes.string,

0 commit comments

Comments
 (0)