Skip to content

Commit e4720b6

Browse files
committed
enabled the download button
1 parent 4671227 commit e4720b6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

vis/js/templates/modals/ExportPaperModal.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ExportPaperModal = ({ open, onClose, paper, serverUrl }) => {
2222
};
2323

2424
const handleDownloadClick = () => {
25-
startExportDownload(paper);
25+
startExportDownload(paper, serverUrl);
2626
trackEvent(
2727
"List document",
2828
"Download paper export",
@@ -97,8 +97,8 @@ const mapDispatchToProps = (dispatch) => ({
9797
export default connect(mapStateToProps, mapDispatchToProps)(ExportPaperModal);
9898

9999
// the alternative solution is to really create a form in the JSX
100-
const startExportDownload = (paper) => {
101-
const url = PAPER_EXPORT_ENDPOINT + "&download=true";
100+
const startExportDownload = (paper, serverUrl) => {
101+
const url = serverUrl + PAPER_EXPORT_ENDPOINT + "&download=true";
102102

103103
const form = document.createElement("form");
104104

vis/js/utils/usePaperExport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useEffect } from "react";
22

3-
export const PAPER_EXPORT_ENDPOINT = "services/exportMetadata.php";
3+
export const PAPER_EXPORT_ENDPOINT = "services/exportMetadata.php?format=bibtex";
44

55
const DATA_FALLBACK = "No data available.";
66

0 commit comments

Comments
 (0)