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

Custom DOI base address fix #7569

Merged
merged 5 commits into from
Apr 8, 2021
Merged

Conversation

BJaroszkowski
Copy link
Contributor

@BJaroszkowski BJaroszkowski commented Mar 25, 2021

As mentioned in
Fixes #7337 the option to choose custom DOI base address did not propagate to LibraryTab and this PR aims to solve exactly that. In the process I refactored LinkedIdentifierColumn so that it uses OpenUrlAction as well.

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr changed the title Fix for issue 7337 revisited Custom DOI base address fix Mar 26, 2021
} catch (IOException e) {
dialogService.showErrorDialogAndWait(Localization.lang("Unable to open link."), e);
}
}
});
}

private void openCustomDOI(String link) {
Copy link
Member

Choose a reason for hiding this comment

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

I saw that this method is a duplicate of the one in the Entry Editor. To avoid code duplication, I think it could be useful to extract this method to a static method in JabRefDesktop and then call that. You would need to pass the prefs as parameter then

Copy link
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

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

Thanks for the quick follow up, just an idea to avoid code duplication. You don't need a changelog entry, as it's just a follow up to your other fix and not yet in a release.

@Siedlerchr Siedlerchr added the status: changes required Pull requests that are not yet complete label Mar 26, 2021
Copy link
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

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

Thanks for the quick follow up! Looks good to me!

@Siedlerchr Siedlerchr added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed status: changes required Pull requests that are not yet complete labels Mar 29, 2021
@Siedlerchr Siedlerchr merged commit bc2fc07 into JabRef:main Apr 8, 2021
Siedlerchr added a commit that referenced this pull request Apr 11, 2021
* upstream/main:
  Main instead of master
  Custom DOI base address fix (#7569)
  Change export to save (#7518)
  Bump unoloader from 7.1.1 to 7.1.2 (#7609)
  Bump org.beryx.jlink from 2.23.5 to 2.23.6 (#7610)
  Bump com.adarshr.test-logger from 2.1.1 to 3.0.0 (#7611)
  Bump libreoffice from 7.1.1 to 7.1.2 (#7612)
  Squashed 'buildres/csl/csl-styles/' changes from e1acabe..bfa3b6d (#7603)
  Rename master to main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom web address for accessing articles through DOI
2 participants