Skip to content

Commit

Permalink
CORE: temp remove tracking (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 22, 2024
1 parent 27aeab0 commit 8da5065
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/modules/search-result/search-result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ const fullTextStatus = ({ title, fullTextLink } = {}) => {
}

const SearchResult = ({
renderRedirectLink,
children,
id,
className,
searchId,
useLogo = true,
data: {
workId,
title,
author = [],
publicationDate,
Expand Down Expand Up @@ -156,11 +153,7 @@ const SearchResult = ({
itemType="https://schema.org/Person"
>
<a
href={
renderRedirectLink && searchId
? `/search?q=author:(${a.name})&t=${searchId}-${workId}`
: `/search?q=author:(${a.name})`
}
href={`/search?q=author:(${a.name})`}
className={styles.link}
>
<span itemProp="name">{a.name.replace(',', ' ')}</span>
Expand Down Expand Up @@ -215,11 +208,7 @@ const SearchResult = ({
className={styles.dataProvider}
>
<Link
href={
renderRedirectLink && searchId
? `/data-providers/${dataProvider.id}?t=${searchId}-${workId}`
: `/data-providers/${dataProvider.id}`
}
href={`//core.ac.uk/data-providers/${dataProvider.id}`}
className={styles.repositoryLink}
>
<span itemProp="name">{dataProvider.name}</span>
Expand All @@ -234,11 +223,9 @@ const SearchResult = ({

SearchResult.propTypes = {
id: PropTypes.string.isRequired,
searchId: PropTypes.string,
useLogo: PropTypes.bool,
renderRedirectLink: PropTypes.bool,
data: PropTypes.shape({
workId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
title: PropTypes.string,
author: PropTypes.arrayOf(
PropTypes.shape({
Expand Down

0 comments on commit 8da5065

Please sign in to comment.