Skip to content

EPUB import (v2) #13217

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

EPUB import (v2) #13217

wants to merge 4 commits into from

Conversation

InAnYan
Copy link
Member

@InAnYan InAnYan commented Jun 2, 2025

Closes #12457.

Changes:

  • EPUB importer.
  • EPUB importer tests.
  • Various utils for handling EPUB files.
  • Moved OptionalObjectProperty to JabLib (it was in JabGui previously).

Steps to test

  1. Import EPUB to library from JabGui.
  2. Run EPUB importer tests.

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.

@InAnYan InAnYan mentioned this pull request Jun 2, 2025
5 tasks
@InAnYan
Copy link
Member Author

InAnYan commented Jun 3, 2025

Trag bot actually gave good comments

@jabref-machine
Copy link
Collaborator

Your pull request needs to link an issue correctly.

To ease organizational workflows, please link this pull-request to the issue with syntax as described in https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue:

Linking a pull request to an issue using a keyword

You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message.

Examples

  • Fixes #xyz links pull-request to issue. Merging the PR will close the issue.
  • Fixes https://github.com/JabRef/jabref/issues/xyz links pull-request to issue. Merging the PR will close the issue.
  • Fixes https://github.com/Koppor/jabref/issues/xyz links pull-request to issue. Merging the PR will close the issue.
  • Fixes [#xyz](https://github.com/JabRef/jabref/issues/xyz) links pull-request to issue. Merging the PR will NOT close the issue.

@jabref-machine
Copy link
Collaborator

JUnit tests of jablib are failing. 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 / Unit tests (pull_request)" and click on it.

You can then run these tests in IntelliJ to reproduce the failing tests locally. We offer a quick test running howto in the section Final build system checks in our setup guide.

@@ -963,6 +958,14 @@ public BibEntry withField(Field field, String value) {
return this;
}

public BibEntry withField(Field field, Optional<String> value) {
Copy link

Choose a reason for hiding this comment

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

The method uses Objects.requireNonNull which should be replaced with @nonnull annotation as per the guidelines.

@@ -997,6 +1000,12 @@ public BibEntry withUserComments(String commentsBeforeEntry) {
return this;
}

public BibEntry withKeywords(Collection<String> keywords, Character delimiter) {
Copy link

Choose a reason for hiding this comment

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

The method uses Objects.requireNonNull which should be replaced with @nonnull annotation as per the guidelines.

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.

2 participants