Skip to content

Commit ca7bc15

Browse files
committed
Merge branch 'dev' into interface-changes-export-new
2 parents e4720b6 + 8775427 commit ca7bc15

4 files changed

Lines changed: 13 additions & 3 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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const PaperButtons = ({
3838
<div className="paper_buttons_row">
3939
{!!onPDFClick && (
4040
<button className="paper_button main" onClick={handlePDFButtonClick}>
41-
<i className="far fa-file-pdf"></i>&nbsp;&nbsp;<Highlight>PDF</Highlight>
41+
<i className="far fa-file-pdf"></i>&nbsp;&nbsp;
42+
<Highlight>PDF</Highlight>
4243
</button>
4344
)}
4445
{showCiteButton && (
@@ -57,7 +58,10 @@ const PaperButtons = ({
5758
};
5859

5960
const mapStateToProps = (state) => ({
60-
showCiteButton: ["base", "pubmed"].includes(state.service),
61+
// showCiteButton: ["base", "pubmed", "triple_km", "triple_sg"].includes(
62+
// state.service
63+
// ),
64+
showCiteButton: state.list.citePapers,
6165
showExportButton: ["base", "pubmed"].includes(state.service),
6266
});
6367

vis/stylesheets/modules/_modal.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ h5 {
396396
border-radius: 3px;
397397
-moz-border-radius: 3px;
398398

399+
word-break: break-word;
400+
399401
&.code {
400402
white-space: pre-wrap;
401403
}

0 commit comments

Comments
 (0)