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

Update the handling of arXiv/DOI #12348

Closed
wants to merge 2 commits into from

Conversation

laky241
Copy link

@laky241 laky241 commented Jan 1, 2025

fixes #12292

We improved the InspireHEP API so that the cite key is consistent, no matter how you search. Before, if you searched using an arXiv number or DOI, the cite key would show up as a long DOI URL, which wasn't ideal. Now, we’ve added a "texkeys" field that returns the proper cite key across all search types, making it easier to use.

Added a "texkeys" field to the API response for searches using unique identifiers like arXiv numbers.
This ensures that the cite key is consistent, whether you're searching normally or by arXiv number/DOI.
Updated the API to include the correct cite key for all search methods, improving usability.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JUnit tests are failing. In the area "Some checks were not successful", locate "Tests / Unit tests (pull_request)" and click on "Details". This brings you to the test output.

You can then run these tests in IntelliJ to reproduce the failing tests locally. We offer a quick test running howto in the section Final build system checks in our setup guide.

@laky241 laky241 closed this Jan 1, 2025
@laky241 laky241 deleted the fix/12292-default-texkey branch January 1, 2025 18:17
@laky241 laky241 restored the fix/12292-default-texkey branch January 1, 2025 18:19
@laky241 laky241 deleted the fix/12292-default-texkey branch January 1, 2025 18:19
@Siedlerchr
Copy link
Member

Why did you delete the branch and close the pr? You can simply push new commits, PR will be updated

@laky241
Copy link
Author

laky241 commented Jan 1, 2025

Hi @Siedlerchr I am new to open source i didn't know about that

I decided to close the previous PR because it failed some unit tests, and I wanted to fix those issues thoroughly before raising a new PR.

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

Successfully merging this pull request may close these issues.

Use default texkeys when importing from Inspirehep web search with arxiv number
2 participants