sharmalab / TCIAPubHubAdmin

0 stars 2 forks source link

Citation Formatter Times out #53

Closed birm closed 7 years ago

birm commented 7 years ago

From slack:

Ashish Sharma [Today at 3:11 PM] in #tcia_pubhub The citation formatter times out - http://10.40.91.239:3001/details?doi=https://doi.org/10.7937/K9/TCIA.2016.VPTNRGFY

2 replies Ashish Sharma [< 1 minute ago] maybe we should replace it with this:

Ashish Sharma [< 1 minute ago] curl -LH “Accept: text/x-bibliography; style=apa” https://doi.org/10.7937/K9/TCIA.2016.VPTNRGFY

birm commented 7 years ago

api url: http://localhost:3001/api/getCitation?style=apa&lang=en-US&doi=https://doi.org/10.7937/K9/TCIA.2017.KLXWJJ1Q

calls: http://crosscite.org/citeproc/format?doi=https%3A%2F%2Fdoi.org%2F10.7937%2FK9%2FTCIA.2017.KLXWJJ1Q&style=apa&lang=en-US

birm commented 7 years ago

This works with https://citation.crosscite.org/format?doi=10.7937%2FK9%2FTCIA.2017.KLXWJJ1Q&style=apa&lang=en-US, so we need to fix the doi field to be a name as opposed to a url

birm commented 7 years ago

Solved by 1) removing "/citeproc/" from the config.js and 2) adding 18 characters of junk (123456789012345678) before doi in load to get around the slice in line 40 of One.jsx