File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/modules/search-result Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => {
5555
5656const 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 ,
You can’t perform that action at this time.
0 commit comments