jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Show DOI lookup link in citation relations tab

Open YaxPrajapti opened this issue 6 months ago • 3 comments

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. Screenshot 2025-06-09 at 5 52 24 PM

Mandatory checks

  • [x] I own the copyright of the code submitted and I license it under the MIT license
  • [x] Change in CHANGELOG.md described 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.

YaxPrajapti avatar Jun 09 '25 12:06 YaxPrajapti

Please fix the failing tests and follow the correct format for the PR description and title (check other prs for reference)

subhramit avatar Jun 09 '25 12:06 subhramit

You can check the details of why a test is failing by clicking on it: image

And then go to the Files Changed tab to correlate it with your changes image

subhramit avatar Jun 09 '25 14:06 subhramit

@YaxPrajapti May I ask if you intend to continue on this?

koppor avatar Jul 03 '25 10:07 koppor

@trag-bot didn't find any issues in the code! ✅✨

trag-bot[bot] avatar Jul 05 '25 07:07 trag-bot[bot]

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.

jabref-machine avatar Jul 05 '25 07:07 jabref-machine