Skip to content

Commit 2d1fbb9

Browse files
committed
fix: displaying citations_count instead of num_readers
1 parent a1cba10 commit 2d1fbb9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

vis/js/templates/listentry/StandardListEntry.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import EntryBacklink from "./EntryBacklink";
1919
import Keywords from "./Keywords";
2020
import Link from "./Link";
2121
import Metrics from "./Metrics";
22-
import OrcidMetrics from './OrcidMetrics';
22+
import OrcidMetrics from "./OrcidMetrics";
2323
import Title from "./Title";
2424

2525
/**
@@ -49,7 +49,7 @@ const StandardListEntry = ({
4949
onClick: () => handleBacklinkClick(),
5050
};
5151

52-
const citations = paper.readers;
52+
const citations = paper.citation_count;
5353
const showCitations =
5454
!isContentBased &&
5555
!!baseUnit &&
@@ -122,7 +122,9 @@ const mapStateToProps = (state) => ({
122122
showBacklink: state.chartType === STREAMGRAPH_MODE && !!state.selectedPaper,
123123
isInStreamBacklink: !!state.selectedBubble,
124124
showDocTags: state.service === "base" || state.service === "orcid",
125-
showAllDocTypes: (state.service === "base" || state.service === "orcid") && !!state.selectedPaper,
125+
showAllDocTypes:
126+
(state.service === "base" || state.service === "orcid") &&
127+
!!state.selectedPaper,
126128
service: state.service,
127129
});
128130

0 commit comments

Comments
 (0)