Fix API bug
There was a bug whereby for arxiv DOIs our API returned the full page and not the correct reference.
To fix this bug the only possible solution I found was changing the requested header and ask for an entire json dictionary with all the metadata regarding that specific doi. Then I added a function to extract just the fields that I wanted to display in the reference and concatenate them to create a string.
I tested my solution with all papers cited in notion/projects/qim_repository and it works, I also tested with some arxiv DOIs and it seems to work as well.
Merge request reports
Activity
I found out that the function 'get_metadata' was already requesting the header that I wanted to use to fix the bug. So I used that function and added a new one to build the reference string by selecting the fields I wanted from the json dictionary. In the end I wrapped everything with a new 'get_reference" function
requested review from @fima
assigned to @s212246
mentioned in commit 3ed9de45