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

Add proper export (to bibtex) #295

Open
claell opened this issue Aug 17, 2023 · 5 comments · May be fixed by #302
Open

Add proper export (to bibtex) #295

claell opened this issue Aug 17, 2023 · 5 comments · May be fixed by #302

Comments

@claell
Copy link

claell commented Aug 17, 2023

pybliometrics version: 3.5.2

Affected classes: AbstractRetrieval

Expected behavior:
My use case for this project is to ideally automate workflows that I have to otherwise use the Scopus web UI for. For a literature review, I want to search Scopus and export the results (ideally to bibtex). This is possible through the web UI. Unfortunately, it doesn't seem fully supported with this package (https://pybliometrics.readthedocs.io/en/stable/classes/AbstractRetrieval.html#pybliometrics.scopus.AbstractRetrieval.get_bibtex is limited to Journal articles right now).
Is this due to API limitations?

I saw this implemented in another project, but maybe they just used their own code to achieve the behavior: muschellij2/rscopus#20.

@Michael-E-Rose
Copy link
Contributor

The bibtex (and other export options) are among the oldest parts of code of pybliometrics - when it was called scopus and maintained only by @jkitchin. Do you remember why just for journal articles? I think it's not restricted by the API, is it?

For all of these export options it'd be great to use another library and provides easy conversion between all the types. Currently everything is hard-coded.

@claell
Copy link
Author

claell commented Aug 21, 2023

Alright. I started working on a function that improves the current situation (but that is only for BibTeX export).

Maybe we can discuss that.

I think the restriction to Journal articles might just have been a decision to make implementation easy.

@Michael-E-Rose
Copy link
Contributor

You're probably right!

A PR to address this issue will be most welcome!

@claell
Copy link
Author

claell commented Aug 24, 2023

Alright. I'll continue to work on it for my own usage and hopefully can contribute with a PR, soon. Some help with internals is very welcomed!

@claell
Copy link
Author

claell commented Oct 14, 2023

Just some update: The issue is not forgotten. As per our call, I also use an external library for the bibtex handling now, which might help a little with performance and possibly robustness (although also introduced quite some problems to tackle). Currently, I based it on the ScopusSearch class (as opposed to the AbstractRetrieval class before) for better performance.

@claell claell linked a pull request Oct 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants