Skip to content

Automatic lookup DOI at citation information.#13596

Merged
koppor merged 3 commits into
JabRef:mainfrom
ankamde:issie-13561-automatic-lookup-of-DOI-at-citation-information
Jul 28, 2025
Merged

Automatic lookup DOI at citation information.#13596
koppor merged 3 commits into
JabRef:mainfrom
ankamde:issie-13561-automatic-lookup-of-DOI-at-citation-information

Conversation

@ankamde

@ankamde ankamde commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

Closes #13561

In the tab "Citation information, if there is no DOI, offer a "link" to determine the DOI.

Steps to test

  1. Add following paper to JabRef

@Article{,
author = {Oliver Kopp and Carl Christian Snethlage and Christoph Schwentker},
journal = {TUGboat},
title = {JabRef: BibTeX-based literature management software},
year = {2023},
issn = {0896-3207},
number = {3},
pages = {441--447},
volume = {44},
issue = {138},
ranking = {rank4},
}

  1. Open Citation Information tab - it shows message about missing DOI and provides link for DOI look up.
Screenshot From 2025-07-28 16-39-42
  1. Click on 'Look up DOI and try again' link. Progress indicator and message appears on the tab.
Screenshot From 2025-07-28 16-40-02
  1. After successful look up, DOI is used to fetch citation information.
Screenshot From 2025-07-28 16-40-17
  1. If DOI lookup fails due to an error, a message appears.
Screenshot From 2025-07-28 16-41-21

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [/] Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (if change is visible to the user)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • 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.

Comment on lines +161 to +165
private EventHandler<ActionEvent> doiLookUp() {
return actionEvent -> {
viewModel.lookUpDoi(currentEntry);
};
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The lambda expression contains unnecessary braces and semicolon. It can be simplified to 'return actionEvent -> viewModel.lookUpDoi(currentEntry)' for better readability.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@andrzej-kaminski @ankamde You can file a follow-up PR to fix this.

@koppor koppor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice code. I "just" had to unify the notificastion output with the tab "Citation relations" and also add a "dot" due to consistency (see lines above and below in JabRef_en.properties)

I took the liberty to do it for myself. 😅

@koppor koppor enabled auto-merge July 28, 2025 18:08
@koppor koppor added this pull request to the merge queue Jul 28, 2025
Merged via the queue into JabRef:main with commit b4f39b0 Jul 28, 2025
1 check passed
@andrzej-kaminski

Copy link
Copy Markdown
Contributor

Sure, no worries!

Siedlerchr added a commit that referenced this pull request Aug 2, 2025
* 'main' of github.com:JabRef/jabref: (26 commits)
  Change Open AI to Open AI  (or API Compatible)  (#13608)
  Remove all assignment tracking labels
  Updated architecture and components link in CONTRIBUTING.md (#13606)
  #13301 Fix/unicode reference marks (#13590)
  Show fetch exception at citation relation (#13549)
  More jbang caching
  Sequential run for moving issues
  Update CSL Styles (#13601)
  Fix gradle issues (#13603)
  Add System.exit (#13510)
  New Crowdin updates (#13600)
  Automatic lookup DOI at citation information. (#13596)
  Update heylogs from 0.10.0 to 0.11.1 (#13594)
  add fallback and reenable defaultcomeslast (#13593)
  Fix debian vagrant image (#13589)
  Fix: Replace string "Tests" with "Source Code Tests" in PR Comment (#13587)
  Fix version for SNAPSHOT (#13581)
  Update JDK and JavaFX (#13580)
  Add icon (#13579)
  Fixes link I broke in PR 13568 (#13577)
  ...
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.

Automatic lookup of DOI at "Citation information"

3 participants