Skip to content

Commit

Permalink
CORE: add click indicator (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 5, 2024
1 parent dde7f11 commit 37bae91
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/modules/search-result/search-result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const SearchResult = ({
children,
id,
className,
searchId,
useLogo = true,
data: {
workId,
title,
author = [],
publicationDate,
Expand Down Expand Up @@ -153,7 +155,7 @@ const SearchResult = ({
itemType="https://schema.org/Person"
>
<a
href={`/search?q=author:(${a.name})`}
href={`/search?q=author:(${a.name})?t=${searchId}-${workId}`}
className={styles.link}
>
<span itemProp="name">{a.name.replace(',', ' ')}</span>
Expand Down Expand Up @@ -208,7 +210,7 @@ const SearchResult = ({
className={styles.dataProvider}
>
<Link
href={`//core.ac.uk/data-providers/${dataProvider.id}`}
href={`//core.ac.uk/data-providers/${dataProvider.id}?t=${searchId}-${workId}`}
className={styles.repositoryLink}
>
<span itemProp="name">{dataProvider.name}</span>
Expand All @@ -223,9 +225,10 @@ const SearchResult = ({

SearchResult.propTypes = {
id: PropTypes.string.isRequired,
searchId: PropTypes.string,
useLogo: 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({
Expand Down

0 comments on commit 37bae91

Please sign in to comment.