Skip to content

Commit b4fadf7

Browse files
author
Alexandra Shubenko
committed
change authors list to 20
1 parent a6e5f46 commit b4fadf7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vis/js/dataprocessing/managers/DataManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ class DataManager {
154154
const firstAuthors = paper.authors_list.slice(0, 19).join(", ");
155155
const lastAuthor = paper.authors_list[paper.authors_list.length - 1];
156156
// get first 19 authors and add "..." and last author for the visual part the map
157-
paper.authors_string = `${firstAuthors}, ... ${lastAuthor}`;
157+
paper.authors_string = `${firstAuthors}, ... ${lastAuthor}`;
158158
// in the case of more than 19 authors left an array of 20 authors for further processing in the visual part with "..." between the authors
159159
paper.authors_list = paper.authors_list.slice(0, 20).concat(lastAuthor);
160+
} else {
161+
paper.authors_string = paper.authors_list.join(", ");
160162
}
161163
}
162164

0 commit comments

Comments
 (0)