Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to request bibtex from ProcessReferences #53

Open
LukasWallrich opened this issue Oct 4, 2022 · 1 comment
Open

Allow to request bibtex from ProcessReferences #53

LukasWallrich opened this issue Oct 4, 2022 · 1 comment

Comments

@LukasWallrich
Copy link

Thanks for this very helpful client!

I would love the ability to request bibtex from ProcessReferences - for that, grobid needs application/x-bibtex but I don't believe there is a way to pass that at present? Or am I overlooking something?

@kermitt2
Copy link
Owner

kermitt2 commented Oct 9, 2022

Hi @LukasWallrich !

This is indeed not supported by the client out of the box, no parameter for this for the moment.

But to get bibtex results when using the processReferences or processCitationList service, you can edit the file grobid_client/client.py, line 19:

    accept_type = "application/xml"

to

   accept_type = "application/x-bibtex"

After edit, you need to reinstall:

> python3 setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants