Show DOI lookup link in citation relations tab
Closes https://github.com/JabRef/jabref/issues/13234
This PR enhances the "Citation relations" feature by making the "Look up a DOI and try again." text a clickable hyperlink. On clicking, the text changes to "Looking up DOI...". Based on the lookup result:
If a DOI is found, it is used for citation relations.
If no DOI is found, a notification "No DOI found" is shown and the link resets to its original state.
Steps to test
Add a paper in jabRef entry editor.
Go to citation relations. You will see hyperlink. Click on that hyperlink.
Mandatory checks
- [x] I own the copyright of the code submitted and I license it under the MIT license
- [x] Change in
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user) - [x] Tests created for changes (if applicable)
- [x] Manually tested changed features in running JabRef (always required)
- [x] Screenshots added in PR description (if change is visible to the user)
- [x] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
- [x] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.
Please fix the failing tests and follow the correct format for the PR description and title (check other prs for reference)
You can check the details of why a test is failing by clicking on it:
And then go to the Files Changed tab to correlate it with your changes
@YaxPrajapti May I ask if you intend to continue on this?
@trag-bot didn't find any issues in the code! ✅✨
Your code currently does not meet JabRef's code guidelines. We use Gradle Modernizer Plugin to ensure "modern" Java coding practices. You can see which checks are failing by locating the box "Some checks were not successful" on the pull request page. To see the test output, locate "Tests / Modernizer (pull_request)" and click on it.
Please fix the detected errors, commit, and push.