Skip to content

Commit 9b71d0c

Browse files
committed
use new arxiv id
1 parent 4221bf6 commit 9b71d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shared/js/utils/parsers.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const flipAndAuthors = (authors) =>
1818
// -------------------
1919

2020
const fetchArxivXML = async (paperId) => {
21-
const arxivId = paperId.replace("Arxiv-", "");
21+
const arxivId = paperId.replace("Arxiv-", "").replace("_", "/");
2222
return fetch(
2323
"https://export.arxiv.org/api/query?" +
2424
new URLSearchParams({ id_list: arxivId })
@@ -304,14 +304,14 @@ const makeArxivPaper = async (url) => {
304304
year +
305305
firstNonStopLowercase(title);
306306

307-
const id = `Arxiv-${arxivId}`;
307+
const id = `Arxiv-${arxivId.replace("/", "_")}`;
308308

309309
let bibtex = "";
310310
bibtex += `@article{${key},\n`;
311311
bibtex += ` title={${title} },\n`;
312312
bibtex += ` author={${author} },\n`;
313313
bibtex += ` year={${year}},\n`;
314-
bibtex += ` journal={arXiv preprint arXiv: ${id}}\n`;
314+
bibtex += ` journal={arXiv preprint arXiv: ${arxivId}}\n`;
315315
bibtex += `}`;
316316

317317
const venue = "";

0 commit comments

Comments
 (0)