We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3f514 commit 27612d7Copy full SHA for 27612d7
1 file changed
src/data-search.js
@@ -45,10 +45,10 @@ export async function getData () {
45
// Filter for multiple versions of the same paper
46
const papers = [];
47
for (const paper of allPapers) {
48
- const exists = papers.find((obj) => obj.title === paper.title);
+ const exists = papers.find((obj) => obj.doi === paper.doi);
49
50
if (!exists) {
51
- const allVersions = allPapers.filter((obj) => obj.title === paper.title);
+ const allVersions = allPapers.filter((obj) => obj.doi === paper.doi);
52
if (allVersions.length > 1) {
53
const max = allVersions.reduce((maxObj, obj) => {
54
if (obj.version > maxObj.version) {
0 commit comments