From 405b0d52d116024f0e59f9761f8bafae17424190 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 27 May 2024 21:31:19 +0200 Subject: [PATCH] Fix typo --- .../logic/importer/fetcher/isbntobibtex/IsbnFetcher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jabref/logic/importer/fetcher/isbntobibtex/IsbnFetcher.java b/src/main/java/org/jabref/logic/importer/fetcher/isbntobibtex/IsbnFetcher.java index c449320075d..7df0fb6fab5 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/isbntobibtex/IsbnFetcher.java +++ b/src/main/java/org/jabref/logic/importer/fetcher/isbntobibtex/IsbnFetcher.java @@ -35,12 +35,12 @@ public class IsbnFetcher implements EntryBasedFetcher, IdBasedFetcher { private static final Pattern NEWLINE_SPACE_PATTERN = Pattern.compile("\\n|\\r\\n|\\s"); protected final ImportFormatPreferences importFormatPreferences; private final List retryIsbnFetcher; - private final GvkFetcher gvkIbsnFetcher; + private final GvkFetcher gvkIsbnFetcher; public IsbnFetcher(ImportFormatPreferences importFormatPreferences) { this.importFormatPreferences = importFormatPreferences; OpenLibraryIsbnFetcher openLibraryIsbnFetcher = new OpenLibraryIsbnFetcher(importFormatPreferences); - this.gvkIbsnFetcher = new GvkFetcher(importFormatPreferences); + this.gvkIsbnFetcher = new GvkFetcher(importFormatPreferences); this.retryIsbnFetcher = new ArrayList<>(); this.addRetryFetcher(openLibraryIsbnFetcher); } @@ -63,7 +63,7 @@ public Optional performSearchById(String identifier) throws FetcherExc identifier = removeNewlinesAndSpacesFromIdentifier(identifier); Optional isbn = ISBN.parse(identifier); if (isbn.isPresent()) { - bibEntry = gvkIbsnFetcher.performSearchById(isbn.get().getNormalized()); + bibEntry = gvkIsbnFetcher.performSearchById(isbn.get().getNormalized()); } } catch (FetcherException ex) { LOGGER.debug("Got a fetcher exception for IBSN search", ex);