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

Implement mass addition of bib information (Closes #372) #12025

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
887dd35
feat: enhance right-click context menu with new actions (extract refe…
KUMOAWAI Oct 19, 2024
656facf
fix: Restore MERGE_WITH_FETCHED_ENTRY and add BATCH_MERGE_WITH_FETCHE…
KUMOAWAI Oct 19, 2024
0409856
Refactor and optimize FetchAndMergeEntry class
KUMOAWAI Oct 19, 2024
489b512
Merge branch 'JabRef:main' into fix-for-issue-#372
KUMOAWAI Oct 19, 2024
dc138ce
Updated CHANGELOG.md
KUMOAWAI Oct 19, 2024
0532df4
Added a period at the end of the description in CHANGELOG.md.
KUMOAWAI Oct 19, 2024
012dd9a
Updated JabRef_en.properties
KUMOAWAI Oct 19, 2024
f8267ac
Move and rename "Mass Getting bibliographic data" action
KUMOAWAI Oct 20, 2024
74f2473
Refactor FetchAndMergeEntry class for improved functionality and read…
KUMOAWAI Oct 20, 2024
29759a6
Merge branch 'main' into fix-for-issue-#372
koppor Oct 20, 2024
37cfeae
Refactor entry fetching and merging process
KUMOAWAI Oct 20, 2024
77e0d51
Updated CHANGELOG.md
KUMOAWAI Oct 20, 2024
e6f0ad2
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 20, 2024
c5b7b4c
refactor: Separate UI and core logic in entry merging system
KUMOAWAI Oct 25, 2024
5b829b1
Merge remote-tracking branch 'upstream/fix-for-issue-#372' into fix-f…
KUMOAWAI Oct 25, 2024
350502e
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 25, 2024
fe46c0c
Refactored updateFieldIfNecessaryWithUndo method in MergeEntriesHelpe…
KUMOAWAI Oct 25, 2024
8eac6a9
Merge remote-tracking branch 'upstream/fix-for-issue-#372' into fix-f…
KUMOAWAI Oct 25, 2024
5d54083
refactor: Replace String.format with string concatenation in MergingI…
KUMOAWAI Oct 25, 2024
93072cf
refactor: Fixed incorrect placeholder in updateProgress Method
KUMOAWAI Oct 25, 2024
262d25d
Updated JabRef_en.properties to fix the failing LocalizationConsisten…
KUMOAWAI Oct 25, 2024
4667124
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 26, 2024
ae4df14
refactor: optimize BibEntry merging and fetching logic:
KUMOAWAI Oct 26, 2024
5ed3d70
Roll Back: FetchAndMergeEntry.java and MergeWithFetchedEntryAction.java.
KUMOAWAI Oct 27, 2024
74a6285
Merge branch 'main' into fix-for-issue-#372
koppor Oct 27, 2024
8d9bdce
Refactor: improve MergingIdBasedFetcher, BatchEntryMergeWithFetchedD…
KUMOAWAI Oct 27, 2024
95e9ae8
Fixed the minor import format issue.
KUMOAWAI Oct 27, 2024
9fdbbb4
Merge remote-tracking branch 'upstream/fix-for-issue-#372' into fix-f…
KUMOAWAI Oct 27, 2024
ce1ea3e
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 27, 2024
7305f3c
Apply suggestions from code review
KUMOAWAI Oct 27, 2024
9dce81a
Refactor: Reorder parameters to (fetcher, library) in merge operations
KUMOAWAI Oct 27, 2024
5f24815
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 27, 2024
d17fd88
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 30, 2024
61f5a8f
Refactor: Deleted the empty line before package
KUMOAWAI Oct 31, 2024
86051ac
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 31, 2024
198f2d0
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Oct 31, 2024
ace1975
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Nov 13, 2024
74681e1
Refactor: Deleted the empty line before package
KUMOAWAI Nov 16, 2024
3197ef4
refactor: Extract background processing into BatchEntryMergeTask, opt…
KUMOAWAI Nov 16, 2024
c04a2fa
Updated JabRef_en.properties
KUMOAWAI Nov 16, 2024
d2566db
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Nov 17, 2024
4d1b88d
Apply suggestions from code review
KUMOAWAI Nov 17, 2024
e8645a2
Modify log messages correspondingly.
KUMOAWAI Nov 17, 2024
ac8c59d
Refactor: Move string normalization from StringNormalizer to StringUtil
KUMOAWAI Nov 17, 2024
5172bc2
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Nov 18, 2024
05b3c42
Merge branch 'main' into fix-for-issue-#372
KUMOAWAI Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- We added automatic browser extension install on Windows for Chrome and Edge. [#6076](https://github.com/JabRef/jabref/issues/6076)
- We added a search bar for filtering keyboard shortcuts. [#11686](https://github.com/JabRef/jabref/issues/11686)
- By double clicking on a local citation in the Citation Relations Tab you can now jump the linked entry. [#11955](https://github.com/JabRef/jabref/pull/11955)
- Added functionality for mass addition of bibliographic information for multiple entries. [#372](https://github.com/JabRef/jabref/issues/372)
Copy link
Member

Choose a reason for hiding this comment

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

Please add where you added it.

It really needs to be in the "Lookup" menu.

image

We want to keep the right click menu small.

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Added functionality for mass addition of bibliographic information for multiple entries. [#372](https://github.com/JabRef/jabref/issues/372)
- Added functionality for mass addition of bibliographic information for multiple entries to the "Lookup" menu. [#372](https://github.com/JabRef/jabref/issues/372)


### Changed

Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/jabref/gui/actions/StandardActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public enum StandardActions implements Action {
OPEN_URL(Localization.lang("Open URL or DOI"), IconTheme.JabRefIcons.WWW, KeyBinding.OPEN_URL_OR_DOI),
SEARCH_SHORTSCIENCE(Localization.lang("Search ShortScience")),
MERGE_WITH_FETCHED_ENTRY(Localization.lang("Get bibliographic data from %0", "DOI/ISBN/...")),
BATCH_MERGE_WITH_FETCHED_ENTRIES(Localization.lang("Mass getting bibliographic data from %0", "DOI/ISBN/...")),
ATTACH_FILE(Localization.lang("Attach file"), IconTheme.JabRefIcons.ATTACH_FILE),
ATTACH_FILE_FROM_URL(Localization.lang("Attach file from URL"), IconTheme.JabRefIcons.DOWNLOAD_FILE),
PRIORITY(Localization.lang("Priority"), IconTheme.JabRefIcons.PRIORITY),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/jabref/gui/maintable/RightClickMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.jabref.gui.menus.ChangeEntryTypeMenu;
import org.jabref.gui.mergeentries.MergeEntriesAction;
import org.jabref.gui.mergeentries.MergeWithFetchedEntryAction;
import org.jabref.gui.mergeentries.MultiEntryMergeWithFetchedDataAction;
import org.jabref.gui.preferences.GuiPreferences;
import org.jabref.gui.preview.CopyCitationAction;
import org.jabref.gui.preview.PreviewPreferences;
Expand Down Expand Up @@ -92,7 +93,8 @@ public static ContextMenu create(BibEntryTableViewModel entry,
new SeparatorMenuItem(),

new ChangeEntryTypeMenu(libraryTab.getSelectedEntries(), libraryTab.getBibDatabaseContext(), undoManager, entryTypesManager).asSubMenu(),
factory.createMenuItem(StandardActions.MERGE_WITH_FETCHED_ENTRY, new MergeWithFetchedEntryAction(dialogService, stateManager, taskExecutor, preferences, undoManager))
factory.createMenuItem(StandardActions.MERGE_WITH_FETCHED_ENTRY, new MergeWithFetchedEntryAction(dialogService, stateManager, taskExecutor, preferences, undoManager)),
factory.createMenuItem(StandardActions.BATCH_MERGE_WITH_FETCHED_ENTRIES, new MultiEntryMergeWithFetchedDataAction(libraryTab, preferences, taskExecutor, libraryTab.getBibDatabaseContext(), dialogService, undoManager))
Copy link
Member

Choose a reason for hiding this comment

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

libraryTab is already passed, thus you can call libraryTab.getBibDatabaseContext() inside the method.

);

EasyBind.subscribe(preferences.getGrobidPreferences().grobidEnabledProperty(), enabled -> {
Expand Down
170 changes: 134 additions & 36 deletions src/main/java/org/jabref/gui/mergeentries/FetchAndMergeEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,38 +70,143 @@ public void fetchAndMerge(BibEntry entry, Field field) {
}

public void fetchAndMerge(BibEntry entry, List<Field> fields) {
for (Field field : fields) {
Optional<String> fieldContent = entry.getField(field);
if (fieldContent.isPresent()) {
Optional<IdBasedFetcher> fetcher = WebFetchers.getIdBasedFetcherForField(field, preferences.getImportFormatPreferences());
if (fetcher.isPresent()) {
BackgroundTask.wrap(() -> fetcher.get().performSearchById(fieldContent.get()))
.onSuccess(fetchedEntry -> {
ImportCleanup cleanup = ImportCleanup.targeting(bibDatabaseContext.getMode(), preferences.getFieldPreferences());
String type = field.getDisplayName();
if (fetchedEntry.isPresent()) {
cleanup.doPostCleanup(fetchedEntry.get());
showMergeDialog(entry, fetchedEntry.get(), fetcher.get());
} else {
dialogService.notify(Localization.lang("Cannot get info based on given %0: %1", type, fieldContent.get()));
}
})
.onFailure(exception -> {
LOGGER.error("Error while fetching bibliographic information", exception);
if (exception instanceof FetcherClientException) {
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcher.get().getName()), Localization.lang("No data was found for the identifier"));
} else if (exception instanceof FetcherServerException) {
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcher.get().getName()), Localization.lang("Server not available"));
} else {
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcher.get().getName()), Localization.lang("Error occurred %0", exception.getMessage()));
}
})
.executeWith(taskExecutor);
fields.forEach(field -> fetchAndMergeEntryWithDialog(entry, field));
}

private void fetchAndMergeEntryWithDialog(BibEntry entry, Field field) {
entry.getField(field).ifPresent(
fieldContent -> WebFetchers.getIdBasedFetcherForField(field, preferences.getImportFormatPreferences()).ifPresent(
fetcher -> executeFetchTaskWithDialog(fetcher, field, fieldContent, entry)
)
);
}

private void executeFetchTaskWithDialog(IdBasedFetcher fetcher, Field field, String fieldContent, BibEntry entry) {
BackgroundTask.wrap(() -> fetcher.performSearchById(fieldContent))
.onSuccess(fetchedEntry -> processFetchedEntryWithDialog(fetchedEntry, field, fieldContent, entry, fetcher))
.onFailure(exception -> handleFetchException(exception, fetcher, entry))
.executeWith(taskExecutor);
}

private void processFetchedEntryWithDialog(Optional<BibEntry> fetchedEntry, Field field, String fieldContent, BibEntry originalEntry, IdBasedFetcher fetcher) {
ImportCleanup cleanup = ImportCleanup.targeting(bibDatabaseContext.getMode(), preferences.getFieldPreferences());
if (fetchedEntry.isPresent()) {
cleanup.doPostCleanup(fetchedEntry.get());
showMergeDialog(originalEntry, fetchedEntry.get(), fetcher);
} else {
dialogService.notify(Localization.lang("Cannot get info based on given %0: %1", field.getDisplayName(), fieldContent));
}
}

public void fetchAndMergeBatch(List<BibEntry> entries) {
entries.forEach(entry -> SUPPORTED_FIELDS.forEach(field -> fetchAndMergeEntry(entry, field)));
Copy link
Member

Choose a reason for hiding this comment

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

Rename variable SUPPORTED_FIELDS to SUPPORTED_IDENTIFIER_FIELDS.

}

private void fetchAndMergeEntry(BibEntry entry, Field field) {
entry.getField(field).ifPresentOrElse(
fieldContent -> WebFetchers.getIdBasedFetcherForField(field, preferences.getImportFormatPreferences()).ifPresent(
fetcher -> executeFetchTask(fetcher, field, fieldContent, entry)
),
() -> {
if (hasAnySupportedField(entry)) {
dialogService.notify(Localization.lang("No %0 found", field.getDisplayName()));
}
Copy link
Member

Choose a reason for hiding this comment

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

It is unclear why this function is there.

I think, this can just be removed. No need to inform the user.

Moreover, the logic is wrong. -- It is OK if the entry has an identifier field

Copy link
Member

Choose a reason for hiding this comment

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

We also can use .map and .flatMap on optionals. I believe we can make the logic clearer by using those.

}
);
}

private boolean hasAnySupportedField(BibEntry entry) {
return SUPPORTED_FIELDS.stream().noneMatch(field -> entry.getField(field).isPresent());
}

private void executeFetchTask(IdBasedFetcher fetcher, Field field, String fieldContent, BibEntry entry) {
BackgroundTask.wrap(() -> fetcher.performSearchById(fieldContent))
Copy link
Member

Choose a reason for hiding this comment

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

We don't need the fieldContent parameter here as it can be taken from the entry. Ideally we want to keep the number of parameters passed to a method to a minimum to achieve cleaner code.

.onSuccess(fetchedEntry -> processFetchedEntry(fetchedEntry, field, fieldContent, entry))
.onFailure(exception -> handleFetchException(exception, fetcher, entry))
.executeWith(taskExecutor);
}

private void processFetchedEntry(Optional<BibEntry> fetchedEntry, Field field, String fieldContent, BibEntry originalEntry) {
if (fetchedEntry.isPresent()) {
ImportCleanup cleanup = ImportCleanup.targeting(bibDatabaseContext.getMode(), preferences.getFieldPreferences());
cleanup.doPostCleanup(fetchedEntry.get());
mergeWithoutDialog(originalEntry, fetchedEntry.get());
} else {
dialogService.notify(Localization.lang("Cannot get info based on given %0: %1", field.getDisplayName(), fieldContent));
}
}

private void handleFetchException(Exception exception, IdBasedFetcher fetcher, BibEntry entry) {
if (hasAnySupportedField(entry)) {
Copy link
Member

Choose a reason for hiding this comment

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

I think, this is not required. The id fetcher should only be called if the id is present. If id present, the exception is shown.

--> remove this if (and remove hasAnySupportedField alltogether)

LOGGER.error("Error while fetching bibliographic information", exception);
String fetcherName = fetcher.getName();
if (exception instanceof FetcherClientException) {
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcherName), Localization.lang("No data was found for the identifier"));
} else if (exception instanceof FetcherServerException) {
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcherName), Localization.lang("Server not available"));
} else {
dialogService.notify(Localization.lang("No %0 found", field.getDisplayName()));
dialogService.showInformationDialogAndWait(Localization.lang("Fetching information using %0", fetcherName), Localization.lang("Error occurred %0", exception.getMessage()));
}
}
}

private void mergeWithoutDialog(BibEntry originalEntry, BibEntry fetchedEntry) {
Copy link
Member

Choose a reason for hiding this comment

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

This whole method can be go into logic, because there is no gui interaction - and it should be testable with a JUnit test.

Annote the test using JUnit

@AllowedToUseSwing("Requires undo/redo functionality")

Copy link
Author

Choose a reason for hiding this comment

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

I apologize for the oversight; I should have provided my comments after pushing the changes. Over the past few hours, I have been working on optimizing the code further and transitioning the class into the logic directory.
My current progress is that '''

Refactor FetchAndMergeEntry:

The single-entry fetching and merging logic remains in FetchAndMergeEntry.

Extracted logic for batch processing and handling multiple entries from FetchAndMergeEntry.

Introduce MergingIdBasedFetcher:

Created the MergingIdBasedFetcher class in the org.jabref.logic.importer.fetcher package.

MergingIdBasedFetcher handles mass operations such as fetching and merging multiple BibEntry objects.

Uses NotificationService to provide error and status notifications, removing reliance on user confirmation dialogs for better automation.

Create MergeEntriesHelper:

Introduced the MergeEntriesHelper class to centralize and handle the actual merging logic between BibEntry instances.

The class includes methods to update entry types, fields, and remove obsolete fields during merging. '''

NamedCompound ce = new NamedCompound(Localization.lang("Merge entry without user interaction"));
Copy link
Member

Choose a reason for hiding this comment

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

Two entries are morged, not a single one.

Suggested change
NamedCompound ce = new NamedCompound(Localization.lang("Merge entry without user interaction"));
NamedCompound ce = new NamedCompound(Localization.lang("Merge entries without user interaction"));


// Set of fields present in both the original and fetched entries
Set<Field> jointFields = new TreeSet<>(Comparator.comparing(Field::getName));
jointFields.addAll(fetchedEntry.getFields());
Set<Field> originalFields = new TreeSet<>(Comparator.comparing(Field::getName));
originalFields.addAll(originalEntry.getFields());
Copy link
Member

Choose a reason for hiding this comment

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

This is duplicated coude. Please refactor to a method.


boolean edited = false;

// Compare entry type and update if needed
EntryType oldType = originalEntry.getType();
EntryType newType = fetchedEntry.getType();

if (!oldType.equals(newType)) {
originalEntry.setType(newType);
ce.addEdit(new UndoableChangeType(originalEntry, oldType, newType));
edited = true;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need the edited boolean flag anymore, we can use NamedCompound#hasEdits.

}

// Compare fields and set the longer value
for (Field field : jointFields) {
Optional<String> originalString = originalEntry.getField(field);
Optional<String> fetchedString = fetchedEntry.getField(field);

if (fetchedString.isPresent()) {
Copy link
Member

Choose a reason for hiding this comment

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

if (originalString.isEmpty() || fetchedString.get().length() > originalString.get().length()) {
originalEntry.setField(field, fetchedString.get());
ce.addEdit(new UndoableFieldChange(originalEntry, field, originalString.orElse(null), fetchedString.get()));
edited = true;
}
}
}

// Remove fields not present in fetched entry, unless they are internal
edited = isEdited(originalEntry, ce, jointFields, originalFields, edited);

if (edited) {
ce.end();
undoManager.addEdit(ce);
dialogService.notify(Localization.lang("Updated entry with fetched information"));
Copy link
Member

Choose a reason for hiding this comment

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

Add the citation key to this information - otherwise it is unclear which entry is used.

Use getCitationKey().orElse(getAuthorTitleYear()

} else {
dialogService.notify(Localization.lang("No new information was added"));
}
}

private boolean isEdited(BibEntry originalEntry, NamedCompound ce, Set<Field> jointFields, Set<Field> originalFields, boolean edited) {
for (Field field : originalFields) {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to pass the edited boolean here? We want to minimize the number of parameters.

Copy link
Member

Choose a reason for hiding this comment

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

The method is named isEdited suggesting a read-only behavior but it can clear some fields, this is not ideal...

if (!jointFields.contains(field) && !FieldFactory.isInternalField(field)) {
Optional<String> originalString = originalEntry.getField(field);
originalEntry.clearField(field);
ce.addEdit(new UndoableFieldChange(originalEntry, field, originalString.get(), null));
edited = true;
}
}
return edited;
}

private void showMergeDialog(BibEntry originalEntry, BibEntry fetchedEntry, WebFetcher fetcher) {
Expand Down Expand Up @@ -144,14 +249,7 @@ private void showMergeDialog(BibEntry originalEntry, BibEntry fetchedEntry, WebF
}

// Remove fields which are not in the merged entry, unless they are internal fields
for (Field field : originalFields) {
if (!jointFields.contains(field) && !FieldFactory.isInternalField(field)) {
Optional<String> originalString = originalEntry.getField(field);
originalEntry.clearField(field);
ce.addEdit(new UndoableFieldChange(originalEntry, field, originalString.get(), null)); // originalString always present
edited = true;
}
}
edited = isEdited(originalEntry, ce, jointFields, originalFields, edited);

if (edited) {
ce.end();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package org.jabref.gui.mergeentries;

import java.util.List;

import javax.swing.undo.UndoManager;

import org.jabref.gui.DialogService;
import org.jabref.gui.LibraryTab;
import org.jabref.gui.actions.SimpleCommand;
import org.jabref.gui.preferences.GuiPreferences;
import org.jabref.logic.util.TaskExecutor;
import org.jabref.model.database.BibDatabaseContext;
import org.jabref.model.entry.BibEntry;

/**
* Action for merging multiple entries with fetched data from identifiers like DOI or arXiv.
*/
public class MultiEntryMergeWithFetchedDataAction extends SimpleCommand {

private final LibraryTab libraryTab;
private final GuiPreferences preferences;
private final TaskExecutor taskExecutor;
private final BibDatabaseContext bibDatabaseContext;
private final DialogService dialogService;
private final UndoManager undoManager;

public MultiEntryMergeWithFetchedDataAction(LibraryTab libraryTab,
GuiPreferences preferences,
TaskExecutor taskExecutor,
BibDatabaseContext bibDatabaseContext,
DialogService dialogService,
UndoManager undoManager) {
this.libraryTab = libraryTab;
this.preferences = preferences;
this.taskExecutor = taskExecutor;
this.bibDatabaseContext = bibDatabaseContext;
this.dialogService = dialogService;
this.undoManager = undoManager;
}

@Override
public void execute() {
List<BibEntry> selectedEntries = libraryTab.getSelectedEntries();

// Create an instance of FetchAndMergeEntry
Copy link
Member

Choose a reason for hiding this comment

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

Not a very useful comment 😅

FetchAndMergeEntry fetchAndMergeEntry = new FetchAndMergeEntry(bibDatabaseContext, taskExecutor, preferences, dialogService, undoManager);

// Perform the batch fetch and merge operation
fetchAndMergeEntry.fetchAndMergeBatch(selectedEntries);
}
}
Loading