Skip to content

Make lobid fetcher search for ISBN as well#13107

Merged
koppor merged 10 commits into
mainfrom
addLobidIsbnFetcher
May 12, 2025
Merged

Make lobid fetcher search for ISBN as well#13107
koppor merged 10 commits into
mainfrom
addLobidIsbnFetcher

Conversation

@Siedlerchr

Copy link
Copy Markdown
Member

Should resolve more books

Fixes #13076

grafik

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.

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 12, 2025
…ddLobidIsbnFetcher

* 'addLobidIsbnFetcher' of github.com:JabRef/jabref: (26 commits)
  Bump com.konghq:unirest-java-core from 4.4.6 to 4.4.7 (#13104)
  Bump ai.djl:bom from 0.32.0 to 0.33.0 (#13106)
  Bump org.openrewrite.rewrite from 7.5.0 to 7.6.1 (#13105)
  Bump com.tngtech.archunit:archunit-junit5-engine from 1.4.0 to 1.4.1 (#13103)
  Bump com.konghq:unirest-modules-gson from 4.4.6 to 4.4.7 (#13102)
  Bump jablib/src/main/resources/csl-styles from `b8070a7` to `9b777f6` (#13101)
  Refine http sever doc (#13100)
  Add type "Bug" (#13099)
  Fix dash
  feat: select correct tab for creation of new entry (#13087) (#13091)
  Add missing empty line
  Fix notarization flag (#13095)
  Add more options to ADR-044 (#13098)
  Update year (#13097)
  Add ADR for migration from Apache Commons to Picocli (#13096)
  fix-localization (#13092)
  Fix condition for "comment-on-pr"
  fix-git-version (#13093)
  hotfix: enable ea build also on label added
  Check label "dev: binary" for upload to builds.jabref.org (#13086)
  ...
@Siedlerchr

Copy link
Copy Markdown
Member Author

I have no idea how to fix the import order, IntelliJ does not do any changes :(

}

@Override
public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException {

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 method getUrlForIdentifier throws URISyntaxException and MalformedURLException, which are checked exceptions. Consider using exceptions for exceptional states, not for normal control flow.

.withField(StandardField.URL, "http://lobid.org/resources/990212549810206441")
.withField(StandardField.YEAR, "2016");

Optional<BibEntry> fetchedEntry = fetcher.performSearchById("9783862065752");

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 method performSearchById should not throw exceptions for normal control flow. Exceptions should be used for exceptional states only.

@koppor koppor enabled auto-merge May 12, 2025 19:45
@koppor koppor added this pull request to the merge queue May 12, 2025
Merged via the queue into main with commit 3b892c0 May 12, 2025
2 checks passed
@koppor koppor deleted the addLobidIsbnFetcher branch May 12, 2025 20:07
@github-actions

Copy link
Copy Markdown
Contributor

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@subhramit subhramit removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 12, 2025
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.

Generation of entry with ISBN number failure

3 participants