diff --git a/ui/src/common/components/CitationSummaryTable/CitationSummaryTable.jsx b/ui/src/common/components/CitationSummaryTable/CitationSummaryTable.jsx index b1dfa4287b..c661c602af 100644 --- a/ui/src/common/components/CitationSummaryTable/CitationSummaryTable.jsx +++ b/ui/src/common/components/CitationSummaryTable/CitationSummaryTable.jsx @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; +import { Link } from 'react-router-dom'; import './CitationSummaryTable.scss'; import ExternalLink from '../ExternalLink'; @@ -9,7 +10,7 @@ import LoadingOrChildren from '../LoadingOrChildren'; import ErrorAlertOrChildren from '../ErrorAlertOrChildren'; import { ErrorPropType } from '../../propTypes'; -const CITABLE_HELP_MESSAGE = ( +const PUBLISHED_HELP_MESSAGE = ( Published papers are believed to have undergone rigorous peer review.{' '} @@ -18,6 +19,13 @@ const CITABLE_HELP_MESSAGE = ( ); +const H_INDEX_HELP_MESSAGE = ( + + The h-index is defined as the number of papers with citation number higher + or equal to h. Learn more + +); + class CitationSummaryTable extends Component { render() { const { @@ -47,7 +55,7 @@ class CitationSummaryTable extends Component { @@ -74,7 +82,12 @@ class CitationSummaryTable extends Component { {publishedBucket.getIn(['citations_count', 'value'])} - h-index + + + {hIndex.get('all')} {hIndex.get('published')} diff --git a/ui/src/common/components/CitationSummaryTable/__tests__/__snapshots__/CitationSummaryTable.test.jsx.snap b/ui/src/common/components/CitationSummaryTable/__tests__/__snapshots__/CitationSummaryTable.test.jsx.snap index 23f495bd78..dcca82578e 100644 --- a/ui/src/common/components/CitationSummaryTable/__tests__/__snapshots__/CitationSummaryTable.test.jsx.snap +++ b/ui/src/common/components/CitationSummaryTable/__tests__/__snapshots__/CitationSummaryTable.test.jsx.snap @@ -61,7 +61,20 @@ exports[`CitationSummaryTable renders table without render props 1`] = ` - h-index + + The h-index is defined as the number of papers with citation number higher or equal to h. + + Learn more + + + } + label="h-index" + /> diff --git a/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-1-snap.png b/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-1-snap.png index a398b93324..e3cc66636b 100644 Binary files a/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-1-snap.png and b/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-1-snap.png differ diff --git a/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-2-snap.png b/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-2-snap.png index 715659aaa0..87938ba11b 100644 Binary files a/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-2-snap.png and b/ui/ui-tests/tests/authors/__image_snapshots__/detail-test-js-author-detail-should-match-image-snapshot-for-an-author-2-snap.png differ