Skip to content

Commit 8c593e7

Browse files
committed
Merge branch 'dev' into triple-cite
2 parents 9992c06 + a1c7587 commit 8c593e7

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

vis/js/default-config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ var config = {
177177
faqs_button: false,
178178
//url for link to faqs
179179
faqs_url: "",
180-
// show citation button
180+
// show citation button for the whole map
181181
show_cite_button: false,
182+
// show citation button for each paper
183+
cite_papers: false,
182184

183185
/*** streamgraph settings ***/
184186
//streamgraph color definition

vis/js/reducers/list.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const list = (
1717
showKeywords: false,
1818
hideUnselectedKeywords: true,
1919
height: null,
20+
citePapers: false,
2021
},
2122
action
2223
) => {
@@ -47,6 +48,7 @@ const list = (
4748
hideUnselectedKeywords: config.hide_keywords_overview,
4849
disableClicks: !config.render_map,
4950
height: action.listHeight,
51+
citePapers: config.cite_papers,
5052
};
5153
case "TOGGLE_LIST":
5254
return {

vis/js/templates/listentry/PaperButtons.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ const PaperButtons = ({
4646
};
4747

4848
const mapStateToProps = (state) => ({
49-
showCiteButton: ["base", "pubmed", "triple_km", "triple_sg"].includes(
50-
state.service
51-
),
49+
// showCiteButton: ["base", "pubmed", "triple_km", "triple_sg"].includes(
50+
// state.service
51+
// ),
52+
showCiteButton: state.list.citePapers,
5253
});
5354

5455
export default connect(

0 commit comments

Comments
 (0)